CVB.Net 14.0
Morphology Class Reference

Morphological filter operations available from the Common Vision Blox foundation package. More...

Static Public Member Functions

static Image Erode (Image img, MorphologyMask maskType, Size2D maskSize)
 Perform an erosion operation with a selectable filter mask. More...
 
static Image Erode (Image img, MorphologyMask maskType, Size2D maskSize, Point2D maskOffset)
 Perform an erosion operation with a selectable filter mask. More...
 
static Image Erode (Image img, Image mask)
 Performs an erosion operation with a custom filter mask. More...
 
static Image Erode (Image img, Image mask, Point2D maskOffset)
 Performs an erosion operation with a custom filter mask. More...
 
static Image Dilate (Image img, MorphologyMask maskType, Size2D maskSize)
 Perform an dilation operation with a selectable filter mask. More...
 
static Image Dilate (Image img, MorphologyMask maskType, Size2D maskSize, Point2D maskOffset)
 Perform an dilation operation with a selectable filter mask. More...
 
static Image Dilate (Image img, Image mask)
 Perform an dilation operation with a custom filter mask. More...
 
static Image Dilate (Image img, Image mask, Point2D maskOffset)
 Perform an dilation operation with a custom filter mask. More...
 
static Image Open (Image img, MorphologyMask maskType, Size2D maskSize)
 Perform an open operation with a selectable filter mask. More...
 
static Image Open (Image img, MorphologyMask maskType, Size2D maskSize, Point2D maskOffset)
 Perform an open operation with a selectable filter mask. More...
 
static Image Open (Image img, Image mask)
 Perform an open operation with a custom filter mask. More...
 
static Image Open (Image img, Image mask, Point2D maskOffset)
 Perform an open operation with a custom filter mask. More...
 
static Image Close (Image img, MorphologyMask maskType, Size2D maskSize)
 Perform a close operation with a selectable filter mask. More...
 
static Image Close (Image img, MorphologyMask maskType, Size2D maskSize, Point2D maskOffset)
 Perform a close operation with a selectable filter mask. More...
 
static Image Close (Image img, Image mask)
 Perform a close operation with a custom filter mask. More...
 
static Image Close (Image img, Image mask, Point2D maskOffset)
 Perform a close operation with a custom filter mask. More...
 
static Image DistanceTransform (ImagePlane plane, 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. Distance is calculated approximatively using a set of principal distances, that is governed by the MaskSize parameter and the distance norm. More...
 

Detailed Description

Morphological filter operations available from the Common Vision Blox foundation package.

Member Function Documentation

◆ Close() [1/4]

static Image Close ( Image  img,
Image  mask 
)
static

Perform a close operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null
ObjectDisposedExceptionIf the input img or mask have been disposed

◆ Close() [2/4]

static Image Close ( Image  img,
Image  mask,
Point2D  maskOffset 
)
static

Perform a close operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null
ObjectDisposedExceptionIf the input img or mask have been disposed

◆ Close() [3/4]

static Image Close ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize 
)
static

Perform a close operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used
maskSizeSize of the erosion mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Close() [4/4]

static Image Close ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize,
Point2D  maskOffset 
)
static

Perform a close operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used
maskSizeSize of the erosion mask
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Dilate() [1/4]

static Image Dilate ( Image  img,
Image  mask 
)
static

Perform an dilation operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null
ObjectDisposedExceptionIf the input img or mask have been disposed

◆ Dilate() [2/4]

static Image Dilate ( Image  img,
Image  mask,
Point2D  maskOffset 
)
static

Perform an dilation operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
maskOffsetoffset of the mask reference point relative to the top left pixel of the mask; must lie within the mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null
ObjectDisposedExceptionIf the input img or mask have been disposed

◆ Dilate() [3/4]

static Image Dilate ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize 
)
static

Perform an dilation operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used
maskSizeSize of the erosion mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Dilate() [4/4]

static Image Dilate ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize,
Point2D  maskOffset 
)
static

Perform an dilation operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used
maskSizeSize of the erosion mask
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ DistanceTransform()

static Image DistanceTransform ( ImagePlane  plane,
FixedFilterSize  maskSize,
DistanceNorm  norm 
)
static

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. Distance is calculated approximatively using a set of principal distances, that is governed by the MaskSize parameter and the distance norm.

Parameters
planeImage plane on which to calculate.
maskSizeMask size to use for the approximator (only 3x3 and 5x5 are acceptable)
normDistance calculation norm to be used
Returns
The transformed image.
Exceptions
ObjectDisposedExceptionIf the input plane has already been disposed

◆ Erode() [1/4]

static Image Erode ( Image  img,
Image  mask 
)
static

Performs an erosion operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null.
ObjectDisposedExceptionIf the input img or mask have been disposed.

◆ Erode() [2/4]

static Image Erode ( Image  img,
Image  mask,
Point2D  maskOffset 
)
static

Performs an erosion operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null.
ObjectDisposedExceptionIf the input img or mask have been disposed.

◆ Erode() [3/4]

static Image Erode ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize 
)
static

Perform an erosion operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used.
maskSizeSize of the erosion mask.
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Erode() [4/4]

static Image Erode ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize,
Point2D  maskOffset 
)
static

Perform an erosion operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used.
maskSizeSize of the erosion mask.
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize .
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Open() [1/4]

static Image Open ( Image  img,
Image  mask 
)
static

Perform an open operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null
ObjectDisposedExceptionIf the input img or mask have been disposed

◆ Open() [2/4]

static Image Open ( Image  img,
Image  mask,
Point2D  maskOffset 
)
static

Perform an open operation with a custom filter mask.

Parameters
imgImage on which the operation is to be executed.
maskCustom filter mask to use.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)
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img or mask is null
ObjectDisposedExceptionIf the input img or mask have been disposed

◆ Open() [3/4]

static Image Open ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize 
)
static

Perform an open operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used
maskSizeSize of the erosion mask
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed

◆ Open() [4/4]

static Image Open ( Image  img,
MorphologyMask  maskType,
Size2D  maskSize,
Point2D  maskOffset 
)
static

Perform an open operation with a selectable filter mask.

Parameters
imgImage on which the operation is to be executed.
maskTypeType of erosion mask to be used
maskSizeSize of the erosion mask
maskOffsetOffset of the mask reference point relative to the top left pixel of the mask; must lie within the defined maskSize
Returns
The filtered image.
Exceptions
ArgumentNullExceptionIf the input img is null
ObjectDisposedExceptionIf the input img has already been disposed