ShearImage


Computes a leant image (shifts the rows).

Applications:Image preprocessing when there are slanted objects.

Syntax

C++
Python
 
def ShearImage(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inShear: float = 0.0,
	inAxis: Axis = Axis.X,
	inInterpolationMethod: InterpolationMethod = InterpolationMethod.Bilinear
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inShear float - - 0.0 Relative shift between consecutive rows or columns of the image
Input value inAxis Axis Axis.X Switches between horizontal or vertical shearing
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.Bilinear
Output value outImage Image Output image