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

Public Member Functions | List of all members
LabelOptions Class Reference

Option object for labelMultiArray(). More...

`#include <vigra/multi_labeling.hxx>`

Inheritance diagram for LabelOptions:

## Public Member Functions

template<class T>
T | getBackgroundValue () const
| Get the background value to be ignored.
NeighborhoodType | getNeighborhood () const
| Query the neighborhood type (direct or indirect).
bool | hasBackgroundValue () const
| Check if some background value is to be ignored.
template<class T>
LabelOptions & | ignoreBackgroundValue (T const &t)
| Set background value.
| LabelOptions ()
| Set default options.
LabelOptions & | neighborhood (NeighborhoodType n)
| Choose direct or indirect neighborhood.

## Detailed Description

Option object for labelMultiArray().

## Member Function Documentation

## ◆ neighborhood()

LabelOptions & neighborhood | ( | NeighborhoodType | n | ) |

Choose direct or indirect neighborhood.

Default: DirectNeighborhood

## ◆ ignoreBackgroundValue()

template<class T>

LabelOptions & ignoreBackgroundValue | ( | T const & | t | ) |

Set background value.

If specified, labelMultiArray() will internally call labelMultiArrayWithBackground() with the given value considered as background and thus ignored. If no background value is set, the array gets labeled completely. Note that the type T must correspond to the element type of the data array to be labeled.

Default: don't ignore any value.

## ◆ getBackgroundValue()

template<class T>

T getBackgroundValue | ( |  | ) | const

Get the background value to be ignored.

Throws an exception if the stored background value type is incompatible to the data array's value type.

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

- vigra/multi_labeling.hxx

© 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.12.4