Classes | Typedefs | Enumerations | Functions
include/opencv2/legacy/compat.hpp File Reference

Go to the source code of this file.

Classes

struct  CvRandState
struct  _CvPixelPosition8u
struct  _CvPixelPosition8s
struct  _CvPixelPosition32f

Typedefs

typedef int CvMatType
typedef int CvDisMaskType
typedef CvMat CvMatArray
typedef int CvThreshType
typedef int CvAdaptiveThreshMethod
typedef int CvCompareMethod
typedef int CvFontFace
typedef int CvPolyApproxMethod
typedef int CvContoursMatchMethod
typedef int CvContourTreesMatchMethod
typedef int CvCoeffType
typedef int CvRodriguesType
typedef int CvElementShape
typedef int CvMorphOp
typedef int CvTemplMatchMethod
typedef CvPoint2D64f CvPoint2D64d
typedef CvPoint3D64f CvPoint3D64d
typedef CvBox2D CvBox2D32f
typedef struct CvRandState CvRandState
typedef int CvDisType
typedef int CvChainApproxMethod
typedef int CvContourRetrievalMode
typedef struct _CvPixelPosition8u CvPixelPosition8u
typedef struct _CvPixelPosition8s CvPixelPosition8s
typedef struct _CvPixelPosition32f CvPixelPosition32f
typedef float * CvVect32f
typedef float * CvMatr32f
typedef double * CvVect64d
typedef double * CvMatr64d

Enumerations

enum  {
  CV_MAT32F = CV_32FC1, CV_MAT3x1_32F = CV_32FC1, CV_MAT4x1_32F = CV_32FC1, CV_MAT3x3_32F = CV_32FC1,
  CV_MAT4x4_32F = CV_32FC1, CV_MAT64D = CV_64FC1, CV_MAT3x1_64D = CV_64FC1, CV_MAT4x1_64D = CV_64FC1,
  CV_MAT3x3_64D = CV_64FC1, CV_MAT4x4_64D = CV_64FC1
}
enum  { IPL_GAUSSIAN_5x5 = 7 }
enum  {
  CV_SHIFT_NONE = 2, CV_SHIFT_LEFT = 1, CV_SHIFT_RIGHT = 3, CV_SHIFT_UP = 6,
  CV_SHIFT_DOWN = 10, CV_SHIFT_LU = 5, CV_SHIFT_RU = 7, CV_SHIFT_LD = 9,
  CV_SHIFT_RD = 11
}
enum  { CV_RODRIGUES_M2V = 0, CV_RODRIGUES_V2M = 1 }

Functions

CV_EXPORTS CvMat cvMatArray (int rows, int cols, int type, int count, void *data CV_DEFAULT(0))
CV_EXPORTS double cvMean (const CvArr *image, const CvArr *mask CV_DEFAULT(0))
CV_EXPORTS double cvSumPixels (const CvArr *image)
CV_EXPORTS void cvMean_StdDev (const CvArr *image, double *mean, double *sdv, const CvArr *mask CV_DEFAULT(0))
CV_EXPORTS void cvmPerspectiveProject (const CvMat *mat, const CvArr *src, CvArr *dst)
CV_EXPORTS void cvFillImage (CvArr *mat, double color)
CV_EXPORTS void cvRandSetRange (CvRandState *state, double param1, double param2, int index CV_DEFAULT(-1))
CV_EXPORTS void cvRandInit (CvRandState *state, double param1, double param2, int seed, int disttype CV_DEFAULT(CV_RAND_UNI))
CV_EXPORTS void cvRand (CvRandState *state, CvArr *arr)
CV_EXPORTS void cvbRand (CvRandState *state, float *dst, int len)
CV_EXPORTS void cvbCartToPolar (const float *y, const float *x, float *magnitude, float *angle, int len)
CV_EXPORTS void cvbFastArctan (const float *y, const float *x, float *angle, int len)
CV_EXPORTS void cvbSqrt (const float *x, float *y, int len)
CV_EXPORTS void cvbInvSqrt (const float *x, float *y, int len)
CV_EXPORTS void cvbReciprocal (const float *x, float *y, int len)
CV_EXPORTS void cvbFastExp (const float *x, double *y, int len)
CV_EXPORTS void cvbFastLog (const double *x, float *y, int len)
CV_EXPORTS CvRect cvContourBoundingRect (void *point_set, int update CV_DEFAULT(0))
CV_EXPORTS double cvPseudoInverse (const CvArr *src, CvArr *dst)
CV_EXPORTS void cvConvexHull (CvPoint *points, int num_points, CvRect *bound_rect, int orientation, int *hull, int *hullsize)
CV_EXPORTS void cvMinAreaRect (CvPoint *points, int n, int left, int bottom, int right, int top, CvPoint2D32f *anchor, CvPoint2D32f *vect1, CvPoint2D32f *vect2)
CV_EXPORTS void cvFitLine3D (CvPoint3D32f *points, int count, int dist, void *param, float reps, float aeps, float *line)
CV_EXPORTS void cvFitLine2D (CvPoint2D32f *points, int count, int dist, void *param, float reps, float aeps, float *line)
CV_EXPORTS void cvFitEllipse (const CvPoint2D32f *points, int count, CvBox2D *box)
CV_EXPORTS void cvProject3D (CvPoint3D32f *points3D, int count, CvPoint2D32f *points2D, int xIndx CV_DEFAULT(0), int yIndx CV_DEFAULT(1))
CV_EXPORTS int cvHoughLines (CvArr *image, double rho, double theta, int threshold, float *lines, int linesNumber)
CV_EXPORTS int cvHoughLinesP (CvArr *image, double rho, double theta, int threshold, int lineLength, int lineGap, int *lines, int linesNumber)
CV_EXPORTS int cvHoughLinesSDiv (CvArr *image, double rho, int srn, double theta, int stn, int threshold, float *lines, int linesNumber)
CV_EXPORTS float cvCalcEMD (const float *signature1, int size1, const float *signature2, int size2, int dims, int dist_type CV_DEFAULT(CV_DIST_L2), CvDistanceFunction dist_func CV_DEFAULT(0), float *lower_bound CV_DEFAULT(0), void *user_param CV_DEFAULT(0))
CV_EXPORTS void cvKMeans (int num_clusters, float **samples, int num_samples, int vec_size, CvTermCriteria termcrit, int *cluster_idx)
CV_EXPORTS void cvStartScanGraph (CvGraph *graph, CvGraphScanner *scanner, CvGraphVtx *vtx CV_DEFAULT(NULL), int mask CV_DEFAULT(CV_GRAPH_ALL_ITEMS))
CV_EXPORTS void cvEndScanGraph (CvGraphScanner *scanner)
CV_EXPORTS void cvLineAA (CvArr *img, CvPoint pt1, CvPoint pt2, double color, int scale CV_DEFAULT(0))
CV_EXPORTS void cvCircleAA (CvArr *img, CvPoint center, int radius, double color, int scale CV_DEFAULT(0))
CV_EXPORTS void cvEllipseAA (CvArr *img, CvPoint center, CvSize axes, double angle, double start_angle, double end_angle, double color, int scale CV_DEFAULT(0))
CV_EXPORTS void cvPolyLineAA (CvArr *img, CvPoint **pts, int *npts, int contours, int is_closed, double color, int scale CV_DEFAULT(0))
CV_EXPORTS void cvUnDistortOnce (const CvArr *src, CvArr *dst, const float *intrinsic_matrix, const float *distortion_coeffs, int interpolate)
CV_EXPORTS void cvUnDistortInit (const CvArr *src, CvArr *undistortion_map, const float *A, const float *k, int interpolate)
CV_EXPORTS void cvUnDistort (const CvArr *src, CvArr *dst, const CvArr *undistortion_map, int interpolate)
CV_EXPORTS void cvFindFundamentalMatrix (int *points1, int *points2, int numpoints, int method, float *matrix)
CV_EXPORTS int cvFindChessBoardCornerGuesses (const void *arr, void *thresharr, CvMemStorage *storage, CvSize pattern_size, CvPoint2D32f *corners, int *corner_count)
CV_EXPORTS void cvCalibrateCamera (int image_count, int *_point_counts, CvSize image_size, CvPoint2D32f *_image_points, CvPoint3D32f *_object_points, float *_distortion_coeffs, float *_camera_matrix, float *_translation_vectors, float *_rotation_matrices, int flags)
CV_EXPORTS void cvCalibrateCamera_64d (int image_count, int *_point_counts, CvSize image_size, CvPoint2D64f *_image_points, CvPoint3D64f *_object_points, double *_distortion_coeffs, double *_camera_matrix, double *_translation_vectors, double *_rotation_matrices, int flags)
CV_EXPORTS void cvFindExtrinsicCameraParams (int point_count, CvSize image_size, CvPoint2D32f *_image_points, CvPoint3D32f *_object_points, float *focal_length, CvPoint2D32f principal_point, float *_distortion_coeffs, float *_rotation_vector, float *_translation_vector)
CV_EXPORTS void cvFindExtrinsicCameraParams_64d (int point_count, CvSize image_size, CvPoint2D64f *_image_points, CvPoint3D64f *_object_points, double *focal_length, CvPoint2D64f principal_point, double *_distortion_coeffs, double *_rotation_vector, double *_translation_vector)
CV_EXPORTS void cvRodrigues (CvMat *rotation_matrix, CvMat *rotation_vector, CvMat *jacobian, int conv_type)
CV_EXPORTS void cvProjectPoints (int point_count, CvPoint3D64f *_object_points, double *_rotation_vector, double *_translation_vector, double *focal_length, CvPoint2D64f principal_point, double *_distortion, CvPoint2D64f *_image_points, double *_deriv_points_rotation_matrix, double *_deriv_points_translation_vect, double *_deriv_points_focal, double *_deriv_points_principal_point, double *_deriv_points_distortion_coeffs)
CV_EXPORTS void cvProjectPointsSimple (int point_count, CvPoint3D64f *_object_points, double *_rotation_matrix, double *_translation_vector, double *_camera_matrix, double *_distortion, CvPoint2D64f *_image_points)

Typedef Documentation

typedef int CvMatType
typedef int CvDisMaskType
typedef CvMat CvMatArray
typedef int CvThreshType
typedef int CvCompareMethod
typedef int CvFontFace
typedef int CvPolyApproxMethod
typedef int CvContoursMatchMethod
typedef int CvCoeffType
typedef int CvRodriguesType
typedef int CvElementShape
typedef int CvMorphOp
typedef int CvTemplMatchMethod
typedef struct CvRandState CvRandState
typedef int CvDisType
typedef int CvChainApproxMethod
typedef float* CvVect32f
typedef float* CvMatr32f
typedef double* CvVect64d
typedef double* CvMatr64d

Enumeration Type Documentation

anonymous enum
Enumerator:
CV_MAT32F 
CV_MAT3x1_32F 
CV_MAT4x1_32F 
CV_MAT3x3_32F 
CV_MAT4x4_32F 
CV_MAT64D 
CV_MAT3x1_64D 
CV_MAT4x1_64D 
CV_MAT3x3_64D 
CV_MAT4x4_64D 
anonymous enum
Enumerator:
IPL_GAUSSIAN_5x5 
anonymous enum
Enumerator:
CV_SHIFT_NONE 
CV_SHIFT_LEFT 
CV_SHIFT_RIGHT 
CV_SHIFT_UP 
CV_SHIFT_DOWN 
CV_SHIFT_LU 
CV_SHIFT_RU 
CV_SHIFT_LD 
CV_SHIFT_RD 
anonymous enum
Enumerator:
CV_RODRIGUES_M2V 
CV_RODRIGUES_V2M 

Function Documentation

CV_EXPORTS CvMat cvMatArray ( int  rows,
int  cols,
int  type,
int  count,
void *data   CV_DEFAULT
)
CV_EXPORTS double cvMean ( const CvArr image,
const CvArr *mask   CV_DEFAULT
)
CV_EXPORTS double cvSumPixels ( const CvArr image)
CV_EXPORTS void cvMean_StdDev ( const CvArr image,
double *  mean,
double *  sdv,
const CvArr *mask   CV_DEFAULT
)
CV_EXPORTS void cvmPerspectiveProject ( const CvMat mat,
const CvArr src,
CvArr dst 
)
CV_EXPORTS void cvFillImage ( CvArr mat,
double  color 
)
CV_EXPORTS void cvRandSetRange ( CvRandState state,
double  param1,
double  param2,
int index   CV_DEFAULT-1 
)
CV_EXPORTS void cvRandInit ( CvRandState state,
double  param1,
double  param2,
int  seed,
int disttype   CV_DEFAULTCV_RAND_UNI 
)
CV_EXPORTS void cvRand ( CvRandState state,
CvArr arr 
)
CV_EXPORTS void cvbRand ( CvRandState state,
float *  dst,
int  len 
)
CV_EXPORTS void cvbCartToPolar ( const float *  y,
const float *  x,
float *  magnitude,
float *  angle,
int  len 
)
CV_EXPORTS void cvbFastArctan ( const float *  y,
const float *  x,
float *  angle,
int  len 
)
CV_EXPORTS void cvbSqrt ( const float *  x,
float *  y,
int  len 
)
CV_EXPORTS void cvbInvSqrt ( const float *  x,
float *  y,
int  len 
)
CV_EXPORTS void cvbReciprocal ( const float *  x,
float *  y,
int  len 
)
CV_EXPORTS void cvbFastExp ( const float *  x,
double *  y,
int  len 
)
CV_EXPORTS void cvbFastLog ( const double *  x,
float *  y,
int  len 
)
CV_EXPORTS CvRect cvContourBoundingRect ( void point_set,
int update   CV_DEFAULT
)
CV_EXPORTS double cvPseudoInverse ( const CvArr src,
CvArr dst 
)
CV_EXPORTS void cvConvexHull ( CvPoint points,
int  num_points,
CvRect bound_rect,
int  orientation,
int *  hull,
int *  hullsize 
)
CV_EXPORTS void cvMinAreaRect ( CvPoint points,
int  n,
int  left,
int  bottom,
int  right,
int  top,
CvPoint2D32f anchor,
CvPoint2D32f vect1,
CvPoint2D32f vect2 
)
CV_EXPORTS void cvFitLine3D ( CvPoint3D32f points,
int  count,
int  dist,
void param,
float  reps,
float  aeps,
float *  line 
)
CV_EXPORTS void cvFitLine2D ( CvPoint2D32f points,
int  count,
int  dist,
void param,
float  reps,
float  aeps,
float *  line 
)
CV_EXPORTS void cvFitEllipse ( const CvPoint2D32f points,
int  count,
CvBox2D box 
)
CV_EXPORTS void cvProject3D ( CvPoint3D32f points3D,
int  count,
CvPoint2D32f points2D,
int xIndx   CV_DEFAULT0,
int yIndx   CV_DEFAULT
)
CV_EXPORTS int cvHoughLines ( CvArr image,
double  rho,
double  theta,
int  threshold,
float *  lines,
int  linesNumber 
)
CV_EXPORTS int cvHoughLinesP ( CvArr image,
double  rho,
double  theta,
int  threshold,
int  lineLength,
int  lineGap,
int *  lines,
int  linesNumber 
)
CV_EXPORTS int cvHoughLinesSDiv ( CvArr image,
double  rho,
int  srn,
double  theta,
int  stn,
int  threshold,
float *  lines,
int  linesNumber 
)
CV_EXPORTS float cvCalcEMD ( const float *  signature1,
int  size1,
const float *  signature2,
int  size2,
int  dims,
int dist_type   CV_DEFAULTCV_DIST_L2,
CvDistanceFunction dist_func   CV_DEFAULT0,
float *lower_bound   CV_DEFAULT0,
void *user_param   CV_DEFAULT
)
CV_EXPORTS void cvKMeans ( int  num_clusters,
float **  samples,
int  num_samples,
int  vec_size,
CvTermCriteria  termcrit,
int *  cluster_idx 
)
CV_EXPORTS void cvStartScanGraph ( CvGraph graph,
CvGraphScanner scanner,
CvGraphVtx *vtx   CV_DEFAULTNULL,
int mask   CV_DEFAULTCV_GRAPH_ALL_ITEMS 
)
CV_EXPORTS void cvEndScanGraph ( CvGraphScanner scanner)
CV_EXPORTS void cvLineAA ( CvArr img,
CvPoint  pt1,
CvPoint  pt2,
double  color,
int scale   CV_DEFAULT
)
CV_EXPORTS void cvCircleAA ( CvArr img,
CvPoint  center,
int  radius,
double  color,
int scale   CV_DEFAULT
)
CV_EXPORTS void cvEllipseAA ( CvArr img,
CvPoint  center,
CvSize  axes,
double  angle,
double  start_angle,
double  end_angle,
double  color,
int scale   CV_DEFAULT
)
CV_EXPORTS void cvPolyLineAA ( CvArr img,
CvPoint **  pts,
int *  npts,
int  contours,
int  is_closed,
double  color,
int scale   CV_DEFAULT
)
CV_EXPORTS void cvUnDistortOnce ( const CvArr src,
CvArr dst,
const float *  intrinsic_matrix,
const float *  distortion_coeffs,
int  interpolate 
)
CV_EXPORTS void cvUnDistortInit ( const CvArr src,
CvArr undistortion_map,
const float *  A,
const float *  k,
int  interpolate 
)
CV_EXPORTS void cvUnDistort ( const CvArr src,
CvArr dst,
const CvArr undistortion_map,
int  interpolate 
)
CV_EXPORTS void cvFindFundamentalMatrix ( int *  points1,
int *  points2,
int  numpoints,
int  method,
float *  matrix 
)
CV_EXPORTS int cvFindChessBoardCornerGuesses ( const void arr,
void thresharr,
CvMemStorage storage,
CvSize  pattern_size,
CvPoint2D32f corners,
int *  corner_count 
)
CV_EXPORTS void cvCalibrateCamera ( int  image_count,
int *  _point_counts,
CvSize  image_size,
CvPoint2D32f _image_points,
CvPoint3D32f _object_points,
float *  _distortion_coeffs,
float *  _camera_matrix,
float *  _translation_vectors,
float *  _rotation_matrices,
int  flags 
)
CV_EXPORTS void cvCalibrateCamera_64d ( int  image_count,
int *  _point_counts,
CvSize  image_size,
CvPoint2D64f _image_points,
CvPoint3D64f _object_points,
double *  _distortion_coeffs,
double *  _camera_matrix,
double *  _translation_vectors,
double *  _rotation_matrices,
int  flags 
)
CV_EXPORTS void cvFindExtrinsicCameraParams ( int  point_count,
CvSize  image_size,
CvPoint2D32f _image_points,
CvPoint3D32f _object_points,
float *  focal_length,
CvPoint2D32f  principal_point,
float *  _distortion_coeffs,
float *  _rotation_vector,
float *  _translation_vector 
)
CV_EXPORTS void cvFindExtrinsicCameraParams_64d ( int  point_count,
CvSize  image_size,
CvPoint2D64f _image_points,
CvPoint3D64f _object_points,
double *  focal_length,
CvPoint2D64f  principal_point,
double *  _distortion_coeffs,
double *  _rotation_vector,
double *  _translation_vector 
)
CV_EXPORTS void cvRodrigues ( CvMat rotation_matrix,
CvMat rotation_vector,
CvMat jacobian,
int  conv_type 
)
CV_EXPORTS void cvProjectPoints ( int  point_count,
CvPoint3D64f _object_points,
double *  _rotation_vector,
double *  _translation_vector,
double *  focal_length,
CvPoint2D64f  principal_point,
double *  _distortion,
CvPoint2D64f _image_points,
double *  _deriv_points_rotation_matrix,
double *  _deriv_points_translation_vect,
double *  _deriv_points_focal,
double *  _deriv_points_principal_point,
double *  _deriv_points_distortion_coeffs 
)
CV_EXPORTS void cvProjectPointsSimple ( int  point_count,
CvPoint3D64f _object_points,
double *  _rotation_matrix,
double *  _translation_vector,
double *  _camera_matrix,
double *  _distortion,
CvPoint2D64f _image_points 
)