#include <imgclass.hpp>
This class is deprecated. Use QRfit to equalize different sensitivites and illumination. Only kept for reference. Reads and writes to its own fileformat.
Definition at line 746 of file imgclass.hpp.
Public Types | |
typedef T | data_t |
The base data type, for convenience. | |
Public Member Functions | |
interpol (bild16 *refbilder, float *refw, int nrefimg) | |
interpol (const char *fname) | |
void | write (const char *fname) |
void | read (const char *fname) throw (const char*) |
float | operator() (int y, int x, float val) |
const lut & | operator() (int y, int x) const |
Constant element extraction operator. | |
imgbase< s_x, s_y, T > & | operator/= (const imgbase< s_x, s_y, T > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator/= (const T &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator*= (const imgbase< s_x, s_y, T > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator*= (const T &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator-= (const imgbase< s_x, s_y, T > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator-= (const T &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator+= (const imgbase< s_x, s_y, T > &what) |
Arithmetic operator. | |
imgbase< s_x, s_y, T > & | operator+= (const T &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 |
Private Member Functions | |
lut & | operator() (int y, int x) |
Element extraction operator. | |
Private Attributes | |
int | nref |
lut | refwerte |
Static Private Attributes | |
static const char | magic [] = "INTERREF" |
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.
interpol::interpol | ( | bild16 * | refbilder, | |
float * | refw, | |||
int | nrefimg | |||
) |
Definition at line 879 of file imgclass.cpp.
References bild16::intensity_max, nref, imgbase< s_x, s_y, T >::SIZEX, and imgbase< s_x, s_y, T >::SIZEY.
interpol::interpol | ( | const char * | fname | ) |
void interpol::write | ( | const char * | fname | ) |
Definition at line 895 of file imgclass.cpp.
References magic, nref, refwerte, imgbase< s_x, s_y, T >::SIZEX, and imgbase< s_x, s_y, T >::SIZEY.
void interpol::read | ( | const char * | fname | ) | throw (const char*) |
Definition at line 911 of file imgclass.cpp.
References magic, nref, refwerte, imgbase< s_x, s_y, T >::SIZEX, and imgbase< s_x, s_y, T >::SIZEY.
Referenced by interpol().
float interpol::operator() | ( | int | y, | |
int | x, | |||
float | val | |||
) |
const lut& interpol::operator() | ( | int | y, | |
int | x | |||
) | const [inline] |
Constant element extraction operator.
Reimplemented from imgbase< s_x, s_y, T >.
Definition at line 753 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::operator()().
lut& interpol::operator() | ( | int | y, | |
int | x | |||
) | [inline, private] |
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
Reimplemented from imgbase< s_x, s_y, T >.
Definition at line 759 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::operator()().
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator/= | ( | const imgbase< s_x, s_y, T > & | what | ) | [inline, 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
Definition at line 224 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator/= | ( | const T & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator divides every pixel by the constant value what
Definition at line 261 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator*= | ( | const imgbase< s_x, s_y, T > & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator multiplies every pixel of the image by the corresponding value in what.
Definition at line 236 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator*= | ( | const T & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator multiplies every pixel by the constant value what
Definition at line 272 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator-= | ( | const imgbase< s_x, s_y, T > & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator subtracts every pixel of what from the corresponding value in the image.
Definition at line 249 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator-= | ( | const T & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator subtracts the constant value what from every pixel in the image
Definition at line 283 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator+= | ( | const imgbase< s_x, s_y, T > & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator adds every pixel in what to the corresponding pixel value in the image
Definition at line 295 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
imgbase< s_x, s_y, T > & imgbase< s_x, s_y, T >::operator+= | ( | const T & | what | ) | [inline, inherited] |
Arithmetic operator.
This operator adds the constant value what to every pixel in the image
Definition at line 307 of file imgclass.hpp.
References imgbase< s_x, s_y, T >::bild, and MAP.
const char interpol::magic = "INTERREF" [static, private] |
int interpol::nref [private] |
Definition at line 757 of file imgclass.hpp.
Referenced by interpol(), operator()(), read(), and write().
lut interpol::refwerte [private] |
save the s_x template parameter
Definition at line 126 of file imgclass.hpp.
Referenced by interpol(), valleyborder::operator()(), maxborder::operator()(), minborder::operator()(), QRfit::QRfit(), QRfit::read(), read(), QRfit::write(), and write().
save the s_y template parameter
Definition at line 129 of file imgclass.hpp.
Referenced by interpol(), valleyborder::operator()(), maxborder::operator()(), minborder::operator()(), QRfit::QRfit(), QRfit::read(), read(), QRfit::write(), and write().
The real data storage. Should not be used by derived classes
Definition at line 161 of file imgclass.hpp.
Referenced by imgbase< s_x, s_y, T >::imgbase(), imgbase< 512, 512, unsigned short >::operator()(), imgbase< s_x, s_y, T >::operator*=(), imgbase< s_x, s_y, T >::operator+=(), imgbase< s_x, s_y, T >::operator-=(), imgbase< s_x, s_y, T >::operator/=(), imgbase< s_x, s_y, T >::operator=(), and imgbase< s_x, s_y, T >::~imgbase().