Back AAM-API documentation The AAM-Site

In file AAMAnalyzeSynthesize.h:

class CAAMAnalyzeSynthesizeSoftware

Software implementation of the analysis and synthesis functions.

Inheritance:

CAAMAnalyzeSynthesizeSoftware - CAAMAnalyzeSynthesize


Public Methods

[more]bool Analyze( const CAAMShape &shape, CDVector &texture, const bool useInterpolation ) const
Samples the texture under a given shape.
[more]bool Analyze( const CAAMShape &shape, CDMultiBand<TAAMPixel> &refImg, const bool useInterpolation ) const
Samples the texture under a given shape.
[more]void BuildWarpTable()
Cache method, that caches triangle info.
[more] CAAMAnalyzeSynthesizeSoftware( const CAAMReferenceFrame &rf )
Constructor.
[more]CAAMAnalyzeSynthesize* Clone( const CAAMReferenceFrame &rf ) const
Clones ifself (smart way to convey type info).
[more]void SetAnalyzeImage( const CDMultiBand<TAAMPixel> &img )
Sets the image to be analyzed.
[more]bool Synthesize( const CAAMShape &shape, const CDVector &texture, CDMultiBand<TAAMPixel> &destImage, bool renderOntoImage ) const
Renders a texture vector into a shape.
[more] ~CAAMAnalyzeSynthesizeSoftware()
Destructor.


Inherited from CAAMAnalyzeSynthesize:

Public Methods

ovoid FromFile( FILE* fh )
ovoid ToFile( FILE* fh ) const


Documentation

This class contains a fairly fast software implementation of the analyze/synthesize interface.

o 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

o ~CAAMAnalyzeSynthesizeSoftware()

Destructor.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
6-12-2002

ovoid BuildWarpTable()

This method cache triangle information that does not change.

Returns:
Nothing.
Author:
Mikkel B. Stegmann
Version:
6-12-2002

ovoid 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

obool 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

obool 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

obool 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

oCAAMAnalyzeSynthesize* 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


This class has no child classes.
Author:
Mikkel B. Stegmann
Version:
6-12-2002
See Also:
CAAMAnalyzeSynthesize

Alphabetic index Hierarchy of classes


Back AAM-API documentation The AAM-Site