C# 클래스 AForge.Imaging.Filters.TransformFromPolar

Transform polar image into rectangle.
The image processing routine is oposite transformation to the one done by TransformToPolar routine, i.e. transformation from polar image into rectangle. 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:

// 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:

상속: BaseTransformationFilter
파일 보기 프로젝트 열기: holisticware-admin/MonoVersal.AForgeNET

공개 메소드들

메소드 설명
TransformFromPolar ( ) : System

Initializes a new instance of the TransformFromPolar class.

보호된 메소드들

메소드 설명
CalculateNewImageSize ( UnmanagedImage sourceData ) : Size

Calculates new image size.

ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

메소드 상세

CalculateNewImageSize() 보호된 메소드

Calculates new image size.
protected CalculateNewImageSize ( UnmanagedImage sourceData ) : Size
sourceData UnmanagedImage Source image data.
리턴 System.Drawing.Size

ProcessFilter() 보호된 메소드

Process the filter on the specified image.
protected ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void
sourceData UnmanagedImage Source image data.
destinationData UnmanagedImage Destination image data.
리턴 void

TransformFromPolar() 공개 메소드

Initializes a new instance of the TransformFromPolar class.
public TransformFromPolar ( ) : System
리턴 System