Rotate image using bicubic interpolation.

Namespace:  AForge.Imaging.Filters
Assembly:  AForge.Imaging (in AForge.Imaging.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public class RotateBicubic : BaseRotateFilter

Remarks

The class implements image rotation filter using bicubic interpolation algorithm. It uses bicubic kernel W(x) as described on Wikipedia (coefficient a is set to -0.5).

Note:Rotation is performed in counterclockwise direction.

The filter accepts 8 bpp grayscale images and 24 bpp color images for processing.

Sample usage:

CopyC#
// create filter - rotate for 30 degrees keeping original image size
RotateBicubic filter = new RotateBicubic( 30, true );
// apply the filter
Bitmap newImage = filter.Apply( image );

Initial image:

Result image:

Inheritance Hierarchy

See Also