oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Smoothing

Functions

Image oevislib_net.Image.Smooth (int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Smooths an image by averaging the pixels inside a specific kernel.
Image oevislib_net.Image.Smooth (Region inKernel, Point2Di inKernelAnchor, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Smooths an image by averaging the pixels inside a Region kernel.
Image oevislib_net.Image.Smooth (MeanKernel inKernel, Optional< Region > inRoi=null)
 Smooths an image by averaging the pixels inside a predefined kernel.
Image oevislib_net.Image.MedianSmooth (int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi)
 Replaces each pixel with the median of pixels inside a kernel.
Image oevislib_net.Image.MedianSmooth (Optional< Region > inRoi=null)
 Replaces each pixel with the median of pixels inside a kernel with radius 3.
Image oevislib_net.Image.QuantileSmooth (float inQuantile, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi)
 Replaces each pixel with a quantile of the pixels inside a specific kernel.
Image oevislib_net.Image.BilateralSmooth (float inDistanceSigma, float inColorSigma, int inIterationCount, Optional< Region > inRoi)
 Smooths the image preserving sharp edges (using a 3x3 kernel).
Image oevislib_net.Image.GaussianSmooth (float inStdDevX, Optional< float > inStdDevY, float inKernelRelativeSize, Optional< Region > inRoi, Optional< int > outKernelRadiusX, Optional< int > outKernelRadiusY)
 Smooths the image using a Gaussian kernel.
Image oevislib_net.Image.GaussianSmooth (GaussianKernel inKernel, Optional< Region > inRoi=null)
 Smooths the image using a predefined Gaussian kernel.
Image oevislib_net.Image.MiddleSmooth (KernelShape inKernelShape, int inRadiusX, Optional< int > inRadiusY, Optional< Region > inRoi, Optional< Region > inSourceRoi, Optional< Pixel > inBorderColor)
 Replaces each pixel with the middle value of the kernel.
Image oevislib_net.Image.SmoothGradientDirections (int inRadiusX, Optional< int > inRadiusY=null, int inMinSampleCount=0)
 Smooths the result of Image::gradientDirections.

Detailed Description

Function Documentation

◆ BilateralSmooth()

Image oevislib_net.Image.BilateralSmooth ( float inDistanceSigma,
float inColorSigma,
int inIterationCount,
Optional< Region > inRoi )
inline

Smooths the image preserving sharp edges (using a 3x3 kernel).

Parameters
inDistanceSigmaStandard deviation used when computing the Gaussian difference between two pixel positions. Range: [0, 128].
inColorSigmaStandard deviation used when computing the Gaussian difference between two pixel values. Range: [0, +inf).
inIterationCountNumber of times the bilateral filter will be run. Range: [1, +inf).
inRoiRegion of interest.
Returns
Smoothed image.

◆ GaussianSmooth() [1/2]

Image oevislib_net.Image.GaussianSmooth ( float inStdDevX,
Optional< float > inStdDevY,
float inKernelRelativeSize,
Optional< Region > inRoi,
Optional< int > outKernelRadiusX,
Optional< int > outKernelRadiusY )
inline

Smooths the image using a Gaussian kernel.

Parameters
inStdDevXStandard deviation on X axis. Range: [0, +inf).
inStdDevYStandard deviation on Y axis (equal to inStdDevX if not specified). Range: [0, +inf).
inKernelRelativeSizeMultiplier for the standard deviation determining the size of the kernel. Range: [0, 3].
inRoiRange of pixels to be updated in the output image.
outKernelRadiusXKernel radius on X axis used.
outKernelRadiusYKernel radius on Y axis used.
Returns
Output image.

◆ GaussianSmooth() [2/2]

Image oevislib_net.Image.GaussianSmooth ( GaussianKernel inKernel,
Optional< Region > inRoi = null )
inline

Smooths the image using a predefined Gaussian kernel.

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

◆ MedianSmooth() [1/2]

Image oevislib_net.Image.MedianSmooth ( int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi )
inline

Replaces each pixel with the median of pixels inside a kernel.

Parameters
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.
Returns
Output image.

◆ MedianSmooth() [2/2]

Image oevislib_net.Image.MedianSmooth ( Optional< Region > inRoi = null)
inline

Replaces each pixel with the median of pixels inside a kernel with radius 3.

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

◆ MiddleSmooth()

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

Replaces each pixel with the middle value of the kernel.

The middle value consists of the average of the maximum and the minimum value 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.
Returns
Output image.

◆ QuantileSmooth()

Image oevislib_net.Image.QuantileSmooth ( float inQuantile,
int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi )
inline

Replaces each pixel with a quantile of the pixels inside a specific kernel.

Parameters
inQuantileQuantile value. Range: [0, 1].
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.
Returns
Output image.

◆ Smooth() [1/3]

Image oevislib_net.Image.Smooth ( int inRadiusX,
Optional< int > inRadiusY,
Optional< Region > inRoi,
Optional< Region > inSourceRoi,
Optional< Pixel > inBorderColor )
inline

Smooths an image by averaging the pixels inside a specific kernel.

Parameters
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.
Returns
Output image.

◆ Smooth() [2/3]

Image oevislib_net.Image.Smooth ( MeanKernel inKernel,
Optional< Region > inRoi = null )
inline

Smooths an image by averaging the pixels inside a predefined kernel.

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

◆ Smooth() [3/3]

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

Smooths an image by averaging the pixels inside a Region 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.

◆ SmoothGradientDirections()

Image oevislib_net.Image.SmoothGradientDirections ( int inRadiusX,
Optional< int > inRadiusY = null,
int inMinSampleCount = 0 )
inline

Smooths the result of Image::gradientDirections.

Parameters
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).
inMinSampleCountMinimum number of pixels to consider a window non-zero.
Returns
Output directions.