oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Enhancement

Functions

void oevislib_net.Image.Normalize (Optional< Region > inRoi=null, float inNewMinimum=0.0f, float inNewMaximum=255.0f, float inSaturateBrightestFraction=0.0f, float inSaturateDarkestFraction=0.0f, float inMinValue=0.0f, float inMaxValue=255.0f, Optional< float > outA=null, Optional< float > outB=null, Optional< Region > outLinearNormalizedRegion=null)
 Normalizes the image (in-place) so that its minimum becomes inNewMinimum and the maximum becomes inNewMaximum.
void oevislib_net.Image.NormalizeLocalContrast (Optional< Region > inRoi=null, float inTargetMean=128.0f, float inTargetVariance=50.0f, int inUniformnessRadius=1, float inBrightnessPreserveRatio=0.0f)
 Normalizes the local contrast of the image.
void oevislib_net.Image.EqualizeHistogram (Optional< Region > inRoi=null, float inSaturateBrightestFraction=0.0f, float inSaturateDarkestFraction=0.0f)
 Update the image's pixels to new values to achieve a uniform distribution of intensities in the range (0, 255).
void oevislib_net.Image.Sharpen (KernelShape inKernel=KernelShape.Box, int inRadiusX=1, Optional< int > inRadiusY=null, float inContrastFactor=1.0f)
 Enhances the contrast of the image to make it look sharper.

Detailed Description

Function Documentation

◆ EqualizeHistogram()

void oevislib_net.Image.EqualizeHistogram ( Optional< Region > inRoi = null,
float inSaturateBrightestFraction = 0::0f,
float inSaturateDarkestFraction = 0::0f )
inline

Update the image's pixels to new values to achieve a uniform distribution of intensities in the range (0, 255).

The image must have UInt8 pixel type and a single channel.

Parameters
inRoiRegion of interest.
inSaturateBrightestFractionFraction of brightest pixels skipped during normalization. Range: [0, 1].
inSaturateDarkestFractionFraction of darkest pixels skipped during normalization. Range: [0, 1].

◆ Normalize()

void oevislib_net.Image.Normalize ( Optional< Region > inRoi = null,
float inNewMinimum = 0::0f,
float inNewMaximum = 255::0f,
float inSaturateBrightestFraction = 0::0f,
float inSaturateDarkestFraction = 0::0f,
float inMinValue = 0::0f,
float inMaxValue = 255::0f,
Optional< float > outA = null,
Optional< float > outB = null,
Optional< Region > outLinearNormalizedRegion = null )
inline

Normalizes the image (in-place) so that its minimum becomes inNewMinimum and the maximum becomes inNewMaximum.

Parameters
inRoiRegion of interest.
inNewMinimumNew minimum value.
inNewMaximumNew maximum value.
inSaturateBrightestFractionFraction of brightest pixels skipped during normalization. Range: [0, 1].
inSaturateDarkestFractionFraction of darkest pixels skipped during normalization. Range: [0, 1].
inMinValueValue under which pixels will not be considered.
inMaxValueValue above which pixels will not be considered.
outAMultiplicative parameter obtained by the linear transformation.
outBAdditive parameter obtained by the linear transformation.
outLinearNormalizedRegionRegion of pixels that have been normalized.

◆ NormalizeLocalContrast()

void oevislib_net.Image.NormalizeLocalContrast ( Optional< Region > inRoi = null,
float inTargetMean = 128::0f,
float inTargetVariance = 50::0f,
int inUniformnessRadius = 1,
float inBrightnessPreserveRatio = 0::0f )
inline

Normalizes the local contrast of the image.

Enhances the contrast of small regions in the image while leaving the overall contrast unchanged. This can be useful for improving the visibility of details in an image, such as the edges of objects or the texture of surfaces.

Parameters
inRoiRegion of interest.
inTargetMeanTarget local mean.
inTargetVarianceTarget local variance. Range: [0.1, +inf).
inUniformnessRadiusRadius of the neighborhood to uniformize. Range: [1, +inf).
inBrightnessPreserveRatioHow much of the original brightness to keep. Range: [0, 1].

◆ Sharpen()

void oevislib_net.Image.Sharpen ( KernelShape inKernel = KernelShape::Box,
int inRadiusX = 1,
Optional< int > inRadiusY = null,
float inContrastFactor = 1::0f )
inline

Enhances the contrast of the image to make it look sharper.

Parameters
inKernelKernel shape.
inRadiusXKernel's width. Range: [0, +inf).
inRadiusYKernel's height (equal to inRadiusX if not specified). Range: [0, +inf).
inContrastFactorStrength of the contrast enhancement. Range: [0, +inf).