You are here: Start » AVL.NET » 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? inNewDimension, int inMargin, AvlNet.InterpolationMethod inInterpolationMethod, out AvlNet.SpatialMap outSpatialMap, out AvlNet.Region outOutputRegion )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImageFormat | AvlNet.ImageFormat | Information about dimensions, depth and pixel type of the image. | ||
![]() | inSphereRectangle | AvlNet.Rectangle2D | Bounding rectangle of a sphere. | ||
![]() | inSphereRadiusCorrection | float | <0.0f, INF> | 0.0f | How many pixels the sphere radius is larger than the visible circle radius. Default value: 0.0f. |
![]() | inNewDimension | int? | <1, INF> | Width and height of an image created by output spatial map application. Default value: atl::NIL, or null. | |
![]() | inMargin | int | <0, INF> | 0 | Width of the sphere extreme points zone excluded from spatial map. Default value: 0. |
![]() | inInterpolationMethod | AvlNet.InterpolationMethod | Bilinear | Interpolation method used in extraction of image pixel values. Default value: Bilinear. | |
![]() | outSpatialMap | AvlNet.SpatialMap | Output spatial map. | ||
![]() | outOutputRegion | AvlNet.Region | Pixels set by the spatial map application |
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
Error type | Description |
---|---|
DomainError | Empty rectangle on input in CreateSphereMap. |
See also
- CreateSphereMap(AvlNet.ImageFormat, AvlNet.Rectangle2D, float, int, AvlNet.InterpolationMethod, AvlNet.SpatialMap)
- CreateSphereMap(AvlNet.ImageFormat, AvlNet.Rectangle2D, float, int, AvlNet.InterpolationMethod, AvlNet.SpatialMap, AvlNet.Region)
- CreateSphereMap(AvlNet.ImageFormat, AvlNet.Rectangle2D, float, int?, int, AvlNet.InterpolationMethod, AvlNet.SpatialMap)
- Class Reference
- AVL Class