Abstract class for 2D basis projection/reconstruction interfaces.
More...
#include <gcg.h>
|
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...
|
|
|
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...
|
|
template<class NUMTYPE = float>
class gcgBASIS2D< NUMTYPE >
Abstract class for 2D basis projection/reconstruction interfaces.
- Template Parameters
-
NUMTYPE | Type of the samples representing the signal. Supported types: float, double, long, int and short. |
- Since
- 0.01.6
◆ 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] | atX | origin X coordinate of the signal for this projection (relative to vector). |
[in] | atY | origin Y coordinate of the signal for this projection (relative to vector). |
[in] | vector | 2D signal containing components of the vector to be projected onto the basis. |
[out] | outputcoef | array (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] | atX | origin X coordinate of the signal for this projection (relative to outputvector). |
[in] | atY | origin Y coordinate of the signal for this projection (relative to outputvector). |
[in] | inputcoef | array of coefficients (as 1D signal) representing the vector to be reconstructed. |
[out] | outputvector | array (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:
- M:/Documentos/Projetos/Projetos/GCGlib/src/gcg.h