/external/opencv/ml/src/ |
D | mlnbayes.cpp | 126 CV_CALL( cvPrepareTrainData( 0, in train() 148 CV_CALL( count = (CvMat**)cvAlloc( data_size )); in train() 157 CV_CALL( c = cvCreateMat( 1, nclasses, CV_64FC1 )); in train() 161 CV_CALL(count[cls] = cvCreateMat( 1, var_count, CV_32SC1 )); in train() 162 CV_CALL(sum[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train() 163 CV_CALL(productsum[cls] = cvCreateMat( var_count, var_count, CV_64FC1 )); in train() 164 CV_CALL(avg[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train() 165 CV_CALL(inv_eigen_values[cls] = cvCreateMat( 1, var_count, CV_64FC1 )); in train() 166 CV_CALL(cov_rotate_mats[cls] = cvCreateMat( var_count, var_count, CV_64FC1 )); in train() 167 CV_CALL(cvZero( count[cls] )); in train() [all …]
|
D | mlcnn.cpp | 178 CV_CALL(cnn_model = (CvCNNStatModel*)cvCreateStatModel( 182 CV_CALL(cvPrepareTrainData( "cvTrainCNNClassifier", 192 CV_CALL(cnn_model->etalons = (CvMat*)cvClone( params->etalons )); 194 CV_CALL( icvTrainCNNetwork( cnn_model->network, out_train_data, responses, 237 CV_CALL(X = (CvMat**)cvAlloc( (n_layers+1)*sizeof(CvMat*) )); 238 CV_CALL(dE_dX = (CvMat**)cvAlloc( (n_layers+1)*sizeof(CvMat*) )); 242 CV_CALL(X[0] = cvCreateMat( img_height*img_width,1,CV_32FC1 )); 243 CV_CALL(dE_dX[0] = cvCreateMat( 1, X[0]->rows, CV_32FC1 )); 246 CV_CALL(X[k+1] = cvCreateMat( layer->n_output_planes*layer->output_height* 248 CV_CALL(dE_dX[k+1] = cvCreateMat( 1, X[k+1]->rows, CV_32FC1 )); [all …]
|
D | mltestset.cpp | 105 CV_CALL( *samples = cvCreateMat( num_samples, num_features, CV_32FC1 ) ); in cvCreateTestSet() 106 CV_CALL( *responses = cvCreateMat( 1, num_samples, CV_32SC1 ) ); in cvCreateTestSet() 107 CV_CALL( mean = cvCreateMat( 1, num_features, CV_32FC1 ) ); in cvCreateTestSet() 108 CV_CALL( cvSetZero( mean ) ); in cvCreateTestSet() 109 CV_CALL( cov = cvCreateMat( num_features, num_features, CV_32FC1 ) ); in cvCreateTestSet() 110 CV_CALL( cvSetIdentity( cov ) ); in cvCreateTestSet() 114 CV_CALL( cvRandMVNormal( mean, cov, *samples ) ); in cvCreateTestSet() 118 CV_CALL( storage = cvCreateMemStorage() ); in cvCreateTestSet() 119 CV_CALL( cvStartWriteSeq( 0, sizeof( CvSeq ), sizeof( CvDI ), storage, &writer )); in cvCreateTestSet() 122 CV_CALL( cvGetRow( *samples, &sample, i )); in cvCreateTestSet() [all …]
|
D | mlem.cpp | 229 CV_CALL( cvPreparePredictData( _sample, dims, 0, params.nclusters, _probs, &sample_data )); in predict() 237 CV_CALL( buffer = cvAlloc( size )); in predict() 284 CV_CALL( cvConvertScale( &expo, &expo, -0.5 )); in predict() 285 CV_CALL( cvExp( &expo, &expo )); in predict() 287 CV_CALL( cvReshape( &expo, &expo, 0, nclusters )); in predict() 288 CV_CALL( cvConvertScale( &expo, _probs, 1./cvSum( &expo ).val[0] )); in predict() 321 CV_CALL( cvPrepareTrainData( "cvEM", in train() 327 CV_CALL( set_params( _params, train_data )); in train() 341 CV_CALL( log_weight_div_det = cvCreateMat( 1, nclusters, CV_64FC1 )); in train() 342 CV_CALL( probs = cvCreateMat( nsamples, nclusters, CV_64FC1 )); in train() [all …]
|
D | mlrtrees.cpp | 71 CV_CALL(result = do_train(_subsample_idx)); in train() 250 CV_CALL(data->set_data( _train_data, _tflag, _responses, _var_idx, in train() 263 CV_CALL(active_var_mask = cvCreateMat( 1, var_count, CV_8UC1 )); in train() 266 CV_CALL(var_importance = cvCreateMat( 1, var_count, CV_32FC1 )); in train() 277 CV_CALL(result = grow_forest( params.term_crit )); in train() 327 CV_CALL(oob_sample_votes = cvCreateMat( nsamples, nclasses, CV_32SC1 )); in grow_forest() 336 CV_CALL(oob_responses = cvCreateMat( 2, nsamples, CV_32FC1 )); in grow_forest() 341 CV_CALL(sample_idx_mask_for_tree = cvCreateMat( 1, nsamples, CV_8UC1 )); in grow_forest() 342 CV_CALL(sample_idx_for_tree = cvCreateMat( 1, nsamples, CV_32SC1 )); in grow_forest() 343 CV_CALL(oob_samples_perm_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); in grow_forest() [all …]
|
D | mlsvm.cpp | 1333 CV_CALL( decision_func = df = in do_train() 1345 CV_CALL( df->alpha = (double*)cvMemStorageAlloc( storage, sv_count*sizeof(df->alpha[0])) ); in do_train() 1346 CV_CALL( sv = (float**)cvMemStorageAlloc( storage, sv_count*sizeof(sv[0]))); in do_train() 1352 CV_CALL( sv[k] = (float*)cvMemStorageAlloc( storage, sample_size )); in do_train() 1377 CV_CALL( class_weights = cvCreateMat( cw->rows, cw->cols, CV_64F )); in do_train() 1378 CV_CALL( cvConvert( cw, class_weights )); in do_train() 1379 CV_CALL( cvScale( class_weights, class_weights, params.C )); in do_train() 1382 CV_CALL( decision_func = df = (CvSVMDecisionFunc*)cvAlloc( in do_train() 1385 CV_CALL( sv_tab = (int*)cvMemStorageAlloc( temp_storage, sample_count*sizeof(sv_tab[0]) )); in do_train() 1387 CV_CALL( class_ranges = (int*)cvMemStorageAlloc( temp_storage, in do_train() [all …]
|
D | ml_inner_functions.cpp | 69 CV_CALL( fs = cvOpenFileStorage( filename, 0, CV_STORAGE_WRITE )); in save() 91 CV_CALL( fs = cvOpenFileStorage( filename, 0, CV_STORAGE_READ )); in load() 286 CV_CALL(centers = cvCreateMat (num_of_clusters, dim, CV_32FC1)); in icvGenerateRandomClusterCenters() 295 CV_CALL(centers = cvCreateMat (num_of_clusters, dim, CV_64FC1)); in icvGenerateRandomClusterCenters() 306 CV_CALL(cvGetCol (data, &data_comp, i)); in icvGenerateRandomClusterCenters() 307 CV_CALL(cvMinMaxLoc (&data_comp, &minVal, &maxVal, &minLoc, &maxLoc)); in icvGenerateRandomClusterCenters() 308 CV_CALL(cvGetCol (centers, ¢ers_comp, i)); in icvGenerateRandomClusterCenters() 309 … CV_CALL(cvRandArr (&rng, ¢ers_comp, CV_RAND_UNI, cvScalarAll(minVal), cvScalarAll(maxVal))); in icvGenerateRandomClusterCenters() 527 CV_CALL( idx = cvCreateMat( 1, idx_selected, CV_32SC1 )); in cvPreprocessIndexArray() 612 CV_CALL( out_var_type = cvCreateMat( 1, var_count, CV_8UC1 )); in cvPreprocessVarType() [all …]
|
/external/opencv/cv/src/ |
D | cvkalman.cpp | 61 CV_CALL( kalman = (CvKalman *)cvAlloc( sizeof( CvKalman ))); in cvCreateKalman() 68 CV_CALL( kalman->state_pre = cvCreateMat( DP, 1, CV_32FC1 )); in cvCreateKalman() 71 CV_CALL( kalman->state_post = cvCreateMat( DP, 1, CV_32FC1 )); in cvCreateKalman() 74 CV_CALL( kalman->transition_matrix = cvCreateMat( DP, DP, CV_32FC1 )); in cvCreateKalman() 77 CV_CALL( kalman->process_noise_cov = cvCreateMat( DP, DP, CV_32FC1 )); in cvCreateKalman() 80 CV_CALL( kalman->measurement_matrix = cvCreateMat( MP, DP, CV_32FC1 )); in cvCreateKalman() 83 CV_CALL( kalman->measurement_noise_cov = cvCreateMat( MP, MP, CV_32FC1 )); in cvCreateKalman() 86 CV_CALL( kalman->error_cov_pre = cvCreateMat( DP, DP, CV_32FC1 )); in cvCreateKalman() 88 CV_CALL( kalman->error_cov_post = cvCreateMat( DP, DP, CV_32FC1 )); in cvCreateKalman() 91 CV_CALL( kalman->gain = cvCreateMat( DP, MP, CV_32FC1 )); in cvCreateKalman() [all …]
|
D | cvfeatureselect.cpp | 91 CV_CALL( img = cvGetMat( img, &stub, &coi1 )); in CV_IMPLEMENT_QSORT() 94 CV_CALL( eig = cvGetMat( eig, &eig_stub, &coi2 )); in CV_IMPLEMENT_QSORT() 98 CV_CALL( _eigImg = cvCreateMat( img->rows, img->cols, CV_32FC1 )); in CV_IMPLEMENT_QSORT() 104 CV_CALL( tmp = cvGetMat( tmp, &tmp_stub, &coi3 )); in CV_IMPLEMENT_QSORT() 108 CV_CALL( _tmpImg = cvCreateMat( img->rows, img->cols, CV_32FC1 )); in CV_IMPLEMENT_QSORT() 114 CV_CALL( mask = cvGetMat( mask, &mask_stub )); in CV_IMPLEMENT_QSORT() 144 CV_CALL( cvCornerHarris( img, eig, block_size, 3, harris_k )); in CV_IMPLEMENT_QSORT() 148 CV_CALL( cvCornerMinEigenVal( img, eig, block_size, 3 )); in CV_IMPLEMENT_QSORT() 150 CV_CALL( cvMinMaxLoc( eig, 0, &max_val, 0, 0, mask )); in CV_IMPLEMENT_QSORT() 151 CV_CALL( cvThreshold( eig, eig, max_val * quality_level, in CV_IMPLEMENT_QSORT() [all …]
|
D | cvcondens.cpp | 69 CV_CALL( CD = (CvConDensation *) cvAlloc( sizeof( CvConDensation ))); in cvCreateConDensation() 75 CV_CALL( CD->flSamples = (float **) cvAlloc( sizeof( float * ) * SamplesNum )); in cvCreateConDensation() 76 CV_CALL( CD->flNewSamples = (float **) cvAlloc( sizeof( float * ) * SamplesNum )); in cvCreateConDensation() 77 CV_CALL( CD->flSamples[0] = (float *) cvAlloc( sizeof( float ) * SamplesNum * DP )); in cvCreateConDensation() 78 CV_CALL( CD->flNewSamples[0] = (float *) cvAlloc( sizeof( float ) * SamplesNum * DP )); in cvCreateConDensation() 87 CV_CALL( CD->State = (float *) cvAlloc( sizeof( float ) * DP )); in cvCreateConDensation() 88 CV_CALL( CD->DynamMatr = (float *) cvAlloc( sizeof( float ) * DP * DP )); in cvCreateConDensation() 89 CV_CALL( CD->flConfidence = (float *) cvAlloc( sizeof( float ) * SamplesNum )); in cvCreateConDensation() 90 CV_CALL( CD->flCumulative = (float *) cvAlloc( sizeof( float ) * SamplesNum )); in cvCreateConDensation() 92 CV_CALL( CD->RandS = (CvRandState *) cvAlloc( sizeof( CvRandState ) * DP )); in cvCreateConDensation() [all …]
|
D | cvhaar.cpp | 139 CV_CALL( cascade = (CvHaarClassifierCascade*)cvAlloc( block_size )); in icvCreateHaarClassifierCascade() 268 CV_CALL( out = (CvHidHaarClassifierCascade*)cvAlloc( datasize )); in icvCreateHidHaarClassifierCascade() 351 CV_CALL( out->ipp_stages = (void**)cvAlloc( ipp_datasize )); in icvCreateHidHaarClassifierCascade() 354 CV_CALL( ipp_features = (CvRect*)cvAlloc( max_count*3*sizeof(ipp_features[0]) )); in icvCreateHidHaarClassifierCascade() 355 CV_CALL( ipp_weights = (float*)cvAlloc( max_count*3*sizeof(ipp_weights[0]) )); in icvCreateHidHaarClassifierCascade() 356 CV_CALL( ipp_thresholds = (float*)cvAlloc( max_count*sizeof(ipp_thresholds[0]) )); in icvCreateHidHaarClassifierCascade() 357 CV_CALL( ipp_val1 = (float*)cvAlloc( max_count*sizeof(ipp_val1[0]) )); in icvCreateHidHaarClassifierCascade() 358 CV_CALL( ipp_val2 = (float*)cvAlloc( max_count*sizeof(ipp_val2[0]) )); in icvCreateHidHaarClassifierCascade() 359 CV_CALL( ipp_counts = (int*)cvAlloc( max_count*sizeof(ipp_counts[0]) )); in icvCreateHidHaarClassifierCascade() 453 CV_CALL( sum = cvGetMat( sum, &sum_stub, &coi0 )); in cvSetImagesForHaarClassifierCascade() [all …]
|
D | cvhough.cpp | 117 CV_CALL( accum = (int*)cvAlloc( sizeof(accum[0]) * (numangle+2) * (numrho+2) )); in CV_IMPLEMENT_QSORT_EX() 118 CV_CALL( sort_buf = (int*)cvAlloc( sizeof(accum[0]) * numangle * numrho )); in CV_IMPLEMENT_QSORT_EX() 119 CV_CALL( tabSin = (float*)cvAlloc( sizeof(tabSin[0]) * numangle )); in CV_IMPLEMENT_QSORT_EX() 120 CV_CALL( tabCos = (float*)cvAlloc( sizeof(tabCos[0]) * numangle )); in CV_IMPLEMENT_QSORT_EX() 263 CV_CALL( sinTable = (float*)cvAlloc( 5 * tn * stn * sizeof( float ))); in IMPLEMENT_LIST() 270 CV_CALL( caccum = (uchar*)cvAlloc( rn * tn * sizeof( caccum[0] ))); in IMPLEMENT_LIST() 278 CV_CALL( x = (int*)cvAlloc( fn * sizeof(x[0]))); in IMPLEMENT_LIST() 279 CV_CALL( y = (int*)cvAlloc( fn * sizeof(y[0]))); in IMPLEMENT_LIST() 352 CV_CALL( buffer = (uchar *) cvAlloc(srn * stn + 2)); in IMPLEMENT_LIST() 517 CV_CALL( accum = cvCreateMat( numangle, numrho, CV_32SC1 )); in icvHoughLinesProbabalistic() [all …]
|
D | cvmotempl.cpp | 124 CV_CALL( silh = cvGetMat( silh, &silhstub )); in cvUpdateMotionHistory() 125 CV_CALL( mhi = cvGetMat( mhi, &mhistub )); in cvUpdateMotionHistory() 181 CV_CALL( mhi = cvGetMat( mhi, &mhistub )); in cvCalcMotionGradient() 182 CV_CALL( mask = cvGetMat( mask, &maskstub )); in cvCalcMotionGradient() 183 CV_CALL( orient = cvGetMat( orient, &orientstub )); in cvCalcMotionGradient() 213 CV_CALL( dX_min = cvCreateMat( mhi->rows, mhi->cols, CV_32F )); in cvCalcMotionGradient() 214 CV_CALL( dY_max = cvCreateMat( mhi->rows, mhi->cols, CV_32F )); in cvCalcMotionGradient() 217 CV_CALL( cvSobel( mhi, dX_min, 1, 0, aperture_size )); in cvCalcMotionGradient() 218 CV_CALL( cvSobel( mhi, dY_max, 0, 1, aperture_size )); in cvCalcMotionGradient() 249 CV_CALL( el = cvCreateStructuringElementEx( aperture_size, aperture_size, in cvCalcMotionGradient() [all …]
|
D | cvadapthresh.cpp | 62 CV_CALL( cvSetZero( dst )); in icvAdaptiveThreshold_MeanC() 72 CV_CALL( mean = cvCreateMat( rows, cols, CV_8UC1 )); in icvAdaptiveThreshold_MeanC() 74 CV_CALL( cvSmooth( src, mean, method == CV_ADAPTIVE_THRESH_MEAN_C ? in icvAdaptiveThreshold_MeanC() 118 CV_CALL( src = cvGetMat( srcIm, &src_stub )); in cvAdaptiveThreshold() 119 CV_CALL( dst = cvGetMat( dstIm, &dst_stub )); in cvAdaptiveThreshold() 134 CV_CALL( icvAdaptiveThreshold_MeanC( src, dst, method, cvRound(maxValue),type, in cvAdaptiveThreshold()
|
D | cvcorner.cpp | 276 CV_CALL( tempsrc = icvIPPFilterInit( src, buf_size, in icvCornerEigenValsVecs() 289 CV_CALL( dx_filter.init_deriv( size.width, depth, d_depth, 1, 0, aperture_size0 )); in icvCornerEigenValsVecs() 290 CV_CALL( dy_filter.init_deriv( size.width, depth, d_depth, 0, 1, aperture_size0 )); in icvCornerEigenValsVecs() 295 CV_CALL( Dx = cvCreateMat( max_dy, aligned_width, d_depth )); in icvCornerEigenValsVecs() 296 CV_CALL( Dy = cvCreateMat( max_dy, aligned_width, d_depth )); in icvCornerEigenValsVecs() 297 CV_CALL( cov = cvCreateMat( max_dy + block_size + 1, size.width, CV_32FC3 )); in icvCornerEigenValsVecs() 298 CV_CALL( sqrt_buf = cvCreateMat( 2, size.width, CV_32F )); in icvCornerEigenValsVecs() 305 CV_CALL(blur_filter.init(size.width, CV_32FC3, CV_32FC3, 0, cvSize(block_size,block_size))); in icvCornerEigenValsVecs() 430 CV_CALL( src = cvGetMat( srcarr, &stub )); in cvCornerMinEigenVal() 431 CV_CALL( eigenv = cvGetMat( eigenv, &eigstub )); in cvCornerMinEigenVal() [all …]
|
D | cvhistogram.cpp | 58 CV_CALL( hist = (CvHistogram *)cvAlloc( sizeof( CvHistogram ))); in cvCreateHist() 65 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvCreateHist() 67 CV_CALL( cvCreateData( hist->bins )); in cvCreateHist() 71 CV_CALL( hist->bins = cvCreateSparseMat( dims, sizes, CV_HIST_DEFAULT_TYPE )); in cvCreateHist() 79 CV_CALL( cvSetHistBinRanges( hist, ranges, uniform )); in cvCreateHist() 109 CV_CALL( hist->bins = cvInitMatNDHeader( &hist->mat, dims, sizes, in cvMakeHistHeaderForArray() 117 CV_CALL( cvSetHistBinRanges( hist, ranges, uniform )); in cvMakeHistHeaderForArray() 200 CV_CALL( cvGetMat( hist->bins, &mat, 0, 1 )); in cvThreshHist() 201 CV_CALL( cvThreshold( &mat, &mat, thresh, 0, CV_THRESH_TOZERO )); in cvThreshHist() 237 CV_CALL( cvGetMat( hist->bins, &mat, 0, 1 )); in cvNormalizeHist() [all …]
|
D | cvconvhull.cpp | 268 CV_CALL( ptseq = cvPointSeqFromMat( in cvConvexHull2() 276 CV_CALL( hullseq = cvCreateSeq( in cvConvexHull2() 283 CV_CALL( hullseq = cvCreateSeq( in cvConvexHull2() 308 CV_CALL( hullseq = cvMakeSeqHeaderForArray( in cvConvexHull2() 332 CV_CALL( pointer = (CvPoint**)cvAlloc( ptseq->total*sizeof(pointer[0]) )); in cvConvexHull2() 333 CV_CALL( stack = (int*)cvAlloc( (ptseq->total + 2)*sizeof(stack[0]) )); in cvConvexHull2() 414 CV_CALL( icvCalcAndWritePtIndices( pointer, tl_stack, in cvConvexHull2() 416 CV_CALL( icvCalcAndWritePtIndices( pointer, tr_stack, in cvConvexHull2() 469 CV_CALL( icvCalcAndWritePtIndices( pointer, bl_stack, in cvConvexHull2() 471 CV_CALL( icvCalcAndWritePtIndices( pointer, br_stack, in cvConvexHull2() [all …]
|
D | cvmorph.cpp | 183 CV_CALL( nz = cvCountNonZero(_element)); in init() 191 CV_CALL( CvBaseImageFilter::init( _max_width, _src_dst_type, _src_dst_type, in init() 233 CV_CALL( element = cvCreateMat( _ksize.height, _ksize.width, CV_8UC1 )); in init() 234 CV_CALL( el_sparse = (uchar*)cvAlloc( in init() 240 CV_CALL( cvConvert( _element, element )); in init() 244 CV_CALL( init_binary_element( element, el_shape, anchor )); in init() 746 CV_CALL( element = (IplConvKernel *)cvAlloc(element_size + 32)); in cvCreateStructuringElementEx() 767 CV_CALL( CvMorphology::init_binary_element(&el_hdr, in cvCreateStructuringElementEx() 835 CV_CALL( src = cvGetMat( src, &srcstub, &coi1 )); in icvMorphOp() 847 CV_CALL( dst = cvGetMat( dst, &dststub, &coi2 )); in icvMorphOp() [all …]
|
D | cvmatchcontours.cpp | 77 CV_CALL( cvMoments( contour1, &moments )); in cvMatchShapes() 80 CV_CALL( cvGetHuMoments( &moments, &huMoments )); in cvMatchShapes() 92 CV_CALL( cvMoments( contour2, &moments )); in cvMatchShapes() 95 CV_CALL( cvGetHuMoments( &moments, &huMoments )); in cvMatchShapes() 258 CV_CALL( ptr_p1 = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * ))); in cvMatchContourTrees() 259 CV_CALL( ptr_p2 = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * ))); in cvMatchContourTrees() 261 CV_CALL( ptr_n1 = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * ))); in cvMatchContourTrees() 262 CV_CALL( ptr_n2 = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * ))); in cvMatchContourTrees()
|
D | cvtemplmatch.cpp | 66 CV_CALL( img = cvGetMat( img, &istub )); in icvCrossCorr() 67 CV_CALL( templ = cvGetMat( templ, &tstub )); in icvCrossCorr() 68 CV_CALL( corr = cvGetMat( corr, &cstub )); in icvCrossCorr() 132 CV_CALL( dft_templ = cvCreateMat( dftsize.height*templ_cn, dftsize.width, max_depth )); in icvCrossCorr() 137 CV_CALL( dft_img[k] = cvCreateMat( dftsize.height, dftsize.width, max_depth )); in icvCrossCorr() 152 CV_CALL( buf[k] = cvAlloc(buf_size) ); in icvCrossCorr() 353 CV_CALL( img = cvGetMat( img, &stub, &coi1 )); in cvMatchTemplate() 354 CV_CALL( templ = cvGetMat( templ, &tstub, &coi2 )); in cvMatchTemplate() 355 CV_CALL( result = cvGetMat( result, &rstub )); in cvMatchTemplate() 418 CV_CALL( icvCrossCorr( img, templ, result )); in cvMatchTemplate() [all …]
|
/external/opencv/cxcore/src/ |
D | cxpersistence.cpp | 213 CV_CALL( map = (CvGenericHash*)cvCreateSet( flags, header_size, elem_size, storage )); in cvCreateMap() 217 CV_CALL( map->table = (void**)cvMemStorageAlloc( storage, start_tab_size )); in cvCreateMap() 261 CV_CALL( collection->data.map = cvCreateMap( 0, sizeof(CvFileNodeHash), in icvFSCreateCollection() 267 CV_CALL( seq = cvCreateSeq( 0, sizeof(CvSeq), sizeof(CvFileNode), fs->memstorage )); in icvFSCreateCollection() 321 CV_CALL( new_ptr = (char*)cvAlloc( new_size + 256 )); in icvFSDoResize() 464 CV_CALL( node->str = cvMemStorageAllocString( map->storage, str, len )); in cvGetHashedKey() 917 CV_CALL( str_hash_node = cvGetHashedKey( fs, ptr, (int)(endptr - ptr), 1 )); in icvYMLParseKey() 918 CV_CALL( *value_placeholder = cvGetFileNode( fs, map_node, str_hash_node, 1 )); in icvYMLParseKey() 979 CV_CALL( node->info = cvFindType( ptr )); in icvYMLParseValue() 985 CV_CALL( ptr = icvYMLSkipSpaces( fs, endptr, min_indent, INT_MAX )); in icvYMLParseValue() [all …]
|
D | cxmatrix.cpp | 65 CV_CALL( mat = cvGetMat( mat, &stub, &coi )); in cvSetIdentity() 166 CV_CALL( mat = cvGetDiag( array, &stub )); in cvTrace() 167 CV_CALL( sum = cvSum( mat )); in cvTrace() 465 CV_CALL( src = cvGetMat( src, &sstub, &coi )); in CV_DEF_INIT_PIXSIZE_TAB_2D() 483 CV_CALL( dst = cvGetMat( dst, &dstub, &coi )); in CV_DEF_INIT_PIXSIZE_TAB_2D() 782 CV_CALL( mat = cvGetMat( mat, &stub )); in cvDet() 868 CV_CALL( buffer = (uchar*)cvAlloc( buf_size )); in cvDet() 871 CV_CALL( cvInitMatHeader( &tmat, size.height, size.width, worktype, buffer )); in cvDet() 874 CV_CALL( cvCopy( mat, &tmat )); in cvDet() 877 CV_CALL( cvConvert( mat, &tmat )); in cvDet() [all …]
|
D | cxlogic.cpp | 208 CV_CALL( src = cvGetMat( src, &srcstub, &coi1 )); in icvLogicS() 216 CV_CALL( dst = cvGetMat( dst, &dststub, &coi2 )); in icvLogicS() 229 CV_CALL( cvInitNArrayIterator( 2, arrs, 0, stubs, &iterator )); in icvLogicS() 236 CV_CALL( cvScalarToRawData( scalar, buf, type, 1 )); in icvLogicS() 274 CV_CALL( mask = cvGetMat( mask, &maskstub )); in icvLogicS() 292 CV_CALL( buffer = (uchar*)cvAlloc( buf_size )); in icvLogicS() 307 CV_CALL( cvScalarToRawData( scalar, buf, type, 1 )); in icvLogicS() 366 CV_CALL( src1 = cvGetMat( src1, &srcstub1, &coi1 )); in icvLogic() 374 CV_CALL( src2 = cvGetMat( src2, &srcstub2, &coi2 )); in icvLogic() 382 CV_CALL( dst = cvGetMat( dst, &dststub, &coi3 )); in icvLogic() [all …]
|
/external/opencv/cvaux/src/ |
D | cvlevmar.cpp | 131 CV_CALL( vectX = cvCreateMat(numVal, 1, CV_64F) ); in cvLevenbergMarquardtOptimization() 132 CV_CALL( vectNewX = cvCreateMat(numVal, 1, CV_64F) ); in cvLevenbergMarquardtOptimization() 133 CV_CALL( resFunc = cvCreateMat(numFunc,1, CV_64F) ); in cvLevenbergMarquardtOptimization() 134 CV_CALL( resNewFunc = cvCreateMat(numFunc,1, CV_64F) ); in cvLevenbergMarquardtOptimization() 135 CV_CALL( error = cvCreateMat(numFunc,1, CV_64F) ); in cvLevenbergMarquardtOptimization() 136 CV_CALL( errorNew = cvCreateMat(numFunc,1, CV_64F) ); in cvLevenbergMarquardtOptimization() 137 CV_CALL( Jac = cvCreateMat(numFunc,numVal, CV_64F) ); in cvLevenbergMarquardtOptimization() 138 CV_CALL( delta = cvCreateMat(numVal, 1, CV_64F) ); in cvLevenbergMarquardtOptimization() 139 CV_CALL( matrJtJ = cvCreateMat(numVal, numVal, CV_64F) ); in cvLevenbergMarquardtOptimization() 140 CV_CALL( matrJtJN = cvCreateMat(numVal, numVal, CV_64F) ); in cvLevenbergMarquardtOptimization() [all …]
|
D | cvlevmarprojbandle.cpp | 391 CV_CALL(shifts = (int*)cvAlloc(sizeof(int)*numImages)); in icvComputeMatrixVAll() 671 CV_CALL(shifts = (int*)cvAlloc(sizeof(int)*numImages)); in icvComputeJacErrorPoint() 784 CV_CALL(matrA_dat = (double*)cvAlloc(3*numImages * 4 * sizeof(double))); in icvReconstructPoints4DStatus() 785 CV_CALL(matrW_dat = (double*)cvAlloc(3*numImages * 4 * sizeof(double))); in icvReconstructPoints4DStatus() 1027 CV_CALL(ptr = cvAlloc(size)); in icvClearAlloc() 1132 CV_CALL( vectorX_points4D = cvCreateMat(4,numPoints,CV_64F)); in cvOptimizeLevenbergMarquardtBundle() 1133 CV_CALL( vectorX_projMatrs = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages)); in cvOptimizeLevenbergMarquardtBundle() 1135 CV_CALL( newVectorX_points4D = cvCreateMat(4,numPoints,CV_64F)); in cvOptimizeLevenbergMarquardtBundle() 1136 CV_CALL( newVectorX_projMatrs = (CvMat**)icvClearAlloc(sizeof(CvMat*)*numImages)); in cvOptimizeLevenbergMarquardtBundle() 1138 CV_CALL( changeVectorX_points4D = cvCreateMat(4,numPoints,CV_64F)); in cvOptimizeLevenbergMarquardtBundle() [all …]
|