-
public class GrayQuant
-
-
Method Summary
Modifier and Type Method Description static PixpixThresholdToBinary(Pix pixs, int thresh)Perform simple (pixelwise) binarization with fixed thresholdNotes: - If the source pixel is less than the threshold value, the dest willbe 1; otherwise, it will be 0
-
-
Method Detail
-
pixThresholdToBinary
static Pix pixThresholdToBinary(Pix pixs, int thresh)
Perform simple (pixelwise) binarization with fixed threshold
Notes:
- If the source pixel is less than the threshold value, the dest willbe 1; otherwise, it will be 0
- Parameters:
pixs- Source pix (4 or 8 bpp)thresh- Threshold value
-
-
-