DownsampleImage
Shrinks an image by the factor of two 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 in template matching filters.
Syntax
C++
C#
Python
def DownsampleImage( inImage: Image, inFunction: DownsampleFunction, outImage: Image, /, *, inScaleStep: int = 1 ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inScaleStep | int | 0 - 12 | 1 | Defines how many times the image size is divided by 2 |
![]() |
inFunction | DownsampleFunction | |||
![]() |
outImage | Image | Output image |
Hardware Acceleration
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.
This operation supports automatic parallelization for multicore and multiprocessor systems.


