For this picture:
How do I make filter that returns true on brown color (insect) and false on background?
views:
27answers:
1
+3
A:
Choose an RGB value that represents brown. Then for each pixel, calulate e.g. the Euclidean distance in RGB space, and apply a threshold to the result.
RGB may not be the best colour space.
Oli Charlesworth
2010-10-21 17:37:17
What is the best color space?
Miko Kronn
2010-10-21 17:53:28
I have no idea. Try RGB first. If that doesn't work, then investigate other colour spaces.
Oli Charlesworth
2010-10-21 19:08:27