Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

iptk::IntensitySurface Class Reference

#include <intensitySurface.h>

Collaboration diagram for iptk::IntensitySurface:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class which can form an intensity-surface from a given intensity-mesh of triangles.

The input to this class should be an iptk::Image object and a TNT::Array1D< gutk::Triangle > object.

Then this class will create an intensity-surface from the intensity-mesh defined by the array of triangles.


Public Member Functions

 IntensitySurface (void)
 Default Constructor.

 IntensitySurface (const IntensitySurface &is)
 Copy Constructor.

virtual ~IntensitySurface ()
 Destructor.

void setImage (const iptk::Image &im)
 Sets the image whose surface has to be extracted.

void setMesh (TNT::Array1D< gutk::Triangle > &mesh)
 Sets the intensity-mesh which should be used for creation of the intensity surface.

void extract (void)
 The function which extracts the surface.
A call to this should always be preceeded by calls to the setImage and the setMesh functions.

iptk::Image getSurface (void)
 Returns the extracted surface as a iptk::Image object.


Constructor & Destructor Documentation

iptk::IntensitySurface::IntensitySurface void   ) 
 

Default Constructor.



No other constructor (except of-course the copy constructor) is provided for the class. Hence default construction is the way an object will be initialised most often.

iptk::IntensitySurface::IntensitySurface const IntensitySurface is  ) 
 

Copy Constructor.



This is only a reference copier. The new object and the old object share the same data in memory.


Member Function Documentation

void iptk::IntensitySurface::extract void   ) 
 

The function which extracts the surface.
A call to this should always be preceeded by calls to the setImage and the setMesh functions.

Else, this function's behaviour is undefined.

iptk::Image iptk::IntensitySurface::getSurface void   ) 
 

Returns the extracted surface as a iptk::Image object.

The returened object will hold a valid surface only if a call to this function is preceeded by a call to the extract function.


The documentation for this class was generated from the following file:
Generated on Mon Nov 22 11:12:42 2004 for ImprolaLib by doxygen 1.3.7