C# Class AForge.Imaging.Filters.QuadrilateralTransformationNearestNeighbor

Inheritance: BaseTransformationFilter
Show file Open project: holisticware-admin/MonoVersal.AForgeNET

Public Methods

Method Description
QuadrilateralTransformationNearestNeighbor ( List sourceCorners ) : System

Initializes a new instance of the QuadrilateralTransformationNearestNeighbor class.

This constructor sets AutomaticSizeCalculaton to , which means that destination image will have width and height automatically calculated based on SourceCorners property.

QuadrilateralTransformationNearestNeighbor ( List sourceCorners, int newWidth, int newHeight ) : System

Initializes a new instance of the QuadrilateralTransformationNearestNeighbor class.

This constructor sets AutomaticSizeCalculaton to , which means that destination image will have width and height as specified by user.

Protected Methods

Method Description
CalculateNewImageSize ( UnmanagedImage sourceData ) : Size

Calculates new image size.

ProcessFilter ( UnmanagedImage sourceData, UnmanagedImage destinationData ) : void

Process the filter on the specified image.

Method Details

CalculateNewImageSize() protected method

Calculates new image size.
The specified quadrilateral's corners are outside of the given image.
protected CalculateNewImageSize ( UnmanagedImage sourceData ) : Size
sourceData UnmanagedImage Source image data.
return System.Drawing.Size

ProcessFilter() protected method

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

QuadrilateralTransformationNearestNeighbor() public method

Initializes a new instance of the QuadrilateralTransformationNearestNeighbor class.

This constructor sets AutomaticSizeCalculaton to , which means that destination image will have width and height automatically calculated based on SourceCorners property.

public QuadrilateralTransformationNearestNeighbor ( List sourceCorners ) : System
sourceCorners List Corners of the source quadrilateral area.
return System

QuadrilateralTransformationNearestNeighbor() public method

Initializes a new instance of the QuadrilateralTransformationNearestNeighbor class.

This constructor sets AutomaticSizeCalculaton to , which means that destination image will have width and height as specified by user.

public QuadrilateralTransformationNearestNeighbor ( List sourceCorners, int newWidth, int newHeight ) : System
sourceCorners List Corners of the source quadrilateral area.
newWidth int Width of the new transformed image.
newHeight int Height of the new transformed image.
return System