CAAMAnalyzeSynthesizeSoftware( const CAAMReferenceFrame &rf )
-
Constructor.
- Parameters:
- rf - The reference frame to analyze and synthesize through.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
~CAAMAnalyzeSynthesizeSoftware()
-
Destructor.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
void BuildWarpTable()
-
This method cache triangle information that does not change.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
void SetAnalyzeImage( const CDMultiBand<TAAMPixel> &img )
-
Sets the image to be analyzed. That reason for this, at first sight,
somewhat clumpsy design is due to the OpenGL implementation.
- Parameters:
- img - Image to be analyzed.
- Returns:
- Nothing.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
bool Analyze( const CAAMShape &shape, CDVector &texture, const bool useInterpolation ) const
-
This method samples the image intensities under a user-
supplied shape into a texture vector.
The image is set using the SetAnalyzeImage call.
If a reference image of the shape is needed instead
call the alternative form of Analyze.
- Parameters:
- shape - A shape in ímage coordinates.
texture - Output texture vector.
useInterpolation - If true bilinear interpolation is used (default).
Otherwise the faster nearest neighbor interpolation
is used.
- Returns:
- True is the shape is inside the image.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
- See Also:
- SetAnalyzeImage
bool Analyze( const CAAMShape &shape, CDMultiBand<TAAMPixel> &refImg, const bool useInterpolation ) const
-
This method samples the image intensities under a user-
supplied shape into a texture vector.
The image is set using the SetAnalyzeImage call.
If a texture vector of the shape is needed instead
call the alternative form of Analyze.
- Parameters:
- shape - A shape in ímage coordinates.
refImg - Output reference image.
useInterpolation - If true bilinear interpolation is used (default).
Otherwise the faster nearest neighbor interpolation
is used.
NOTE: This flag is actually ignored currently in
this OpenGL implementation.
- Returns:
- True is the shape is inside the image.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
- See Also:
- SetAnalyzeImage
bool Synthesize( const CAAMShape &shape, const CDVector &texture, CDMultiBand<TAAMPixel> &destImage, bool renderOntoImage ) const
-
This method renders a texture vector into a shape
defined in image coordinates.
- Parameters:
- shape - The shape to synthesize into.
texture - The input texture vector in byte range [0;255].
destImage - Destination image
renderOntoImage - If true the synthesization is done on top of the
existing image.
- Returns:
- True on success.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-12-2002
CAAMAnalyzeSynthesize* Clone( const CAAMReferenceFrame &rf ) const
-
Clones ifself (smart way to convey type info).
- Parameters:
- rf - The reference frame of the cloned object.
- Returns:
- A cloned object created on the heap.
- Author:
- Mikkel B. Stegmann
- Version:
- 6-7-2002