Definition at line 481 of file Color64.h. Referenced by ExtractCorrelogram50(), ExtractCorrelogramTextureMoment(), and ExtractTextureMoment(). 00482 { 00483 if (pf != NULL && nLen > 0) 00484 { 00485 float f = 0; 00486 for (int i = 0; i < nLen; i ++) 00487 { 00488 f += pf[i] * pf[i]; 00489 } 00490 f = sqrt(f); 00491 if (f < 1e-4f) 00492 { 00493 f = 1e-4f; 00494 } 00495 for (int i = 0; i < nLen; i ++) 00496 { 00497 pf[i] /= (float)f; 00498 } 00499 } 00500 }
|