Lines Matching refs:threshold
20 static int bm_readbody_bmp(FILE *f, double threshold, potrace_bitmap_t **bmp);
21 static int bm_readbody_pnm(FILE *f, double threshold, potrace_bitmap_t **bmp, int magic);
121 int bm_read(FILE *f, double threshold, potrace_bitmap_t **bmp) { in bm_read() argument
135 return bm_readbody_pnm(f, threshold, bmp, magic[1]); in bm_read()
138 return bm_readbody_bmp(f, threshold, bmp); in bm_read()
147 static int bm_readbody_pnm(FILE *f, double threshold, potrace_bitmap_t **bmp, int magic) { in bm_readbody_pnm() argument
210 BM_UPUT(bm, x, y, b > threshold * max ? 0 : 1); in bm_readbody_pnm()
234 BM_UPUT(bm, x, y, sum > 3 * threshold * max ? 0 : 1); in bm_readbody_pnm()
287 BM_UPUT(bm, x, y, b > threshold * max ? 0 : 1); in bm_readbody_pnm()
323 BM_UPUT(bm, x, y, sum > 3 * threshold * max ? 0 : 1); in bm_readbody_pnm()
454 static int bm_readbody_bmp(FILE *f, double threshold, potrace_bitmap_t **bmp) { in bm_readbody_bmp() argument
561 coltable[i] = (c > 3 * threshold * 255 ? 0 : 1); in bm_readbody_bmp()
649 BM_UPUT(bm, x, y, c > 3 * threshold * 255 ? 0 : 1); in bm_readbody_bmp()
670 BM_UPUT(bm, x, y, c > 3 * threshold * 255 ? 0 : 1); in bm_readbody_bmp()