C# Class AForge.Imaging.Filters.QuadrilateralTransformationNearestNeighbor

Inheritance: BaseTransformationFilter
Afficher le fichier Open project: holisticware-admin/MonoVersal.AForgeNET

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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.
Résultat System.Drawing.Size

ProcessFilter() protected méthode

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

QuadrilateralTransformationNearestNeighbor() public méthode

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.
Résultat System

QuadrilateralTransformationNearestNeighbor() public méthode

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.
Résultat System