RGB to HSV image

조회 수: 5 (최근 30일)
nonyt
nonyt 2011년 3월 31일
Hello, I am trying to convert an rgb image to hsv.
I made the following steps:
1.make the image [MNx3]
2.multiply with the opponent coords
3.increase the saturation
4.apply Inverse transform to go back to rgb
5.Gamut mapping
6.Redo Display Gamma
Now i have an array MNx3
My problem is that i cannot display the image as it is. It displays a line. How can I convert that to an image??
Any help??
  댓글 수: 3
Jan
Jan 2011년 3월 31일
What does "[MNx3]" mean? Images have usually a size of [M x N x 3]. And how do you try to display the image? Please post the exact code instead of a description.
Walter Roberson
Walter Roberson 2011년 5월 23일
[EDIT: 20110523 15:18 CDT - move answer to comment - WDR]
HARSHIT SHARMA http://www.mathworks.com/matlabcentral/answers/contributors/2448464-harshit-sharma
commented,
hey gould you get the solution of your problem. If yes please send me the codes. I am trying to the same thing, I have a rgb image and i need to get the HSV (basically Hue) from that image at every pixel.
Please help me if you can
My email id is hsharma47@gmail.com
i need it urgently, thanx again
Thanks
Harshit Sharma

댓글을 달려면 로그인하십시오.

답변 (1개)

Jonas Reber
Jonas Reber 2011년 6월 6일
does the rgb2hsv function not work?
I do it that way...,
hsvimg = rgb2hsv(rgbimg);
... do something ... (like saturation increase)
rgbimg = hsv2rgb(hsvimg);

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by