OpenCV453
|
クラス | |
struct | CvFont |
struct | CvConnectedComp |
struct | CvMoments |
struct | CvHuMoments |
struct | CvChainPtReader |
struct | CvConvexityDefect |
マクロ定義 | |
#define | cvCalcBackProject(image, dst, hist) cvCalcArrBackProject((CvArr**)image, dst, hist) |
#define | cvCalcBackProjectPatch(image, dst, range, hist, method, factor) cvCalcArrBackProjectPatch( (CvArr**)image, dst, range, hist, method, factor ) |
#define | CV_FILLED -1 |
#define | CV_AA 16 |
#define | cvDrawRect cvRectangle |
#define | cvDrawLine cvLine |
#define | cvDrawCircle cvCircle |
#define | cvDrawEllipse cvEllipse |
#define | cvDrawPolyLine cvPolyLine |
#define | CV_NEXT_LINE_POINT(line_iterator) |
#define | CV_FONT_HERSHEY_SIMPLEX 0 |
#define | CV_FONT_HERSHEY_PLAIN 1 |
#define | CV_FONT_HERSHEY_DUPLEX 2 |
#define | CV_FONT_HERSHEY_COMPLEX 3 |
#define | CV_FONT_HERSHEY_TRIPLEX 4 |
#define | CV_FONT_HERSHEY_COMPLEX_SMALL 5 |
#define | CV_FONT_HERSHEY_SCRIPT_SIMPLEX 6 |
#define | CV_FONT_HERSHEY_SCRIPT_COMPLEX 7 |
#define | CV_FONT_ITALIC 16 |
#define | CV_FONT_VECTOR0 CV_FONT_HERSHEY_SIMPLEX |
#define | CV_INIT_3X3_DELTAS(deltas, step, nch) |
型定義 | |
typedef struct CvFont | CvFont |
typedef struct CvConnectedComp | CvConnectedComp |
typedef struct CvMoments | CvMoments |
typedef struct CvHuMoments | CvHuMoments |
typedef float(CV_CDECL * | CvDistanceFunction) (const float *a, const float *b, void *user_param) |
typedef struct _CvContourScanner * | CvContourScanner |
typedef struct CvChainPtReader | CvChainPtReader |
typedef struct CvConvexityDefect | CvConvexityDefect |
列挙型 | |
enum | SmoothMethod_c { CV_BLUR_NO_SCALE =0 , CV_BLUR =1 , CV_GAUSSIAN =2 , CV_MEDIAN =3 , CV_BILATERAL =4 } |
enum | { CV_GAUSSIAN_5x5 = 7 } |
enum | { CV_SCHARR =-1 , CV_MAX_SOBEL_KSIZE =7 } |
enum | { CV_BGR2BGRA =0 , CV_RGB2RGBA =CV_BGR2BGRA , CV_BGRA2BGR =1 , CV_RGBA2RGB =CV_BGRA2BGR , CV_BGR2RGBA =2 , CV_RGB2BGRA =CV_BGR2RGBA , CV_RGBA2BGR =3 , CV_BGRA2RGB =CV_RGBA2BGR , CV_BGR2RGB =4 , CV_RGB2BGR =CV_BGR2RGB , CV_BGRA2RGBA =5 , CV_RGBA2BGRA =CV_BGRA2RGBA , CV_BGR2GRAY =6 , CV_RGB2GRAY =7 , CV_GRAY2BGR =8 , CV_GRAY2RGB =CV_GRAY2BGR , CV_GRAY2BGRA =9 , CV_GRAY2RGBA =CV_GRAY2BGRA , CV_BGRA2GRAY =10 , CV_RGBA2GRAY =11 , CV_BGR2BGR565 =12 , CV_RGB2BGR565 =13 , CV_BGR5652BGR =14 , CV_BGR5652RGB =15 , CV_BGRA2BGR565 =16 , CV_RGBA2BGR565 =17 , CV_BGR5652BGRA =18 , CV_BGR5652RGBA =19 , CV_GRAY2BGR565 =20 , CV_BGR5652GRAY =21 , CV_BGR2BGR555 =22 , CV_RGB2BGR555 =23 , CV_BGR5552BGR =24 , CV_BGR5552RGB =25 , CV_BGRA2BGR555 =26 , CV_RGBA2BGR555 =27 , CV_BGR5552BGRA =28 , CV_BGR5552RGBA =29 , CV_GRAY2BGR555 =30 , CV_BGR5552GRAY =31 , CV_BGR2XYZ =32 , CV_RGB2XYZ =33 , CV_XYZ2BGR =34 , CV_XYZ2RGB =35 , CV_BGR2YCrCb =36 , CV_RGB2YCrCb =37 , CV_YCrCb2BGR =38 , CV_YCrCb2RGB =39 , CV_BGR2HSV =40 , CV_RGB2HSV =41 , CV_BGR2Lab =44 , CV_RGB2Lab =45 , CV_BayerBG2BGR =46 , CV_BayerGB2BGR =47 , CV_BayerRG2BGR =48 , CV_BayerGR2BGR =49 , CV_BayerBG2RGB =CV_BayerRG2BGR , CV_BayerGB2RGB =CV_BayerGR2BGR , CV_BayerRG2RGB =CV_BayerBG2BGR , CV_BayerGR2RGB =CV_BayerGB2BGR , CV_BGR2Luv =50 , CV_RGB2Luv =51 , CV_BGR2HLS =52 , CV_RGB2HLS =53 , CV_HSV2BGR =54 , CV_HSV2RGB =55 , CV_Lab2BGR =56 , CV_Lab2RGB =57 , CV_Luv2BGR =58 , CV_Luv2RGB =59 , CV_HLS2BGR =60 , CV_HLS2RGB =61 , CV_BayerBG2BGR_VNG =62 , CV_BayerGB2BGR_VNG =63 , CV_BayerRG2BGR_VNG =64 , CV_BayerGR2BGR_VNG =65 , CV_BayerBG2RGB_VNG =CV_BayerRG2BGR_VNG , CV_BayerGB2RGB_VNG =CV_BayerGR2BGR_VNG , CV_BayerRG2RGB_VNG =CV_BayerBG2BGR_VNG , CV_BayerGR2RGB_VNG =CV_BayerGB2BGR_VNG , CV_BGR2HSV_FULL = 66 , CV_RGB2HSV_FULL = 67 , CV_BGR2HLS_FULL = 68 , CV_RGB2HLS_FULL = 69 , CV_HSV2BGR_FULL = 70 , CV_HSV2RGB_FULL = 71 , CV_HLS2BGR_FULL = 72 , CV_HLS2RGB_FULL = 73 , CV_LBGR2Lab = 74 , CV_LRGB2Lab = 75 , CV_LBGR2Luv = 76 , CV_LRGB2Luv = 77 , CV_Lab2LBGR = 78 , CV_Lab2LRGB = 79 , CV_Luv2LBGR = 80 , CV_Luv2LRGB = 81 , CV_BGR2YUV = 82 , CV_RGB2YUV = 83 , CV_YUV2BGR = 84 , CV_YUV2RGB = 85 , CV_BayerBG2GRAY = 86 , CV_BayerGB2GRAY = 87 , CV_BayerRG2GRAY = 88 , CV_BayerGR2GRAY = 89 , CV_YUV2RGB_NV12 = 90 , CV_YUV2BGR_NV12 = 91 , CV_YUV2RGB_NV21 = 92 , CV_YUV2BGR_NV21 = 93 , CV_YUV420sp2RGB = CV_YUV2RGB_NV21 , CV_YUV420sp2BGR = CV_YUV2BGR_NV21 , CV_YUV2RGBA_NV12 = 94 , CV_YUV2BGRA_NV12 = 95 , CV_YUV2RGBA_NV21 = 96 , CV_YUV2BGRA_NV21 = 97 , CV_YUV420sp2RGBA = CV_YUV2RGBA_NV21 , CV_YUV420sp2BGRA = CV_YUV2BGRA_NV21 , CV_YUV2RGB_YV12 = 98 , CV_YUV2BGR_YV12 = 99 , CV_YUV2RGB_IYUV = 100 , CV_YUV2BGR_IYUV = 101 , CV_YUV2RGB_I420 = CV_YUV2RGB_IYUV , CV_YUV2BGR_I420 = CV_YUV2BGR_IYUV , CV_YUV420p2RGB = CV_YUV2RGB_YV12 , CV_YUV420p2BGR = CV_YUV2BGR_YV12 , CV_YUV2RGBA_YV12 = 102 , CV_YUV2BGRA_YV12 = 103 , CV_YUV2RGBA_IYUV = 104 , CV_YUV2BGRA_IYUV = 105 , CV_YUV2RGBA_I420 = CV_YUV2RGBA_IYUV , CV_YUV2BGRA_I420 = CV_YUV2BGRA_IYUV , CV_YUV420p2RGBA = CV_YUV2RGBA_YV12 , CV_YUV420p2BGRA = CV_YUV2BGRA_YV12 , CV_YUV2GRAY_420 = 106 , CV_YUV2GRAY_NV21 = CV_YUV2GRAY_420 , CV_YUV2GRAY_NV12 = CV_YUV2GRAY_420 , CV_YUV2GRAY_YV12 = CV_YUV2GRAY_420 , CV_YUV2GRAY_IYUV = CV_YUV2GRAY_420 , CV_YUV2GRAY_I420 = CV_YUV2GRAY_420 , CV_YUV420sp2GRAY = CV_YUV2GRAY_420 , CV_YUV420p2GRAY = CV_YUV2GRAY_420 , CV_YUV2RGB_UYVY = 107 , CV_YUV2BGR_UYVY = 108 , CV_YUV2RGB_Y422 = CV_YUV2RGB_UYVY , CV_YUV2BGR_Y422 = CV_YUV2BGR_UYVY , CV_YUV2RGB_UYNV = CV_YUV2RGB_UYVY , CV_YUV2BGR_UYNV = CV_YUV2BGR_UYVY , CV_YUV2RGBA_UYVY = 111 , CV_YUV2BGRA_UYVY = 112 , CV_YUV2RGBA_Y422 = CV_YUV2RGBA_UYVY , CV_YUV2BGRA_Y422 = CV_YUV2BGRA_UYVY , CV_YUV2RGBA_UYNV = CV_YUV2RGBA_UYVY , CV_YUV2BGRA_UYNV = CV_YUV2BGRA_UYVY , CV_YUV2RGB_YUY2 = 115 , CV_YUV2BGR_YUY2 = 116 , CV_YUV2RGB_YVYU = 117 , CV_YUV2BGR_YVYU = 118 , CV_YUV2RGB_YUYV = CV_YUV2RGB_YUY2 , CV_YUV2BGR_YUYV = CV_YUV2BGR_YUY2 , CV_YUV2RGB_YUNV = CV_YUV2RGB_YUY2 , CV_YUV2BGR_YUNV = CV_YUV2BGR_YUY2 , CV_YUV2RGBA_YUY2 = 119 , CV_YUV2BGRA_YUY2 = 120 , CV_YUV2RGBA_YVYU = 121 , CV_YUV2BGRA_YVYU = 122 , CV_YUV2RGBA_YUYV = CV_YUV2RGBA_YUY2 , CV_YUV2BGRA_YUYV = CV_YUV2BGRA_YUY2 , CV_YUV2RGBA_YUNV = CV_YUV2RGBA_YUY2 , CV_YUV2BGRA_YUNV = CV_YUV2BGRA_YUY2 , CV_YUV2GRAY_UYVY = 123 , CV_YUV2GRAY_YUY2 = 124 , CV_YUV2GRAY_Y422 = CV_YUV2GRAY_UYVY , CV_YUV2GRAY_UYNV = CV_YUV2GRAY_UYVY , CV_YUV2GRAY_YVYU = CV_YUV2GRAY_YUY2 , CV_YUV2GRAY_YUYV = CV_YUV2GRAY_YUY2 , CV_YUV2GRAY_YUNV = CV_YUV2GRAY_YUY2 , CV_RGBA2mRGBA = 125 , CV_mRGBA2RGBA = 126 , CV_RGB2YUV_I420 = 127 , CV_BGR2YUV_I420 = 128 , CV_RGB2YUV_IYUV = CV_RGB2YUV_I420 , CV_BGR2YUV_IYUV = CV_BGR2YUV_I420 , CV_RGBA2YUV_I420 = 129 , CV_BGRA2YUV_I420 = 130 , CV_RGBA2YUV_IYUV = CV_RGBA2YUV_I420 , CV_BGRA2YUV_IYUV = CV_BGRA2YUV_I420 , CV_RGB2YUV_YV12 = 131 , CV_BGR2YUV_YV12 = 132 , CV_RGBA2YUV_YV12 = 133 , CV_BGRA2YUV_YV12 = 134 , CV_BayerBG2BGR_EA = 135 , CV_BayerGB2BGR_EA = 136 , CV_BayerRG2BGR_EA = 137 , CV_BayerGR2BGR_EA = 138 , CV_BayerBG2RGB_EA = CV_BayerRG2BGR_EA , CV_BayerGB2RGB_EA = CV_BayerGR2BGR_EA , CV_BayerRG2RGB_EA = CV_BayerBG2BGR_EA , CV_BayerGR2RGB_EA = CV_BayerGB2BGR_EA , CV_BayerBG2BGRA =139 , CV_BayerGB2BGRA =140 , CV_BayerRG2BGRA =141 , CV_BayerGR2BGRA =142 , CV_BayerBG2RGBA =CV_BayerRG2BGRA , CV_BayerGB2RGBA =CV_BayerGR2BGRA , CV_BayerRG2RGBA =CV_BayerBG2BGRA , CV_BayerGR2RGBA =CV_BayerGB2BGRA , CV_COLORCVT_MAX = 143 } |
enum | { CV_INTER_NN =0 , CV_INTER_LINEAR =1 , CV_INTER_CUBIC =2 , CV_INTER_AREA =3 , CV_INTER_LANCZOS4 =4 } |
enum | { CV_WARP_FILL_OUTLIERS =8 , CV_WARP_INVERSE_MAP =16 } |
enum | MorphShapes_c { CV_SHAPE_RECT =0 , CV_SHAPE_CROSS =1 , CV_SHAPE_ELLIPSE =2 , CV_SHAPE_CUSTOM =100 } |
enum | { CV_MOP_ERODE =0 , CV_MOP_DILATE =1 , CV_MOP_OPEN =2 , CV_MOP_CLOSE =3 , CV_MOP_GRADIENT =4 , CV_MOP_TOPHAT =5 , CV_MOP_BLACKHAT =6 } |
enum | { CV_TM_SQDIFF =0 , CV_TM_SQDIFF_NORMED =1 , CV_TM_CCORR =2 , CV_TM_CCORR_NORMED =3 , CV_TM_CCOEFF =4 , CV_TM_CCOEFF_NORMED =5 } |
enum | { CV_RETR_EXTERNAL =0 , CV_RETR_LIST =1 , CV_RETR_CCOMP =2 , CV_RETR_TREE =3 , CV_RETR_FLOODFILL =4 } |
enum | { CV_CHAIN_CODE =0 , CV_CHAIN_APPROX_NONE =1 , CV_CHAIN_APPROX_SIMPLE =2 , CV_CHAIN_APPROX_TC89_L1 =3 , CV_CHAIN_APPROX_TC89_KCOS =4 , CV_LINK_RUNS =5 } |
enum | { CV_POLY_APPROX_DP = 0 } |
enum | { CV_CONTOURS_MATCH_I1 =1 , CV_CONTOURS_MATCH_I2 =2 , CV_CONTOURS_MATCH_I3 =3 } |
enum | { CV_CLOCKWISE =1 , CV_COUNTER_CLOCKWISE =2 } |
enum | { CV_COMP_CORREL =0 , CV_COMP_CHISQR =1 , CV_COMP_INTERSECT =2 , CV_COMP_BHATTACHARYYA =3 , CV_COMP_HELLINGER =CV_COMP_BHATTACHARYYA , CV_COMP_CHISQR_ALT =4 , CV_COMP_KL_DIV =5 } |
enum | { CV_DIST_MASK_3 =3 , CV_DIST_MASK_5 =5 , CV_DIST_MASK_PRECISE =0 } |
enum | { CV_DIST_LABEL_CCOMP = 0 , CV_DIST_LABEL_PIXEL = 1 } |
enum | { CV_DIST_USER =-1 , CV_DIST_L1 =1 , CV_DIST_L2 =2 , CV_DIST_C =3 , CV_DIST_L12 =4 , CV_DIST_FAIR =5 , CV_DIST_WELSCH =6 , CV_DIST_HUBER =7 } |
enum | { CV_THRESH_BINARY =0 , CV_THRESH_BINARY_INV =1 , CV_THRESH_TRUNC =2 , CV_THRESH_TOZERO =3 , CV_THRESH_TOZERO_INV =4 , CV_THRESH_MASK =7 , CV_THRESH_OTSU =8 , CV_THRESH_TRIANGLE =16 } |
enum | { CV_ADAPTIVE_THRESH_MEAN_C =0 , CV_ADAPTIVE_THRESH_GAUSSIAN_C =1 } |
enum | { CV_FLOODFILL_FIXED_RANGE =(1 << 16) , CV_FLOODFILL_MASK_ONLY =(1 << 17) } |
enum | { CV_CANNY_L2_GRADIENT =(1 << 31) } |
enum | { CV_HOUGH_STANDARD =0 , CV_HOUGH_PROBABILISTIC =1 , CV_HOUGH_MULTI_SCALE =2 , CV_HOUGH_GRADIENT =3 } |
関数 | |
CVAPI (void) cvAcc(const CvArr *image | |
Adds image to accumulator [詳解] | |
CvArr const CvArr *mask | CV_DEFAULT (NULL)) |
CvArr CvPoint int CvScalar value | CV_DEFAULT (cvScalarAll(0))) |
CvArr int smoothtype | CV_DEFAULT (CV_GAUSSIAN) |
CvArr int smoothtype int size1 | CV_DEFAULT (3) |
CvArr int smoothtype int size1 int size2 | CV_DEFAULT (0) |
CvArr const CvMat CvPoint anchor | CV_DEFAULT (cvPoint(-1,-1))) |
CvArr int filter | CV_DEFAULT (CV_GAUSSIAN_5x5)) |
CVAPI (CvMat **) cvCreatePyramid(const CvArr *img | |
Builds pyramid for an image [詳解] | |
int double const CvSize *layer_sizes CvArr *bufarr int calc | CV_DEFAULT (1) |
CvArr double double int max_level CvTermCriteria termcrit | CV_DEFAULT (cvTermCriteria(CV_TERMCRIT_ITER+CV_TERMCRIT_EPS, 5, 1))) |
CvArr int interpolation | CV_DEFAULT (CV_INTER_LINEAR)) |
CvArr const CvMat int flags | CV_DEFAULT (CV_INTER_LINEAR+CV_WARP_FILL_OUTLIERS) |
CVAPI (CvMat *) cvGetAffineTransform(const CvPoint2D32f *src | |
Computes affine transform matrix for mapping src[i] to dst[i] (i=0,1,2) [詳解] | |
CVAPI (IplConvKernel *) cvCreateStructuringElementEx(int cols | |
Returns a structuring element of the specified size and shape for morphological operations. [詳解] | |
CVAPI (double) cvGetSpatialMoment(CvMoments *moments | |
Retrieve spatial moments [詳解] | |
CVAPI (int) cvSampleLine(const CvArr *image | |
Fetches pixels that belong to the specified line segment and stores them to the buffer. [詳解] | |
CvPoint CvPoint void int connectivity | CV_DEFAULT (8)) |
CVAPI (float) cvCalcEMD2(const CvArr *signature1 | |
Computes earth mover distance between two weighted point sets (called signatures) [詳解] | |
CvMemStorage CvSeq int header_size | CV_DEFAULT (sizeof(CvContour)) |
CvMemStorage CvSeq int header_size int mode | CV_DEFAULT (CV_RETR_LIST) |
CvMemStorage CvSeq int header_size int mode int method | CV_DEFAULT (CV_CHAIN_APPROX_SIMPLE) |
CvMemStorage CvSeq int header_size int mode int method CvPoint offset | CV_DEFAULT (cvPoint(0, 0))) |
CVAPI (CvContourScanner) cvStartFindContours(CvArr *image | |
Initializes contour retrieving process. [詳解] | |
CVAPI (CvSeq *) cvFindNextContour(CvContourScanner scanner) | |
Retrieves next contour [詳解] | |
CVAPI (CvPoint) cvReadChainPoint(CvChainPtReader *reader) | |
Retrieves the next chain point [詳解] | |
CvSlice slice | CV_DEFAULT (CV_WHOLE_SEQ) |
CvSlice slice int is_closed | CV_DEFAULT (-1)) |
CV_INLINE double | cvContourPerimeter (const void *contour) |
CVAPI (CvRect) cvBoundingRect(CvArr *points | |
Calculates contour bounding rectangle (update=1) or just retrieves pre-calculated rectangle (update=0) [詳解] | |
CVAPI (CvBox2D) cvMinAreaRect2(const CvArr *points | |
Finds minimum area rotated rectangle bounding a set of points [詳解] | |
void *hull_storage int orientation | CV_DEFAULT (CV_CLOCKWISE) |
CVAPI (CvHistogram *) cvCreateHist(int dims | |
Creates a histogram. [詳解] | |
CV_INLINE void | cvCalcHist (IplImage **image, CvHistogram *hist, int accumulate CV_DEFAULT(0), const CvArr *mask CV_DEFAULT(NULL)) |
const CvHistogram CvHistogram double scale | CV_DEFAULT (255)) |
CvArr int distance_type | CV_DEFAULT (CV_DIST_L2) |
CvArr int distance_type int mask_size const float *mask CvArr *labels int labelType | CV_DEFAULT (CV_DIST_LABEL_CCOMP)) |
CvArr double int adaptive_method | CV_DEFAULT (CV_ADAPTIVE_THRESH_MEAN_C) |
CvArr double int adaptive_method int threshold_type | CV_DEFAULT (CV_THRESH_BINARY) |
CvArr double int adaptive_method int threshold_type int block_size double param1 | CV_DEFAULT (5)) |
CvPoint CvScalar CvScalar lo_diff CvScalar up_diff CvConnectedComp *comp int flags | CV_DEFAULT (4) |
CvArr int int aperture_size double k | CV_DEFAULT (0.04)) |
void int double double int double param1 double param2 double min_theta double max_theta | CV_DEFAULT (CV_PI)) |
void int double double double param1 | CV_DEFAULT (100) |
CV_INLINE void | cvEllipseBox (CvArr *img, CvBox2D box, CvScalar color, int thickness CV_DEFAULT(1), int line_type CV_DEFAULT(8), int shift CV_DEFAULT(0)) |
CV_INLINE CvFont | cvFont (double scale, int thickness CV_DEFAULT(1)) |
CVAPI (CvScalar) cvColorToScalar(double packed_color | |
Unpacks color value [詳解] | |
変数 | |
CvArr * | sum |
CvArr * | sqsum |
const CvArr * | image2 |
const CvArr CvArr * | acc |
CvArr double | alpha |
CvArr * | dst |
CvArr CvPoint | offset |
CvArr CvPoint int | bordertype |
CvArr const CvMat * | kernel |
int | extra_layers |
int double | rate |
CvArr double | sp |
CvArr double double | sr |
CvArr * | markers |
CvArr int | xorder |
CvArr int int | yorder |
CvArr int | code |
CvArr const CvMat * | map_matrix |
double | angle |
double double | scale |
CvArr const CvArr * | mapx |
CvArr const CvArr const CvArr * | mapy |
const CvArr CvArr * | mapxy |
const CvArr CvArr CvArr * | mapalpha |
CvArr CvPoint2D32f | center |
CvArr CvPoint2D32f double | M |
CvArr CvPoint2D32f double | maxRadius |
int | rows |
int int | anchor_x |
int int int | anchor_y |
int int int int | shape |
CvArr CvArr * | temp |
CvArr CvArr IplConvKernel * | element |
CvArr CvArr IplConvKernel int | operation |
CvMoments * | moments |
int | x_order |
int int | y_order |
CvHuMoments * | hu_moments |
CvPoint | pt1 |
CvPoint CvPoint | pt2 |
CvPoint CvPoint void * | buffer |
const CvArr * | templ |
const CvArr CvArr * | result |
const CvArr CvArr int | method |
const CvArr * | signature2 |
const CvArr int | distance_type |
CvMemStorage * | storage |
CvMemStorage CvSeq ** | first_contour |
CvSeq * | new_contour |
CvChainPtReader * | reader |
int | header_size |
int CvMemStorage int double | eps |
CvPoint2D32f float * | radius |
const void * | object2 |
const CvArr * | convexhull |
const CvRect * | rect2 |
CvPoint2D32f | pt [4] |
const CvArr * | mat |
const CvArr CvContour * | contour_header |
const CvArr CvContour CvSeqBlock * | block |
CvPoint2D32f int | measure_dist |
int * | sizes |
int int | type |
float ** | ranges |
int CvHistogram * | hist |
int CvHistogram float * | data |
float * | min_value |
float float * | max_value |
double | factor |
double | threshold |
const CvHistogram * | hist2 |
int | number |
CvArr CvSize | range |
const CvHistogram CvHistogram * | dst_hist |
CvArr double double int | threshold_type |
CvPoint | seed_point |
CvPoint CvScalar | new_val |
CvArr * | edges |
CvArr double | threshold1 |
CvArr double double | threshold2 |
CvArr * | corners |
CvArr * | eigenvv |
CvArr int | block_size |
CvArr * | eigenval |
CvArr * | harris_response |
CvPoint2D32f int | count |
CvPoint2D32f int CvSize | win |
CvPoint2D32f int CvSize CvSize | zero_zone |
CvPoint2D32f int CvSize CvSize CvTermCriteria | criteria |
CvArr * | eig_image |
CvArr CvArr * | temp_image |
CvArr CvArr CvPoint2D32f int * | corner_count |
CvArr CvArr CvPoint2D32f int double | quality_level |
CvArr CvArr CvPoint2D32f int double double | min_distance |
void * | line_storage |
void int double | rho |
void int double double | theta |
void * | circle_storage |
void int double | dp |
void int double double | min_dist |
int | dist_type |
int double | param |
int double double | reps |
int double double double | aeps |
int double double double float * | line |
CvPoint CvPoint CvScalar | color |
CvRect | r |
CvPoint CvSize | axes |
CvPoint CvSize double double | start_angle |
CvPoint CvSize double double double | end_angle |
const CvPoint * | pts |
const CvPoint int | npts |
CvPoint const int int | contours |
CvPoint const int int int | is_closed |
CvPoint CvPoint CvLineIterator * | line_iterator |
int | font_face |
int double | hscale |
int double double | vscale |
const char * | text |
const char CvPoint | org |
const char CvPoint const CvFont * | font |
const CvFont CvSize * | text_size |
const CvFont CvSize int * | baseline |
int | arrtype |
CvSize int int | arc_start |
CvSize int int int | arc_end |
CvSize int int int CvPoint int | delta |
CvSeq * | contour |
CvSeq CvScalar | external_color |
CvSeq CvScalar CvScalar | hole_color |
CvSeq CvScalar CvScalar int | max_level |
#define CV_INIT_3X3_DELTAS | ( | deltas, | |
step, | |||
nch | |||
) |
initializes 8-element array for fast access to 3x3 neighborhood of a pixel
#define CV_NEXT_LINE_POINT | ( | line_iterator | ) |
typedef struct CvChainPtReader CvChainPtReader |
Freeman chain reader state
typedef struct CvConnectedComp CvConnectedComp |
Connected component structure
typedef struct CvConvexityDefect CvConvexityDefect |
Convexity defect
typedef struct CvHuMoments CvHuMoments |
Hu invariants
anonymous enum |
Filters used in pyramid decomposition
anonymous enum |
Special filters
anonymous enum |
Constants for color conversion
anonymous enum |
Sub-pixel interpolation methods
anonymous enum |
... and other image warping flags
anonymous enum |
Morphological operations
anonymous enum |
Template matching methods
anonymous enum |
Contour retrieval modes
anonymous enum |
Contour approximation methods
anonymous enum |
Contour approximation algorithms
anonymous enum |
anonymous enum |
Shape orientation
anonymous enum |
Histogram comparison methods
anonymous enum |
Mask size for distance transform
anonymous enum |
Content of output label array: connected components or pixels
anonymous enum |
Distance types for Distance Transform and M-estimators
anonymous enum |
Threshold types
anonymous enum |
Adaptive threshold methods
anonymous enum |
FloodFill flags
anonymous enum |
Canny edge detector flags
anonymous enum |
Variants of a Hough transform
enum MorphShapes_c |
enum SmoothMethod_c |
Image smooth methods
列挙値 | |
---|---|
CV_BLUR_NO_SCALE | linear convolution with |
CV_BLUR | linear convolution with |
CV_GAUSSIAN | linear convolution with a |
CV_MEDIAN | median filter with a |
CV_BILATERAL | bilateral filter with a |
CVAPI | ( | CvBox2D | ) | const |
Finds minimum area rotated rectangle bounding a set of points
Fits ellipse into a set of 2d points
CVAPI | ( | CvContourScanner | ) |
Initializes contour retrieving process.
Calls cvStartFindContours. Calls cvFindNextContour until null pointer is returned or some other condition becomes true. Calls cvEndFindContours at the end.
CVAPI | ( | CvHistogram * | ) |
Creates a histogram.
Makes a histogram out of an array.
The function creates a histogram of the specified size and returns a pointer to the created histogram. If the array ranges is 0, the histogram bin ranges must be specified later via the function cvSetHistBinRanges. Though cvCalcHist and cvCalcBackProject may process 8-bit images without setting bin ranges, they assume they are equally spaced in 0 to 255 bins.
dims | Number of histogram dimensions. |
sizes | Array of the histogram dimension sizes. |
type | Histogram representation format. CV_HIST_ARRAY means that the histogram data is represented as a multi-dimensional dense array CvMatND. CV_HIST_SPARSE means that histogram data is represented as a multi-dimensional sparse array CvSparseMat. |
ranges | Array of ranges for the histogram bins. Its meaning depends on the uniform parameter value. The ranges are used when the histogram is calculated or backprojected to determine which histogram bin corresponds to which value/tuple of values from the input image(s). |
uniform | Uniformity flag. If not zero, the histogram has evenly spaced bins and for every ![]() ![]() ![]() ![]() |
The function initializes the histogram, whose header and bins are allocated by the user. cvReleaseHist does not need to be called afterwards. Only dense histograms can be initialized this way. The function returns hist.
dims | Number of the histogram dimensions. |
sizes | Array of the histogram dimension sizes. |
hist | Histogram header initialized by the function. |
data | Array used to store histogram bins. |
ranges | Histogram bin ranges. See cvCreateHist for details. |
uniform | Uniformity flag. See cvCreateHist for details. |
CVAPI | ( | CvMat * | ) | const |
Computes affine transform matrix for mapping src[i] to dst[i] (i=0,1,2)
Computes perspective transform matrix for mapping src[i] to dst[i] (i=0,1,2,3)
Computes rotation_matrix matrix
CVAPI | ( | CvMat ** | ) | const |
Builds pyramid for an image
CVAPI | ( | CvPoint | ) |
Retrieves the next chain point
CVAPI | ( | CvRect | ) |
Calculates contour bounding rectangle (update=1) or just retrieves pre-calculated rectangle (update=0)
Finds minimum rectangle containing two given rectangles
CVAPI | ( | CvScalar | ) |
Unpacks color value
if arrtype is CV_8UC?, color is treated as packed color value, otherwise the first channels (depending on arrtype) of destination scalar are set to the same value = color
CVAPI | ( | CvSeq * | ) |
Retrieves next contour
Finds circles in the image
Finds lines on binary image using one of several methods.
Initializes sequence header for a matrix (column or row vector) of points
Finds convexity defects for the contour
Calculates exact convex hull of 2d point set
Approximates a single polygonal curve (contour) or a tree of polygonal curves (contours)
Approximates Freeman chain(s) with a polygonal curve.
Releases contour scanner and returns pointer to the first outer contour
This is a standalone contour approximation routine, not represented in the new interface. When cvFindContours retrieves contours as Freeman chains, it calls the function to get approximated contours, represented as polygons.
src_seq | Pointer to the approximated Freeman chain that can refer to other chains. |
storage | Storage location for the resulting polylines. |
method | Approximation method (see the description of the function :ocvFindContours ). |
parameter | Method parameter (not used now). |
minimal_perimeter | Approximates only those contours whose perimeters are not less than minimal_perimeter . Other chains are removed from the resulting structure. |
recursive | Recursion flag. If it is non-zero, the function approximates all chains that can be obtained from chain by using the h_next or v_next links. Otherwise, the single input chain is approximated. |
a wrapper for cvMakeSeqHeaderForArray (it does not initialize bounding rectangle!!!)
line_storage is either memory storage or 1 x max number of lines CvMat, its number of columns is changed by the function. method is one of CV_HOUGH_*; rho, theta and threshold are used for each of those methods; param1 ~ line length, param2 ~ line gap - for probabilistic, param1 ~ srn, param2 ~ stn - for multi-scale
CVAPI | ( | double | ) |
Retrieve spatial moments
Applies fixed-level threshold to grayscale image.
Checks whether the point is inside polygon, outside, on an edge (at a vertex).
Compares two contours by matching their moments
Calculates area of a contour or contour segment
Calculates perimeter of a contour or length of a part of contour
Retrieve normalized central moments
Retrieve central moments
Returns positive, negative or zero value, correspondingly. Optionally, measures a signed distance between the point and the nearest polygon edge (measure_dist=1)
Compares two histogram
This is a basic operation applied before retrieving contours
CVAPI | ( | float | ) | const |
Computes earth mover distance between two weighted point sets (called signatures)
CVAPI | ( | int | ) | const |
Fetches pixels that belong to the specified line segment and stores them to the buffer.
Returns the polygon points which make up the given ellipse.
Initializes line iterator.
Clips the line segment connecting *pt1 and *pt2 by the rectangular window
Checks whether the contour is convex or not (returns 1 if convex, 0 if not)
Finds minimum enclosing circle for a set of points
Retrieves outer and optionally inner boundaries of white (non-zero) connected components in the black (zero) background
Returns the number of retrieved points.
(0<=x<img_size.width, 0<=y<img_size.height).
Initially, line_iterator->ptr will point to pt1 (or pt2, see left_to_right description) location in the image. Returns the number of pixels on the line between the ending points.
The ellipse is define by the box of size 'axes' rotated 'angle' around the 'center'. A partial sweep of the ellipse arc can be done by specifying arc_start and arc_end to be something other than 0 and 360, respectively. The input array 'pts' must be large enough to hold the result. The total number of points stored into 'pts' is returned by this function.
CVAPI | ( | IplConvKernel * | ) |
Returns a structuring element of the specified size and shape for morphological operations.
cvReleaseStructuringElement(&element)
.cols | Width of the structuring element |
rows | Height of the structuring element |
anchor_x | x-coordinate of the anchor |
anchor_y | y-coordinate of the anchor |
shape | element shape that could be one of the cv::MorphShapes_c |
values | integer array of cols*rows elements that specifies the custom shape of the structuring element, when shape=CV_SHAPE_CUSTOM. |
CVAPI | ( | void | ) | const |
Adds image to accumulator
Draws contour outlines or filled interiors on the image
Calculates bounding box of text stroke (useful for alignment)
Renders text stroke with specified font and color at specified location. CvFont should be initialized with cvInitFont
Initializes font structure (OpenCV 1.x API).
Draws one or more polygonal curves
Fills an area bounded by one or more arbitrary polygons
Fills convex or monotonous polygon.
Draws ellipse outline, filled ellipse, elliptic arc or filled elliptic sector
Draws a circle with specified center and radius.
Draws a rectangle specified by a CvRect structure
Draws a rectangle given two opposite corners of the rectangle (pt1 & pt2)
Draws 4-connected, 8-connected or antialiased line segment connecting two points
Fits a line into set of 2d or 3d points in a robust way (M-estimator technique)
Finds a sparse set of points within the selected region that seem to be easy to track
Adjust corner position using some sort of gradient search
Harris corner detector:
Calculates minimal eigenvalue for 2x2 gradient covariation matrix at every image pixel
Calculates eigen values and vectors of 2x2 gradient covariation matrix at every image pixel
Calculates constraint image for corner detection
Runs canny edge detector
Fills the connected component until the color difference gets large enough
Applies adaptive threshold to grayscale image.
Applies distance transform to binary image
equalizes histogram of 8-bit single-channel image
Divides one histogram by another.
Locates a template within an image by using a histogram comparison.
Calculates back project
Calculates array histogram
Calculates bayesian probabilistic histograms (each or src and dst is an array of number histograms
Copies a histogram.
Thresholds the histogram.
Normalizes the histogram.
Finds the minimum and maximum histogram bins.
Clears the histogram.
Releases the histogram.
Sets the bounds of the histogram bins.
Finds coordinates of the box vertices
Initializes Freeman chain reader.
Substitutes the last retrieved contour with the new one
Measures similarity between template and overlapped windows in the source image and fills the resultant image with the measurements
Retrieves quadrangle from the input array.
Retrieves the rectangular image region with specified center from the input array.
Calculates 7 Hu's invariants from precalculated spatial and central moments
Calculates all spatial and central moments up to the 3rd order
Performs complex morphological transformation
dilates input image (applies maximum filter) one or more times.
erodes input image (applies minimum filter) one or more times. If element pointer is NULL, 3x3 rectangular element is used
releases structuring element
Performs forward or inverse log-polar image transform
Converts mapx & mapy from floating-point to integer formats for cvRemap
Performs generic geometric transformation using the specified coordinate maps
Warps image with perspective (projective) transform
Warps image with affine transform
Resizes image (input array is resized to fit the destination array)
Converts input array pixels from one color space to another
Calculates the image Laplacian: (d2/dx + d2/dy)I
Calculates an image derivative using generalized Sobel
Segments image using seed "markers"
Filters image using meanshift algorithm
Releases pyramid
Up-samples image and smoothes the result with gaussian kernel.
Smoothes the input image with gaussian kernel and then down-samples it.
Finds integral image: SUM(X,Y) = sum(x<X,y<Y)I(x,y)
Convolves an image with the kernel.
Smooths the image in one of several ways.
Adds image to accumulator with weights: acc = acc*(1-alpha) + image*alpha
Adds a product of two images to accumulator
Adds squared image to accumulator
Copies source 2D array inside of the larger destination array and makes a border of the specified type (IPL_BORDER_*) around the copied area.
src | The source image |
dst | The destination image |
smoothtype | Type of the smoothing, see SmoothMethod_c |
size1 | The first parameter of the smoothing operation, the aperture width. Must be a positive odd number (1, 3, 5, ...) |
size2 | The second parameter of the smoothing operation, the aperture height. Ignored by CV_MEDIAN and CV_BILATERAL methods. In the case of simple scaled/non-scaled and Gaussian blur if size2 is zero, it is set to size1. Otherwise it must be a positive odd number. |
sigma1 | In the case of a Gaussian parameter this parameter may specify Gaussian ![]()
![]() ![]() |
sigma2 | additional parameter for bilateral filtering |
src | input image. |
dst | output image of the same size and the same number of channels as src. |
kernel | convolution kernel (or rather a correlation kernel), a single-channel floating point matrix; if you want to apply different kernels to different channels, split the image into separate color planes using split and process them individually. |
anchor | anchor of the kernel that indicates the relative position of a filtered point within the kernel; the anchor should lie within the kernel; default value (-1,-1) means that the anchor is at the kernel center. |
dst_width = floor(src_width/2)[+1], dst_height = floor(src_height/2)[+1]
dst_width = src_width*2, dst_height = src_height*2
(aperture_size = 1,3,5,7) or Scharr (aperture_size = -1) operator. Scharr can be used only for the first dx or dy derivative
Performs forward or inverse linear-polar image transform
If element pointer is NULL, 3x3 rectangular element is used
dst(x,y) <- src(x + center.x - dst_width/2, y + center.y - dst_height/2). Values of pixels with fractional coordinates are retrieved using bilinear interpolation
matrixarr = ( a11 a12 | b1 ) dst(x,y) <- src(A[x y]' + b) ( a21 a22 | b2 ) (bilinear interpolation is used to retrieve pixels with fractional coordinates)
(if the substitutor is null, the last retrieved contour is removed from the tree)
The reader is used to iteratively get coordinates of all the chain points. If the Freeman codes should be read as is, a simple sequence reader should be used
This is a standalone function for setting bin ranges in the histogram. For a more detailed description of the parameters ranges and uniform, see the :ocvCalcHist function that can initialize the ranges as well. Ranges for the histogram bins must be set before the histogram is calculated or the backproject of the histogram is calculated.
hist | Histogram. |
ranges | Array of bin ranges arrays. See :ocvCreateHist for details. |
uniform | Uniformity flag. See :ocvCreateHist for details. |
The function releases the histogram (header and the data). The pointer to the histogram is cleared by the function. If *hist pointer is already NULL, the function does nothing.
hist | Double pointer to the released histogram. |
The function sets all of the histogram bins to 0 in case of a dense histogram and removes all histogram bins in case of a sparse array.
hist | Histogram. |
The function finds the minimum and maximum histogram bins and their positions. All of output arguments are optional. Among several extremas with the same value the ones with the minimum index (in the lexicographical order) are returned. In case of several maximums or minimums, the earliest in the lexicographical order (extrema locations) is returned.
hist | Histogram. |
min_value | Pointer to the minimum value of the histogram. |
max_value | Pointer to the maximum value of the histogram. |
min_idx | Pointer to the array of coordinates for the minimum. |
max_idx | Pointer to the array of coordinates for the maximum. |
The function normalizes the histogram bins by scaling them so that the sum of the bins becomes equal to factor.
hist | Pointer to the histogram. |
factor | Normalization factor. |
The function clears histogram bins that are below the specified threshold.
hist | Pointer to the histogram. |
threshold | Threshold level. |
The function makes a copy of the histogram. If the second histogram pointer *dst is NULL, a new histogram of the same size as src is created. Otherwise, both histograms must have equal types and sizes. Then the function copies the bin values of the source histogram to the destination histogram and sets the same bin value ranges as in src.
src | Source histogram. |
dst | Pointer to the destination histogram. |
The function calculates the back projection by comparing histograms of the source image patches with the given histogram. The function is similar to matchTemplate, but instead of comparing the raster patch with all its possible positions within the search window, the function CalcBackProjectPatch compares histograms. See the algorithm diagram below:
image | Source images (though, you may pass CvMat** as well). |
dst | Destination image. |
range | |
hist | Histogram. |
method | Comparison method passed to cvCompareHist (see the function description). |
factor | Normalization factor for histograms that affects the normalization scale of the destination image. Pass 1 if not sure. |
The function calculates the object probability density from two histograms as:
hist1 | First histogram (the divisor). |
hist2 | Second histogram. |
dst_hist | Destination histogram. |
scale | Scale factor for the destination histogram. |
The two parameters for methods CV_ADAPTIVE_THRESH_MEAN_C and CV_ADAPTIVE_THRESH_GAUSSIAN_C are: neighborhood size (3, 5, 7 etc.), and a constant subtracted from mean (...,-3,-2,-1,0,1,2,3,...)
Dx^2 * Dyy + Dxx * Dy^2 - 2 * Dx * Dy * Dxy. Applying threshold to the result gives coordinates of corners
Calculates det(M) - k*(trace(M)^2), where M is 2x2 gradient covariation matrix for each pixel
if thickness<0 (e.g. thickness == CV_FILLED), the filled box is drawn
Thickness works in the same way as with cvRectangle
depending on thickness, start_angle and end_angle parameters. The resultant figure is rotated by angle. All the angles are in degrees
The function initializes the font structure that can be passed to text rendering functions.
font | Pointer to the font structure initialized by the function |
font_face | Font name identifier. See cv::HersheyFonts and corresponding old CV_* identifiers. |
hscale | Horizontal scale. If equal to 1.0f , the characters have the original width depending on the font type. If equal to 0.5f , the characters are of half the original width. |
vscale | Vertical scale. If equal to 1.0f , the characters have the original height depending on the font type. If equal to 0.5f , the characters are of half the original height. |
shear | Approximate tangent of the character slope relative to the vertical line. A zero value means a non-italic font, 1.0f means about a 45 degree slope, etc. |
thickness | Thickness of the text strokes |
line_type | Type of the strokes, see line description |
CV_INLINE void cvCalcHist | ( | IplImage ** | image, |
CvHistogram * | hist, | ||
int accumulate | CV_DEFAULT0, | ||
const CvArr *mask | CV_DEFAULTNULL | ||
) |
これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。
CV_INLINE double cvContourPerimeter | ( | const void * | contour | ) |
same as cvArcLength for closed contour