#include <stdalgorithm.hpp>
Definition at line 216 of file stdalgorithm.hpp.
Public Types | |
typedef COMPLEX | data_t |
The base data type, for convenience. | |
Public Member Functions | |
bildcomplex () | |
bildcomplex (const bildfloat &realvalue) | |
bildcomplex (const bildfloat &real, const bildfloat &imag) | |
void | decompose (bildfloat &real, bildfloat &imag) |
bildcomplex & | FFT_forward () |
bildcomplex & | FFT_backward () |
bildcomplex & | Hamming_window (float width=220, float xm=256, float ym=256) |
bildcomplex & | Hamming_unwindow (float width=220, float xm=256, float ym=256) |
bildfloat & | norm (bildfloat &ret) |
COMPLEX & | operator() (int y, int x) |
Element extraction operator. | |
const COMPLEX & | operator() (int y, int x) const |
Constant element extraction operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator/= (const imgbase< s_x, s_y, COMPLEX > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator/= (const COMPLEX &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator*= (const imgbase< s_x, s_y, COMPLEX > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator*= (const COMPLEX &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator-= (const imgbase< s_x, s_y, COMPLEX > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator-= (const COMPLEX &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator+= (const imgbase< s_x, s_y, COMPLEX > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, COMPLEX > & | operator+= (const COMPLEX &what) |
Arithmetic operator. | |
Public Attributes | |
const int | SIZEX |
save the s_x template parameter | |
const int | SIZEY |
save the s_y template parameter | |
Protected Attributes | |
data_t ** | bild |
The base data type, for convenience.
You can use this typedef
to extract the type of the elements from the derived classes.
Example:
bild16::data_t temp;
Definition at line 123 of file imgclass.hpp.
bildcomplex::bildcomplex | ( | ) | [inline] |
Definition at line 218 of file stdalgorithm.hpp.
bildcomplex::bildcomplex | ( | const bildfloat & | realvalue | ) |
bildcomplex & bildcomplex::FFT_forward | ( | ) |
Definition at line 177 of file stdalgorithm.cpp.
References imgbase< 512, 512, COMPLEX >::bild, forward_fft2f(), imgbase< 512, 512, COMPLEX >::SIZEX, and imgbase< 512, 512, COMPLEX >::SIZEY.
bildcomplex & bildcomplex::FFT_backward | ( | ) |
Definition at line 183 of file stdalgorithm.cpp.
References imgbase< 512, 512, COMPLEX >::bild, inverse_fft2f(), imgbase< 512, 512, COMPLEX >::SIZEX, and imgbase< 512, 512, COMPLEX >::SIZEY.
bildcomplex & bildcomplex::Hamming_window | ( | float | width = 220 , |
|
float | xm = 256 , |
|||
float | ym = 256 | |||
) |
bildcomplex & bildcomplex::Hamming_unwindow | ( | float | width = 220 , |
|
float | xm = 256 , |
|||
float | ym = 256 | |||
) |
Element extraction operator.
Parenthesis are used to index a pixel of the image. This idea is borrowed from the octave C++ interface. The order of the arguments is y, x. This order should imitate the old C way in order not to confuse people from EP~V
Definition at line 138 of file imgclass.hpp.
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator/= | ( | const imgbase< s_x, s_y, COMPLEX > & | what | ) | [inherited] |
Arithmetic operator.
This operator divides every pixel of the image by the corresponding value in what. It leaves the value unchanged if the denominator is zero, thus avoiding division by zero
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator/= | ( | const COMPLEX & | what | ) | [inherited] |
Arithmetic operator.
This operator divides every pixel by the constant value what
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator*= | ( | const imgbase< s_x, s_y, COMPLEX > & | what | ) | [inherited] |
Arithmetic operator.
This operator multiplies every pixel of the image by the corresponding value in what.
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator*= | ( | const COMPLEX & | what | ) | [inherited] |
Arithmetic operator.
This operator multiplies every pixel by the constant value what
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator-= | ( | const imgbase< s_x, s_y, COMPLEX > & | what | ) | [inherited] |
Arithmetic operator.
This operator subtracts every pixel of what from the corresponding value in the image.
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator-= | ( | const COMPLEX & | what | ) | [inherited] |
Arithmetic operator.
This operator subtracts the constant value what from every pixel in the image
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator+= | ( | const imgbase< s_x, s_y, COMPLEX > & | what | ) | [inherited] |
Arithmetic operator.
This operator adds every pixel in what to the corresponding pixel value in the image
imgbase<s_x, s_y, COMPLEX >& imgbase< s_x, s_y, COMPLEX >::operator+= | ( | const COMPLEX & | what | ) | [inherited] |
Arithmetic operator.
This operator adds the constant value what to every pixel in the image
save the s_x template parameter
Definition at line 126 of file imgclass.hpp.
Referenced by FFT_backward(), and FFT_forward().
save the s_y template parameter
Definition at line 129 of file imgclass.hpp.
Referenced by FFT_backward(), and FFT_forward().
The real data storage. Should not be used by derived classes
Definition at line 161 of file imgclass.hpp.
Referenced by FFT_backward(), and FFT_forward().