From: rizwana on
hi
i cannot convert my image into hsv after reading it . i want to remaove the brigthness of my image . plz kindly help me.
From: ImageAnalyst on
On Mar 27, 5:26 pm, "rizwana " <rizwana_rashi...(a)yahoo.com> wrote:
> hi
> i cannot convert my image into hsv after reading it . i want to remaove the brigthness of my image . plz kindly help me.

-------------------------------------------------
From the help for rgb2hsv():
hsv_image = rgb2hsv(rgb_image)
Seems rather straightforward. If you can't get it to work, look for
misspellings - after all, you had 3 in your short post above. Just
realize that the image planes are no longer red, green, and blue, but
instead they're hue, saturation, and value, which is exactly what you
wanted. Just realize that displaying an hsv image will look funny
because the display routine, such as imshow(), will assign the hue
channel to red, the saturation channel to green, and the value channel
to blue, so that's why it will look weird. It's best if you just
display the 3 channels separately as monochrome (grayscale) images.

For the second question, there are many, many answers/ways to do it.
But the easiest way, by far, to remove the brightness from the image
(let's say it's called rgbImage) is simply this:
rgbImage = 0;
You can easily think of millions of other ways to get to the same
result of zero, but if you really need no brightness, then you need to
end up with an image that is all zero.