Main Content

rot45

Rotate upright kernel clockwise by 45 degrees

Description

example

rotKernel = rot45(intKernel) rotates upright kernel intKernel clockwise by 45 degrees.

Examples

collapse all

Create a horizontal filter.

H = integralKernel([1 1 4 3; 1 4 4 3], [-1, 1]);

Rotate the filter 45 degrees.

rotH = rot45(H);

Input Arguments

collapse all

Integral kernel, specified as an integralKernel object.

Output Arguments

collapse all

Rotated integral kernel, returned as an integralKernel object.

Version History

Introduced in R2012a

See Also