User Documentation
Centre for Vision, Speech & Signal Processing
DEVELOP IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
SynthRanC::SynthRanC(void)
SynthRanC::SynthRanC(int,int,Vector3dC,EnumOnOff)
SynthRanC::~SynthRanC(void)
SynthRanC::SetDisplayProgress(EnumOnOff)
SynthRanC::LoadTri(char *)
SynthRanC::SaveTri(char *)
SynthRanC::SaveDep(char *,char *)
SynthRanC::SetViewpoint(Vector3dC)
SynthRanC::CreateRangeImage(void)
SynthRanC
 
SynthRanC is a class which provides facilities to create synthetic range images from a synthetic 3D model (a .tri file).
 
include "amma/SynthRan.hh"
User Level:Default
Library:PolExt
Example: cri.cc
Section: 3D Surface.Polyhedral Extensions
In Scope:std

Comments:
SynthRanC is a class which provides facilities to create synthetic range images from a synthetic 3D model (a .tri file).

The resolution of the imaginary range scanner can be controlled by specifying the number of rows and columns. You can also specify the viewing direction by using a unit directional vector.

Once the range image has been created you can save it to a .tri file (3D representation) or a .dep file (range image).

Variables:
Methods:
SynthRanC()
Default Constructor

SynthRanC(int rows = 256,int cols = 256,Vector3dC viewpoint = Vector3dC(0.0,0.0,1.0),EnumOnOff display = off)

~SynthRanC()
Destructor

void SetDisplayProgress(EnumOnOff display)
Used to specify whether you want progress information printed out.

void LoadTri(char * fname)
Loads the .tri file specified. This is the file which has the 3d model.
Note: All 4 sided faces will be converted into two 3 sided faces.

void SaveTri(char * fname)
Saves current created range image to the specified filename.

void SaveDep(char * fname,char * poseFname)
Saves current range image to the specified filename.

int SetViewpoint(Vector3dC viewpoint)
Allows you to change the viewpoint (unit vector).
Note: If the vector specified is not a unit vector it will be turned into a unit vector.

void CreateRangeImage()
This creates a range image by using the viewpoint (which is a unit vector) specified by the user.


Programmer: Simon Cunnington , Documentation by CxxDoc: Tue Mar 20 10:48:08 2001