You are here: Start » AVL.NET » Function Reference » Image » Image Spatial Transforms » 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, AvlNet.Path outAlignedQuadrangle )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inImage | AvlNet.Image | Input image. | |||
inQuadrangle | AvlNet.Path | Rectangle defining a rotated subimage. | |||
inQuadrangleAlignment | AvlNet.CoordinateSystem2D? | Adjusts the rectangle to the position of the inspected object. Default value: atl::NIL. | |||
inOutputSize | AvlNet.Size? | Dimensions of the output image. Default value: atl::NIL. | |||
inInterpolationMethod | AvlNet.InterpolationMethod | Bilinear | Default value: Bilinear. | ||
inMargin | int | <0, 65535> | Width of an additional margin for the output image. | ||
inBorderColor | AvlNet.Pixel | Color used for locations outside the quadrangle. | |||
outImage | AvlNet.Image | Output image. | |||
outAlignedQuadrangle | AvlNet.Path | Input quadrangle after transformation (in the image coordinates). |
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
- CropImageToQuadrangle(Image, Path, InterpolationMethod, Int32, Pixel, Image)
- CropImageToQuadrangle(Image, Path, Nullable<CoordinateSystem2D>, Nullable<Size>, InterpolationMethod, Int32, Pixel, Image)
- CropImageToQuadrangle(Image, Path, Nullable<CoordinateSystem2D>, Nullable<Size>, InterpolationMethod, Int32, Pixel, Image, NullableRef<Path>)