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 #45122 is a reply to message #45119] Thu, 11 August 2005 08:18 Go to previous messageGo to previous message
Benjamin Luethi is currently offline  Benjamin Luethi
Messages: 22
Registered: December 2004
Junior Member
Hi,

You can add some color information by also using the third color channel.
But the result is not always very good and depends on the dominant colors
of the images. (Under Windows use Images 3D to create a colored anaglyph
of your images to see how well it works: http://home.cogeco.ca/~grichter1/)

Another very simple method: shrink the images to 6 cm width on the screen,
display them next to each other and relax your eyes. Your left eye should
look at the left image, same for the right eye. (same trick as in the
magic eye books). If you get to overlap the two images, you see 3d and
color!

Ben

On Thu, 11 Aug 2005 16:12:10 +0200, James Kuyper <kuyper@wizard.net> wrote:

> 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 02:33:39 PDT 2025

Total time taken to generate the page: 1.35986 seconds