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
Input value inImageFormat ImageFormat Information about dimensions, depth and pixel type of the image
Input value inSphereRectangle Rectangle2D Bounding rectangle of a sphere
Input value inSphereRadiusCorrection float 0.0 - 0.0 How many pixels the sphere radius is larger than the visible circle radius
Input value inNewDimension int | None 1 - None Width and height of an image created by output spatial map application
Input value inMargin int 0 - 0 Width of the sphere extreme points zone excluded from spatial map
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.Bilinear Interpolation method used in extraction of image pixel values
Output value outSpatialMap SpatialMap Output spatial map
Output value outOutputRegion Region | None None Pixels set by the spatial map application

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.