[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]

details Algorithms to Inspect Images VIGRA

Functions

template<... >
void inspectImage (...)
 Apply read-only functor to every pixel in the image. More...
 
template<... >
void inspectImageIf (...)
 Apply read-only functor to every pixel in the ROI. More...
 
template<... >
void inspectTwoImages (...)
 Apply read-only functor to every pixel of both images. More...
 
template<... >
void inspectTwoImagesIf (...)
 Apply read-only functor to those pixels of both images where the mask image is non-zero. More...
 

Detailed Description

Collect information and statistics over all or selected pixels.

Function Documentation

void vigra::inspectImage (   ...)

Apply read-only functor to every pixel in the image.

This function can be used to collect statistics of the image etc. The results must be stored in the functor, which serves as a return value (and is therefore passed by reference).

For many common statistics, the use of vigra::acc::extractFeatures() in combination with Feature Accumulators is more convenient.

Declarations:

pass 2D array views:

namespace vigra {
template <class T, class S, class Functor>
void
inspectImage(MultiArrayView<2, T, S> const & img,
Functor & f);
}

show deprecated declarations

Usage:

#include <vigra/inspectimage.hxx>
Namespace: vigra

MultiArray<2, unsigned char> img(width, height);
... // fill img
// init functor
FindMinMax<unsined char> minmax;
inspectImage(img, minmax);
cout << "Min: " << minmax.min << " Max: " << minmax.max;

show deprecated examples

See Also
Functors To Inspect Images, Feature Accumulators
void vigra::inspectImageIf (   ...)

Apply read-only functor to every pixel in the ROI.

This function can be used to collect statistics of the ROI etc. The functor is called whenever the return value of the mask's accessor is not zero. The results must be stored in the functor, which serves as a return value (and is therefore passed by reference.

Declarations:

pass 2D array views:

namespace vigra {
template <class T, class S,
class TM, class SM, class Functor>
void
inspectImageIf(MultiArrayView<2, T, S> const & img,
MultiArrayView<2, TM, SM> const & mask,
Functor & f);
}

show deprecated declarations

Usage:

#include <vigra/inspectimage.hxx>
Namespace: vigra

MultiArray<2, unsigned char> img(100, 100),
mask(100, 100);
... // fill img and mask
// init functor
FindMinMax<unsigned char> minmax;
inspectImageIf(img, mask, minmax);
cout << "Min: " << minmax.min << " Max: " << minmax.max;

show deprecated examples

See Also
Functors To Inspect Images, Feature Accumulators
void vigra::inspectTwoImages (   ...)

Apply read-only functor to every pixel of both images.

This function can be used to collect statistics for each region of a labeled image, especially in conjunction with the ArrayOfRegionStatistics functor. The results must be stored in the functor which serves as a return value.

Note: For many common statistics, the use of vigra::acc::extractFeatures() in combination with Feature Accumulators is more convenient.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class T2, class S2,
class Functor>
void
inspectTwoImages(MultiArrayView<2, T1, S1> const & img1,
MultiArrayView<2, T2, S2> const & img2,
Functor & f);
}

show deprecated declarations

Usage:

#include <vigra/inspectimage.hxx>
Namespace: vigra

MultiArray<2, unsigned char> image1(width, height), image2(width, height);
SomeStatisticsFunctor stats(...); // init functor
inspectTwoImages(image1, image2, stats);

show deprecated examples

See Also
Functors To Inspect Images, Feature Accumulators
Examples:
watershed.cxx.
void vigra::inspectTwoImagesIf (   ...)

Apply read-only functor to those pixels of both images where the mask image is non-zero.

This function can be used to collect statistics for selected regions of a labeled image, especially in conjunction with the ArrayOfRegionStatistics functor. The results must be stored in the functor which serves as a return value.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class T2, class S2,
class TM, class SM,
class Functor>
void
inspectTwoImagesIf(MultiArrayView<2, T1, S1> const & img1,
MultiArrayView<2, T2, S2> const & img2,
MultiArrayView<2, TM, SM> const & mask,
Functor & f);
}

show deprecated declarations

Usage:

#include <vigra/inspectimage.hxx>
Namespace: vigra

MultiArray<2, unsigned char> image1(width, height), image2(width, height),
maskimage(width, height);
SomeStatisticsFunctor stats(...); // init functor
inspectTwoImagesIf(image1, image2, maskimage, region_stats);

show deprecated examples

See Also
Functors To Inspect Images, Feature Accumulators

© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de)
Heidelberg Collaboratory for Image Processing, University of Heidelberg, Germany

html generated using doxygen and Python
vigra 1.11.1 (Fri May 19 2017)