Image Shearing Digital Image Processing
Image Shearing Digital Image Processing
INTRODUCTION
Image Shearing is a transformation technique in image processing that shifts the pixels
of an image along either the horizontal or vertical axis, creating a slanted or skewed effect. It
distorts the shape of the image by "sliding" rows or columns of pixels, giving the image a slanted
appearance.
MATHEMATICAL EXPRESSION
Shearing changes(or deformed) the shape of the object. AS we are discussing 3D space so
shearing can also be done in any of the three directions as follows. Given below are the types
of shearing transformation.
Shearing in X-direction.
Shearing in y-direction
Shearing in z-direction.
Shearing in X-Direction: Here the coordinate of X remains unchanged while the coordinate of
Y and Z is changed. Shearing is done through the Shearing Transformation matrix, which is
represented as follows
Consider a point P[x, y, z] in 3D space over which we perform the shearing transformation in
the X-direction and it becomes P'[x, y,z].
Shearing in Y-Direction: Here the coordinate of Y remains unchanged while the coordinate of
X and Z are changed. Shearing is done through the Shearing Transformation matrix, which is
represented as follows.
Consider a point P[x, y, z] in 3D space over which we perform the shearing transformation in
the Y-direction and it becomes P'[x, y, z].
Shearing in Z-Direction: Here the coordinate of Z remains unchanged while the coordinate of
X and Y are changed. Shearing is done through the Shearing Transformation matrix, which is
represented as follows for the shearing in Z-direction.
Consider a point P[x, y, z] in 3D space over which we perform the shearing transformation in
the Z-direction and its become P'[x, y, z].
Here, xn, yn, zn Are showing=new values and x o, yo, zo Are showing=old values. Perform
Shearing Transformation in the given cuboid (OABCDEFG) along Z-direction if a shearing
parameter is as follows Sx=2, Sy=3. The Shearing transformation matrix for z-direction is as
follows.
Now, we’ll apply the shearing transformation condition over all the coordinates and calculate
the new corresponding coordinates: Point O[0, 0, 0] becomes O’ after performing Reflection
transformation:
Finally, after performing the Shearing transformation on the given cuboid Figure will look like
as below:
OUTPUT :