Definition at line 451 of file Color64.h. Referenced by ExtractCorrelogram50(), ExtractCorrelogramTextureMoment(), and ExtractTextureMoment(). 00452 { 00453 if (pf != NULL && nLen > 0) 00454 { 00455 float f = 0; 00456 for (int i = 0; i < nLen; i ++) 00457 { 00458 f += pf[i] * pf[i]; 00459 } 00460 f = sqrt(f); 00461 if (f < 1e-4f) 00462 { 00463 f = 1e-4f; 00464 } 00465 for (int i = 0; i < nLen; i ++) 00466 { 00467 pf[i] /= (float)f; 00468 } 00469 } 00470 }
|