• Home
  • Raw
  • Download

Lines Matching refs:GLCM

219 cvReleaseGLCM( CvGLCM** GLCM, int flag )  in cvReleaseGLCM()  argument
227 if( !GLCM ) in cvReleaseGLCM()
230 if( *GLCM ) in cvReleaseGLCM()
233 if( (flag == CV_GLCM_GLCM || flag == CV_GLCM_ALL) && (*GLCM)->matrices ) in cvReleaseGLCM()
235 for( matrixLoop = 0; matrixLoop < (*GLCM)->numMatrices; matrixLoop++ ) in cvReleaseGLCM()
237 if( (*GLCM)->matrices[ matrixLoop ] ) in cvReleaseGLCM()
239 cvFree( (*GLCM)->matrices[matrixLoop] ); in cvReleaseGLCM()
240 cvFree( (*GLCM)->matrices + matrixLoop ); in cvReleaseGLCM()
244 cvFree( &((*GLCM)->matrices) ); in cvReleaseGLCM()
247 if( (flag == CV_GLCM_DESC || flag == CV_GLCM_ALL) && (*GLCM)->descriptors ) in cvReleaseGLCM()
249 for( matrixLoop = 0; matrixLoop < (*GLCM)->numMatrices; matrixLoop++ ) in cvReleaseGLCM()
251 cvFree( (*GLCM)->descriptors + matrixLoop ); in cvReleaseGLCM()
253 cvFree( &((*GLCM)->descriptors) ); in cvReleaseGLCM()
258 cvFree( GLCM ); in cvReleaseGLCM()
532 CV_IMPL double cvGetGLCMDescriptor( CvGLCM* GLCM, int step, int descriptor ) in cvGetGLCMDescriptor() argument
540 if( !GLCM ) in cvGetGLCMDescriptor()
543 if( !(GLCM->descriptors) ) in cvGetGLCMDescriptor()
546 if( (unsigned)step >= (unsigned)(GLCM->numMatrices)) in cvGetGLCMDescriptor()
549 if( (unsigned)descriptor >= (unsigned)(GLCM->numDescriptors)) in cvGetGLCMDescriptor()
552 value = GLCM->descriptors[step][descriptor]; in cvGetGLCMDescriptor()
561 cvGetGLCMDescriptorStatistics( CvGLCM* GLCM, int descriptor, in cvGetGLCMDescriptorStatistics() argument
577 if( !GLCM ) in cvGetGLCMDescriptorStatistics()
580 if( !(GLCM->descriptors)) in cvGetGLCMDescriptorStatistics()
583 if( (unsigned)descriptor >= (unsigned)(GLCM->numDescriptors) ) in cvGetGLCMDescriptorStatistics()
586 numMatrices = GLCM->numMatrices; in cvGetGLCMDescriptorStatistics()
590 double temp = GLCM->descriptors[ matrixLoop ][ descriptor ]; in cvGetGLCMDescriptorStatistics()
608 cvCreateGLCMImage( CvGLCM* GLCM, int step ) in cvCreateGLCMImage() argument
619 if( !GLCM ) in cvCreateGLCMImage()
622 if( !(GLCM->matrices) ) in cvCreateGLCMImage()
625 if( (unsigned)step >= (unsigned)(GLCM->numMatrices) ) in cvCreateGLCMImage()
628 …dest = cvCreateImage( cvSize( GLCM->matrixSideLength, GLCM->matrixSideLength ), IPL_DEPTH_32F, 1 ); in cvCreateGLCMImage()
631 for( sideLoop1 = 0; sideLoop1 < GLCM->matrixSideLength; in cvCreateGLCMImage()
634 for( sideLoop2=0; sideLoop2 < GLCM->matrixSideLength; sideLoop2++ ) in cvCreateGLCMImage()
636 double matrixValue = GLCM->matrices[step][sideLoop1][sideLoop2]; in cvCreateGLCMImage()