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

details Basic Morphological Operations VIGRA

Functions

template<... >
void discDilation (...)
 Apply dilation (maximum) filter with disc of given radius to image. More...
 
template<... >
void discDilationWithMask (...)
 Apply dilation (maximum) filter with disc of given radius to image using a mask. More...
 
template<... >
void discErosion (...)
 Apply erosion (minimum) filter with disc of given radius to image. More...
 
template<... >
void discErosionWithMask (...)
 Apply erosion (minimum) filter with disc of given radius to image using a mask. More...
 
template<... >
void discMedian (...)
 Apply median filter with disc of given radius to image. More...
 
template<... >
void discMedianWithMask (...)
 Apply median filter with disc of given radius to image using a mask. More...
 
template<... >
void discRankOrderFilter (...)
 Apply rank order filter with disc structuring function to the image. More...
 
template<... >
void discRankOrderFilterWithMask (...)
 Apply rank order filter with disc structuring function to the image using a mask. More...
 

Detailed Description

Perform erosion, dilation, and median with disc structuring functions

See also: Morphological operators for multi-dimensional arrays. Separable morphology with parabola structuring functions in arbitrary dimensions

Function Documentation

void vigra::discRankOrderFilter (   ...)

Apply rank order filter with disc structuring function to the image.

The pixel values of the source image must be in the range 0...255. Radius must be >= 0. Rank must be in the range 0.0 <= rank <= 1.0. The filter acts as a minimum filter if rank = 0.0, as a median if rank = 0.5, and as a maximum filter if rank = 1.0. Accessor are used to access the pixel data.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class T2, class S2>
void
discRankOrderFilter(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, T2, S2> dest,
int radius, float rank);
}

show deprecated declarations

Usage:

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

MultiArray<2, unsigned char> src(w, h), dest(w, h);
// do median filtering (because rank=0.5) in a cricle with radius 10
discRankOrderFilter(src, dest, 10, 0.5);

show deprecated examples

Preconditions:

for all source pixels: 0 <= value <= 255
(rank >= 0.0) && (rank <= 1.0)
radius >= 0
void vigra::discErosion (   ...)

Apply erosion (minimum) filter with disc of given radius to image.

This is an abbreviation for the rank order filter with rank = 0.0. See discRankOrderFilter() for more information.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class T2, class S2>
void
discErosion(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, T2, S2> dest,
int radius);
}

show deprecated declarations

void vigra::discDilation (   ...)

Apply dilation (maximum) filter with disc of given radius to image.

This is an abbreviation for the rank order filter with rank = 1.0. See discRankOrderFilter() for more information.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class T2, class S2>
void
discDilation(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, T2, S2> dest,
int radius);
}

show deprecated declarations

void vigra::discMedian (   ...)

Apply median filter with disc of given radius to image.

This is an abbreviation for the rank order filter with rank = 0.5. See discRankOrderFilter() for more information.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class T2, class S2>
void
discMedian(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, T2, S2> dest,
int radius);
}

show deprecated declarations

void vigra::discRankOrderFilterWithMask (   ...)

Apply rank order filter with disc structuring function to the image using a mask.

The pixel values of the source image must be in the range 0...255. Radius must be >= 0. Rank must be in the range 0.0 <= rank <= 1.0. The filter acts as a minimum filter if rank = 0.0, as a median if rank = 0.5, and as a maximum filter if rank = 1.0. Accessor are used to access the pixel data.

The mask is only applied to th input image, i.e. the function generates an output wherever the current disc contains at least one pixel with mask value 'true'. Source pixels with mask value 'false' are ignored during the calculation of the rank order.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class TM, class SM,
class T2, class S2>
void
discRankOrderFilterWithMask(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, TM, SM> const & mask,
MultiArrayView<2, T2, S2> dest,
int radius, float rank);
}

show deprecated declarations

Usage:

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

MultiArray<2, unsigned char> src(w, h), dest(w, h), mask(w, h);
...
// do median filtering (since rank=0.5) in a circle with radius 10
// but change only the pixels under the mask
discRankOrderFilterWithMask(src, mask, dest, 10, 0.5);

show deprecated examples

Preconditions:

for all source pixels: 0 <= value <= 255
(rank >= 0.0) && (rank <= 1.0)
radius >= 0
void vigra::discErosionWithMask (   ...)

Apply erosion (minimum) filter with disc of given radius to image using a mask.

This is an abbreviation for the masked rank order filter with rank = 0.0. See discRankOrderFilterWithMask() for more information.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class TM, class SM,
class T2, class S2>
void
discErosionWithMask(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, TM, SM> const & mask,
MultiArrayView<2, T2, S2> dest,
int radius);
}

show deprecated declarations

void vigra::discDilationWithMask (   ...)

Apply dilation (maximum) filter with disc of given radius to image using a mask.

This is an abbreviation for the masked rank order filter with rank = 1.0. See discRankOrderFilterWithMask() for more information.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class TM, class SM,
class T2, class S2>
void
discDilationWithMask(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, TM, SM> const & mask,
MultiArrayView<2, T2, S2> dest,
int radius);
}

show deprecated declarations

void vigra::discMedianWithMask (   ...)

Apply median filter with disc of given radius to image using a mask.

This is an abbreviation for the masked rank order filter with rank = 0.5. See discRankOrderFilterWithMask() for more information.

Declarations:

pass 2D array views:

namespace vigra {
template <class T1, class S1,
class TM, class SM,
class T2, class S2>
void
discMedianWithMask(MultiArrayView<2, T1, S1> const & src,
MultiArrayView<2, TM, SM> const & mask,
MultiArrayView<2, T2, S2> dest,
int radius);
}

show deprecated declarations

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