C# Class Accord.Imaging.Filters.QuadrilateralTransformationBilinear

Inheritance: BaseTransformationFilter
Mostrar archivo Open project: accord-net/framework

Public Methods

Method Description
QuadrilateralTransformationBilinear ( List sourceCorners ) : System

Initializes a new instance of the QuadrilateralTransformationBilinear class.

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

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

Initializes a new instance of the QuadrilateralTransformationBilinear 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

QuadrilateralTransformationBilinear() public method

Initializes a new instance of the QuadrilateralTransformationBilinear class.

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

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

QuadrilateralTransformationBilinear() public method

Initializes a new instance of the QuadrilateralTransformationBilinear class.

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

public QuadrilateralTransformationBilinear ( 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