oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Morphology

Functions

Image oevislib_net.Image.Dilate (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor, Optional< Region > outKernel)
 Computes a dilation of the image using a specific kernel.
Image oevislib_net.Image.Dilate (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes a dilation of the image using a Region as kernel.
Image oevislib_net.Image.Dilate (MorphologyKernel inKernel, Optional< Region > inRoi=null)
 Computes a dilation of the image using a predefined kernel.
Image oevislib_net.Image.Erode (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor, Optional< Region > outKernel)
 Computes an erosion of the image using a specific kernel.
Image oevislib_net.Image.Erode (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes an erosion of the image using a Region as kernel.
Image oevislib_net.Image.Erode (MorphologyKernel inKernel, Optional< Region > inRoi=null)
 Computes an erosion of the image using a predefined kernel.
void oevislib_net.Image.DilateAndErode (Image outDilated, Image outEroded, KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes dilation and erosion on the image simultaneously (faster than the two separate operations).
void oevislib_net.Image.DilateErodeAndAverage (Image outDilated, Image outEroded, Image outAveraged, KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes dilation, erosion and average simultaneously (faster execution).
Image oevislib_net.Image.Open (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor, Optional< Region > outKernel)
 Computes the opening of the image using a specific kernel.
Image oevislib_net.Image.Open (MorphologyKernel inKernel, Optional< Region > inRoi=null, Optional< Pixel > inBorderColor=null)
 Computes the opening of the image using a predefined kernel.
Image oevislib_net.Image.Open (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes the opening of the image using a Region as kernel.
Image oevislib_net.Image.Close (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor, Optional< Region > outKernel)
 Computes the closing of the image using a specific kernel.
Image oevislib_net.Image.Close (MorphologyKernel inKernel, Optional< Region > inRoi=null, Optional< Pixel > inBorderColor=null)
 Computes the closing of the image using a predefined kernel.
Image oevislib_net.Image.Close (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes the closing of the image using a Region as kernel.
Image oevislib_net.Image.TopHat (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor, Optional< Region > outKernel)
 Computes the top hat of the image using a specific kernel.
Image oevislib_net.Image.TopHat (MorphologyKernel inKernel, Optional< Region > inRoi=null, Optional< Pixel > inBorderColor=null)
 Computes the top hat of the image using a predefined kernel.
Image oevislib_net.Image.TopHat (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes the bottom hat of the image using a Region as kernel.
Image oevislib_net.Image.BottomHat (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor, Optional< Region > outKernel)
 Computes the bottom hat of the image using a specific kernel.
Image oevislib_net.Image.BottomHat (MorphologyKernel inKernel, Optional< Region > inRoi=null, Optional< Pixel > inBorderColor=null)
 Computes the bottom hat of the image using a predefined kernel.
Image oevislib_net.Image.BottomHat (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Computes the bottom hat of the image using a Region as kernel.
Image oevislib_net.Image.HitAndMiss (Region inHitKernel, Region inMissKernel)
 Apply the Hit&Miss kernel to the image.
Image oevislib_net.Image.Prune (int inMaxLength)
 Prune the image.

Detailed Description

Function Documentation

◆ BottomHat() [1/3]

Image oevislib_net.Image.BottomHat ( KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor,
Optional< Region > outKernel )
inline

Computes the bottom hat of the image using a specific kernel.

Represents the difference between the image and its opened version.

Parameters
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
outKernelKernel region used.
Returns
Output image.

◆ BottomHat() [2/3]

Image oevislib_net.Image.BottomHat ( MorphologyKernel inKernel,
Optional< Region > inRoi = null,
Optional< Pixel > inBorderColor = null )
inline

Computes the bottom hat of the image using a predefined kernel.

Represents the difference between the image and its opened version.

Parameters
inKernelKernel.
inRoiRange of pixels to be updated in the output image.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ BottomHat() [3/3]

Image oevislib_net.Image.BottomHat ( Region inKernel,
Point2Di inKernelAnchor,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes the bottom hat of the image using a Region as kernel.

Represents the difference between the image and its opened version.

Parameters
inKernelKernel region.
inKernelAnchorA point inside inKernel that defines its center.
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ Close() [1/3]

Image oevislib_net.Image.Close ( KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor,
Optional< Region > outKernel )
inline

Computes the closing of the image using a specific kernel.

Removes small holes and fills in small gaps in the image applying consecutive dilation and erosion.

Parameters
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
outKernelKernel region used.
Returns
Output image.

◆ Close() [2/3]

Image oevislib_net.Image.Close ( MorphologyKernel inKernel,
Optional< Region > inRoi = null,
Optional< Pixel > inBorderColor = null )
inline

Computes the closing of the image using a predefined kernel.

Removes small holes and fills in small gaps in the image applying consecutive dilation and erosion.

Parameters
inKernelKernel.
inRoiRange of pixels to be updated in the output image.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ Close() [3/3]

Image oevislib_net.Image.Close ( Region inKernel,
Point2Di inKernelAnchor,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes the closing of the image using a Region as kernel.

Removes small holes and fills in small gaps in the image applying consecutive dilation and erosion.

Parameters
inKernelKernel region.
inKernelAnchorA point inside inKernel that defines its center.
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ Dilate() [1/3]

Image oevislib_net.Image.Dilate ( KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor,
Optional< Region > outKernel )
inline

Computes a dilation of the image using a specific kernel.

Replaces each pixel with the maximum of its neighboring pixels (inside the kernel).

Parameters
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
outKernelKernel region used.
Returns
Output image.

◆ Dilate() [2/3]

Image oevislib_net.Image.Dilate ( MorphologyKernel inKernel,
Optional< Region > inRoi = null )
inline

Computes a dilation of the image using a predefined kernel.

Replaces each pixel with the maximum of its neighboring pixels (inside the kernel).

Parameters
inKernelKernel.
inRoiRange of pixels to be updated in the output image.
Returns
Output image.

◆ Dilate() [3/3]

Image oevislib_net.Image.Dilate ( Region inKernel,
Point2Di inKernelAnchor,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes a dilation of the image using a Region as kernel.

Replaces each pixel with the maximum of its neighboring pixels (inside the kernel).

Parameters
inKernelKernel region.
inKernelAnchorA point inside inKernel that defines its center.
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ DilateAndErode()

void oevislib_net.Image.DilateAndErode ( Image outDilated,
Image outEroded,
KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes dilation and erosion on the image simultaneously (faster than the two separate operations).

Parameters
outDilatedOutput dilated image.
outErodedOutput eroded image.
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.

◆ DilateErodeAndAverage()

void oevislib_net.Image.DilateErodeAndAverage ( Image outDilated,
Image outEroded,
Image outAveraged,
KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes dilation, erosion and average simultaneously (faster execution).

Parameters
outDilatedOutput dilated image.
outErodedOutput eroded image.
outAveragedOutput averaged image.
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.

◆ Erode() [1/3]

Image oevislib_net.Image.Erode ( KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor,
Optional< Region > outKernel )
inline

Computes an erosion of the image using a specific kernel.

Replaces each pixel with the minimum of its neighboring pixels (inside the kernel).

Parameters
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
outKernelKernel region used.
Returns
Output image.

◆ Erode() [2/3]

Image oevislib_net.Image.Erode ( MorphologyKernel inKernel,
Optional< Region > inRoi = null )
inline

Computes an erosion of the image using a predefined kernel.

Replaces each pixel with the minimum of its neighboring pixels (inside the kernel).

Parameters
inKernelKernel.
inRoiRange of pixels to be updated in the output image.
Returns
Output image.

◆ Erode() [3/3]

Image oevislib_net.Image.Erode ( Region inKernel,
Point2Di inKernelAnchor,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes an erosion of the image using a Region as kernel.

Replaces each pixel with the minimum of its neighboring pixels (inside the kernel).

Parameters
inKernelKernel region.
inKernelAnchorA point inside inKernel that defines its center.
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ HitAndMiss()

Image oevislib_net.Image.HitAndMiss ( Region inHitKernel,
Region inMissKernel )
inline

Apply the Hit&Miss kernel to the image.

Parameters
inHitKernelHit kernel.
inMissKernelMiss kernel.
Returns
Output image.

◆ Open() [1/3]

Image oevislib_net.Image.Open ( KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor,
Optional< Region > outKernel )
inline

Computes the opening of the image using a specific kernel.

Removes small gaps and fills in small holes in the image applying consecutive erosion and dilation.

Parameters
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
outKernelKernel region used.
Returns
Output image.

◆ Open() [2/3]

Image oevislib_net.Image.Open ( MorphologyKernel inKernel,
Optional< Region > inRoi = null,
Optional< Pixel > inBorderColor = null )
inline

Computes the opening of the image using a predefined kernel.

Removes small gaps and fills in small holes in the image applying consecutive erosion and dilation.

Parameters
inKernelKernel.
inRoiRange of pixels to be updated in the output image.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ Open() [3/3]

Image oevislib_net.Image.Open ( Region inKernel,
Point2Di inKernelAnchor,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes the opening of the image using a Region as kernel.

Removes small gaps and fills in small holes in the image applying consecutive erosion and dilation.

Parameters
inKernelKernel region.
inKernelAnchorA point inside inKernel that defines its center.
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ Prune()

Image oevislib_net.Image.Prune ( int inMaxLength)
inline

Prune the image.

Parameters
inMaxLengthTrim length used in the pruning process. Range: [0, +inf).
Returns
Output image.

◆ TopHat() [1/3]

Image oevislib_net.Image.TopHat ( KernelShape inKernelShape,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor,
Optional< Region > outKernel )
inline

Computes the top hat of the image using a specific kernel.

Represents the difference between the opened image and its original version.

Parameters
inKernelShapeKernel shape.
inRadiusXKernel's radius on the X axis. Range: [0, +inf).
inRadiusYKernel's radius on the Y axis (equal to inRadiusX if not specified). Range: [0, +inf).
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
outKernelKernel region used.
Returns
Output image.

◆ TopHat() [2/3]

Image oevislib_net.Image.TopHat ( MorphologyKernel inKernel,
Optional< Region > inRoi = null,
Optional< Pixel > inBorderColor = null )
inline

Computes the top hat of the image using a predefined kernel.

Represents the difference between the opened image and its original version.

Parameters
inKernelKernel.
inRoiRange of pixels to be updated in the output image.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.

◆ TopHat() [3/3]

Image oevislib_net.Image.TopHat ( Region inKernel,
Point2Di inKernelAnchor,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Computes the bottom hat of the image using a Region as kernel.

Represents the difference between the opened image and its original version.

Parameters
inKernelKernel region.
inKernelAnchorA point inside inKernel that defines its center.
inRoiRange of pixels to be updated in the output image.
inSourceRoiRange of pixels to be considered in the transformation process.
inBorderColorPixels' value outside the image boundaries.
Returns
Output image.