8.4.2.15. drawing
|
(packages/opencv/drawing.lsh) |
dummy function that adds OpenCV C header files in C file
8.4.2.15.0. (cvLine array pt1 pt2 color thickness line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvLine
// Purpose:
// Draws line on the image ROI between two points
// Context:
// Parameters:
// img - image where the line is drawn.
// pt1 - starting point
// pt2 - ending point
// color - line color(or brightness)
// thickness - line thickness. 1 means simple line.
// if line is thick, function draws the line with round endings.
// line_type - Type of the line:
// 8 (or 0) - 8-connected line.
// 4 - 4-connected line.
// CV_AA - antialiased line.
// shift - Number of fractional bits in the point coordinates.
// Returns:
//F*/
OPENCVAPI void cvLine( CvArr* array, CvPoint pt1, CvPoint pt2,
CvScalar color, int thickness CV_DEFAULT(1),
int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0));
8.4.2.15.1. (cvRectangle array pt1 pt2 color thickness line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvRectangle
// Purpose:
// Draws rectangle on the image ROI
// Context:
// Parameters:
// img - image where the rectangle is drawn.
// pt1 - one of the rectangle corners
// pt2 - opposite corner of the rectangle
// thickness - thickness of the lines that made up rectangle.
// color - line color(or brightness)
// line_type - Type of the line, see cvLine description
// shift - Number of fractional bits in the point coordinates.
// Returns:
//F*/
OPENCVAPI void cvRectangle( CvArr* array, CvPoint pt1, CvPoint pt2,
CvScalar color, int thickness CV_DEFAULT(1));
8.4.2.15.2. (cvCircle array center radius color thickness line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvCircle
// Purpose:
// Draws circle on the image ROI
// Context:
// Parameters:
// img - image.
// center - circle center
// radius - circle radius(must be >= 0)
// color - circle color
// thickenss - thickness of drawn circle. <0 means filled circle.
// line_type - Type of the circle boundary, see cvLine description.
// shift - Number of fractional bits in the center coordinates and radius value
// Returns:
//F*/
OPENCVAPI void cvCircle( CvArr* array, CvPoint center, int radius,
CvScalar color, int thickness CV_DEFAULT(1));
8.4.2.15.3. (cvEllipse array center axes angle sangle eangle color thickness line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvEllipse
// Purpose:
// Draws elliptic arc
// Context:
// Parameters:
// img - image.
// center - ellipse center
// axes - half axes of the ellipse
// angle - ellipse angle
// startAngle - starting angle of elliptic arc
// endAngle - ending angle of elliptic arc
// thickness - arc thickness
// color - ellipse color(or brightness)
// line_type - Type of the ellipse boundary, see cvLine description.
// shift - Number of fractional bits in the center coordinates and radius value.
// Returns:
//F*/
OPENCVAPI void cvEllipse( CvArr* array, CvPoint center, CvSize axes,
double angle, double startAngle, double endAngle,
CvScalar color, int thickness CV_DEFAULT(1)
int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0));
8.4.2.15.4. (cvFillConvexPoly array pts npts color line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvFillConvexPoly
// Purpose:
// Fills convex polygon
// Context:
// Parameters:
// img - image.
// pts - array of polygon vertices
// ntps - number of vertices in the polygon
// color - polygon color(or brightness)
// Returns:
// Notes:
// fucntion automatically closes the contour -
// adds edge between first and last vertices.
// function doesn't check that input polygon is convex.
//F*/
CVAPI void cvFillConvexPoly( CvArr* array, CvPoint* pts, int npts, CvScalar color, int line_type, int shift);
8.4.2.15.5. (cvFillPoly array pts npts contours color line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvFillPoly
// Purpose:
// Fills arbitrary regions, bounded by several polygonal contours.
// Context:
// Parameters:
// img - image.
// contours - number of contours
// pts - array of pointers to polygonal contours
// ntps - array of vertices counters for the contours
// color - polygons color(or brightness)
// Returns:
// Notes:
// function automatically closes each polygonal contour.
// If some contours are overlapped, they are added modulo 2.
// That is, pixel is filled, if it belongs to odd number of polygonal contours.
//F*/
OPENCVAPI void cvFillPoly( CvArr* array, CvPoint** pts,
int* npts, int contours, CvScalar color );
8.4.2.15.6. (cvPolyLine array pts npts contours closed color thickness line-type shift)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvPolyLine
// Purpose:
// Draws polygons outline with simple or thick lines.
// Context:
// Parameters:
// img - image.
// contours - number of contours
// pts - array of pointers to polygonal contours
// ntps - array of vertices counters for the contours
// closed - if non-zero, function closes each contour.
// thickness - line thickness
// color - polygons color(or brightness)
// Returns:
//F*/
OPENCVAPI void cvPolyLine( CvArr* array, CvPoint** pts, int* npts, int contours,
int closed, CvScalar color,
int thickness CV_DEFAULT(1),
int connectivity CV_DEFAULT(8));
8.4.2.15.7. (cvInitFont font font_face hscale vscale shear thickness line-type)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvInitFont
// Purpose:
// Initializes font to use it in following text rendering operations
// Context:
// Parameters:
// font - pointer to initialized font structure.
// font_face - font family. There is a single font,
// supported now - CV_FONT_VECTOR0.
// hscale - multiplier for horizontal letter sizes.
// If 1 then the original size is used,
// if 2 - twice wider, if 0.5 - twice thinner etc.
// vscale - multiplier for vertical letter sizes.
// If 1 then the original size is used,
// if 2 - twice longer, if 0.5 - twice shorter etc.
// shear - tangent of letter slope, 0 means no slope,
// 1 - 45 degree slope
// thickness - letter thickness
// line_type
// Returns:
//F*/
OPENCVAPI void cvInitFont( CvFont* font, CvFontFace font_face,
double hscale, double vscale,
double italic_scale CV_DEFAULT(0),
int thickness CV_DEFAULT(1) );
8.4.2.15.8. (cvPutText img text org font color)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvPutText
// Purpose:
// Draws text string on the image with given font
// Context:
// Parameters:
// img - image.
// text - text string
// org - left-bottom corner of output text string
// font - text font
// color - polygons color(or brightness)
// Returns:
//F*/
OPENCVAPI void cvPutText( CvArr* array, const char* text, CvPoint org,
CvFont* font, CvScalar color );
8.4.2.15.9. (cvGetTextSize textstring font textsize baseline)
|
(packages/opencv/drawing.lsh) |
/*F///////////////////////////////////////////////////////////////////////////////////////
//
// Name: cvGetTextSize
// Purpose:
// Calculates bounding rectangle for given text string and font.
// Context:
// Parameters:
// text - text string
// font - font to draw the string with
// text_size - output parameter. width and height of bounding box
// (not including part of the text below base line)
// baseline
// Returns:
//F*/
OPENCVAPI void cvGetTextSize( const char* text_string, CvFont* font,
CvSize* text_size, int* ymin );