Re: Color Image [message #64445 is a reply to message #4685] |
Sat, 27 December 2008 05:25   |
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
|
|
|