You are here: Start » AVL.NET » AVL.ShearImage
Computes a leant image (shifts the rows).
Namespace: | AvlNet |
---|---|
Assembly: | AVL.NET.dll |
Syntax
C++
C#
public static void ShearImage ( AvlNet.Image inImage, float inShear, AvlNet.Axis inAxis, AvlNet.InterpolationMethod inInterpolationMethod, AvlNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inShear | float | <-INF, INF> | 0.0f | Relative shift between consecutive rows or columns of the image. Default value: 0.0f. | |
inAxis | AvlNet.Axis | Switches between horizontal or vertical shearing. | |||
inInterpolationMethod | AvlNet.InterpolationMethod | Bilinear | Default value: Bilinear. | ||
outImage | AvlNet.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
List of possible exceptions:
Error type | Description |
---|---|
DomainError | inImage and outImage are not distinct in ShearImage. |