[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
FindMinMax Class Template Reference | ![]() |
---|
Find the minimum and maximum pixel value in an image or ROI. More...
#include "vigra/inspectimage.hxx"
Public Types | |
typedef VALUETYPE | argument_type |
typedef VALUETYPE | result_type |
typedef VALUETYPE | value_type |
Public Methods | |
FindMinMax () | |
void | reset () |
void | operator() (argument_type const &v) |
void | operator() (RGBValue< VALUETYPE > const &v) |
void | operator() (FindMinMax const &v) |
Public Attributes | |
VALUETYPE | min |
VALUETYPE | max |
unsigned int | count |
Detailed Description |
In addition the size of the ROI is calculated. These functors can also be used in conjunction with ArrayOfRegionStatistics to find the extremes of all regions in a labeled image.
Traits defined:
Usage:
#include "vigra/inspectimage.hxx"
Required Interface:
the functor's argument type
the functor's result type
init min and max
merge two statistics
update min and max with components of RGBValue<VALUETYPE>
update min and max
(re-)init functor (clear min, max)
the number of values processed so far
the current max
the current min
© Ullrich Köthe (koethe@informatik.uni-hamburg.de)
html generated using doxygen and Python
FunctorTraits::isUnaryAnalyser
is true (VigraTrueType
)
Namespace: vigra
vigra::BImage img;
vigra::FindMinMax<vigra::BImage::PixelType> minmax; // init functor
vigra::inspectImage(srcImageRange(img), minmax);
cout << "Min: " << minmax.min << " Max: " << minmax.max;
VALUETYPE v1, v2(v1);
v1 < v2;
v1 = v2;
Member Typedef Documentation
typedef VALUETYPE argument_type
typedef VALUETYPE result_type
typedef VALUETYPE value_type
Constructor & Destructor Documentation
FindMinMax
(
)
[inline]
Member Function Documentation
void operator()
(
FindMinMax< VALUETYPE > const &
v
)
[inline]
void operator()
(
RGBValue< VALUETYPE > const &
v
)
[inline]
void operator()
(
argument_type const &
v
)
[inline]
void reset
(
)
[inline]
Member Data Documentation
unsigned int count
VALUETYPE max
VALUETYPE min
The documentation for this class was generated from the following file:
Cognitive Systems Group,
University of Hamburg, Germany
VIGRA 1.5.0 (7 Dec 2006)