Instructions

(last update :  13/01/2005)

& Didier Leboutte

Next

Stereo-Morphing

Basic concepts

The stereo-morphing makes it possible either to convert a 2d image into a 3d image, or to change the depth of an existing 3d image. To work on a 2d image, it is sufficient to load 2 times the same image: once as the left image, and as the right image.

When the tool is open (by clicking on the box "morph") the loaded image is shown on a grid. This grid makes it possible to define the deformations to be applied to each of the 2 images left and right to change the depth of each point of the image:
By default, AnaBuilder applies the deformations to a square of 5x5 grid boxes, constant to all the points of the square. It is possible to vary at the same time the dimension of the rectangle and the way in which the deformation is applied horizontally and vertically.

Constant Deformation

The "linear" option makes it possible to produce a deformation of depth in a triangle. This triangle can be nonsymmetrical if the values left/right and up/down defining the rectangle are not equal.

Linear Deformation

The "Gaussian" option makes it possible to produce a deformation in bump form. This bump can be nonsymmetrical if the values left/right and up/down defining the rectangle are not equal.

Gaussian Deformation

It is possible (and even recommended) to apply a deformation which is different vertically and horizontally.

One limits the zone of deformation by describing a selection with the left button of the mouse surrounding the desired zone. When the rectangle of deformation is larger than the selected zone, the deformation is applied only to the selection. This selection can be reversed to work on the contrary on the remainder of the image without touching the surrounded contents.

By adapting the selection, the range of the transformation can be controlled by adjustment of the left/right and up/down limits allowing a fine definition of the wanted depth.

Caution: when a deformation is applied to a single point of the grid, AnaBuilder tends to move also the neighbouring points to avoid overlappings (the morphing would be then more difficult to calculate). These 'forced' deformations are not easy to undo later. It is then possible to uniformly bring back the points of the selection to their zero level, so as to take again their in-depth setting starting from a clean configuration.

Example of 2d - > 3d convertion

Load the following 2d image on the left and on the right, and click on "morph".

Escrimeurs

Select with the mouse the 2 fencers, and reverse the selection so as to work on the background without modifying them.

Choose horizontal transformation:
Choose vertical transformation:
Place the cursor on the left at half height (on the level of the table). Press on the downward arrow of the keyboard (or use the wheelmouse) until a maximum depth is obtaining at semi-range (see visualization) in the window in top and on the right). You should get following result:

First morphing

Keep the same parameters, using this time a constant vertical deformation. Place the cursor in top of the image so that the bottom of the selection comes just on top of the preceding deformation. Press on the 'down' arrow on the keyboard (or use the mousewheel) until obtaining a maximum depth with semi-range (see visualization in the window in top and on the right) which corresponds exactly with the depth obtained in the preceding stage. You should get following result:

Morphing 2

The floor and the wall at the back are thus in place.

Reverse the selection again, so as to modify the fencers. Click on "Reset selection" to eliminate the imperfections introduced by the preceding modifications.

Choose horizontal transformation:
Choose vertical transformation:
Place the cursor on top of the right of the 2 fencers. Press the 'down' arrow of the keyboard (or use the mousewhell) until obtaining a depth which as good as possible adjusts the vertical lines which cover the fencers in accordance with the vertical lines which run towards the bottom. If these lines are well aligned, the fencers will be well in their place, with the good depth. You must appoximately obtain the following configuration:

Morphing 3

The main part of the job is finished. Click on "morph", then remove the grid by stripping the options of left and right boxes. Click on the left button of the mouse anywhere in the window to remove the zone of selection. Admire the result:

Morphing 4

Enable the grid again, or left/right only. Eventually show only one of the two sights left/right to better see the deformations. Set a rectangular transformation of 0x0 so as to move only one intersection of the grid at the same time. Correct the small defects of morphing, while avoiding breaking the great parts.

Via selections You can treat objects of average size: characters in the background, pillars, etc...

Example of vertical correction

It is possible to have vertical shifts even on a otherwise perfect couple. In addition, if one makes stereoscopy as a tourist (without stable support) vertical shifts are easilycreated. The foregrounds move more quickly than the plane backs. Therefore, these shifts are not homogeneous, and one cannot correct them with a global transformation, one needs a transformation particular to each object of the image.

It is what one can do by using the stereo-morphing, after having turned the image 90°.

In this example, I introduced voluntarily a vertical shift between the 2 takes of the couple which was used to assemble the anaglyph on the left. Whereas the background is rather well fixed (I made it quickly), the foreground presents a more or less important vertical shift affecting the depth. These shifts completely break the depth of the flower (in any case, I see it as flat). I made a progressive correction (also rather quickly), on the anaglyph of right-hand side. This time, I see the flower very clearly leaving the screen.


Vertical Morphing décalage
Vertical Morphing corrigé



Now it's yout turn to play...


These people use AnaBuilder and are pleased with it

My preferred links (to start your research, because there are heaps of them)

Note: the images on the sites that offer photo's for paralleles or cross viewing can be assembled in Anaglyphs..

Visit the splendid church St Jacques in panoramic relief 360x180, a must which deserves its time of downloading!
http://www.outline.be/quicktime/panoramasnew.html

The splendid and not to be missed anaglyphs of the Alps:
http://www.chez.com/alpesstereo/lesGrands.htm

A site where the pages are in 3d:
http://wwwusers.imaginet.fr/~yc/index_fr.html

Anaglyphs of planes and helicopters using the technique of substitution of the red layer on the right:
http://www.geocities.com/lebouttedidier/index.html

The stereo French club:
http://www.cnam.fr/scf/

Where to find glasses

France :
http://www.trivision3d.com

Belgique :
http://www.3dp.be/indexf.htm

England :
http://www.3dglasses.uk.com/




Etienne