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

AVL.CreateSphereMap

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void CreateSphereMap
(
	AvlNet.ImageFormat inImageFormat,
	AvlNet.Rectangle2D inSphereRectangle,
	float inSphereRadiusCorrection,
	int inMargin,
	AvlNet.InterpolationMethod inInterpolationMethod,
	AvlNet.SpatialMap outSpatialMap
)

Parameters

Name Type Range Default Description
inImageFormatAvlNet.ImageFormatInformation about dimensions, depth and pixel type of the image.
inSphereRectangleAvlNet.Rectangle2DBounding rectangle of a sphere.
inSphereRadiusCorrectionfloat<0.0f, INF>0.0fHow many pixels the sphere radius is larger than the visible circle radius. Default value: 0.0f.
inMarginint<0, INF>0Width of the sphere extreme points zone excluded from spatial map. Default value: 0.
inInterpolationMethodAvlNet.InterpolationMethodBilinearInterpolation method used in extraction of image pixel values. Default value: Bilinear.
outSpatialMapAvlNet.SpatialMapOutput spatial map.

Examples

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

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

Hardware acceleration settings may be manipulated with Settings class.

Errors

List of possible exceptions:

Error type Description
DomainError Empty rectangle on input in CreateSphereMap.

Function Overrides

See also