OpenCV453
クラス | マクロ定義 | 型定義 | 列挙型 | 関数 | 変数
Imgproc_c

クラス

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 [詳解]
 

変数

CvArrsum
 
CvArrsqsum
 
const CvArrimage2
 
const CvArr CvArracc
 
CvArr double alpha
 
CvArrdst
 
CvArr CvPoint offset
 
CvArr CvPoint int bordertype
 
CvArr const CvMatkernel
 
int extra_layers
 
int double rate
 
CvArr double sp
 
CvArr double double sr
 
CvArrmarkers
 
CvArr int xorder
 
CvArr int int yorder
 
CvArr int code
 
CvArr const CvMatmap_matrix
 
double angle
 
double double scale
 
CvArr const CvArrmapx
 
CvArr const CvArr const CvArrmapy
 
const CvArr CvArrmapxy
 
const CvArr CvArr CvArrmapalpha
 
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 CvArrtemp
 
CvArr CvArr IplConvKernelelement
 
CvArr CvArr IplConvKernel int operation
 
CvMomentsmoments
 
int x_order
 
int int y_order
 
CvHuMomentshu_moments
 
CvPoint pt1
 
CvPoint CvPoint pt2
 
CvPoint CvPoint void * buffer
 
const CvArrtempl
 
const CvArr CvArrresult
 
const CvArr CvArr int method
 
const CvArrsignature2
 
const CvArr int distance_type
 
CvMemStoragestorage
 
CvMemStorage CvSeq ** first_contour
 
CvSeqnew_contour
 
CvChainPtReaderreader
 
int header_size
 
int CvMemStorage int double eps
 
CvPoint2D32f float * radius
 
const void * object2
 
const CvArrconvexhull
 
const CvRectrect2
 
CvPoint2D32f pt [4]
 
const CvArrmat
 
const CvArr CvContourcontour_header
 
const CvArr CvContour CvSeqBlockblock
 
CvPoint2D32f int measure_dist
 
int * sizes
 
int int type
 
float ** ranges
 
int CvHistogramhist
 
int CvHistogram float * data
 
float * min_value
 
float float * max_value
 
double factor
 
double threshold
 
const CvHistogramhist2
 
int number
 
CvArr CvSize range
 
const CvHistogram CvHistogramdst_hist
 
CvArr double double int threshold_type
 
CvPoint seed_point
 
CvPoint CvScalar new_val
 
CvArredges
 
CvArr double threshold1
 
CvArr double double threshold2
 
CvArrcorners
 
CvArreigenvv
 
CvArr int block_size
 
CvArreigenval
 
CvArrharris_response
 
CvPoint2D32f int count
 
CvPoint2D32f int CvSize win
 
CvPoint2D32f int CvSize CvSize zero_zone
 
CvPoint2D32f int CvSize CvSize CvTermCriteria criteria
 
CvArreig_image
 
CvArr CvArrtemp_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 CvPointpts
 
const CvPoint int npts
 
CvPoint const int int contours
 
CvPoint const int int int is_closed
 
CvPoint CvPoint CvLineIteratorline_iterator
 
int font_face
 
int double hscale
 
int double double vscale
 
const char * text
 
const char CvPoint org
 
const char CvPoint const CvFontfont
 
const CvFont CvSizetext_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
 
CvSeqcontour
 
CvSeq CvScalar external_color
 
CvSeq CvScalar CvScalar hole_color
 
CvSeq CvScalar CvScalar int max_level
 

詳解

マクロ定義詳解

◆ CV_INIT_3X3_DELTAS

#define CV_INIT_3X3_DELTAS (   deltas,
  step,
  nch 
)
値:
((deltas)[0] = (nch), (deltas)[1] = -(step) + (nch), \
(deltas)[2] = -(step), (deltas)[3] = -(step) - (nch), \
(deltas)[4] = -(nch), (deltas)[5] = (step) - (nch), \
(deltas)[6] = (step), (deltas)[7] = (step) + (nch))

initializes 8-element array for fast access to 3x3 neighborhood of a pixel

◆ CV_NEXT_LINE_POINT

#define CV_NEXT_LINE_POINT (   line_iterator)
値:
{ \
int _line_iterator_mask = (line_iterator).err < 0 ? -1 : 0; \
(line_iterator).err += (line_iterator).minus_delta + \
((line_iterator).plus_delta & _line_iterator_mask); \
(line_iterator).ptr += (line_iterator).minus_step + \
((line_iterator).plus_step & _line_iterator_mask); \
}

型定義詳解

◆ CvChainPtReader

Freeman chain reader state

◆ CvConnectedComp

Connected component structure

◆ CvConvexityDefect

Convexity defect

◆ CvFont

typedef struct CvFont CvFont

Font structure

◆ CvHuMoments

typedef struct CvHuMoments CvHuMoments

Hu invariants

◆ CvMoments

typedef struct CvMoments CvMoments

Spatial and central moments

列挙型詳解

◆ anonymous enum

anonymous enum

Filters used in pyramid decomposition

◆ anonymous enum

anonymous enum

Special filters

◆ anonymous enum

anonymous enum

Constants for color conversion

◆ anonymous enum

anonymous enum

Sub-pixel interpolation methods

◆ anonymous enum

anonymous enum

... and other image warping flags

◆ anonymous enum

anonymous enum

Morphological operations

◆ anonymous enum

anonymous enum

Template matching methods

◆ anonymous enum

anonymous enum

Contour retrieval modes

◆ anonymous enum

anonymous enum

Contour approximation methods

◆ anonymous enum

anonymous enum

Contour approximation algorithms

◆ anonymous enum

anonymous enum

Shape matching methods

列挙値
CV_CONTOURS_MATCH_I1 

\[I_1(A,B) = \sum _{i=1...7} \left | \frac{1}{m^A_i} - \frac{1}{m^B_i} \right |\]

CV_CONTOURS_MATCH_I2 

\[I_2(A,B) = \sum _{i=1...7} \left | m^A_i - m^B_i \right |\]

CV_CONTOURS_MATCH_I3 

\[I_3(A,B) = \max _{i=1...7} \frac{ \left| m^A_i - m^B_i \right| }{ \left| m^A_i \right| }\]

◆ anonymous enum

anonymous enum

Shape orientation

◆ anonymous enum

anonymous enum

Histogram comparison methods

◆ anonymous enum

anonymous enum

Mask size for distance transform

◆ anonymous enum

anonymous enum

Content of output label array: connected components or pixels

◆ anonymous enum

anonymous enum

Distance types for Distance Transform and M-estimators

列挙値
CV_DIST_USER 

User defined distance

CV_DIST_L1 

distance = |x1-x2| + |y1-y2|

CV_DIST_L2 

the simple euclidean distance

CV_DIST_C 

distance = max(|x1-x2|,|y1-y2|)

CV_DIST_L12 

L1-L2 metric: distance = 2(sqrt(1+x*x/2) - 1))

CV_DIST_FAIR 

distance = c^2(|x|/c-log(1+|x|/c)), c = 1.3998

CV_DIST_WELSCH 

distance = c^2/2(1-exp(-(x/c)^2)), c = 2.9846

CV_DIST_HUBER 

distance = |x|<c ? x^2/2 : c(|x|-c/2), c=1.345

◆ anonymous enum

anonymous enum

Threshold types

列挙値
CV_THRESH_BINARY 

value = value > threshold ? max_value : 0

CV_THRESH_BINARY_INV 

value = value > threshold ? 0 : max_value

CV_THRESH_TRUNC 

value = value > threshold ? threshold : value

CV_THRESH_TOZERO 

value = value > threshold ? value : 0

CV_THRESH_TOZERO_INV 

value = value > threshold ? 0 : value

CV_THRESH_OTSU 

use Otsu algorithm to choose the optimal threshold value; combine the flag with one of the above CV_THRESH_* values

CV_THRESH_TRIANGLE 

use Triangle algorithm to choose the optimal threshold value; combine the flag with one of the above CV_THRESH_* values, but not with CV_THRESH_OTSU

◆ anonymous enum

anonymous enum

Adaptive threshold methods

◆ anonymous enum

anonymous enum

FloodFill flags

◆ anonymous enum

anonymous enum

Canny edge detector flags

◆ anonymous enum

anonymous enum

Variants of a Hough transform

◆ MorphShapes_c

Shapes of a structuring element for morphological operations

参照
cv::MorphShapes, cv::getStructuringElement
列挙値
CV_SHAPE_CUSTOM 

custom structuring element

◆ SmoothMethod_c

Image smooth methods

列挙値
CV_BLUR_NO_SCALE 

linear convolution with $\texttt{size1}\times\texttt{size2}$ box kernel (all 1's). If you want to smooth different pixels with different-size box kernels, you can use the integral image that is computed using integral

CV_BLUR 

linear convolution with $\texttt{size1}\times\texttt{size2}$ box kernel (all 1's) with subsequent scaling by $1/(\texttt{size1}\cdot\texttt{size2})$

CV_GAUSSIAN 

linear convolution with a $\texttt{size1}\times\texttt{size2}$ Gaussian kernel

CV_MEDIAN 

median filter with a $\texttt{size1}\times\texttt{size1}$ square aperture

CV_BILATERAL 

bilateral filter with a $\texttt{size1}\times\texttt{size1}$ square aperture, color sigma= sigma1 and spatial sigma= sigma2. If size1=0, the aperture square side is set to cvRound(sigma2*1.5)*2+1. See cv::bilateralFilter

関数詳解

◆ CVAPI() [1/14]

CVAPI ( CvBox2D  ) const

Finds minimum area rotated rectangle bounding a set of points

Fits ellipse into a set of 2d points

参照
cv::minAreaRect
cv::fitEllipse

◆ CVAPI() [2/14]

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.

参照
cvFindContours

◆ CVAPI() [3/14]

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.

引数
dimsNumber of histogram dimensions.
sizesArray of the histogram dimension sizes.
typeHistogram 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.
rangesArray 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).
uniformUniformity flag. If not zero, the histogram has evenly spaced bins and for every $0<=i<cDims$ ranges[i] is an array of two numbers: lower and upper boundaries for the i-th histogram dimension. The whole range [lower,upper] is then split into dims[i] equal parts to determine the i-th input tuple value ranges for every histogram bin. And if uniform=0 , then the i-th element of the ranges array contains dims[i]+1 elements: $\texttt{lower}_0, \texttt{upper}_0, \texttt{lower}_1, \texttt{upper}_1 = \texttt{lower}_2, ... \texttt{upper}_{dims[i]-1}$ where $\texttt{lower}_j$ and $\texttt{upper}_j$ are lower and upper boundaries of the i-th input tuple value for the j-th bin, respectively. In either case, the input values that are beyond the specified range for a histogram bin are not counted by cvCalcHist and filled with 0 by cvCalcBackProject.

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.

引数
dimsNumber of the histogram dimensions.
sizesArray of the histogram dimension sizes.
histHistogram header initialized by the function.
dataArray used to store histogram bins.
rangesHistogram bin ranges. See cvCreateHist for details.
uniformUniformity flag. See cvCreateHist for details.

◆ CVAPI() [4/14]

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

参照
cv::getAffineTransform
cv::getRotationMatrix2D
cv::getPerspectiveTransform

◆ CVAPI() [5/14]

CVAPI ( CvMat **  ) const

Builds pyramid for an image

参照
buildPyramid

◆ CVAPI() [6/14]

CVAPI ( CvPoint  )

Retrieves the next chain point

参照
cvApproxChains

◆ CVAPI() [7/14]

CVAPI ( CvRect  )

Calculates contour bounding rectangle (update=1) or just retrieves pre-calculated rectangle (update=0)

Finds minimum rectangle containing two given rectangles

参照
cv::boundingRect

◆ CVAPI() [8/14]

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() [9/14]

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

参照
cvFindContours

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_seqPointer to the approximated Freeman chain that can refer to other chains.
storageStorage location for the resulting polylines.
methodApproximation method (see the description of the function :ocvFindContours ).
parameterMethod parameter (not used now).
minimal_perimeterApproximates only those contours whose perimeters are not less than minimal_perimeter . Other chains are removed from the resulting structure.
recursiveRecursion 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.
参照
cvStartReadChainPoints, cvReadChainPoint
cv::approxPolyDP
cv::convexHull
cv::convexityDefects

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

参照
cv::HoughLines
cv::HoughCircles

◆ CVAPI() [10/14]

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

参照
cv::arcLength
cv::contourArea
cv::matchShapes

Returns positive, negative or zero value, correspondingly. Optionally, measures a signed distance between the point and the nearest polygon edge (measure_dist=1)

参照
cv::pointPolygonTest

Compares two histogram

This is a basic operation applied before retrieving contours

参照
cv::threshold

◆ CVAPI() [11/14]

CVAPI ( float  ) const

Computes earth mover distance between two weighted point sets (called signatures)

参照
cv::EMD

◆ CVAPI() [12/14]

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.

参照
cv::LineSegmentDetector
cv::findContours, cvStartFindContours, cvFindNextContour, cvSubstituteContour, cvEndFindContours
cv::minEnclosingCircle
cv::isContourConvex

(0<=x<img_size.width, 0<=y<img_size.height).

参照
cv::clipLine

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.

参照
cv::LineIterator

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.

参照
cv::ellipse2Poly

◆ CVAPI() [13/14]

CVAPI ( IplConvKernel )

Returns a structuring element of the specified size and shape for morphological operations.

覚え書き
the created structuring element IplConvKernel* element must be released in the end using cvReleaseStructuringElement(&element).
引数
colsWidth of the structuring element
rowsHeight of the structuring element
anchor_xx-coordinate of the anchor
anchor_yy-coordinate of the anchor
shapeelement shape that could be one of the cv::MorphShapes_c
valuesinteger array of cols*rows elements that specifies the custom shape of the structuring element, when shape=CV_SHAPE_CUSTOM.
参照
cv::getStructuringElement

◆ CVAPI() [14/14]

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

参照
cv::accumulate
cv::accumulateSquare
cv::accumulateProduct
cv::accumulateWeighted

Copies source 2D array inside of the larger destination array and makes a border of the specified type (IPL_BORDER_*) around the copied area.

引数
srcThe source image
dstThe destination image
smoothtypeType of the smoothing, see SmoothMethod_c
size1The first parameter of the smoothing operation, the aperture width. Must be a positive odd number (1, 3, 5, ...)
size2The 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.
sigma1In the case of a Gaussian parameter this parameter may specify Gaussian $\sigma$ (standard deviation). If it is zero, it is calculated from the kernel size:

\[\sigma = 0.3 (n/2 - 1) + 0.8 \quad \text{where} \quad n= \begin{array}{l l} \mbox{\texttt{size1} for horizontal kernel} \\ \mbox{\texttt{size2} for vertical kernel} \end{array}\]

Using standard sigma for small kernels ( $3\times 3$ to $7\times 7$ ) gives better speed. If sigma1 is not zero, while size1 and size2 are zeros, the kernel size is calculated from the sigma (to provide accurate enough operation).
sigma2additional parameter for bilateral filtering
参照
cv::GaussianBlur, cv::blur, cv::medianBlur, cv::bilateralFilter.
引数
srcinput image.
dstoutput image of the same size and the same number of channels as src.
kernelconvolution 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.
anchoranchor 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.
参照
cv::filter2D
cv::integral

dst_width = floor(src_width/2)[+1], dst_height = floor(src_height/2)[+1]

参照
cv::pyrDown

dst_width = src_width*2, dst_height = src_height*2

参照
cv::pyrUp
cv::pyrMeanShiftFiltering
cv::watershed

(aperture_size = 1,3,5,7) or Scharr (aperture_size = -1) operator. Scharr can be used only for the first dx or dy derivative

参照
cv::Sobel
cv::Laplacian
cv::cvtColor
cv::resize
覚え書き
::cvGetQuadrangleSubPix is similar to ::cvWarpAffine, but the outliers are extrapolated using replication border mode.
参照
cv::warpAffine
cv::warpPerspective
cv::remap
cv::convertMaps
cv::warpPolar

Performs forward or inverse linear-polar image transform

参照
cv::warpPolar
cvCreateStructuringElementEx
cv::erode

If element pointer is NULL, 3x3 rectangular element is used

参照
cv::dilate
cv::morphologyEx
cv::moments
cv::HuMoments

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

参照
cv::getRectSubPix

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)

参照
cvWarpAffine
cv::matchTemplate

(if the substitutor is null, the last retrieved contour is removed from the tree)

参照
cvFindContours

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

参照
cvApproxChains

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.

引数
histHistogram.
rangesArray of bin ranges arrays. See :ocvCreateHist for details.
uniformUniformity 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.

引数
histDouble 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.

引数
histHistogram.

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.

引数
histHistogram.
min_valuePointer to the minimum value of the histogram.
max_valuePointer to the maximum value of the histogram.
min_idxPointer to the array of coordinates for the minimum.
max_idxPointer 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.

引数
histPointer to the histogram.
factorNormalization factor.

The function clears histogram bins that are below the specified threshold.

引数
histPointer to the histogram.
thresholdThreshold 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.

引数
srcSource histogram.
dstPointer to the destination histogram.
参照
cv::calcHist
cvCalcBackProject, cv::calcBackProject

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

引数
imageSource images (though, you may pass CvMat** as well).
dstDestination image.
range
histHistogram.
methodComparison method passed to cvCompareHist (see the function description).
factorNormalization factor for histograms that affects the normalization scale of the destination image. Pass 1 if not sure.
参照
cvCalcBackProjectPatch

The function calculates the object probability density from two histograms as:

\[\texttt{disthist} (I)= \forkthree{0}{if \‍(\texttt{hist1}(I)=0\‍)}{\texttt{scale}}{if \‍(\texttt{hist1}(I) \ne 0\‍) and \‍(\texttt{hist2}(I) > \texttt{hist1}(I)\‍)}{\frac{\texttt{hist2}(I) \cdot \texttt{scale}}{\texttt{hist1}(I)}}{if \‍(\texttt{hist1}(I) \ne 0\‍) and \‍(\texttt{hist2}(I) \le \texttt{hist1}(I)\‍)}\]

引数
hist1First histogram (the divisor).
hist2Second histogram.
dst_histDestination histogram.
scaleScale factor for the destination histogram.
参照
cv::equalizeHist
cv::distanceTransform

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,...)

参照
cv::adaptiveThreshold
cv::floodFill
cv::Canny

Dx^2 * Dyy + Dxx * Dy^2 - 2 * Dx * Dy * Dxy. Applying threshold to the result gives coordinates of corners

参照
cv::preCornerDetect
cv::cornerEigenValsAndVecs
cv::cornerMinEigenVal

Calculates det(M) - k*(trace(M)^2), where M is 2x2 gradient covariation matrix for each pixel

参照
cv::cornerHarris
cv::cornerSubPix
cv::goodFeaturesToTrack
cv::fitLine
cv::line

if thickness<0 (e.g. thickness == CV_FILLED), the filled box is drawn

参照
cv::rectangle
cv::rectangle

Thickness works in the same way as with cvRectangle

参照
cv::circle

depending on thickness, start_angle and end_angle parameters. The resultant figure is rotated by angle. All the angles are in degrees

参照
cv::ellipse
cv::fillConvexPoly
cv::fillPoly
cv::polylines

The function initializes the font structure that can be passed to text rendering functions.

引数
fontPointer to the font structure initialized by the function
font_faceFont name identifier. See cv::HersheyFonts and corresponding old CV_* identifiers.
hscaleHorizontal 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.
vscaleVertical 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.
shearApproximate 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.
thicknessThickness of the text strokes
line_typeType of the strokes, see line description
参照
cvPutText
cvInitFont, cvGetTextSize, cvFont, cv::putText
cv::getTextSize
cv::drawContours

◆ cvCalcHist()

CV_INLINE void cvCalcHist ( IplImage **  image,
CvHistogram hist,
int accumulate   CV_DEFAULT0,
const CvArr *mask   CV_DEFAULTNULL 
)

これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。

◆ cvContourPerimeter()

CV_INLINE double cvContourPerimeter ( const void *  contour)

same as cvArcLength for closed contour