DownsampleImage_Midlevels


Shrinks an image by the factor of 1.5 or SQRT(2) along each axis.

Applications:Usually used to speed-up image analysis at the cost of reduced precision. It is internally used to implement the pyramid strategy.

Syntax

C++
C#
Python
 
def DownsampleImage_Midlevels(
	inImage: Image,
	inMidlevelScale: MidlevelScale,
	outImage: Image,
	/,
	*,
	inScaleStep: int = 1
)
-> None

Parameters

Name Type Range Default Description
Input value inImage Image Input image
Input value inScaleStep int 0 - 24 1 Defines how many times the image size is divided by 1.5 or SQRT(2)
Input value inMidlevelScale MidlevelScale Determines which scale will be used
Output value outImage Image Output image

Hardware Acceleration

This operation is optimized for SSE2 technology for pixels of type: 1xUINT8.

This operation is optimized for SSSE3 technology for pixels of type: 3xUINT8.

This operation supports automatic parallelization for multicore and multiprocessor systems.