color_threshold - threshold an image with a color criterion.
color_threshold [-?|-h|--help] [-o|--original] [-Ri SHORT] [-Rs SHORT] [-Gi SHORT] [-Gs SHORT] [-Bi SHORT] [-Bs SHORT] [-Hi DOUBLE] [-Hs DOUBLE] [-Si DOUBLE] [-Ss DOUBLE] [-Vi DOUBLE] [-Vs DOUBLE] FILE_IN FILE_OUT
color_threshold thresholds an original image FILE_IN with a (possibly complex) color criterion (red, green or blue content and/or hue, saturation, value). A new image FILE_OUT is created. Pixels not respecting the criterion become black and other pixels become either white (default), either keep their original color (option --original). FILE_IN and FILE_OUT can be jpg, tiff or png (they are recognized by their extension).
Returns the manual page.
exact value for red (0-255).
minimum value for red (0-255).
maximum value for red (0-255).
exact value for green (0-255).
minimum value for green (0-255).
maximum value for green (0-255).
exact value for blue (0-255).
minimum value for blue (0-255).
maximum value for blue (0-255).
minimum value for hue (0-1) [0 is red, 0.33 is green, 0.66 is blue].
maximum value for hue (0-1).
minimum value for saturation (0-1).
maximum value for saturation (0-1).
minimum value for value (0-1) [0 is black].
maximum value for value (0-1).
keep original value of maching points
Written by Pierre Smars (first version: 2001)
Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.
Copyright (C) 2015 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.