Lines Matching refs:P1
158 double *P1 = NULL; /* cumulative normalized histogram */
167 P1 = sanei_ir_accumulate_norm_histo (norm_histo);
170 if (!P1 || !P1_sq || !P2_sq)
191 2 * SAFE_LOG (P1[i] * (1.0 - P1[i]));
218 if (P1)
219 free (P1);
323 double *P1; /* cumulative normalized histogram */
330 P1 = sanei_ir_accumulate_norm_histo (norm_histo);
332 if (!P1 || !P2)
339 P2[ih] = 1.0 - P1[ih];
343 if (P1[ih] != 0)
367 ent_back -= ( norm_histo[ih] / P1[it] ) * log ( norm_histo[ih] / P1[it] );
404 if (P1)
405 free (P1);