Lines Matching refs:threshold
22 * The threshold yen, otsu and max_entropy routines have been
162 int threshold, i;
184 /* Find the threshold that maximizes the criterion */
185 threshold = INT_MIN;
195 threshold = i;
199 if (threshold == INT_MIN)
201 DBG (5, "sanei_ir_threshold_yen: no threshold found\n");
210 *thresh = threshold * i + i / 2;
213 *thresh = threshold;
214 DBG (10, "sanei_ir_threshold_yen: threshold %d\n", *thresh);
239 int threshold, i;
272 threshold = INT_MIN;
281 threshold = i;
285 if (threshold == INT_MIN)
287 DBG (5, "sanei_ir_threshold_otsu: no threshold found\n");
296 *thresh = threshold * i + i / 2;
299 *thresh = threshold;
300 DBG (10, "sanei_ir_threshold_otsu: threshold %d\n", *thresh);
318 int threshold;
357 * and find the threshold that maximizes it
359 threshold = INT_MIN;
381 threshold = it;
385 if (threshold == INT_MIN)
387 DBG (5, "sanei_ir_threshold_maxentropy: no threshold found\n");
396 *thresh = threshold * it + it / 2;
399 *thresh = threshold;
400 DBG (10, "sanei_ir_threshold_maxentropy: threshold %d\n", *thresh);
585 DBG (10, "sanei_ir_spectral_clean: low threshold %d\n", thresh_low);
778 int threshold, itop;
827 /* by calculating the threshold */
830 threshold = a_val;
832 threshold = a_val + (double) ival *ab_term;
833 /* above threshold is noise, indicated by 0 */
834 if (*delta_ptr++ >= threshold)
853 /* Add dark pixels to mask from static threshold
858 SANE_Uint * mask_img, int threshold)
872 if (*in_ptr++ <= threshold)