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 
Return to the default flat view 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 previous 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/
[Message index]
 
Read Message
Read Message
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 19:51:12 PDT 2025

Total time taken to generate the page: 0.00436 seconds