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

Home » Public Forums » archive » Color 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
Color image [message #4685] Sun, 09 July 1995 00:00 Go to next message
jun is currently offline  jun
Messages: 9
Registered: June 1994
Junior Member
Hi, more questions.

We have several images of sky, each in different band
of wavelength. Now we want to construct a color image
from these images. Does anyone have good ideas of how to
do this in IDL?

Thanks.

Jim
Re: Color Image [message #64445 is a reply to message #4685] Sat, 27 December 2008 05:25 Go to previous message
justspam03 is currently offline  justspam03
Messages: 36
Registered: October 2003
Member
Hi Silvia,

if you want it a bit more comfortable, I could offer you a library of
IDL objects.
It's not published yet, as it's still beta status, but the parts you'd
need should be ok.

You'd have a display for the image, a second to display the color<-
> value coding as well as
zooming, panning, center/width change and a pixellense. The code would
look something like this:

base = widget_base(....)
display = obj_new('LLDisplay', base, 512, 512 )
contrast = obj_new('LLContrast', base )
zoom = obj_new('LLZoom')
pan = obj_new('LLPan')
pixellense = obj_new('LLPixelLense')

pan->selfregister, display, button=1
zoom->selfregister, display, button=2
contrast->selfregister, display, button=3
pixellense->selfregister, display, togglekey='p

img = ptr_new( intarr(256, 256), /no_copy )
display->setImg, img
display->display


An old version of the lib and documentation is available @
http://www.jubileum.lu.se/mrphysics/software/lib/index.htm

Let me know whether you're interested and I'll send you a copy
of the latest version.

Cheers
Oliver


The


On Dec 26, 6:01 pm, silviad...@gmail.com wrote:
> Hallo! I must display a color image, in which pixel values are
> displayed with a color between yellow, green,red and blue, on the
> basis of their value.
> How i can do that?
> Thenk you very much.
> Silvia
Re: Color Image [message #64447 is a reply to message #4685] Fri, 26 December 2008 16:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
silviadncl@gmail.com writes:

> Hallo! I must display a color image, in which pixel values are
> displayed with a color between yellow, green,red and blue, on the
> basis of their value.
> How i can do that?

How about something like this:

IDL> Loadct, 4
IDL> Device, Decomposed=0
IDL> TVScl, image

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Color Image
Next Topic: What is the simplest way to communicate between IDL and MATLAB?

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

Current Time: Sat Oct 11 00:43:22 PDT 2025

Total time taken to generate the page: 1.67087 seconds