Transform rectangle image into circle (to polar coordinates).

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

Syntax

C#
public class TransformToPolar : BaseTransformationFilter

Remarks

The image processing routine does transformation of the source image into circle (polar transformation). The produced effect is similar to GIMP's "Polar Coordinates" distortion filter (or its equivalent in Photoshop).

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

Sample usage:

CopyC#
// create filter
TransformToPolar filter = new TransformToPolar( );
filter.OffsetAngle = 0;
filter.CirlceDepth = 1;
filter.UseOriginalImageSize = false;
filter.NewSize = new Size( 200, 200 );
// apply the filter
Bitmap newImage = filter.Apply( image );

Initial image:

Result image:

Inheritance Hierarchy

System..::.Object
  AForge.Imaging.Filters..::.BaseTransformationFilter
    AForge.Imaging.Filters..::.TransformToPolar

See Also