GCGlib  0.04.228
GCG Graphics Engine

Abstract class for 2D basis projection/reconstruction interfaces. More...

#include <gcg.h>

Inheritance diagram for gcgBASIS2D< NUMTYPE >:
gcgCLASS gcgLEGENDREBASIS2D< NUMTYPE >

Private Member Functions

virtual unsigned int getNumberOfCoefficients ()=0
 Returns the number of coefficients used in 2D projection/reconstruction processes.
 
virtual bool projectSignal (int atX, int atY, gcgDISCRETE2D< float > *vector, gcgDISCRETE1D< NUMTYPE > *outputcoef)=0
 Computes the coefficients of the projection of the 2D signal vector on the 2D basis. The coefficients are stored in array outputcoef that will be ajusted to have getNumberofCoefficients() coefficients. More...
 
virtual bool reconstructSignal (int atX, int atY, gcgDISCRETE1D< NUMTYPE > *inputcoef, gcgDISCRETE2D< float > *outputvector)=0
 Computes the components of a 2D vector, using the getNumberofCoefficients() coefficients given in array inputcoef (as 1D signal). The components are stored in the 2D signal outputvector starting at position (atX, atY). More...
 

Additional Inherited Members

- Public Member Functions inherited from gcgCLASS
void * operator new (size_t size)
 Defines a new operator to be used by instatiations of GCGlib classes instead the global one. More...
 
void * operator new (size_t size, const std::nothrow_t &) throw ()
 Defines a new operator to be used by instantiations of GCGlib classes instead the global one. Returns a NULL pointer instead of throwing an exception if an error occurs. More...
 
void * operator new[] (size_t size)
 Defines a new operator to be used by GCGlib array allocations instead the global one. More...
 
void * operator new[] (size_t size, const std::nothrow_t &) throw ()
 Defines a new operator to be used by vector allocations instead the global one. More...
 
void operator delete (void *p)
 Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator. More...
 
void operator delete (void *p, const std::nothrow_t &) throw ()
 Defines a delete operator to free instances of GCGlib classes instead the global one. It is designed to match the new operator. More...
 
void operator delete[] (void *p)
 Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator. More...
 
void operator delete[] (void *p, const std::nothrow_t &) throw ()
 Defines a delete operator to free instances of arrays for GCGlib classes instead the global one. It is designed to match the new[] operator. More...
 

Detailed Description

template<class NUMTYPE = float>
class gcgBASIS2D< NUMTYPE >

Abstract class for 2D basis projection/reconstruction interfaces.

Template Parameters
NUMTYPEType of the samples representing the signal. Supported types: float, double, long, int and short.
Since
0.01.6

Member Function Documentation

◆ projectSignal()

template<class NUMTYPE = float>
virtual bool gcgBASIS2D< NUMTYPE >::projectSignal ( int  atX,
int  atY,
gcgDISCRETE2D< float > *  vector,
gcgDISCRETE1D< NUMTYPE > *  outputcoef 
)
privatepure virtual

Computes the coefficients of the projection of the 2D signal vector on the 2D basis. The coefficients are stored in array outputcoef that will be ajusted to have getNumberofCoefficients() coefficients.

Parameters
[in]atXorigin X coordinate of the signal for this projection (relative to vector).
[in]atYorigin Y coordinate of the signal for this projection (relative to vector).
[in]vector2D signal containing components of the vector to be projected onto the basis.
[out]outputcoefarray (as 1D signal) that receives the computed coefficients. It is adjusted to have getNumberofCoefficients() elements.
Returns
true if projection is successful.
See also
getNumberOfCoefficients()
reconstructSignal()
gcgDISCRETE1D()
gcgDISCRETE2D()

Implemented in gcgLEGENDREBASIS2D< NUMTYPE >.

◆ reconstructSignal()

template<class NUMTYPE = float>
virtual bool gcgBASIS2D< NUMTYPE >::reconstructSignal ( int  atX,
int  atY,
gcgDISCRETE1D< NUMTYPE > *  inputcoef,
gcgDISCRETE2D< float > *  outputvector 
)
privatepure virtual

Computes the components of a 2D vector, using the getNumberofCoefficients() coefficients given in array inputcoef (as 1D signal). The components are stored in the 2D signal outputvector starting at position (atX, atY).

Parameters
[in]atXorigin X coordinate of the signal for this projection (relative to outputvector).
[in]atYorigin Y coordinate of the signal for this projection (relative to outputvector).
[in]inputcoefarray of coefficients (as 1D signal) representing the vector to be reconstructed.
[out]outputvectorarray (as 2D signal) that receives the reconstructed samples starting at position (atX, atY).
Returns
true if reconstruction is successful.
See also
getNumberOfCoefficients()
projectSignal()
gcgDISCRETE1D()
gcgDISCRETE2D()

Implemented in gcgLEGENDREBASIS2D< NUMTYPE >.


The documentation for this class was generated from the following file: