Documentation ¶ Overview ¶ Package segment provides basic image segmentation and clusterring methods. Index ¶ func Threshold(img image.Image, level uint8) *image.Gray Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Threshold ¶ func Threshold(img image.Image, level uint8) *image.Gray Threshold returns a grayscale image in which values from the param img that are smaller than the param level are set to black and values larger than or equal to it are set to white. Level must be of the range 0 to 255. Types ¶ This section is empty. Source Files ¶ View all Source files thresholding.go Click to show internal directories. Click to hide internal directories.