Namespace for morphological filter operations available from the Common Vision Blox Foundation package. More...
Enumerations | |
enum class | MorphologyMask { Rectangular = CExports::MM_Rect , Cross = CExports::MM_Cross , Elliptic = CExports::MM_Ellipse } |
Available morphology masks. More... | |
enum class | DistanceNorm { LInfinity = CExports::DN_LInf , L1 = CExports::DN_L1 , L2 = CExports::DN_L2 } |
Norm for calculating distances. More... | |
Functions | |
std::unique_ptr< Image > | Erode (const Image &image, MorphologyMask maskType, Size2D< int > maskSize, Point2D< int > maskOffset) |
Perform an erosion operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Erode (const Image &image, MorphologyMask maskType, Size2D< int > maskSize) |
Perform an erosion operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Erode (const Image &image, const Image &mask, Point2D< int > maskOffset) |
Perform an erosion operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Erode (const Image &image, const Image &mask) |
Perform an erosion operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Dilate (const Image &image, MorphologyMask maskType, Size2D< int > maskSize, Point2D< int > maskOffset) |
Perform a dilation operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Dilate (const Image &image, MorphologyMask maskType, Size2D< int > maskSize) |
Perform a dilation operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Dilate (const Image &image, const Image &mask, Point2D< int > maskOffset) |
Perform a dilation operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Dilate (const Image &image, const Image &mask) |
Perform a dilation operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Open (const Image &image, MorphologyMask maskType, Size2D< int > maskSize, Point2D< int > maskOffset) |
Perform an open operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Open (const Image &image, MorphologyMask maskType, Size2D< int > maskSize) |
Perform an open operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Open (const Image &image, const Image &mask, Point2D< int > maskOffset) |
Perform an open operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Open (const Image &image, const Image &mask) |
Perform an open operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Close (const Image &image, MorphologyMask maskType, Size2D< int > maskSize, Point2D< int > maskOffset) |
Perform a close operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Close (const Image &image, MorphologyMask maskType, Size2D< int > maskSize) |
Perform a close operation with a selectable filter mask. More... | |
std::unique_ptr< Image > | Close (const Image &image, const Image &mask, Point2D< int > maskOffset) |
Perform a close operation with a custom filter mask. More... | |
std::unique_ptr< Image > | Close (const Image &image, const Image &mask) |
Perform a close operation with a custom filter mask. More... | |
std::unique_ptr< Image > | DistanceTransform (const ImagePlane &plane, Filter::FixedFilterSize maskSize, DistanceNorm norm) |
This function calculates (and writes into the output image) the distance to the closest pixel in the source image with the value zero for all nonzero pixels in the input image. More... | |
Namespace for morphological filter operations available from the Common Vision Blox Foundation package.
|
strong |
Norm for calculating distances.
Enumerator | |
---|---|
LInfinity | Infinity norm (a.k.a maximum norm). |
L1 | L1 norm (a.k.a. absolute norm). |
L2 | L2 norm (a.k.a. euclidean norm). |
|
strong |
|
inline |
Perform a close operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels, where irrelevant pixels have been set to black, and pixels, that are part of the filter mask have been set to white (255).
|
inline |
Perform a close operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined mask. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform a close operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Perform a close operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Perform a dilation operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform a dilation operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined mask. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform a dilation operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Perform a dilation operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize. |
Any | exception derived from std::exception including CvbException. |
|
inline |
This function calculates (and writes into the output image) the distance to the closest pixel in the source image with the value zero for all nonzero pixels in the input image.
[in] | plane | Image plane on which to calculate. |
[in] | maskSize | Mask size to use for the approximator (only Filter::FixedFilterSize::Kernel3x3 and Filter::FixedFilterSize::Kernel5x5 are acceptable). |
[in] | norm | Distance calculation norm to be used. |
Any | exception derived from std::exception including CvbException. |
Distance is calculated approximatively using a set of principal distances, that is governed by the maskSize parameter and the distance norm.
|
inline |
Perform an erosion operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform an erosion operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined mask. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels, where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform an erosion operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Perform an erosion operation with a selectable filter mask.
[in] | image | Image to perform the operation on. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Perform an open operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform an open operation with a custom filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | mask | Custom filter mask to use. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined mask. |
Any | exception derived from std::exception including CvbException. |
The custom filter mask effective is a CVB image of up to 256x256 pixels where irrelevant pixels have been set to black and pixels that are part of the filter mask have been set to white (255).
|
inline |
Perform an open operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Perform an open operation with a selectable filter mask.
[in] | image | Image on which the operation is to be executed. |
[in] | maskType | Type of morphological mask to be used. |
[in] | maskSize | Size of the morphological mask. |
[in] | maskOffset | Offset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize. |
Any | exception derived from std::exception including CvbException. |