Lines Matching defs:destGLCM

74                                              CvSize srcImageSize, CvGLCM* destGLCM,
78 icvCreateGLCMDescriptors_AllowDoubleNest( CvGLCM* destGLCM, int matrixIndex );
269 CvGLCM* destGLCM,
280 int matrixSideLength = destGLCM->matrixSideLength;
286 CV_CALL( destGLCM->matrices = (double***)cvAlloc( sizeof(matrices[0])*numSteps ));
287 matrices = destGLCM->matrices;
312 int pixelValue1 = destGLCM->forwardLookupTable[srcImageData[lineOffset + colLoop]];
323 int pixelValue2 = destGLCM->forwardLookupTable[ srcImageData[ lineOffset + colLoop + memoryStep ] ];
348 destGLCM->matrices = matrices;
355 cvReleaseGLCM( &destGLCM, CV_GLCM_GLCM );
360 cvCreateGLCMDescriptors( CvGLCM* destGLCM, int descriptorOptimizationType )
368 if( !destGLCM )
371 if( !(destGLCM->matrices) )
374 CV_CALL( cvReleaseGLCM( &destGLCM, CV_GLCM_DESC ));
376 if( destGLCM->optimizationType != CV_GLCM_OPTIMIZATION_HISTOGRAM )
378 destGLCM->descriptorOptimizationType = destGLCM->numDescriptors = descriptorOptimizationType;
383 // destGLCM->descriptorOptimizationType = destGLCM->numDescriptors = CV_GLCMDESC_OPTIMIZATION_HISTOGRAM;
386 CV_CALL( destGLCM->descriptors = (double**)
387 cvAlloc( destGLCM->numMatrices*sizeof(destGLCM->descriptors[0])));
389 for( matrixLoop = 0; matrixLoop < destGLCM->numMatrices; matrixLoop ++ )
391 CV_CALL( destGLCM->descriptors[ matrixLoop ] =
392 (double*)cvAlloc( destGLCM->numDescriptors*sizeof(destGLCM->descriptors[0][0])));
393 memset( destGLCM->descriptors[matrixLoop], 0, destGLCM->numDescriptors*sizeof(double) );
395 switch( destGLCM->descriptorOptimizationType )
398 icvCreateGLCMDescriptors_AllowDoubleNest( destGLCM, matrixLoop );
406 icvCreateGLCMDescriptors_AllowTripleNest( destGLCM, matrixLoop );
409 if(matrixLoop < destGLCM->numMatrices>>1)
410 icvCreateGLCMDescriptors_Histogram( destGLCM, matrixLoop);
419 cvReleaseGLCM( &destGLCM, CV_GLCM_DESC );
424 icvCreateGLCMDescriptors_AllowDoubleNest( CvGLCM* destGLCM, int matrixIndex )
427 int matrixSideLength = destGLCM->matrixSideLength;
429 double** matrix = destGLCM->matrices[ matrixIndex ];
430 double* descriptors = destGLCM->descriptors[ matrixIndex ];
442 int actualSideLoop1 = destGLCM->reverseLookupTable[ sideLoop1 ];
448 int actualSideLoop2 = destGLCM->reverseLookupTable[ sideLoop2 ];
489 int actualSideLoop1 = destGLCM->reverseLookupTable[ sideLoop1 ];
497 int actualSideLoop2 = destGLCM->reverseLookupTable[ sideLoop2 ];