/external/opencv/ml/include/ |
D | ml.h | 244 CvNormalBayesClassifier( const CvMat* _train_data, const CvMat* _responses, 245 const CvMat* _var_idx=0, const CvMat* _sample_idx=0 ); 247 virtual bool train( const CvMat* _train_data, const CvMat* _responses, 248 const CvMat* _var_idx = 0, const CvMat* _sample_idx=0, bool update=false ); 250 virtual float predict( const CvMat* _samples, CvMat* results=0 ) const; 258 CvMat* var_idx; 259 CvMat* cls_labels; 260 CvMat** count; 261 CvMat** sum; 262 CvMat** productsum; [all …]
|
/external/opencv/ml/src/ |
D | _ml.h | 228 CvMat a, b; \ 256 CvMat* icvGenerateRandomClusterCenters( int seed, 257 const CvMat* data, 259 CvMat* centers CV_DEFAULT(0)); 266 void icvFindClusterLabels( const CvMat* probs, float outlier_thresh, float r, 267 const CvMat* labels ); 288 const CvMat* train_data, int tflag, 289 const CvMat* responses, int response_type, 290 const CvMat* var_idx, 291 const CvMat* sample_idx, [all …]
|
D | mlcnn.cpp | 50 const CvMat* image, 51 CvMat* probs CV_DEFAULT(0) ); 54 CvStatModel* cnn_model, const CvMat* images, int tflag, 55 const CvMat* responses, const CvStatModelParams* params, 56 const CvMat* CV_DEFAULT(0), const CvMat* sample_idx CV_DEFAULT(0), 57 const CvMat* CV_DEFAULT(0), const CvMat* CV_DEFAULT(0)); 63 const CvMat* responses, 64 const CvMat* etalons, 81 static void icvCNNConvolutionForward( CvCNNLayer* layer, const CvMat* X, CvMat* Y ); 84 const CvMat* X, const CvMat* dE_dY, CvMat* dE_dX ); [all …]
|
D | mlrtrees.cpp | 56 const CvMat* _subsample_idx, in train() 80 CvForestTree::train( const CvMat*, int, const CvMat*, const CvMat*, in train() argument 81 const CvMat*, const CvMat*, const CvMat*, CvDTreeParams ) in train() 89 CvForestTree::train( CvDTreeTrainData*, const CvMat* ) in train() argument 104 CvMat* active_var_mask = 0; in find_best_split() 220 CvMat* CvRTrees::get_active_var_mask() in get_active_var_mask() 231 bool CvRTrees::train( const CvMat* _train_data, int _tflag, in train() 232 const CvMat* _responses, const CvMat* _var_idx, in train() 233 const CvMat* _sample_idx, const CvMat* _var_type, in train() 234 const CvMat* _missing_mask, CvRTParams params ) in train() [all …]
|
D | ml_inner_functions.cpp | 125 CV_IMPL void cvChol( CvMat* A, CvMat* S ) in cvChol() 158 CV_IMPL void cvRandMVNormal( CvMat* mean, CvMat* cov, CvMat* sample, CvRNG* rng ) in cvRandMVNormal() 166 CvMat* utmat = cvCreateMat(dim, dim, sample->type); in cvRandMVNormal() 167 CvMat* vect = cvCreateMatHeader(1, dim, sample->type); in cvRandMVNormal() 187 CvMat* univals = cvCreateMat(1, amount, CV_32FC1); in cvRandSeries() 213 CV_IMPL void cvRandGaussMixture( CvMat* means[], in cvRandGaussMixture() 214 CvMat* covs[], in cvRandGaussMixture() 217 CvMat* sample, in cvRandGaussMixture() 218 CvMat* sampClasses ) in cvRandGaussMixture() 226 CvMat** utmats = (CvMat**)cvAlloc( clsnum * sizeof(CvMat*) ); in cvRandGaussMixture() [all …]
|
D | mlnbayes.cpp | 88 const CvMat* _train_data, const CvMat* _responses, in CvNormalBayesClassifier() 89 const CvMat* _var_idx, const CvMat* _sample_idx ) in CvNormalBayesClassifier() 107 bool CvNormalBayesClassifier::train( const CvMat* _train_data, const CvMat* _responses, in train() 108 const CvMat* _var_idx, const CvMat* _sample_idx, bool update ) in train() 112 CvMat* responses = 0; in train() 114 CvMat* __cls_labels = 0; in train() 115 CvMat* __var_idx = 0; in train() 116 CvMat* cov = 0; in train() 134 const size_t mat_size = sizeof(CvMat*); in train() 148 CV_CALL( count = (CvMat**)cvAlloc( data_size )); in train() [all …]
|
D | mlem.cpp | 78 CvEM::CvEM( const CvMat* samples, const CvMat* sample_idx, in CvEM() 79 CvEMParams params, CvMat* labels ) in CvEM() 156 const CvMat* p = params.weights; in set_params() 168 const CvMat* m = params.means; in set_params() 180 const CvMat* w = params.weights; in set_params() 193 const CvMat* cov = params.covs[k]; in set_params() 209 CvEM::predict( const CvMat* _sample, CvMat* _probs ) const in predict() 224 CvMat diff, expo; in predict() 249 CvMat* u = cov_rotate_mats[k]; in predict() 303 bool CvEM::train( const CvMat* _samples, const CvMat* _sample_idx, in train() [all …]
|
/external/opencv/cv/include/ |
D | cv.h | 89 CVAPI(void) cvFilter2D( const CvArr* src, CvArr* dst, const CvMat* kernel, in LOAD_CHDL() 114 CVAPI(CvMat**) cvCreatePyramid( const CvArr* img, int extra_layers, double rate, in LOAD_CHDL() 121 CVAPI(void) cvReleasePyramid( CvMat*** pyramid, int extra_layers ); in LOAD_CHDL() 273 CVAPI(void) cvWarpAffine( const CvArr* src, CvArr* dst, const CvMat* map_matrix, in LOAD_CHDL() 278 CVAPI(CvMat*) cvGetAffineTransform( const CvPoint2D32f * src, in LOAD_CHDL() 280 CvMat * map_matrix ); in LOAD_CHDL() 283 CVAPI(CvMat*) cv2DRotationMatrix( CvPoint2D32f center, double angle, in LOAD_CHDL() 284 double scale, CvMat* map_matrix ); in LOAD_CHDL() 287 CVAPI(void) cvWarpPerspective( const CvArr* src, CvArr* dst, const CvMat* map_matrix, in LOAD_CHDL() 292 CVAPI(CvMat*) cvGetPerspectiveTransform( const CvPoint2D32f* src, in LOAD_CHDL() [all …]
|
D | cv.hpp | 105 virtual int process( const CvMat* _src, CvMat* _dst, 169 const CvMat* _kx, const CvMat* _ky, 176 const CvMat* _kx, const CvMat* _ky, 193 const CvMat* get_x_kernel() const { return kx; } in get_x_kernel() 194 const CvMat* get_y_kernel() const { return ky; } in get_y_kernel() 201 static void init_gaussian_kernel( CvMat* kernel, double sigma=-1 ); 202 static void init_sobel_kernel( CvMat* _kx, CvMat* _ky, int dx, int dy, int flags=0 ); 203 static void init_scharr_kernel( CvMat* _kx, CvMat* _ky, int dx, int dy, int flags=0 ); 206 CvMat *kx, *ky; 217 const CvMat* _kernel, [all …]
|
D | cvcompat.h | 63 #define CvMatArray CvMat 110 CV_INLINE CvMat cvMatArray( int rows, int cols, int type, 153 CV_INLINE void cvmPerspectiveProject( const CvMat* mat, const CvArr* src, CvArr* dst ) in cvmPerspectiveProject() 155 CvMat tsrc, tdst; in cvmPerspectiveProject() 250 CvMat mat = cvMat( 1, len, CV_32F, (void*)dst ); in cvbRand() 258 CvMat mx = cvMat( 1, len, CV_32F, (void*)x ); in cvbCartToPolar() 259 CvMat my = mx; in cvbCartToPolar() 260 CvMat mm = mx; in cvbCartToPolar() 261 CvMat ma = mx; in cvbCartToPolar() 274 CvMat mx = cvMat( 1, len, CV_32F, (void*)x ); in cvbFastArctan() [all …]
|
D | cvtypes.h | 292 CvMat* state_pre; /* predicted state (x'(k)): 294 CvMat* state_post; /* corrected state (x(k)): 296 CvMat* transition_matrix; /* state transition matrix (A) */ 297 CvMat* control_matrix; /* control matrix (B) 299 CvMat* measurement_matrix; /* measurement matrix (H) */ 300 CvMat* process_noise_cov; /* process noise covariance matrix (Q) */ 301 CvMat* measurement_noise_cov; /* measurement noise covariance matrix (R) */ 302 CvMat* error_cov_pre; /* priori error estimate covariance matrix (P'(k)): 304 CvMat* gain; /* Kalman gain matrix (K(k)): 306 CvMat* error_cov_post; /* posteriori error estimate covariance matrix (P(k)): [all …]
|
/external/opencv/cvaux/src/ |
D | cvtrifocal.cpp | 58 void cvOptimizeLevenbergMarquardtBundle( CvMat** projMatrs, CvMat** observProjPoints, 59 CvMat** pointsPres, int numImages, 60 … CvMat** resultProjMatrs, CvMat* resultPoints4D,int maxIter,double epsilon ); 62 int icvComputeProjectMatrices6Points( CvMat* points1,CvMat* points2,CvMat* points3, 63 CvMat* projMatr1,CvMat* projMatr2,CvMat* projMatr3); 65 void icvFindBaseTransform(CvMat* points,CvMat* resultT); 67 void GetGeneratorReduceFundSolution(CvMat* points1,CvMat* points2,CvMat* fundReduceCoef1,CvMat* fun… 69 int GetGoodReduceFundamMatrFromTwo(CvMat* fundReduceCoef1,CvMat* fundReduceCoef2,CvMat* resFundRedu… 71 void GetProjMatrFromReducedFundamental(CvMat* fundReduceCoefs,CvMat* projMatrCoefs); 73 void icvComputeProjectMatrix(CvMat* objPoints,CvMat* projPoints,CvMat* projMatr); [all …]
|
D | cvlevmar.cpp | 52 typedef void (*pointer_LMJac)( const CvMat* src, CvMat* dst ); 53 typedef void (*pointer_LMFunc)( const CvMat* src, CvMat* dst ); 59 CvMat *X0,CvMat *observRes,CvMat *resultX, in cvLevenbergMarquardtOptimization() 68 CvMat *vectX = 0; in cvLevenbergMarquardtOptimization() 69 CvMat *vectNewX = 0; in cvLevenbergMarquardtOptimization() 70 CvMat *resFunc = 0; in cvLevenbergMarquardtOptimization() 71 CvMat *resNewFunc = 0; in cvLevenbergMarquardtOptimization() 72 CvMat *error = 0; in cvLevenbergMarquardtOptimization() 73 CvMat *errorNew = 0; in cvLevenbergMarquardtOptimization() 74 CvMat *Jac = 0; in cvLevenbergMarquardtOptimization() [all …]
|
D | cvlevmarprojbandle.cpp | 51 …icvReconstructPoints4DStatus(CvMat** projPoints, CvMat **projMatrs, CvMat** presPoints, CvMat *poi… 70 void icvComputeDerivateProj(CvMat *points4D,CvMat *projMatr, CvMat *status, CvMat *derivProj) in icvComputeDerivateProj() 204 void icvComputeDerivateProjAll(CvMat *points4D, CvMat **projMatrs, CvMat **pointPres, int numImages… in icvComputeDerivateProjAll() 231 void icvComputeDerivatePoints(CvMat *points4D,CvMat *projMatr, CvMat *presPoints, CvMat *derivPoint) in icvComputeDerivatePoints() 341 void icvComputeDerivatePointsAll(CvMat *points4D, CvMat **projMatrs, CvMat **pointPres, int numImag… in icvComputeDerivatePointsAll() 367 void icvComputeMatrixVAll(int numImages,CvMat **pointDeriv,CvMat **presPoints, CvMat **matrV) in icvComputeMatrixVAll() 436 void icvComputeMatrixUAll(int numImages,CvMat **projDeriv,CvMat** matrU) in icvComputeMatrixUAll() 463 void icvComputeMatrixW(int numImages, CvMat **projDeriv, CvMat **pointDeriv, CvMat **presPoints, Cv… in icvComputeMatrixW() 565 void icvComputeJacErrorProj(int numImages,CvMat **projDeriv,CvMat **projErrors,CvMat *jacProjErr ) in icvComputeJacErrorProj() 632 void icvComputeJacErrorPoint(int numImages,CvMat **pointDeriv,CvMat **projErrors, CvMat **presPoint… in icvComputeJacErrorPoint() [all …]
|
D | cvcorrimages.cpp | 56 int icvCreateFeaturePoints(IplImage *image, CvMat *points, CvMat *status) in icvCreateFeaturePoints() 180 CvMat *points1, in icvFindCorrForGivenPoints() 181 CvMat *pntStatus1, in icvFindCorrForGivenPoints() 182 CvMat *points2, in icvFindCorrForGivenPoints() 183 CvMat *pntStatus2, in icvFindCorrForGivenPoints() 192 CvMat* tmpPoints1 = 0; in icvFindCorrForGivenPoints() 193 CvMat* tmpPoints2 = 0; in icvFindCorrForGivenPoints() 194 CvMat* pStatus = 0; in icvFindCorrForGivenPoints() 393 CvMat fundMatr; in icvFindCorrForGivenPoints() 439 int icvGrowPointsAndStatus(CvMat **oldPoints,CvMat **oldStatus,CvMat *addPoints,CvMat *addStatus,in… in icvGrowPointsAndStatus() [all …]
|
D | cvlevmartrif.cpp | 51 typedef void (*pointer_LMJac)( const CvMat* src, CvMat* dst ); 52 typedef void (*pointer_LMFunc)( const CvMat* src, CvMat* dst ); 57 CvMat *X0,CvMat *observRes,CvMat *resultX, 60 void icvReconstructPointsFor3View( CvMat* projMatr1,CvMat* projMatr2,CvMat* projMatr3, 61 CvMat* projPoints1,CvMat* projPoints2,CvMat* projPoints3, 62 CvMat* points4D); 66 void icvJacobianFunction_ProjTrifocal(const CvMat *vectX,CvMat *Jacobian) in icvJacobianFunction_ProjTrifocal() 166 void icvFunc_ProjTrifocal(const CvMat *vectX, CvMat *resFunc) in icvFunc_ProjTrifocal() 211 CvMat projMatrs[3]; in icvFunc_ProjTrifocal() 217 CvMat point3D; in icvFunc_ProjTrifocal() [all …]
|
/external/opencv/cv/src/ |
D | cvfundam.cpp | 63 virtual int runKernel( const CvMat* m1, const CvMat* m2, CvMat* model )=0; 64 virtual bool runLMeDS( const CvMat* m1, const CvMat* m2, CvMat* model, 65 CvMat* mask, double confidence=0.99, int maxIters=1000 ); 66 virtual bool runRANSAC( const CvMat* m1, const CvMat* m2, CvMat* model, 67 CvMat* mask, double threshold, 69 virtual bool refine( const CvMat*, const CvMat*, CvMat*, int ) { return true; } in refine() argument 73 virtual void computeReprojError( const CvMat* m1, const CvMat* m2, 74 const CvMat* model, CvMat* error ) = 0; 75 virtual int findInliers( const CvMat* m1, const CvMat* m2, 76 const CvMat* model, CvMat* error, [all …]
|
D | cvkdtree.cpp | 61 CvMat* mat; 62 deref(CvMat* _mat) : mat(_mat) { in deref() 79 CvMat* mat; 83 void find_nn(CvMat* d, int k, int emax, CvMat* results, CvMat* dist) { in find_nn() 118 int find_ortho_range(CvMat* bounds_min, CvMat* bounds_max, in find_ortho_range() 119 CvMat* results) { in find_ortho_range() 135 CvFeatureTree(CvMat* _mat) : mat(_mat) { in CvFeatureTree() 162 void find_nn(CvMat* d, int k, int emax, CvMat* results, CvMat* dist) { in find_nn() 170 int find_ortho_range(CvMat* bounds_min, CvMat* bounds_max, in find_ortho_range() 171 CvMat* results) { in find_ortho_range() [all …]
|
D | cvcalibration.cpp | 121 bool CvLevMarq::update( const CvMat*& _param, CvMat*& _J, CvMat*& _err ) in update() 189 bool CvLevMarq::updateAlt( const CvMat*& _param, CvMat*& _JtJ, CvMat*& _JtErr, double*& _errNorm ) in updateAlt() 283 cvCalcMatMulDeriv( const CvMat* A, const CvMat* B, CvMat* dABdA, CvMat* dABdB ) in cvCalcMatMulDeriv() 378 cvComposeRT( const CvMat* _rvec1, const CvMat* _tvec1, in cvComposeRT() 379 const CvMat* _rvec2, const CvMat* _tvec2, in cvComposeRT() 380 CvMat* _rvec3, CvMat* _tvec3, in cvComposeRT() 381 CvMat* dr3dr1, CvMat* dr3dt1, in cvComposeRT() 382 CvMat* dr3dr2, CvMat* dr3dt2, in cvComposeRT() 383 CvMat* dt3dr1, CvMat* dt3dt1, in cvComposeRT() 384 CvMat* dt3dr2, CvMat* dt3dt2 ) in cvComposeRT() [all …]
|
D | cvundistort.cpp | 109 cvUndistort2( const CvArr* _src, CvArr* _dst, const CvMat* A, const CvMat* dist_coeffs ) in cvUndistort2() 119 CvMat srcstub, *src = (CvMat*)_src; in cvUndistort2() 120 CvMat dststub, *dst = (CvMat*)_dst; in cvUndistort2() 121 CvMat _a = cvMat( 3, 3, CV_32F, a ), _k; in cvUndistort2() 180 cvInitUndistortMap( const CvMat* A, const CvMat* dist_coeffs, in cvInitUndistortMap() 189 CvMat mapxstub, *_mapx = (CvMat*)mapxarr; in cvInitUndistortMap() 190 CvMat mapystub, *_mapy = (CvMat*)mapyarr; in cvInitUndistortMap() 191 CvMat _a = cvMat( 3, 3, CV_32F, a ), _k; in cvInitUndistortMap() 260 cvInitUndistortRectifyMap( const CvMat* A, const CvMat* distCoeffs, in cvInitUndistortRectifyMap() 261 const CvMat *R, const CvMat* Ar, CvArr* mapxarr, CvArr* mapyarr ) in cvInitUndistortRectifyMap() [all …]
|
D | cvcalcimagehomography.cpp | 60 CvMat rx = cvMat( 1, 3, CV_32F, line ); in cvCalcImageHomography() 61 CvMat ry = cvMat( 1, 3, CV_32F, _ry ); in cvCalcImageHomography() 62 CvMat rz = cvMat( 1, 3, CV_32F, _rz ); in cvCalcImageHomography() 63 CvMat r_trans = cvMat( 3, 3, CV_32F, _r_trans ); in cvCalcImageHomography() 64 CvMat center = cvMat( 3, 1, CV_32F, _center ); in cvCalcImageHomography() 67 CvMat sub = cvMat( 3, 3, CV_32F, _sub ); in cvCalcImageHomography() 69 CvMat t_trans = cvMat( 3, 1, CV_32F, _t_trans ); in cvCalcImageHomography() 71 CvMat intrinsic = cvMat( 3, 3, CV_32F, _intrinsic ); in cvCalcImageHomography() 72 CvMat homography = cvMat( 3, 3, CV_32F, _homography ); in cvCalcImageHomography()
|
D | cvmotempl.cpp | 116 CvMat silhstub, *silh = (CvMat*)silhouette; in cvUpdateMotionHistory() 117 CvMat mhistub, *mhi = (CvMat*)mhimg; in cvUpdateMotionHistory() 164 CvMat *dX_min = 0, *dY_max = 0; in cvCalcMotionGradient() 171 CvMat mhistub, *mhi = (CvMat*)mhiimg; in cvCalcMotionGradient() 172 CvMat maskstub, *mask = (CvMat*)maskimg; in cvCalcMotionGradient() 173 CvMat orientstub, *orient = (CvMat*)orientation; in cvCalcMotionGradient() 174 CvMat dX_min_row, dY_max_row, orient_row, mask_row; in cvCalcMotionGradient() 294 CvMat mhistub, *mhi = (CvMat*)mhiimg; in cvCalcGlobalOrientation() 295 CvMat maskstub, *mask = (CvMat*)maskimg; in cvCalcGlobalOrientation() 296 CvMat orientstub, *orient = (CvMat*)orientation; in cvCalcGlobalOrientation() [all …]
|
D | cvgeometry.cpp | 355 cvRQDecomp3x3( const CvMat *matrixM, CvMat *matrixR, CvMat *matrixQ, in cvRQDecomp3x3() 356 CvMat *matrixQx, CvMat *matrixQy, CvMat *matrixQz, in cvRQDecomp3x3() 363 CvMat M = cvMat(3, 3, CV_64F, _M); in cvRQDecomp3x3() 364 CvMat R = cvMat(3, 3, CV_64F, _R); in cvRQDecomp3x3() 365 CvMat Q = cvMat(3, 3, CV_64F, _Q); in cvRQDecomp3x3() 389 CvMat Qx = cvMat(3, 3, CV_64F, _Qx); in cvRQDecomp3x3() 408 CvMat Qy = cvMat(3, 3, CV_64F, _Qy); in cvRQDecomp3x3() 428 CvMat Qz = cvMat(3, 3, CV_64F, _Qz); in cvRQDecomp3x3() 528 cvDecomposeProjectionMatrix( const CvMat *projMatr, CvMat *calibMatr, in cvDecomposeProjectionMatrix() 529 CvMat *rotMatr, CvMat *posVect, in cvDecomposeProjectionMatrix() [all …]
|
D | _cvimgproc.h | 83 CvMat* icvIPPFilterInit( const CvMat* src, int stripe_size, CvSize ksize ); 85 int icvIPPFilterNextStripe( const CvMat* src, CvMat* temp, int y, 88 int icvIPPSepFilter( const CvMat* src, CvMat* dst, const CvMat* kernelX, 89 const CvMat* kernelY, CvPoint anchor );
|
/external/opencv/cxcore/src/ |
D | cxmatrix.cpp | 55 CvMat stub, *mat = (CvMat*)array; in cvSetIdentity() 138 CvMat stub, *mat = 0; in cvTrace() 142 mat = (CvMat*)array; in cvTrace() 450 CvMat sstub, *src = (CvMat*)srcarr; in CV_DEF_INIT_PIXSIZE_TAB_2D() 451 CvMat dstub, *dst = (CvMat*)dstarr; in CV_DEF_INIT_PIXSIZE_TAB_2D() 545 cvCompleteSymm( CvMat* matrix, int LtoR ) in cvCompleteSymm() 777 CvMat stub, *mat = (CvMat*)arr; in cvDet() 850 CvMat tmat; in cvDet() 912 CvMat* u = 0; in cvInvert() 913 CvMat* v = 0; in cvInvert() [all …]
|