Polar transformations
AForge.NET framework provides image processing routines, which allow to convert
image to/from polar coordinates system, which may be useful dealing with some video cameras
mounted on a ceiling and looking straight downwards, for example.
Transform from polar
This image processing routine performs transformation from polar coordinates to rectangular. Number of settings provided are same as in the similar routine provided n GIMP.
// create filter
TransformFromPolar filter = new TransformFromPolar( );
filter.OffsetAngle = 0;
filter.CirlceDepth = 1;
filter.UseOriginalImageSize = false;
filter.NewSize = new Size( 360, 120 );
// apply the filter
Bitmap newImage = filter.Apply( image );
Initial image:
Result image:
Transform to polar
This image processing routine performs opposite transformation, i.e. from rectangular coordinates to polar. Number of settings provided are same as in the similar routine provided n GIMP.
// 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:
