I need to detect all the red pixels in an image using Java. What ‘s the best way to do this?
Only supposing a pixel is red when the Red RGB-value is > 200 isn’t good enough (see this table).
So is there a better way to do this? Or is there some red-color-rgb algorithm?
Take a look at YCrCb color space.
Simple algorithm: convert your RGB image to YCrCb, extract red channel and make a threshold.