PANDORE Version 6 GREYC-IMAGE

prds



Builds Random Dot Stereogram image.



Synopsis

prds [im_in|-] [im_out|-]

Description

prds builds a Random Dot Stereogram image from the depth image im_in. 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 image is a gray level image where each pixel value is set with 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 result image is apparently a noise image but the 3D scene is hidden inside the image.

Inputs

Outputs

Result

Returns SUCCESS or FAILURE in case of bad input.

Example

Builds a Random Dot Stereogram from the 3D image cyto3d.pan:

   pdepth2graylevel 50 cyto3d.pan i0.pan
   pmultcst 10 i0.pan i1.pan
   prds i1.pan rds_out.pan

See also

Miscellaneous, pstereogram

C++ prototype

Errc PRds( const Img2duc &imp, Img2duc &im_out );

Version française

Construction d'une image stéréogramme type Random Dot Stereogram.


Author: Régis Clouard