interpol Class Reference

#include <imgclass.hpp>

Inheritance diagram for interpol:

Inheritance graph
base refererrect $classimgbase.html 6,18 97,42
[legend]

List of all members.


Detailed Description

Deprecated pixel by pixel interpolation between individual reference images.

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 lutoperator() (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

lutoperator() (int y, int x)
 Element extraction operator.

Private Attributes

int nref
lut refwerte

Static Private Attributes

static const char magic [] = "INTERREF"

Member Typedef Documentation

template<int s_x, int s_y, typename T>
typedef T imgbase< s_x, s_y, T >::data_t [inherited]

The base data type, for convenience.

You can use this typedef to extract the type of the elements from the derived classes.

Example:

Definition at line 123 of file imgclass.hpp.


Constructor & Destructor Documentation

interpol::interpol ( bild16 refbilder,
float *  refw,
int  nrefimg 
)

interpol::interpol ( const char *  fname  ) 

Definition at line 875 of file imgclass.cpp.

References read().


Member Function Documentation

void interpol::write ( const char *  fname  ) 

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 
)

Definition at line 939 of file imgclass.cpp.

References nref, and refwerte.

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()().

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.

template<int s_x, int s_y, typename T>
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.


Member Data Documentation

const char interpol::magic = "INTERREF" [static, private]

Definition at line 756 of file imgclass.hpp.

Referenced by read(), and write().

int interpol::nref [private]

Definition at line 757 of file imgclass.hpp.

Referenced by interpol(), operator()(), read(), and write().

Definition at line 758 of file imgclass.hpp.

Referenced by operator()(), read(), and write().

template<int s_x, int s_y, typename T>
const int imgbase< s_x, s_y, T >::SIZEX [inherited]

template<int s_x, int s_y, typename T>
const int imgbase< s_x, s_y, T >::SIZEY [inherited]

template<int s_x, int s_y, typename T>
data_t** imgbase< s_x, s_y, T >::bild [protected, inherited]


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

Generated on Fri Jul 24 12:49:18 2009 for Xgrayimg Library by  doxygen 1.5.5