Reputation: 2454
For this picture:
How do I make filter that returns true on brown color (insect) and false on background?
Upvotes: 2
Views: 2234
Reputation: 272487
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.
Upvotes: 4