|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
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:
- int nRowsM;
-
- int nColsM;
-
- Vector3dC axThetaM;
-
Unit directional vector
- FloatRangeC rangeImageM;
-
Range image for current view point
- PolopsC polopsM;
-
Triangular mesh created from the range image
- PolopsC newPolopsM;
-
Holds 3d model of range image created from
the private data member rangeImageM
- RigidTransC rtM;
-
- EnumOnOff progressDisplayM;
-
Determines whether progress information is
printed out to the screen, the default is
for it to be OFF.
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.
- SynthRanC(const SynthRanC & cp)
-
Copy Constructor
Declared, but not defined. This means that the compiler cannot
generate a Copy Constructor.
- SynthRanC & operator=(const SynthRanC & cp)
-
Copy Assignment Operator
Declared, but not defined. This means that the compiler cannot
generate a Copy Assignment Operator.
|
Programmer: Simon Cunnington , Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|