CreateImageResizeMap


Creates a spatial map representing an image resizing.

Applications:Data preprocessing for fast image resize between two constant sizes. The result is used by RemapImage.

Syntax

C++
C#
Python
 
def CreateImageResizeMap(
	inImageFormat: ImageFormat,
	inNewWidth: int,
	inNewHeight: int,
	outResizeMap: SpatialMap,
	/,
	*,
	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 inNewWidth int 1 - Width of an image created by output spatial map application
Input value inNewHeight int 1 - Height of an image created by output spatial map application
Input value inInterpolationMethod InterpolationMethod InterpolationMethod.Bilinear Interpolation method used in extraction of image pixel values
Output value outResizeMap SpatialMap Output spatial map
Output value outOutputRegion Region | None None Pixels set by the spatial map application