[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
|
LastValueFunctor Class Template Reference | ![]() |
|---|
Stores and returns the last value it has seen. More...
#include "vigra/inspectimage.hxx"
Public Types | |
| typedef VALUETYPE | argument_type |
| typedef VALUETYPE | result_type |
| typedef VALUETYPE | value_type |
Public Methods | |
| LastValueFunctor () | |
| void | operator= (argument_type const &v) |
| void | operator() (argument_type const &v) |
| result_type const & | operator() () const |
Public Attributes | |
| VALUETYPE | value |
Detailed Description |
This Functor is best used in conjunction with ArrayOfRegionStatistics to realize a look-up table.
Usage:
#include "vigra/inspectimage.hxx"
Namespace: vigra
vigra::BImage img;
vigra::ArrayOfRegionStatistics<LastValueFunctor<unsigned char> > lut(255);
for(int i=0; i<256; ++i)
{
lut[i] = ...; // init look-up table
}
vigra::transformImage(srcImageRange(img), destImage(img), lut);
|
|
the functor's argument type |
|
|
the functor's result type |
|
|
|
|
|
default initialization of value |
|
|
return current value |
|
|
replace value |
|
|
replace value |
|
|
the current value |
|
© Ullrich Köthe (koethe@informatik.uni-hamburg.de) |
html generated using doxygen and Python
|