基础绘画

2017-10-21  本文已影响0人  看风景的人_21744

数据结构

1. Point

Point pt;
pt.x = 10;
pt.y = 8;

Point pt =  Point(10, 8);

Point represents a 2D point, specified by its image coordinates

2. Scalar

Scalar( a, b, c )

椭圆


void cv::ellipse    (
InputOutputArray    img,
Point   center,
Size    axes,
double  angle,
double  startAngle,
double  endAngle,
const Scalar &  color,
int     thickness = 1,
int     lineType = LINE_8,
int     shift = 0 
)   


void cv::circle (   
InputOutputArray    img,
Point   center,
int     radius,
const Scalar &  color,
int     thickness = 1,
int     lineType = LINE_8,
int     shift = 0 
)   

新tip

  imshow( atom_window, atom_image );
  moveWindow( atom_window, 0, 200 );
  imshow( rook_window, rook_image );
  moveWindow( rook_window, w, 200 );
上一篇 下一篇

猜你喜欢

热点阅读