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

Functions

Image oevislib_net.Image.Transpose ()
 Inverts columns and rows of the image.
Image oevislib_net.Image.Rotate (float inAngle=45.0f, RotationSize inRotationSize=RotationSize.Preserve, InterpolationMethod2D inInterpolationMethod=InterpolationMethod2D.Bilinear, bool inInverse=false, Optional< Point2D > inCenter=null, Optional< UCS2D > outOutputAlignment=null)
 Rotates the image clockwise.
Image oevislib_net.Image.Downsample (int inFactor)
 Downsamples the image, decreasing its size by a factor of two along each axis.
Image oevislib_net.Image.Resize (int inWidth, int inHeight, ResizeMethod inResizeMethod)
 Resizes the image, setting new width and height.
Image oevislib_net.Image.Resize (int inLength, Dimension inDimension, ResizeMethod inResizeMethod)
 Resizes the image, setting new length along the chosen dimension and adapting the other dimension (to maintain the original aspect ratio).
Image oevislib_net.Image.Resize (float inScaleX, float inScaleY, ResizeMethod inResizeMethod)
 Resizes the image, specifying the relative scale for each axis.
Array< Imageoevislib_net.Image.PyramidDownsample (int inMinPyramidLevel, int inMaxPyramidLevel)
 Creates an array of images, where each one represent a downsampled version of the previous one.
Array< Imageoevislib_net.Image.GaussianPyramidDownsample (int inMinPyramidLevel, int inMaxPyramidLevel, GaussianKernel inGaussianKernel)
 Creates an array of images, where each one represent a downsampled (and smoothed) version of the previous one.
Image oevislib_net.Image.Mirror (MirrorDirection inMirrorDirection)
 Inverts image's columns and/or rows.
Image oevislib_net.Image.Shear (Axis inAxis, float inShift=0.0f, InterpolationMethod2D inInterpolationMethod=InterpolationMethod2D.Bilinear)
 Shifts the rows of the image by a certain amount.
Image oevislib_net.Image.Crop (Box inSelection, Pixel inBorder)
 Crops the image with a box.
Image oevislib_net.Image.Uncrop (Box inSelection, int inWidth, int inHeight)
 Reverses a crop operation.
Image oevislib_net.Image.Crop (Rectangle2D inRectangle, Optional< UCS2D > inRectangleAlignment, CropScale inCropScale, InterpolationMethod2D inInterpolationMethod, float inMargin, Pixel inBorder, Optional< Rectangle2D > outAlignedRectangle, Optional< UCS2D > outOutputAlignment)
 Crops the image with a rectangle.
Image oevislib_net.Image.Crop (Path inQuadrangle, Optional< UCS2D > inQuadrangleAlignment, Optional< Size > inOutputSize, InterpolationMethod2D inInterpolationMethod, int inMargin, Pixel inBorder, Optional< Path > outAlignedQuadrangle)
 Crops the image with a quadrangle (a Path of 4 points).
Image oevislib_net.Image.Trim (Region inRegion, Pixel inBorder)
 Trims the image to the specified region.
Image oevislib_net.Image.Translate (Vector2D inDelta, bool inInverse=false, Pixel inBorder=null)
 Translates the image by a vector.
Image oevislib_net.Image.Polar (Point2D inCenter, PolarSpace inPolarSpace, PolarInterpolationMethod inInterpolationMethod, bool inInverse)
 Transforms the image to polar or log-polar space.
Image oevislib_net.Image.Transform (Matrix inTransformMatrix, bool inInverse=false, InterpolationMethod2D inInterpolationMethod=InterpolationMethod2D.Bilinear)
 Transforms the image using a specified matrix.

Detailed Description

Function Documentation

◆ Crop() [1/3]

Image oevislib_net.Image.Crop ( Box inSelection,
Pixel inBorder )
inline

Crops the image with a box.

Parameters
inSelectionBox defining the region to crop.
inBorderPixel value used for areas outside the selected region.
Returns
Cropped image.

◆ Crop() [2/3]

Image oevislib_net.Image.Crop ( Path inQuadrangle,
Optional< UCS2D > inQuadrangleAlignment,
Optional< Size > inOutputSize,
InterpolationMethod2D inInterpolationMethod,
int inMargin,
Pixel inBorder,
Optional< Path > outAlignedQuadrangle )
inline

Crops the image with a quadrangle (a Path of 4 points).

Parameters
inQuadrangleQuadrangle defining the region to crop.
inQuadrangleAlignmentAligns the quadrangle to the correct position.
inOutputSizeSize of the output image.
inInterpolationMethodInterpolation method.
inMarginWidth of the quadrangle margin. Range: [0, +inf).
inBorderPixel value used for areas outside the selected region.
outAlignedQuadrangleAligned quadrangle (in the image coordinates).
Returns
Cropped image.

◆ Crop() [3/3]

Image oevislib_net.Image.Crop ( Rectangle2D inRectangle,
Optional< UCS2D > inRectangleAlignment,
CropScale inCropScale,
InterpolationMethod2D inInterpolationMethod,
float inMargin,
Pixel inBorder,
Optional< Rectangle2D > outAlignedRectangle,
Optional< UCS2D > outOutputAlignment )
inline

Crops the image with a rectangle.

Parameters
inRectangleRectangle defining the region to crop.
inRectangleAlignmentAligns the rectangle to the correct position.
inCropScaleHow to scale the output image (maintaining the input size unchanged or rescaling).
inInterpolationMethodInterpolation method.
inMarginWidth of the rectangle margin. Range: [0, +inf).
inBorderPixel value used for areas outside the selected region.
outAlignedRectangleAligned rectangle (in the image coordinates).
outOutputAlignmentAlignment of the cropped image.
Returns
Cropped image.

◆ Downsample()

Image oevislib_net.Image.Downsample ( int inFactor)
inline

Downsamples the image, decreasing its size by a factor of two along each axis.

Parameters
inFactorHow many times the image size is divided by 2. Range: [1, 12].
Returns
Output image.

◆ GaussianPyramidDownsample()

Array< Image > oevislib_net.Image.GaussianPyramidDownsample ( int inMinPyramidLevel,
int inMaxPyramidLevel,
GaussianKernel inGaussianKernel )
inline

Creates an array of images, where each one represent a downsampled (and smoothed) version of the previous one.

Parameters
inMinPyramidLevelMinimum pyramid level. Range: [1, 12].
inMaxPyramidLevelMaximum pyramid level. Range: [1, 12].
inGaussianKernelGaussian kernel.
Returns
Downsampled images.

◆ Mirror()

Image oevislib_net.Image.Mirror ( MirrorDirection inMirrorDirection)
inline

Inverts image's columns and/or rows.

Parameters
inMirrorDirectionWhether to apply the mirroring on the columns (horizontal), on the rows (vertical) or on both.
Returns
Output image.

◆ Polar()

Image oevislib_net.Image.Polar ( Point2D inCenter,
PolarSpace inPolarSpace,
PolarInterpolationMethod inInterpolationMethod,
bool inInverse )
inline

Transforms the image to polar or log-polar space.

Parameters
inCenterCenter of the coordinate system.
inPolarSpaceType of polar transformation (polar or log-polar).
inInterpolationMethodInterpolation method.
inInverseWhether to use the inverse transformation.
Returns
Output image.

◆ PyramidDownsample()

Array< Image > oevislib_net.Image.PyramidDownsample ( int inMinPyramidLevel,
int inMaxPyramidLevel )
inline

Creates an array of images, where each one represent a downsampled version of the previous one.

Parameters
inMinPyramidLevelMinimum pyramid level. Range: [1, 12].
inMaxPyramidLevelMaximum pyramid level. Range: [1, 12].
Returns
Downsampled images.

◆ Resize() [1/3]

Image oevislib_net.Image.Resize ( float inScaleX,
float inScaleY,
ResizeMethod inResizeMethod )
inline

Resizes the image, specifying the relative scale for each axis.

Parameters
inScaleXHorizontal scale. Range: [0, +inf).
inScaleYVertical scale. Range: [0, +inf).
inResizeMethodResize method.
Returns
Resized image.

◆ Resize() [2/3]

Image oevislib_net.Image.Resize ( int inLength,
Dimension inDimension,
ResizeMethod inResizeMethod )
inline

Resizes the image, setting new length along the chosen dimension and adapting the other dimension (to maintain the original aspect ratio).

Parameters
inLengthNew length for the chosen dimension. Range: [1, +inf).
inDimensionSelected dimension.
inResizeMethodResize method.
Returns
Resized image.

◆ Resize() [3/3]

Image oevislib_net.Image.Resize ( int inWidth,
int inHeight,
ResizeMethod inResizeMethod )
inline

Resizes the image, setting new width and height.

Parameters
inWidthNew width. Range: [1, +inf).
inHeightNew height. Range: [1, +inf).
inResizeMethodResize method.
Returns
Resized image.

◆ Rotate()

Image oevislib_net.Image.Rotate ( float inAngle = 45::0f,
RotationSize inRotationSize = RotationSize::Preserve,
InterpolationMethod2D inInterpolationMethod = InterpolationMethod2D::Bilinear,
bool inInverse = false,
Optional< Point2D > inCenter = null,
Optional< UCS2D > outOutputAlignment = null )
inline

Rotates the image clockwise.

Parameters
inAngleRotation angle.
inRotationSizeOutput size (whether to fit the image or preserve the original size).
inInterpolationMethodInterpolation method.
inInverseWhether to do the rotation counter-clockwise.
inCenterRotation center (if Null the image center is used).
outOutputAlignmentAlignment of the output image.
Returns
Rotated image.

◆ Shear()

Image oevislib_net.Image.Shear ( Axis inAxis,
float inShift = 0::0f,
InterpolationMethod2D inInterpolationMethod = InterpolationMethod2D::Bilinear )
inline

Shifts the rows of the image by a certain amount.

Parameters
inAxisAxis along which the shear is applied.
inShiftRelative shift between consecutive rows or columns.
inInterpolationMethodInterpolation method.
Returns
Output image.

◆ Transform()

Image oevislib_net.Image.Transform ( Matrix inTransformMatrix,
bool inInverse = false,
InterpolationMethod2D inInterpolationMethod = InterpolationMethod2D::Bilinear )
inline

Transforms the image using a specified matrix.

Parameters
inTransformMatrixTransformation matrix.
inInverseWhether to apply to inverse transformation.
inInterpolationMethodInterpolation method.
Returns
Output image.

◆ Translate()

Image oevislib_net.Image.Translate ( Vector2D inDelta,
bool inInverse = false,
Pixel inBorder = null )
inline

Translates the image by a vector.

Parameters
inDeltaTranslation vector.
inInverseWhether to invert the translation.
inBorderColor used to fill the pixels outside the translated image.
Returns
Translated image.

◆ Transpose()

Image oevislib_net.Image.Transpose ( )
inline

Inverts columns and rows of the image.

Returns
Transposed image.

◆ Trim()

Image oevislib_net.Image.Trim ( Region inRegion,
Pixel inBorder )
inline

Trims the image to the specified region.

Parameters
inRegionRegion to trim.
inBorderPixel value used for areas outside the selected region.
Returns
Output image.

◆ Uncrop()

Image oevislib_net.Image.Uncrop ( Box inSelection,
int inWidth,
int inHeight )
inline

Reverses a crop operation.

Parameters
inSelectionBox defining the region to "uncrop".
inWidthWidth of the original image. Range: [0, +inf).
inHeightHeight of the original image. Range: [0, +inf).
Returns
Output image.