[ 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 | reset () |
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.
Traits defined:
Usage:
#include "vigra/inspectimage.hxx"
the functor's argument type
the functor's result type
default initialization of value
return current value
replace value
replace value
reset to initiaö value
the current value
© Ullrich Köthe (koethe@informatik.uni-hamburg.de)
html generated using doxygen and Python
FunctorTraits::isUnaryAnalyser
and FunctorTraits::isInitializer
are true (VigraTrueType
)
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);
Member Typedef Documentation
typedef VALUETYPE argument_type
typedef VALUETYPE result_type
typedef VALUETYPE value_type
Constructor & Destructor Documentation
LastValueFunctor
(
)
[inline]
Member Function Documentation
result_type const& operator()
(
)
const
[inline]
void operator()
(
argument_type const &
v
)
[inline]
void operator=
(
argument_type const &
v
)
[inline]
void reset
(
)
[inline]
Member Data Documentation
VALUETYPE value
The documentation for this class was generated from the following file:
Cognitive Systems Group,
University of Hamburg, Germany
VIGRA 1.3.3 (18 Aug 2005)