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

Home » Public Forums » archive » Re: stereo in window
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: stereo in window [message #45126 is a reply to message #45122] Thu, 11 August 2005 07:12 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
chamakuri@gmail.com wrote:
> Hello,
>
> I have been using IDL for sometime, and have grown to appreciate the
> possibilities it offers to a programmer.
>
> I have a peculiar problem at hand which is described below
>
> I have two images which have been taken from two different angles ( I
> came to understand that they are referred as *stereo* pairs), I am
> interested in creating a 3D effect by simultaneously viewing them in a
> single window (aka stereo in a window) using IDL.
>
> Now I am not an expert in this kind of things, but I understand that
> there are two methods of achiveing stereo in window
>
> A) Anaglyph, if I am not wrong, uses two colors to display the image
> viz. red and green (god knows why only red and green)

All that's needed are two well-seperated colors, though I would hope
that red and green have become popular because studies have found that
they work better than other color combinations that were tried. The key
point is the use of eyeglasses with filters that let the left eye see
only the red part of the image, and the right eye see only the green
part of the image (or vice versa).

> Any ideas how one can create anaglyph in IDL using object graphics?

I'm not sufficiently familiar with object graphics; but in direct
graphics it's fairly simple. Let 'left' and 'right' be the two
grayscale images that you want to combine. Then the left image can be
displayed in red, and the right image in green, with the following
code:

TV,[[[left]],[[right]],[[left*0]]],TRUE=3

> Oh I forgot to mention that the images are color images and I dont want
> to loose the color information.

Anaglyph uses color to seperate the left and right images; it's
inherently incompatible with retaining color information in your
images.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: programmatically guess image dimensions?
Next Topic: Definition of skewness

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

Current Time: Fri Oct 10 04:02:24 PDT 2025

Total time taken to generate the page: 1.27869 seconds