I want to take an input image, convert it to LAB colorspace, apply a threshold on the 'A' channel, and output this as a grayscale (more specifically black&white, as a threshold should be). I am using the following line:
Code: Select all
convert input.png -colorspace lab -channel G -separate -threshold 50% +channel ouput.png
Code: Select all
convert input.png -colorspace lab -channel G -separate -threshold 50% -channel RB -evaluate set 0 +channel output.png