comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Hue Saturation Value... how to display the hue channel of an image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Hue Saturation Value... how to display the hue channel of an image [message #38371] Fri, 05 March 2004 08:22 Go to next message
David Fanning is currently offline  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 Go to previous message
Thomas Nehls is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Interpreter stack not aligned properly during user return.
Next Topic: Re: About XVolume example !!!

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:44:48 PDT 2025

Total time taken to generate the page: 0.00418 seconds