Start » Filter Reference » Image » Image Spatial Transforms » ShearImage
Module: | FoundationLite |
---|
Computes a leant image (shifts the rows).
Applications
Image preprocessing when there are slanted objects.
Name | Type | Range | Description | |
---|---|---|---|---|
inImage | Image | Input image | ||
inShear | Real | - - | Relative shift between consecutive rows or columns of the image | |
inAxis | Axis | Switches between horizontal or vertical shearing | ||
inInterpolationMethod | InterpolationMethod | |||
outImage | Image | Output image |
Description
The filter ShearImage applies basic affine transform to each image's pixel.
Shear affine transform is defined as:
When X axis is selected
\[ \left[\begin{array}{ccc} x' \\ y' \end{array} \right] = \left[\begin{array}{ccc} 1 & inShear \\ 0 & 1 \end{array} \right] \left[\begin{array}{ccc} x \\ y \end{array} \right] \]When Y axis is selected
\[ \left[\begin{array}{ccc} x' \\ y' \end{array} \right] = \left[\begin{array}{ccc} 1 & 0\\ inShear & 1 \end{array} \right] \left[\begin{array}{ccc} x \\ y \end{array} \right] \]Examples
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inImage and outImage are not distinct in ShearImage. |
Complexity Level
This filter is available on Basic Complexity Level.
See Also
- ShearRegion – Computes a leant region.