You are here: Start » FIL.NET » Function Reference » Region » Region Spatial Transforms » FIL.ShearRegion

FIL.ShearRegion

Computes a leant region.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void ShearRegion
(
	FilNet.Region inRegion,
	float inShear,
	FilNet.Axis inAxis,
	FilNet.Region outRegion
)

Parameters

Name Type Range Default Description
inRegionFilNet.RegionInput region.
inShearfloat<-INF, INF>The relative shift of each consecutive row or column.
inAxisFilNet.AxisSwitches between shifting rows or columns.
outRegionFilNet.RegionOutput 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] \]

See also