CreateSphereMap
Creates a spatial map for transformations from a sphere surface to a flat rectangle.
Applications:Inspection of the surface of balls and other spherical objects. The result is used by RemapImage.
Syntax
C++
C#
Python
def CreateSphereMap( inImageFormat: ImageFormat, inSphereRectangle: Rectangle2D, outSpatialMap: SpatialMap, /, *, inSphereRadiusCorrection: float = 0.0, inNewDimension: int | None = None, inMargin: int = 0, inInterpolationMethod: InterpolationMethod = InterpolationMethod.Bilinear, outOutputRegion: Region | None = None ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImageFormat | ImageFormat | Information about dimensions, depth and pixel type of the image | ||
![]() |
inSphereRectangle | Rectangle2D | Bounding rectangle of a sphere | ||
![]() |
inSphereRadiusCorrection | float | 0.0 - ![]() |
0.0 | How many pixels the sphere radius is larger than the visible circle radius |
![]() |
inNewDimension | int | None | 1 - ![]() |
None | Width and height of an image created by output spatial map application |
![]() |
inMargin | int | 0 - ![]() |
0 | Width of the sphere extreme points zone excluded from spatial map |
![]() |
inInterpolationMethod | InterpolationMethod | InterpolationMethod.Bilinear | Interpolation method used in extraction of image pixel values | |
![]() |
outSpatialMap | SpatialMap | Output spatial map | ||
![]() |
outOutputRegion | Region | None | None | Pixels set by the spatial map application |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.



