You are here: Start » AVL.NET » Function Reference » Image » Image Spatial Transforms » AVL.CropImageToQuadrangle

AVL.CropImageToQuadrangle

Creates an image from a quadrangle on another image.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CropImageToQuadrangle
(
	AvlNet.Image inImage,
	AvlNet.Path inQuadrangle,
	AvlNet.CoordinateSystem2D? inQuadrangleAlignment,
	AvlNet.Size? inOutputSize,
	AvlNet.InterpolationMethod inInterpolationMethod,
	int inMargin,
	AvlNet.Pixel inBorderColor,
	AvlNet.Image outImage,
	NullableRef<AvlNet.Path> outAlignedQuadrangle
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageInput image.
inQuadrangleAvlNet.PathRectangle defining a rotated subimage.
inQuadrangleAlignmentAvlNet.CoordinateSystem2D?Adjusts the rectangle to the position of the inspected object. Default value: atl::NIL.
inOutputSizeAvlNet.Size?Dimensions of the output image. Default value: atl::NIL.
inInterpolationMethodAvlNet.InterpolationMethodBilinearDefault value: Bilinear.
inMarginint<0, 65535>Width of an additional margin for the output image.
inBorderColorAvlNet.PixelColor used for locations outside the quadrangle.
outImageAvlNet.ImageOutput image.
outAlignedQuadrangleAvlNet.NullableRef<AvlNet.Path>Input quadrangle after transformation (in the image coordinates). Can be null to skip this parameter calculation.

Errors

List of possible exceptions:

Error type Description
DomainError Quadrangle should be specified by a closed path with exactly 4 points in CropImageToQuadrangle.

Function Overrides

See also