CFusion Class Reference

#include <fusion.h>

Inheritance diagram for CFusion:

Inheritance graph
List of all members.

Public Types

enum  { FUSION_OK = CFilter::FILTER_OK, FUSION_CANCELLED = CFilter::FILTER_CANCELLED, FUSION_ERROR = CFilter::FILTER_ERROR }
enum  {
  FusionRule, ColorConverter, CloneDetail, TransformMinSize,
  Callback, CFUSION_USER
}

Public Member Functions

CFusionClone () const
int Init (void *o=NULL)
int StartFusion ()
int FuseImage (ILuint)
int GetImage (ILuint &)
int ImageCount () const
bool FusionInProgress () const
const char * ErrorMessage () const
CParamsParams ()
const CParamsParams () const
virtual const char * GetName ()

Protected Member Functions

virtual int init (void *)=0
virtual int start ()=0
virtual int fuse (ILuint image)=0
virtual int getimage (CMatrix< TCoeff > &fused)=0
virtual CFusionclone () const =0
virtual bool requireFixedSize ()
virtual bool requirePow2Size ()
int imageToMatrix (CMatrix< TCoeff > &, ILuint, CColorConverter *)
int matrixToImage (ILuint, CMatrix< TCoeff > &)
int resizeToPow2 (ILuint, ILenum)
int dyadicMin (int, int)

Member Enumeration Documentation

anonymous enum
 

Available parameters.

Enumerator:
FusionRule  Fusion rule pointer, default CMaxSelectRule.
ColorConverter  Color converter pointer.
CloneDetail  Clone detail modifier, default 1.
TransformMinSize  Minimal size of signal to transform recursively.
Callback  Minimal size of signal to transform recursively.
CFUSION_USER  Subclasses may use this to define own parameters.


Member Function Documentation

virtual CFusion* clone  )  const [protected, pure virtual]
 

Clone the object.

Subclasses must overload this method.

Returns:
Cloned object on success, NULL otherwise.

Implemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

CFusion * Clone  )  const
 

Clone the object.

Returns:
Cloned object on success, NULL otherwise.

int dyadicMin int  Value,
int  Min
[protected]
 

Finds minimal value by dyadic shrinking of Value which is not smaller than Min.

Parameters:
Value DevIL image name.
Min DevIL scaling filter.
Returns:
True on success.

virtual int fuse ILuint  image  )  [protected, pure virtual]
 

Fusion.

Subclasses must overload this method.

Returns:
true if succesfull, false otherwise.

Implemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

int FuseImage ILuint  Image  ) 
 

Fuse single image.

Parameters:
Image DevIL image name.

bool FusionInProgress  )  const
 

Return true if fusion is in progress, false otherwise.

virtual int getimage CMatrix< TCoeff > &  fused  )  [protected, pure virtual]
 

Retrieve fused image.

Subclasses must overload this method.

Parameters:
fused Matrix to store the result.
Returns:
true if succesfull, false otherwise.

Implemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

int GetImage ILuint &  image  ) 
 

Retrieve fused image.

The image data is administered by the fusion object.

Returns:
Fused image. Copy image to user supplied name, no buffering at all.

const char * GetName  )  [virtual]
 

Return pointer to string containing name of the fusion method.

Reimplemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

int ImageCount  )  const
 

Return number of images fused so far.

int imageToMatrix CMatrix< TCoeff > &  M,
ILuint  image,
CColorConverter CC
[protected]
 

Convert image into a matrix.

Color images are converted to grayscale using color converter class.

Parameters:
M Matrix to store image into.
Image DevIL image name.
CC Color converter class.
Returns:
True on success.

virtual int init void *   )  [protected, pure virtual]
 

Initialization.

Subclasses must overload this method.

Returns:
true if succesfull, false otherwise.

Implemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

int Init void *  o = NULL  ) 
 

Initialize the object.

User may supply an object to help the initialization.

Parameters:
o User supplied object.

int matrixToImage ILuint  image,
CMatrix< TCoeff > &  M
[protected]
 

Convert matrix into a DevIL image in IL_LUMINANCE format and IL_UNSIGNED_BYTE data type.

Parameters:
Image DevIL image name.
M Matrix with image.
Returns:
True on success.

const CParams & Params  )  const
 

Return parameter list.

CParams & Params  ) 
 

Return parameter list.

bool requireFixedSize  )  [protected, virtual]
 

Return true if all images must be of the same size.

Default is true, subclasses should override this method to change it.

bool requirePow2Size  )  [protected, virtual]
 

Return true if all images must be of power-two size in each dimension.

Default is false, subclasses should override this method to change it.

Reimplemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

int resizeToPow2 ILuint  Image,
ILenum  Filter
[protected]
 

Resizes image to power-2 dimensions using scaling filter.

Parameters:
Image DevIL image name.
Filter DevIL scaling filter.
Returns:
True on success.

virtual int start  )  [protected, pure virtual]
 

Allocate necessary buffers.

Subclasses must overload this method.

Returns:
true if succesfull, false otherwise.

Implemented in CFusionCDWT, CFusionDWT, and CFusionLaplace.

int StartFusion  ) 
 

Initialize the object.

User may supply an object to help the initialization.

Parameters:
o User supplied object.


Generated on Tue Jul 11 11:22:31 2006 for ImgFusion by  doxygen 1.4.6