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 | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inShear | float | - - ![]() |
0.0 | Relative shift between consecutive rows or columns of the image |
![]() |
inAxis | Axis | Axis.X | Switches between horizontal or vertical shearing | |
![]() |
inInterpolationMethod | InterpolationMethod | InterpolationMethod.Bilinear | ||
![]() |
outImage | Image | Output image |


- 