PANDORE Version 6 | GREYC-IMAGE |
pstereogram builds a stereogram image form a depth map im_in1 and a pattern image im_in2.
A stereogram is an image in which stereoscopic information are encoded. To look at a stereogram, one has to consider that the focal plane is behind the image.
object <-- PERCEIVED IMAGE (3D) { focal plane} | / \ / \ / \ Object Object <-- ACTUAL PICTURE (Flat, 2D) / \ / \ <-- LINES OF SIGHT FROM EACH EYE / \ (*) (*) <-- EYES
The depth map describes how deep each part of the scene is. It is represented as a gray scale image, where each pixel encodes the depth of the related point in the scene. Values belongs to [0..255] where 0 is the minimum distance and 255 the maximum distance. The depth image can be built from the projection of a 3D image to 2D image.
The pattern image is used as a tile image. It must be at least as wide as the maximum stereo separation otherwise there is a problem (for example 64x64).
Returns SUCCESS or FAILURE.
Builds c.pan from the depth image a.pan and the tile image b.pan. a.pan is builds from the 3D image a3d.pan:
pgraylevel2depth 50 a3d.pan a.pan pstereogram a.pan b.pan c.pan
Construction d'une image stéréogramme couleur.
Author: Régis Clouard