|
latest version v1.9 - last update 10 Apr 2010 |
|
Computes the elements of the polar coordinate system (value,phase) based on the parameters of the cartesian coordinate system (x,y). More...
#include <ltiCartesianToPolar.h>


Classes | |
| class | parameters |
| the parameters for the class cartesianToPolar More... | |
Public Types | |
| typedef T | value_type |
Public Member Functions | |
| cartesianToPolar () | |
| cartesianToPolar (const parameters &thePars) | |
| cartesianToPolar (bool useLUT) | |
| cartesianToPolar (const cartesianToPolar &other) | |
| virtual | ~cartesianToPolar () |
| virtual const char * | getTypeName () const |
| bool | apply (matrix< T > &r_abs, matrix< T > &i_ph) |
| bool | apply (vector< T > &r_abs, vector< T > &i_ph) |
| bool | apply (const matrix< T > &real, const matrix< T > &imaginary, matrix< T > &absvalue, matrix< T > &phase) |
| bool | apply (const vector< T > &real, const vector< T > &imaginary, vector< T > &absvalue, vector< T > &phase) |
| bool | apply (const tpointList< T > &src, tpointList< double > &dest, const tpoint< double > origin=tpoint< double >(0.0, 0.0)) const |
| cartesianToPolar & | copy (const cartesianToPolar &other) |
| virtual functor * | clone () const |
| const parameters & | getParameters () const |
Computes the elements of the polar coordinate system (value,phase) based on the parameters of the cartesian coordinate system (x,y).
| typedef T lti::cartesianToPolar< T >::value_type |
value type of the used matrices
| lti::cartesianToPolar< T >::cartesianToPolar | ( | ) |
default constructor
| lti::cartesianToPolar< T >::cartesianToPolar | ( | const parameters & | thePars | ) |
constructor with parameters
| lti::cartesianToPolar< T >::cartesianToPolar | ( | bool | useLUT | ) |
constructor which uses the arctan lookup table if its argument is true
| lti::cartesianToPolar< T >::cartesianToPolar | ( | const cartesianToPolar< T > & | other | ) |
copy constructor
| other | the object to be copied |
| virtual lti::cartesianToPolar< T >::~cartesianToPolar | ( | ) | [virtual] |
destructor
| bool lti::cartesianToPolar< T >::apply | ( | const tpointList< T > & | src, | |
| tpointList< double > & | dest, | |||
| const tpoint< double > | origin = tpoint< double >(0.0, 0.0) | |||
| ) | const |
operates on a copy of the given parameters.
When this apply is invoked the Arctan Lookup Table is not used regardless of the useLUT parameter.
| src | list of points with the cartesian data. | |
| dest | resulting list, in which the points contains in their member x the magnitude (or radius) and the angle in the y. | |
| origin | optional parameter which gives the position considered as origin for the cartesic-polar conversion |
| bool lti::cartesianToPolar< T >::apply | ( | const vector< T > & | real, | |
| const vector< T > & | imaginary, | |||
| vector< T > & | absvalue, | |||
| vector< T > & | phase | |||
| ) |
operates on a copy of the given parameters.
If the source matrices have different sizes, the returned data will be empty.
| bool lti::cartesianToPolar< T >::apply | ( | const matrix< T > & | real, | |
| const matrix< T > & | imaginary, | |||
| matrix< T > & | absvalue, | |||
| matrix< T > & | phase | |||
| ) |
operates on a copy of the given parameters.
If the source matrices have different sizes, the returned data will be empty.
| real | matrix<T> with the real source data. | |
| imaginary | matrix<T> the imaginary source data. | |
| absvalue | absolute value of the input data. | |
| phase | phase of the input data. |
| bool lti::cartesianToPolar< T >::apply | ( | vector< T > & | r_abs, | |
| vector< T > & | i_ph | |||
| ) |
operates on the given parameter.
| r_abs | the real part of the source data (magnitude will be left here). | |
| i_ph | the imaginary part of the source data (phase will be left here). |
| bool lti::cartesianToPolar< T >::apply | ( | matrix< T > & | r_abs, | |
| matrix< T > & | i_ph | |||
| ) |
operates on the given parameter.
| r_abs | the real part of the source data (magnitude will be left here). | |
| i_ph | the imaginary part of the source data (phase will be left here). |
| virtual functor* lti::cartesianToPolar< T >::clone | ( | ) | const [virtual] |
returns a pointer to a clone of this functor.
Implements lti::functor.
| cartesianToPolar& lti::cartesianToPolar< T >::copy | ( | const cartesianToPolar< T > & | other | ) |
copy data of "other" functor.
| other | the functor to be copied |
Reimplemented from lti::functor.
| const parameters& lti::cartesianToPolar< T >::getParameters | ( | ) | const |
returns used parameters
Reimplemented from lti::transform.
| virtual const char* lti::cartesianToPolar< T >::getTypeName | ( | ) | const [virtual] |
returns the name of this type ("cartesianToPolar")
Reimplemented from lti::transform.