Package 

Class GrayQuant

    • Method Summary

      Modifier and Type Method Description
      static Pix pixThresholdToBinary(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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