[ VIGRA Homepage | Class Index | Function Index | File Index | Main Page ]
![]() |
FindROISize Class Template Reference | ![]() |
---|
Calculate the size of an ROI in an image. More...
#include "vigra/inspectimage.hxx"
Public Types | |
typedef VALUETYPE | argument_type |
typedef unsigned int | result_type |
typedef VALUETYPE | value_type |
Public Methods | |
FindROISize () | |
void | reset () |
void | operator() (argument_type const &) |
result_type | operator() () const |
result_type | size () const |
void | operator() (FindROISize const &o) |
Public Attributes | |
result_type | count |
Detailed Description |
This Functor is often used in conjunction with ArrayOfRegionStatistics to find the sizes of all regions in a labeled image.
Traits defined:
Usage:
#include "vigra/inspectimage.hxx"
the functor's argument type
the functor's result type
init counter to 0
merge two statistics
return current size
update counter
(re-)init ROI size with 0
return current size
the current counter
© 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, mask;
vigra::FindROISize<vigra::BImage::PixelType> roisize; // init functor
vigra::inspectImageIf(srcImageRange(img), srcImage(mask), roisize);
cout << "Size of ROI: " << roisize.count;
Member Typedef Documentation
typedef VALUETYPE argument_type
typedef unsigned int result_type
typedef VALUETYPE value_type
Constructor & Destructor Documentation
FindROISize
(
)
[inline]
Member Function Documentation
void operator()
(
FindROISize< VALUETYPE > const &
o
)
[inline]
result_type operator()
(
)
const
[inline]
void operator()
(
argument_type const &
)
[inline]
void reset
(
)
[inline]
result_type size
(
)
const
[inline]
Member Data Documentation
result_type count
The documentation for this class was generated from the following file:
Cognitive Systems Group,
University of Hamburg, Germany
VIGRA 1.4.0 (21 Dec 2005)