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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: stereo in window [message #45115] Thu, 11 August 2005 14:10
Dick Jackson is currently offline  Dick Jackson
Messages: 347
Registered: August 1998
Senior Member
"Rick Towler" <rick.towler@nomail.noaa.gov> wrote in message
news:ddfveb$es2$1@news.nems.noaa.gov...
> chamakuri 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

If you have a good stereo image pair, the real problem is how to get the two
different images to your two eyes at the same time, and perhaps to nudge
them as needed to get the correct positioning in front of the eyes.

>> 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)

The anaglyph method requires red-green "3D glasses" to let your eyes see two
different pictures from the same RGB image. This requires changing the
colour of the images in a fairly substantial way (but I haven't seen how
that "Images 3D" program does it).

>> B) Quadbuffer ,something related to hardware rendering and is way
>> beyond me(and is definitely ruled out leaving me with option A only.)

I believe you are talking about something like Stereo OpenGL which is not
currently supported in IDL. In any case you still need some way to direct
two different images to your two eyes. Rick mentions several...

>> Any ideas how one can create anaglyph in IDL using object graphics?
>>
>> Oh I forgot to mention that the images are color images and I dont want
>> to loose the color information.
>>
>> Any kind of help in form of code and/or pointers to literature on
>> stereo in window would be highly appreciated.

> Another option is polarizing filters and glasses which I would think would
> be the preferred method. In the most basic form you would do as Ben
> suggested by displaying the image in two windows close together but you
> would position each behind a sheet of polarizing film. Along with the
> glasses this blocks the left and right images from the opposite eye much
> like those old stereo viewers.
>
> There have been a number of creative display methods tossed around from
> using saran wrap taped to your monitor to dual monitor displays to dual
> projector displays with polarizing filers. There are also commercial 3d
> display systems too but they might not be in your budget. I'm a fan of
> the dual projector approach if only I had the time to play around with
> it...
>
> Dick Jackson has done a lot of work on this recently (with OG primitives,
> not stereo image pairs). He was kind enough to send me this link to a
> company that sells polarizing films (http://www.3dlens.com/enter.html)
> There are a number of shops that will sell the glasses too.

As it turns out, I've been working with image pairs too, and for either kind
of stereo viewing, I've had very good results with a commercial system
(about US$3000) from Planar:
http://www.planar.com/Advantages/Innovation/docs/ds-planar-s tereo-mirror.pdf
Here is another popular one:
http://www.stereographics.com/products/crystaleyes/body_crys taleyes.html

> You should be able to google a ton of information about this. From the
> concepts to methods to materials.

For a good starting point, Wikipedia is indeed our friend:
http://en.wikipedia.org/wiki/Stereoscopy

Hope this helps!

Cheers,
--
-Dick

Dick Jackson / dick@d-jackson.com
D-Jackson Software Consulting / http://www.d-jackson.com
Calgary, Alberta, Canada / +1-403-242-7398 / Fax: 241-7392
Re: stereo in window [message #45119 is a reply to message #45115] Thu, 11 August 2005 09:37 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
chamakuri 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)
>
> B) Quadbuffer ,something related to hardware rendering and is way
> beyond me(and is definitely ruled out leaving me with option A only.)
>
> Any ideas how one can create anaglyph in IDL using object graphics?
>
> Oh I forgot to mention that the images are color images and I dont want
> to loose the color information.
>
> Any kind of help in form of code and/or pointers to literature on
> stereo in window would be highly appreciated.

Another option is polarizing filters and glasses which I would think
would be the preferred method. In the most basic form you would do as
Ben suggested by displaying the image in two windows close together but
you would position each behind a sheet of polarizing film. Along with
the glasses this blocks the left and right images from the opposite eye
much like those old stereo viewers.

There have been a number of creative display methods tossed around from
using saran wrap taped to your monitor to dual monitor displays to dual
projector displays with polarizing filers. There are also commercial 3d
display systems too but they might not be in your budget. I'm a fan of
the dual projector approach if only I had the time to play around with it...

Dick Jackson has done a lot of work on this recently (with OG
primitives, not stereo image pairs). He was kind enough to send me this
link to a company that sells polarizing films
(http://www.3dlens.com/enter.html) There are a number of shops that
will sell the glasses too.

You should be able to google a ton of information about this. From the
concepts to methods to materials.

Good luck!

-Rick
Re: stereo in window [message #45122 is a reply to message #45119] Thu, 11 August 2005 08:18 Go 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.
>



--
-------------+
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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: programmatically guess image dimensions?
Next Topic: Definition of skewness

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

Current Time: Wed Oct 08 13:46:32 PDT 2025

Total time taken to generate the page: 0.00551 seconds