ResizeImage_Relative
Resizes an image by a factor along each axis.
Syntax
C++
Python
def ResizeImage_Relative( inImage: Image, outImage: Image, /, *, inHorizontalScale: float = 1.0, inVerticalScale: float = 1.0, inResizeMethod: ResizeMethod = ResizeMethod.NearestNeighbour ) -> None
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inHorizontalScale | float | 0.0 - 65535.0 | 1.0 | |
![]() |
inVerticalScale | float | 0.0 - 65535.0 | 1.0 | |
![]() |
inResizeMethod | ResizeMethod | ResizeMethod.NearestNeighbour | ||
![]() |
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 (when inResizeMethod = Area), UINT16 (when inResizeMethod = Area), 3xUINT8 (when inResizeMethod = Area), 3xUINT16 (when inResizeMethod = Area).
This operation is optimized for AVX2 technology for pixels of types: UINT8 (when inResizeMethod = Area), UINT16 (when inResizeMethod = Area), 3xUINT8 (when inResizeMethod = Area), 3xUINT16 (when inResizeMethod = Area).


