Re: Hue Saturation Value... how to display the hue channel of an image [message #38371] |
Fri, 05 March 2004 08:22  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Thomas Nehls writes:
> has somebody an example of how to display the hue channel of an RGB
> (image.TIFF)? I tried the color_convert and the tvlct /HSV but nothing
> happens... a tip where to find examples?
I should think something like this would work:
Read_JPEG, filepath('rose.jpg', Subdir=['examples', 'data']), rose
r = reform(rose[0,*,*])
g = reform(rose[1,*,*])
b = reform(rose[2,*,*])
Color_Convert, r, g, b, h, s, v, /RGB_HSV
TV, BytScl(h)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Hue Saturation Value... how to display the hue channel of an image [message #38466 is a reply to message #38371] |
Fri, 05 March 2004 08:36  |
Thomas Nehls
Messages: 24 Registered: March 2004
|
Junior Member |
|
|
David Fanning wrote:
> Thomas Nehls writes:
>
>
>> has somebody an example of how to display the hue channel of an RGB
>> (image.TIFF)? I tried the color_convert and the tvlct /HSV but nothing
>> happens... a tip where to find examples?
yeah....
Thank you!
have a nice Weekend!
Tom
> I should think something like this would work:
>
> Read_JPEG, filepath('rose.jpg', Subdir=['examples', 'data']), rose
> r = reform(rose[0,*,*])
> g = reform(rose[1,*,*])
> b = reform(rose[2,*,*])
> Color_Convert, r, g, b, h, s, v, /RGB_HSV
> TV, BytScl(h)
>
> Cheers,
>
> David
|
|
|