You are here: Start » AVL.NET » AVL.CreateCylinderMap(AvlNet.ImageFormat, AvlNet.Rectangle2D, float, AvlNet.Point2D?, int?, int?, int, AvlNet.InterpolationMethod, AvlNet.SpatialMap, AvlNet.Region)

AVL.CreateCylinderMap(AvlNet.ImageFormat, AvlNet.Rectangle2D, float, AvlNet.Point2D?, int?, int?, int, AvlNet.InterpolationMethod, AvlNet.SpatialMap, AvlNet.Region)

Creates a spatial map for transformations from a cylinder surface to a flat rectangle.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void CreateCylinderMap(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.Rectangle2D inCylinderRectangle,
	float inCylinderRadiusCorrection,
	AvlNet.Point2D? inOpticalAxis,
	int? inNewWidth,
	int? inNewHeight,
	int inMargin,
	AvlNet.InterpolationMethod inInterpolationMethod,
	out AvlNet.SpatialMap outSpatialMap,
	out AvlNet.Region outOutputRegion
)

Parameters

inImageFormat
Type: AvlNet.ImageFormat
Information about dimensions, depth and pixel type of the image
inCylinderRectangle
Type: AvlNet.Rectangle2D
Bounding rectangle of the cylinder
inCylinderRadiusCorrection
Type: System.Single
How many pixels the cylinder radius is larger than the visible circle radius
inOpticalAxis
Type: System.Nullable<AvlNet.Point2D>
Coordinates of the camera optical axis (Auto = image center), or null.
inNewWidth
Type: System.Nullable<System.Int32>
Width of an image created by output spatial map application, or null.
inNewHeight
Type: System.Nullable<System.Int32>
Height of an image created by output spatial map application, or null.
inMargin
Type: System.Int32
Width of the cylinder extreme points zone excluded from spatial map
inInterpolationMethod
Type: AvlNet.InterpolationMethod
Interpolation method used in extraction of image pixel values
outSpatialMap
Type: AvlNet.SpatialMap
Output spatial map
outOutputRegion
Type: AvlNet.Region

Examples

Results of applying RemapImage with a spatial map created with the CreateCylinderMap filter.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

Error type Description
DomainError Empty domain in CreateCylinderMap.

See also