Shearing

Last modified: November 20, 2009

Contents

shear_column

shear_column (int column, int distance)

Operates on:Image [OneBit|GreyScale|Grey16|RGB|Float|Complex]
Category:Shearing
Defined in:image_utilities.py
Author:Michael Droettboom and Karl MacMillan

Shears a given column by a given amount.

column
The column number to shear.
distance
The number of pixels to move the column. Positive values move the column downward. Negative values move the column upward.

Example 1: shear_column(50, 10)

images/OneBit_generic.png images/shear_column_plugin_00.png

shear_row

shear_row (int row, int distance)

Operates on:Image [OneBit|GreyScale|Grey16|RGB|Float|Complex]
Category:Shearing
Defined in:image_utilities.py
Author:Michael Droettboom and Karl MacMillan

Shears a given row by a given amount.

row
The row number to shear.
distance
The number of pixels to move the row. Positive values move the row to the right. Negative values move the row to the left.

Example 1: shear_row(50, 10)

images/OneBit_generic.png images/shear_row_plugin_00.png