Forums

Getting only red pixels out from an image?

Started by icearie55 June 5, 2005
Hi all,

let's say i got an image after the rgb2hsv conversion.

So, using hue as angle definition after normalised as 1,v and s as 1

how should i go about coding ,in pixels, to find red pixels only in
an image
let's say
for i =1,
for j = 1,

what should i equate to to get all the red pixels out from the image? end
end

Or should i use threshold to find out? And how do I get about if I
am to use thresholding? Can anyone here please kindly advise?

Thanks,
ari