ShrinkImageNTimes


Shrinks an image by a natural factor along each axis.

Syntax

C++
Python
 
def ShrinkImageNTimes(
	inImage: Image,
	outImage: Image,
	/,
	*,
	inRoi: Box | None = None,
	inNX: int = 2,
	inNY: int | None = None
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inRoi Box | None None Range of pixels to be processed
Input value inNX int 1 - 2
Input value inNY int | None 1 - None
Output value outImage Image Output image

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

This operation is optimized for SSE2 technology for pixels of types: UINT8, SINT8, UINT16, SINT16, SINT32, REAL.

This operation is optimized for AVX2 technology for pixels of types: UINT8, SINT8, UINT16, SINT16, SINT32, REAL.

This operation is optimized for NEON technology for pixels of types: UINT8, SINT8, UINT16, SINT16, SINT32, REAL.