Please explain how to obtain the hue of a colored image in MATLAB
Colored image
Started by ●May 16, 2005
Reply by ●May 18, 20052005-05-18
Hello,
Try using rgb2hsv command. this command will give you
hue ,saturation and value components ie 3 dimensional
matrix, use the first matrix which contains hue.
here is the small code. >> IM=imread('sunflower.bmp');
>> HSV=rgb2hsv(IM);
>> HU=HSV(:,:,1);%HU is hue component
--- lowtechorhightech <lowtechorhightech@lowt...>
wrote:
> Please explain how to obtain the hue of a colored
> image in MATLAB __________________________________
Try using rgb2hsv command. this command will give you
hue ,saturation and value components ie 3 dimensional
matrix, use the first matrix which contains hue.
here is the small code. >> IM=imread('sunflower.bmp');
>> HSV=rgb2hsv(IM);
>> HU=HSV(:,:,1);%HU is hue component
--- lowtechorhightech <lowtechorhightech@lowt...>
wrote:
> Please explain how to obtain the hue of a colored
> image in MATLAB __________________________________
Reply by ●May 18, 20052005-05-18
Use rgb2hsv
"lowtechorhightech" <lowtechorhightech@lowt...> wrote:
>Please explain how to obtain the hue of a colored image in MATLAB
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
>Please explain how to obtain the hue of a colored image in MATLAB
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
Reply by ●May 20, 20052005-05-20
Hi,
U can use the rgb2hsv function in MATLAB to convert an RGB image HSV (hue,
saturation, value). The resulting image will be of class double.
U can then use hsv2rgb function to convert the HSV image back to RGB. The
input image must be of class double.
Hope this works
Regards
WT
lowtechorhightech <l...@yahoo.com> wrote:
lowtechorhightech <l...@yahoo.com> wrote:
Please explain how to obtain the hue of a colored image in MATLAB
NEW! You can now post a message or access and search the archives of this group on DSPRelated.com:
http://www.dsprelated.com/groups/matlab/1.php
_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group.
_____________________________________
About this discussion group:
Archives: http://www.dsprelated.com/groups/matlab/1.php
To Post: Send an email to m...@yahoogroups.com
Other DSP Related Groups: http://www.dsprelated.com/groups.php