Wondercoll
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
cxdrawing.cpp File Reference
#include "_cxcore.h"

Classes

struct  CvPolyEdge
 

Macros

#define XY_SHIFT   16
 
#define XY_ONE   (1 << XY_SHIFT)
 
#define CV_DRAWING_STORAGE_BLOCK   ((1 << 12) - 256)
 
#define ICV_PUT_POINT()
 
#define ICV_PUT_POINT()
 
#define ICV_PUT_POINT()
 
#define ICV_PUT_POINT()
 
#define ICV_PUT_POINT()
 
#define ICV_HLINE(ptr, xl, xr, color, pix_size)
 
#define ICV_PUT_POINT(ptr, x)   CV_MEMCPY_CHAR( ptr + (x)*pix_size, color, pix_size );
 
#define CV_FONT_SIZE_SHIFT   8
 
#define CV_FONT_ITALIC_ALPHA   (1 << 8)
 
#define CV_FONT_ITALIC_DIGIT   (2 << 8)
 
#define CV_FONT_ITALIC_PUNCT   (4 << 8)
 
#define CV_FONT_ITALIC_BRACES   (8 << 8)
 
#define CV_FONT_HAVE_GREEK   (16 << 8)
 
#define CV_FONT_HAVE_CYRILLIC   (32 << 8)
 
#define CV_ADJUST_EDGE_COUNT(count, seq)   ((count) -= ((count) == (seq)->total && !CV_IS_SEQ_CLOSED(seq)))
 

Typedefs

typedef struct CvPolyEdge CvPolyEdge
 

Functions

CV_IMPL int cvClipLine (CvSize img_size, CvPoint *pt1, CvPoint *pt2)
 
CV_IMPL int cvInitLineIterator (const CvArr *img, CvPoint pt1, CvPoint pt2, CvLineIterator *iterator, int connectivity, int left_to_right)
 
CV_IMPL int cvEllipse2Poly (CvPoint center, CvSize axes, int angle, int arc_start, int arc_end, CvPoint *pts, int delta)
 
CV_IMPL CvScalar cvColorToScalar (double packed_color, int type)
 
CV_IMPL void cvLine (void *img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness, int line_type, int shift)
 
CV_IMPL void cvRectangle (void *img, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness, int line_type, int shift)
 
CV_IMPL void cvCircle (void *img, CvPoint center, int radius, CvScalar color, int thickness, int line_type, int shift)
 
CV_IMPL void cvEllipse (void *img, CvPoint center, CvSize axes, double angle, double start_angle, double end_angle, CvScalar color, int thickness, int line_type, int shift)
 
CV_IMPL void cvFillConvexPoly (void *img, CvPoint *pts, int npts, CvScalar color, int line_type, int shift)
 
CV_IMPL void cvFillPoly (void *img, CvPoint **pts, int *npts, int contours, CvScalar color, int line_type, int shift)
 
CV_IMPL void cvPolyLine (void *img, CvPoint **pts, int *npts, int contours, int closed, CvScalar color, int thickness, int line_type, int shift)
 
CV_IMPL void cvPutText (void *img, const char *text, CvPoint org, const CvFont *font, CvScalar color)
 
CV_IMPL void cvInitFont (CvFont *font, int font_face, double hscale, double vscale, double shear, int thickness, int line_type)
 
CV_IMPL void cvGetTextSize (const char *text, const CvFont *font, CvSize *size, int *_base_line)
 
CV_IMPL void cvDrawContours (void *img, CvSeq *contour, CvScalar externalColor, CvScalar holeColor, int maxLevel, int thickness, int line_type, CvPoint offset)
 

Macro Definition Documentation

#define CV_ADJUST_EDGE_COUNT (   count,
  seq 
)    ((count) -= ((count) == (seq)->total && !CV_IS_SEQ_CLOSED(seq)))
#define CV_DRAWING_STORAGE_BLOCK   ((1 << 12) - 256)
#define CV_FONT_HAVE_CYRILLIC   (32 << 8)
#define CV_FONT_HAVE_GREEK   (16 << 8)
#define CV_FONT_ITALIC_ALPHA   (1 << 8)
#define CV_FONT_ITALIC_BRACES   (8 << 8)
#define CV_FONT_ITALIC_DIGIT   (2 << 8)
#define CV_FONT_ITALIC_PUNCT   (4 << 8)
#define CV_FONT_SIZE_SHIFT   8
#define ICV_HLINE (   ptr,
  xl,
  xr,
  color,
  pix_size 
)
Value:
{ \
uchar* hline_ptr = (uchar*)(ptr) + (xl)*(pix_size); \
uchar* hline_max_ptr = (uchar*)(ptr) + (xr)*(pix_size); \
for( ; hline_ptr <= hline_max_ptr; hline_ptr += (pix_size))\
{ \
int hline_j; \
for( hline_j = 0; hline_j < (pix_size); hline_j++ ) \
{ \
hline_ptr[hline_j] = ((uchar*)color)[hline_j]; \
} \
} \
}
#define ICV_PUT_POINT ( )
Value:
{ \
_cb = tptr[0]; \
_cb += ((cb - _cb)*a + 127)>> 8;\
_cg = tptr[1]; \
_cg += ((cg - _cg)*a + 127)>> 8;\
_cr = tptr[2]; \
_cr += ((cr - _cr)*a + 127)>> 8;\
tptr[0] = (uchar)_cb; \
tptr[1] = (uchar)_cg; \
tptr[2] = (uchar)_cr; \
}
#define ICV_PUT_POINT ( )
Value:
{ \
_cb = tptr[0]; \
_cb += ((cb - _cb)*a + 127)>> 8;\
tptr[0] = (uchar)_cb; \
}
#define ICV_PUT_POINT ( )
Value:
{ \
tptr[0] = (uchar)cb; \
tptr[1] = (uchar)cg; \
tptr[2] = (uchar)cr; \
}
#define ICV_PUT_POINT ( )
Value:
{ \
tptr[0] = (uchar)cb; \
}
#define ICV_PUT_POINT ( )
Value:
for( j = 0; j < pix_size; j++ ) \
tptr[j] = ((uchar*)color)[j];
#define ICV_PUT_POINT (   ptr,
  x 
)    CV_MEMCPY_CHAR( ptr + (x)*pix_size, color, pix_size );
#define XY_ONE   (1 << XY_SHIFT)
#define XY_SHIFT   16

Typedef Documentation

typedef struct CvPolyEdge CvPolyEdge

Function Documentation

CV_IMPL void cvCircle ( void *  img,
CvPoint  center,
int  radius,
CvScalar  color,
int  thickness,
int  line_type,
int  shift 
)
CV_IMPL int cvClipLine ( CvSize  img_size,
CvPoint pt1,
CvPoint pt2 
)
CV_IMPL CvScalar cvColorToScalar ( double  packed_color,
int  type 
)
CV_IMPL void cvDrawContours ( void *  img,
CvSeq contour,
CvScalar  externalColor,
CvScalar  holeColor,
int  maxLevel,
int  thickness,
int  line_type,
CvPoint  offset 
)
CV_IMPL void cvEllipse ( void *  img,
CvPoint  center,
CvSize  axes,
double  angle,
double  start_angle,
double  end_angle,
CvScalar  color,
int  thickness,
int  line_type,
int  shift 
)
CV_IMPL int cvEllipse2Poly ( CvPoint  center,
CvSize  axes,
int  angle,
int  arc_start,
int  arc_end,
CvPoint pts,
int  delta 
)
CV_IMPL void cvFillConvexPoly ( void *  img,
CvPoint pts,
int  npts,
CvScalar  color,
int  line_type,
int  shift 
)
CV_IMPL void cvFillPoly ( void *  img,
CvPoint **  pts,
int npts,
int  contours,
CvScalar  color,
int  line_type,
int  shift 
)
CV_IMPL void cvGetTextSize ( const char *  text,
const CvFont font,
CvSize size,
int _base_line 
)
CV_IMPL void cvInitFont ( CvFont font,
int  font_face,
double  hscale,
double  vscale,
double  shear,
int  thickness,
int  line_type 
)
CV_IMPL int cvInitLineIterator ( const CvArr img,
CvPoint  pt1,
CvPoint  pt2,
CvLineIterator iterator,
int  connectivity,
int  left_to_right 
)
CV_IMPL void cvLine ( void *  img,
CvPoint  pt1,
CvPoint  pt2,
CvScalar  color,
int  thickness,
int  line_type,
int  shift 
)
CV_IMPL void cvPolyLine ( void *  img,
CvPoint **  pts,
int npts,
int  contours,
int  closed,
CvScalar  color,
int  thickness,
int  line_type,
int  shift 
)
CV_IMPL void cvPutText ( void *  img,
const char *  text,
CvPoint  org,
const CvFont font,
CvScalar  color 
)
CV_IMPL void cvRectangle ( void *  img,
CvPoint  pt1,
CvPoint  pt2,
CvScalar  color,
int  thickness,
int  line_type,
int  shift 
)