Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Region Spatial Transforms » ShearRegion

ShearRegion


Computes a leant region.

Name Type Range Description
inRegion Region Input region
inShear Real - - The relative shift of each consecutive row or column
inAxis Axis Switches between shifting rows or columns
outRegion Region Output region

Description

The filter ShearRegion applies basic affine transform to each regions's pixel.

Shear affine transform 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] \]

Shear affine transform 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] \]

Complexity Level

This filter is available on Advanced Complexity Level.

See Also

  • ShearImage – Computes a leant image (shifts the rows).