From: rizwana on 27 Mar 2010 17:26 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 27 Mar 2010 17:37 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.
|
Pages: 1 Prev: need help in simulink qam mod in rayleih channel Next: eigen value in finite field |