oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Point Transforms

Functions

static Image oevislib_net.Image.operator- (Image inImage)
 Reverts the pixel value range (if unsigned) or negates the pixel values (if signed).
static Image oevislib_net.Image.operator+ (Image inImage, float inValue)
 Adds a scalar value to each pixel of an image.
static Image oevislib_net.Image.operator- (Image inImage, float inValue)
 Subtracts each pixel of an image by a scalar value.
static Image oevislib_net.Image.operator* (Image inImage, float inValue)
 Multiplies each pixel of an image by a scalar value.
static Image oevislib_net.Image.operator/ (Image inImage, float inValue)
 Divides each pixel of an image by a scalar value.
void oevislib_net.Image.Pow (float inExponent, Optional< Region > inRoi=null)
 Raises each pixel to the given power.
void oevislib_net.Image.CorrectGamma (float inGamma, Optional< Region > inRoi, Optional< float > inMinValue, Optional< float > inMaxValue)
 Performs gamma correction on the image.
void oevislib_net.Image.Log (float inScale=255.0f, float inOffset=1.0f, bool inNormalizeZero=false, Optional< Region > inRoi=null, Optional< Profile > outLutProfile=null)
 Computes the natural logarithm of every pixel.
void oevislib_net.Image.Negate (Optional< Region > inRoi=null)
 Reverts the pixel value range (if unsigned) or negates the pixel values (if signed).
void oevislib_net.Image.Invert (float inDividend, Optional< Region > inRoi=null)
 Inverts each pixel value (every value x is replaced with 1/x).
void oevislib_net.Image.Add (float inValue, Optional< Region > inRoi=null)
 Adds a scalar value to each pixel.
void oevislib_net.Image.Subtract (float inValue, Optional< Region > inRoi=null)
 Subtracts each pixel by a scalar value.
void oevislib_net.Image.Multiply (float inValue, Optional< Region > inRoi=null)
 Multiplies each pixel by a scalar value.
void oevislib_net.Image.Divide (float inValue, Optional< Region > inRoi=null)
 Divides each pixel by a scalar value.
void oevislib_net.Image.Rescale (float inMul=1.0f, float inAdd=0.0f, Optional< Region > inRoi=null)
 Rescales the pixels (using a linear transformation).
void oevislib_net.Image.Replace (Pixel inOldPixel, Pixel inNewPixel, Optional< Region > inRoi=null)
 Replaces pixels having the specified pixel value with a new one.
void oevislib_net.Image.Abs (Optional< Region > inRoi=null)
 Transforms pixel values in their absolute value.
void oevislib_net.Image.Sqrt (Optional< Region > inRoi=null)
 Performs the square root of each pixel.
void oevislib_net.Image.Square (Optional< Region > inRoi=null)
 Raises each pixel to the second power.
Image oevislib_net.Image.AddNoise (float inMinValue=0.0f, float inMaxValue=256.0f, float inNoiseStrength=0.5f, bool inColorNoise=false, Optional< int > inSeed=null)
 Adds some noise to the image.

Detailed Description

Function Documentation

◆ Abs()

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

Transforms pixel values in their absolute value.

Parameters
inRoiRegion of interest.

◆ Add()

void oevislib_net.Image.Add ( float inValue,
Optional< Region > inRoi = null )
inline

Adds a scalar value to each pixel.

Parameters
inValueValue to be added.
inRoiRegion of interest.

◆ AddNoise()

Image oevislib_net.Image.AddNoise ( float inMinValue = 0::0f,
float inMaxValue = 256::0f,
float inNoiseStrength = 0::5f,
bool inColorNoise = false,
Optional< int > inSeed = null )
inline

Adds some noise to the image.

Parameters
inMinValueMinimum value for new noise pixels.
inMaxValueMaximum value for new noise pixels.
inNoiseStrengthHow many points to replace with noise. Range: [0, 1].
inColorNoiseWhether the noise has to be generated separately for each channel.
inSeedRandom seed.
Returns
Output image.

◆ CorrectGamma()

void oevislib_net.Image.CorrectGamma ( float inGamma,
Optional< Region > inRoi,
Optional< float > inMinValue,
Optional< float > inMaxValue )
inline

Performs gamma correction on the image.

Parameters
inGammaGamma coefficient (1 means neutral). Range: [0.01, 8].
inRoiRegion of interest.
inMinValueMinimum value considered for the image. If Null, the lowest value for the image type is used.
inMaxValueMaximum value considered for the image. If Null, the highest value for the image type is used.

◆ Divide()

void oevislib_net.Image.Divide ( float inValue,
Optional< Region > inRoi = null )
inline

Divides each pixel by a scalar value.

Parameters
inValueDivisor.
inRoiRegion of interest.

◆ Invert()

void oevislib_net.Image.Invert ( float inDividend,
Optional< Region > inRoi = null )
inline

Inverts each pixel value (every value x is replaced with 1/x).

Parameters
inDividendDividend.
inRoiRegion of interest.

◆ Log()

void oevislib_net.Image.Log ( float inScale = 255::0f,
float inOffset = 1::0f,
bool inNormalizeZero = false,
Optional< Region > inRoi = null,
Optional< Profile > outLutProfile = null )
inline

Computes the natural logarithm of every pixel.

Parameters
inScaleScaling factor.
inOffsetOffset value. Range: [1, +inf).
inNormalizeZeroWhether the output range should be rescaled to start from 0.
inRoiRegion of interest.
outLutProfileProfile representing the resulting lookup table of the logarithm transform.

◆ Multiply()

void oevislib_net.Image.Multiply ( float inValue,
Optional< Region > inRoi = null )
inline

Multiplies each pixel by a scalar value.

Parameters
inValueMultiplier.
inRoiRegion of interest.

◆ Negate()

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

Reverts the pixel value range (if unsigned) or negates the pixel values (if signed).

Parameters
inRoiRegion of interest.

◆ operator*()

Image oevislib_net.Image.operator* ( Image inImage,
float inValue )
inlinestatic

Multiplies each pixel of an image by a scalar value.

Parameters
inImageInput image.
inValueInput value.
Returns
Output image.

◆ operator+()

Image oevislib_net.Image.operator+ ( Image inImage,
float inValue )
inlinestatic

Adds a scalar value to each pixel of an image.

Parameters
inImageInput image.
inValueInput value.
Returns
Output image.

◆ operator-() [1/2]

Image oevislib_net.Image.operator- ( Image inImage)
inlinestatic

Reverts the pixel value range (if unsigned) or negates the pixel values (if signed).

Parameters
inImageInput image.
Returns
Output image.

◆ operator-() [2/2]

Image oevislib_net.Image.operator- ( Image inImage,
float inValue )
inlinestatic

Subtracts each pixel of an image by a scalar value.

Parameters
inImageInput image.
inValueInput value.
Returns
Output image.

◆ operator/()

Image oevislib_net.Image.operator/ ( Image inImage,
float inValue )
inlinestatic

Divides each pixel of an image by a scalar value.

Parameters
inImageInput image.
inValueInput value.
Returns
Output image.

◆ Pow()

void oevislib_net.Image.Pow ( float inExponent,
Optional< Region > inRoi = null )
inline

Raises each pixel to the given power.

Parameters
inExponentExponent value.
inRoiRegion of interest.

◆ Replace()

void oevislib_net.Image.Replace ( Pixel inOldPixel,
Pixel inNewPixel,
Optional< Region > inRoi = null )
inline

Replaces pixels having the specified pixel value with a new one.

Parameters
inOldPixelOld pixel value.
inNewPixelNew pixel value.
inRoiRegion of interest.

◆ Rescale()

void oevislib_net.Image.Rescale ( float inMul = 1::0f,
float inAdd = 0::0f,
Optional< Region > inRoi = null )
inline

Rescales the pixels (using a linear transformation).

Parameters
inMulMultiplier.
inAddValue to be added.
inRoiRegion of interest.

◆ Sqrt()

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

Performs the square root of each pixel.

Parameters
inRoiRegion of interest.

◆ Square()

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

Raises each pixel to the second power.

Parameters
inRoiRegion of interest.

◆ Subtract()

void oevislib_net.Image.Subtract ( float inValue,
Optional< Region > inRoi = null )
inline

Subtracts each pixel by a scalar value.

Parameters
inValueValue to be subtracted.
inRoiRegion of interest.