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

Home » Public Forums » archive » Re: Anaglyph display by IDL ?
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: Anaglyph display by IDL ? [message #1668] Wed, 16 February 1994 09:17 Go to next message
sterner is currently offline  sterner
Messages: 106
Registered: February 1991
Senior Member
xiaoming@fstgds08.tu-graz.ac.at (Xiaoming Xu) writes:

> is it possible display an anaglyph image pair with IDL?
> Thank you for your answer in advance!

Try using color_quan to combine the left and right images into
one red/green or red/blue image.

For example, suppose your anaglyph viewer has a red filter for the
left eye and a blue one for the right eye. Let the corresponding
images be left and right. Then try the following:

c = color_quan(left, left*0, right, r, g, b)
tv, c
tvlct, r, g, b

This assumes that both images are scaled to the range 0 to 255.

Ray Sterner sterner@tesla.jhuapl.edu
Johns Hopkins University North latitude 39.16 degrees.
Applied Physics Laboratory West longitude 76.90 degrees.
Laurel, MD 20723-6099
Re: Anaglyph display by IDL ? [message #1808 is a reply to message #1668] Sat, 12 March 1994 06:30 Go to previous message
jimbrakefd is currently offline  jimbrakefd
Messages: 4
Registered: March 1994
Junior Member
I've done anaglyphs in PV~WAVE on both 24-bit and 8-bit color systems.
The 24-bit color approach is straight-forward, one image in red and the
other in green. It works best if you gamma correct or approximately
gamma correct via the lookup tables.

What was suprising is that 8-bit color is ~adequate for anaglyphs. You
have to redo the LUT for 4-bits red and 4-bits green and again it is best
to gamma correct at the same time. The secret is to histogram equalize
the original two images down to 4-bits each.

Jim Brakerfield, previously braker@shadow.brooks.af.mil, now via AOL
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Need help with CONTOUR shading error
Next Topic: IDL Map warping

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

Current Time: Fri Oct 10 03:05:22 PDT 2025

Total time taken to generate the page: 0.40173 seconds