Lines Matching defs:matrices
60 double*** matrices;
140 newGLCM->matrices = 0;
233 if( (flag == CV_GLCM_GLCM || flag == CV_GLCM_ALL) && (*GLCM)->matrices )
237 if( (*GLCM)->matrices[ matrixLoop ] )
239 cvFree( (*GLCM)->matrices[matrixLoop] );
240 cvFree( (*GLCM)->matrices + matrixLoop );
244 cvFree( &((*GLCM)->matrices) );
283 double*** matrices = 0;
285 // allocate memory to the matrices
286 CV_CALL( destGLCM->matrices = (double***)cvAlloc( sizeof(matrices[0])*numSteps ));
287 matrices = destGLCM->matrices;
291 CV_CALL( matrices[stepLoop] = (double**)cvAlloc( sizeof(matrices[0])*matrixSideLength ));
292 CV_CALL( matrices[stepLoop][0] = (double*)cvAlloc( sizeof(matrices[0][0])*
295 memset( matrices[stepLoop][0], 0, matrixSideLength*matrixSideLength*
296 sizeof(matrices[0][0]) );
300 matrices[stepLoop][sideLoop1] = matrices[stepLoop][sideLoop1-1] + matrixSideLength;
326 matrices[stepLoop][pixelValue1][pixelValue2] ++;
327 matrices[stepLoop][pixelValue2][pixelValue1] ++;
336 // normalize matrices. each element is a probability of gray value i,j adjacency in direction/magnitude k
343 matrices[stepLoop][sideLoop1][sideLoop2] /= double(stepIncrementsCounter[stepLoop]);
348 destGLCM->matrices = matrices;
371 if( !(destGLCM->matrices) )
372 CV_ERROR( CV_StsNullPtr, "Matrices are not allocated" );
429 double** matrix = destGLCM->matrices[ matrixIndex ];
622 if( !(GLCM->matrices) )
623 CV_ERROR( CV_StsNullPtr, "Matrices are not allocated" );
636 double matrixValue = GLCM->matrices[step][sideLoop1][sideLoop2];