Home
last modified time | relevance | path

Searched refs:cvAlloc (Results 1 – 25 of 88) sorted by relevance

1234

/external/opencv/cv/src/
Dcvcondens.cpp69 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 …]
Dcvcanny.cpp101 CV_CALL( buffer = cvAlloc( buf_size )); in cvCanny()
125 CV_CALL( buffer = cvAlloc( (size.width+2)*(size.height+2) + in cvCanny()
135 CV_CALL( stack_top = stack_bottom = (uchar**)cvAlloc( maxsize*sizeof(stack_top[0]) )); in cvCanny()
223 CV_CALL( new_stack_bottom = (uchar**)cvAlloc( maxsize * sizeof(stack_top[0])) ); in cvCanny()
312 CV_CALL( new_stack_bottom = (uchar**)cvAlloc( maxsize * sizeof(stack_top[0])) ); in cvCanny()
Dcvsnakes.cpp149 gradient = (float *) cvAlloc( roi.height * roi.width * sizeof( float )); in icvSnake8uC1R()
153 map = (uchar *) cvAlloc( map_width * map_height ); in icvSnake8uC1R()
162 Econt = (float *) cvAlloc( neighbors * sizeof( float )); in icvSnake8uC1R()
163 Ecurv = (float *) cvAlloc( neighbors * sizeof( float )); in icvSnake8uC1R()
164 Eimg = (float *) cvAlloc( neighbors * sizeof( float )); in icvSnake8uC1R()
165 E = (float *) cvAlloc( neighbors * sizeof( float )); in icvSnake8uC1R()
Dcvmatchcontours.cpp258 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()
Dcvcontourtree.cpp115 pt_p = (CvPoint *) cvAlloc( lpt * sizeof( CvPoint )); in icvCreateContourTree()
116 pt_n = (CvPoint *) cvAlloc( lpt * sizeof( CvPoint )); in icvCreateContourTree()
118 num_p = (int *) cvAlloc( lpt * sizeof( int )); in icvCreateContourTree()
119 num_n = (int *) cvAlloc( lpt * sizeof( int )); in icvCreateContourTree()
125 ptr_p = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * )); in icvCreateContourTree()
126 ptr_n = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * )); in icvCreateContourTree()
728 ptr_buf = (_CvTrianAttr **) cvAlloc( lpt * sizeof( _CvTrianAttr * )); in cvContourFromContourTree()
733 level_buf = (int *) cvAlloc( lpt * (sizeof( int ))); in cvContourFromContourTree()
Dcvhough.cpp117 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()
978 CV_CALL( sort_buf = (int*)cvAlloc( MAX(center_count,nz_count)*sizeof(sort_buf[0]) )); in icvHoughCirclesGradient()
Dcvoptflowhs.cpp158 MemX[k] = (float *) cvAlloc( (imgSize.height) * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
162 MemY[k] = (float *) cvAlloc( (imgSize.width) * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
167 VelBufX[k] = (float *) cvAlloc( imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
171 VelBufY[k] = (float *) cvAlloc( imageWidth * sizeof( float )); in icvCalcOpticalFlowHS_8u32fR()
179 II = (icvDerProductEx *) cvAlloc( BufferSize * sizeof( icvDerProductEx )); in icvCalcOpticalFlowHS_8u32fR()
Dcvlkpyramid.cpp149 CV_CALL( *buffer = (uchar *)cvAlloc( bufferBytes )); in icvInitPyramidalAlgorithm()
374 CV_CALL( status = _status = (char*)cvAlloc( count*sizeof(_status[0]) )); in cvCalcOpticalFlowPyrLK()
399 CV_CALL( error = _error = (float*)cvAlloc( count*sizeof(_error[0]) )); in cvCalcOpticalFlowPyrLK()
418 CV_CALL( buffer = (uchar*)cvAlloc( bufferBytes )); in cvCalcOpticalFlowPyrLK()
772 CV_CALL( buffer = (uchar*)cvAlloc(bufferBytes)); in cvCalcAffineFlowPyrLK()
775 CV_CALL( status = _status = (char*)cvAlloc(count) ); in cvCalcAffineFlowPyrLK()
1229 CV_CALL( pA = (CvPoint2D32f*)cvAlloc( count*sizeof(pA[0]) )); in cvEstimateRigidTransform()
1230 CV_CALL( pB = (CvPoint2D32f*)cvAlloc( count*sizeof(pB[0]) )); in cvEstimateRigidTransform()
1231 CV_CALL( status = (char*)cvAlloc( count*sizeof(status[0]) )); in cvEstimateRigidTransform()
1272 CV_CALL( pA = (CvPoint2D32f*)cvAlloc( count*sizeof(pA[0]) )); in cvEstimateRigidTransform()
[all …]
D_cvmatrix.h55 #define icvCreateVector_32f( len ) (float*)cvAlloc( (len)*sizeof(float))
56 #define icvCreateVector_64d( len ) (double*)cvAlloc( (len)*sizeof(double))
57 #define icvCreateMatrix_32f( w, h ) (float*)cvAlloc( (w)*(h)*sizeof(float))
58 #define icvCreateMatrix_64d( w, h ) (double*)cvAlloc( (w)*(h)*sizeof(double))
Dcvdominants.cpp89 sharpness = (float *) cvAlloc( n * sizeof( float )); in icvFindDominantPointsIPAN()
90 distance = (float *) cvAlloc( n * sizeof( float )); in icvFindDominantPointsIPAN()
92 ptInf = (icvPointInfo *) cvAlloc( n * sizeof( icvPointInfo )); in icvFindDominantPointsIPAN()
Dcvlinefit.cpp389 w = (float *) cvAlloc( count * sizeof( float )); in icvFitLine2D()
390 r = (float *) cvAlloc( count * sizeof( float )); in icvFitLine2D()
539 w = (float *) cvAlloc( count * sizeof( float )); in icvFitLine3D()
540 r = (float *) cvAlloc( count * sizeof( float )); in icvFitLine3D()
695 CV_CALL( buffer = points = (schar*)cvAlloc( ptseq->total*CV_ELEM_SIZE(type) )); in cvFitLine()
Dcvhaar.cpp139 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()
1269 CV_CALL( comps = (CvAvgComp*)cvAlloc( (ncomp+1)*sizeof(comps[0]))); in cvHaarDetectObjects()
[all …]
Dcvoptflowlk.cpp203 MemX[k] = (float *) cvAlloc( (imgSize.height) * sizeof( float )); in icvCalcOpticalFlowLK_8u32fR()
207 MemY[k] = (float *) cvAlloc( (imgSize.width) * sizeof( float )); in icvCalcOpticalFlowLK_8u32fR()
215 II = (icvDerProduct *) cvAlloc( BufferSize * sizeof( icvDerProduct )); in icvCalcOpticalFlowLK_8u32fR()
216 WII = (icvDerProduct *) cvAlloc( BufferSize * sizeof( icvDerProduct )); in icvCalcOpticalFlowLK_8u32fR()
Dcvrotcalipers.cpp99 CvPoint2D32f* vect = (CvPoint2D32f*)cvAlloc( n * sizeof(vect[0]) ); in icvRotatingCalipers()
100 float* inv_vect_length = (float*)cvAlloc( n * sizeof(inv_vect_length[0]) ); in icvRotatingCalipers()
419 CV_CALL( points = (CvPoint2D32f*)cvAlloc( n*sizeof(points[0]) )); in cvMinAreaRect2()
/external/opencv/cvaux/src/
Dcvhmm.cpp74 CvImgObsInfo* obs = (CvImgObsInfo*)cvAlloc( sizeof( CvImgObsInfo) ); in icvCreateObsInfo()
79 obs->obs = (float*)cvAlloc( total * obs_size * sizeof(float) ); in icvCreateObsInfo()
81 obs->state = (int*)cvAlloc( 2 * total * sizeof(int) ); in icvCreateObsInfo()
82 obs->mix = (int*)cvAlloc( total * sizeof(int) ); in icvCreateObsInfo()
144 hmm = (CvEHMM*)cvAlloc( (state_number[0] + 1) * sizeof(CvEHMM) ); in icvCreate2DHMM()
151 all_states = (CvEHMMState *)cvAlloc( real_states * sizeof( CvEHMMState ) ); in icvCreate2DHMM()
165 pointers = (float*)cvAlloc( total_mix * (2/*for mu invvar */ * obs_size + in icvCreate2DHMM()
401 num_samples = (int*)cvAlloc( total * sizeof(int) ); in icvInitMixSegm()
404 counter = (int*)cvAlloc( total * sizeof(int) ); in icvInitMixSegm()
406 samples = (CvVect32f**)cvAlloc( total * sizeof(CvVect32f*) ); in icvInitMixSegm()
[all …]
Dcvtexture.cpp120 CV_CALL( stepDirections = (int*)cvAlloc( numStepDirections*2*sizeof(stepDirections[0]))); in cvCreateGLCM()
126 CV_CALL( memorySteps = (int*)cvAlloc( numStepDirections*sizeof(memorySteps[0]))); in cvCreateGLCM()
137 CV_CALL( newGLCM = (CvGLCM*)cvAlloc(sizeof(newGLCM))); in cvCreateGLCM()
286 CV_CALL( destGLCM->matrices = (double***)cvAlloc( sizeof(matrices[0])*numSteps )); in icvCreateGLCM_LookupTable_8u_C1R()
291 CV_CALL( matrices[stepLoop] = (double**)cvAlloc( sizeof(matrices[0])*matrixSideLength )); in icvCreateGLCM_LookupTable_8u_C1R()
292 CV_CALL( matrices[stepLoop][0] = (double*)cvAlloc( sizeof(matrices[0][0])* in icvCreateGLCM_LookupTable_8u_C1R()
304 CV_CALL( stepIncrementsCounter = (int*)cvAlloc( numSteps*sizeof(stepIncrementsCounter[0]))); in icvCreateGLCM_LookupTable_8u_C1R()
387 cvAlloc( destGLCM->numMatrices*sizeof(destGLCM->descriptors[0]))); in cvCreateGLCMDescriptors()
392 (double*)cvAlloc( destGLCM->numDescriptors*sizeof(destGLCM->descriptors[0][0]))); in cvCreateGLCMDescriptors()
433 (double*)cvAlloc( matrixSideLength * sizeof(marginalProbability[0])); in icvCreateGLCMDescriptors_AllowDoubleNest()
Dcvfindhandregion.cpp108 vv = (float *) cvAlloc( count * sizeof( float )); in icvFindHandRegion()
114 bin_counts = (int *) cvAlloc( nbins * sizeof( int )); in icvFindHandRegion()
126 tmp_number = (CvPoint *) cvAlloc( count * sizeof( CvPoint )); in icvFindHandRegion()
328 vv = (float *) cvAlloc( count * sizeof( float )); in icvFindHandRegionA()
334 bin_counts = (int *) cvAlloc( nbins * sizeof( int )); in icvFindHandRegionA()
351 tmp_number = (CvPoint *) cvAlloc( count * sizeof( CvPoint )); in icvFindHandRegionA()
Dcvcalibfilter.cpp144 etalonParams = (double*)cvAlloc( arrSize ); in SetEtalon()
153 etalonPoints = (CvPoint2D32f*)cvAlloc( arrSize ); in SetEtalon()
265 (CvPoint3D32f*)cvAlloc( n * etalonPointCount * sizeof(buffer[0])); in Stop()
267 float* rotMatr = (float*)cvAlloc( n * 9 * sizeof(rotMatr[0])); in Stop()
268 float* transVect = (float*)cvAlloc( n * 3 * sizeof(transVect[0])); in Stop()
269 int* counts = (int*)cvAlloc( n * sizeof(counts[0])); in Stop()
369 cvAlloc( tempPointCount0*2*sizeof(latestPoints[0])); in FindEtalon()
464 points[i] = (CvPoint2D32f*)cvAlloc( newMaxPoints * sizeof(prev[0])); in Push()
Dcvlmeds.cpp79 ml = (int *) cvAlloc( sizeof( int ) * num * 3 ); in icvLMedS()
80 mr = (int *) cvAlloc( sizeof( int ) * num * 3 ); in icvLMedS()
415 deviation = (double *) cvAlloc( (num) * sizeof( double )); in icvMedian()
498 index = (int *) cvAlloc( (num) * sizeof( int )); in icvBoltingPoints()
536 *new_ml = (int *) cvAlloc( (length * 3) * sizeof( int )); in icvBoltingPoints()
545 *new_mr = (int *) cvAlloc( (length * 3) * sizeof( int )); in icvBoltingPoints()
590 U = (double *) cvAlloc( (num * 9) * sizeof( double )); in icvPoints8()
692 U = (double *) cvAlloc( (num8) * sizeof( double )); in icvAnalyticPoints8()
697 f = (double *) cvAlloc( (num) * sizeof( double )); in icvAnalyticPoints8()
705 temp2 = (double *) cvAlloc( (num8) * sizeof( double )); in icvAnalyticPoints8()
[all …]
Dcveigenobjects.cpp249 buffer2 = (uchar *)cvAlloc( sizeof( uchar ) * n ); in icvCalcCovarMatrixEx_8u32fR()
550 buf = (uchar *) cvAlloc( sizeof( uchar ) * objSize.width ); in icvCalcEigenObjects_8u32fR()
557 buffer = (void *) cvAlloc( ioBufSize ); in icvCalcEigenObjects_8u32fR()
604 c = (float *) cvAlloc( sizeof( float ) * nObjects * nObjects ); in icvCalcEigenObjects_8u32fR()
628 ev = (float *) cvAlloc( sizeof( float ) * nObjects * nObjects ); in icvCalcEigenObjects_8u32fR()
642 eigVals = (float *) cvAlloc( sizeof( float ) * nObjects ); in icvCalcEigenObjects_8u32fR()
991 buffer = (float *) cvAlloc( sizeof( float ) * size.width * size.height ); in icvEigenDecomposite_8u32fR()
1086 buf = (float *) cvAlloc( sizeof( float ) * size.width * size.height ); in icvEigenProjection_8u32fR()
1097 buffer = (float *) cvAlloc( sizeof( float ) * size.width * size.height ); in icvEigenProjection_8u32fR()
1203 uchar **objects = (uchar **) cvAlloc( sizeof( uchar * ) * nObjects ); in cvCalcCovarMatrixEx()
[all …]
Dcvcorrimages.cpp126 CV_CALL( cornerPoints = (CvPoint2D32f*)cvAlloc( sizeof(CvPoint2D32f) * needNumPoints) ); in icvCreateFeaturePoints()
289 CV_CALL( cornerPoints1 = (CvPoint2D32f*)cvAlloc( sizeof(CvPoint2D32f)*numVisPoints) ); in icvFindCorrForGivenPoints()
290 CV_CALL( cornerPoints2 = (CvPoint2D32f*)cvAlloc( sizeof(CvPoint2D32f)*numVisPoints) ); in icvFindCorrForGivenPoints()
291 CV_CALL( status = (char*)cvAlloc( sizeof(char)*numVisPoints) ); in icvFindCorrForGivenPoints()
292 CV_CALL( errors = (float*)cvAlloc( 2 * sizeof(float)*numVisPoints) ); in icvFindCorrForGivenPoints()
Dcvdpstereo.cpp109 uchar* dsi = (uchar*)cvAlloc(sizeof(uchar)*imgW*dispH); in icvFindStereoCorrespondenceByBirchfieldDP()
110 uchar* edges = (uchar*)cvAlloc(sizeof(uchar)*imgW*imgH); in icvFindStereoCorrespondenceByBirchfieldDP()
111 _CvDPCell* cells = (_CvDPCell*)cvAlloc(sizeof(_CvDPCell)*imgW*MAX(dispH,(imgH+1)/2)); in icvFindStereoCorrespondenceByBirchfieldDP()
112 _CvRightImData* rData = (_CvRightImData*)cvAlloc(sizeof(_CvRightImData)*imgW); in icvFindStereoCorrespondenceByBirchfieldDP()
/external/opencv/ml/src/
Dmlrtrees.cpp322 trees = (CvForestTree**)cvAlloc( sizeof(trees[0])*max_ntrees ); in grow_forest()
343 CV_CALL(oob_samples_perm_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); in grow_forest()
344 CV_CALL(samples_ptr = (float*)cvAlloc( sizeof(float)*nsamples*dims )); in grow_forest()
345 CV_CALL(missing_ptr = (uchar*)cvAlloc( sizeof(uchar)*nsamples*dims )); in grow_forest()
346 CV_CALL(true_resp_ptr = (float*)cvAlloc( sizeof(float)*nsamples )); in grow_forest()
645 trees = (CvForestTree**)cvAlloc( sizeof(trees[0])*ntrees ); in read()
Dml_inner_functions.cpp188 float* knots = (float*)cvAlloc( len * sizeof(float) ); in cvRandSeries()
225 int* sample_clsnum = (int*)cvAlloc( amount * sizeof(int) ); in cvRandGaussMixture()
226 CvMat** utmats = (CvMat**)cvAlloc( clsnum * sizeof(CvMat*) ); in cvRandGaussMixture()
765 CV_CALL( response_ptr = (int**)cvAlloc( sample_count*sizeof(response_ptr[0]))); in cvPreprocessCategoricalResponses()
871 CV_CALL( samples = (float**)cvAlloc(sample_count*sizeof(samples[0]) + in cvGetTrainSamples()
1115 CV_CALL( pairs = (CvSampleResponsePair*)cvAlloc( (sample_count+1)*sizeof(pairs[0]))); in cvSortSamplesByClasses()
1224 CV_CALL( row_sample = (float*)cvAlloc( vec_size )); in cvPreparePredictData()
1264 CV_CALL( row_sample = (float*)cvAlloc( vec_size )); in cvPreparePredictData()
1268 CV_CALL( inverse_comp_idx = (int*)cvAlloc( dims_all*sizeof(int) )); in cvPreparePredictData()
1641 CV_CALL( sparse_rows = (CvSparseMat**)cvAlloc( samples_selected*sizeof(sparse_rows[0])));
[all …]
Dmlestimate.cpp506 (int*)cvAlloc (2 * s_len * sizeof(int)));
545 CV_CALL (res_s_data = crVal->sampleIdxAll = (int*)cvAlloc (2 * s_len * sizeof(int)));
579 folds = crVal->folds = (int*) cvAlloc ((k_fold + 1) * sizeof (int));
601 folds = crVal->folds = (int*) cvAlloc ((k + 1) * sizeof (int));

1234