Clear Filters
Clear Filters

how can i extract the green channel from HSV image

2 views (last 30 days)
i have converted the rgb image to HSV using rgb2hsv function in matlab. now i have to correct the brightness of the image and also have to extract the red, green and blue channels from the hsv image
i would be happy if i coud be helped out with the coding in matlab
thank u
  2 Comments
Adam
Adam on 10 Mar 2020
You can't extract red, green and blue from a hsv image without converting it back to rgb, or at least not in a sensible way. I imagine it is mathematically possible with the same kind of logic as is used in hsv2rgb, but it would be a waste of time when you can just use hsv2rgb itself and extract the green layer.
I assume you want to do brightness correction in HSV space, though that is not my area of expertise so I'll leave that one, but then just convert back to RGB for the last part.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!