Re: stereo in window [message #45126 is a reply to message #45122] |
Thu, 11 August 2005 07:12  |
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.
|
|
|