My purpose is to separate post-its of different colors from a picture of a whiteboard.
Ideally it's shown here:
http://imgur.com/a/nXmkq
Where this is the original image and these
http://imgur.com/NTOEsfA
http://imgur.com/qxmg9Wx
http://imgur.com/euyG7jd
are the separated ones - which I've obtained by using the color selector in GIMP
I've tried separating the image by hue like this
Code: Select all
convert whited.jpg -colorspace HSL -channel Hue -separate -fill white -draw "color 0,0 floodfill" hue.jpg
I'm comfortable with perl, so I am close to desperation - and converting the whole image, filtering in perl, and converting back. There surely must be a better way than that.
Thanks.