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

details ConvexHullFeatures Class Reference VIGRA

Compute object features related to the convex hull. More...

#include <vigra/accumulator.hxx>

Classes

struct  Impl
 Result type of the covex hull feature calculation. More...
 

Detailed Description

Compute object features related to the convex hull.

AccumulatorChain must be used with CoupledIterator in order to have access to pixel coordinates. The convex hull features are only available when WITH_LEMON is set.

Minimal example how to calculate the features:

// "labels" is the array with the region labels
MultiArrayView<2, int> labels = ...;
// Set up the accumulator chain and ignore the zero label
AccumulatorChainArray<
CoupledArrays<2, int>,
Select<LabelArg<1>, ConvexHullFeatures> > chain;
chain.ignoreLabel(0);
// Extract the features
extractFeatures(labels, chain);
// Finalize the calculation for label 1
getAccumulator<ConvexHullFeatures>(chain, 1).finalize();
// Get the features
... = getAccumulator<ConvexHullFeatures>(chain, 1).inputCenter();

The documentation for this class was generated from the following file:

© 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)