You are here: Start » FIL.NET » Function Reference » Image » Image Spatial Transforms » FIL.ResizeImage_Relative
Resizes an image by a factor along each axis.
Namespace: | FilNet |
---|---|
Assembly: | FIL.NET.dll |
Syntax
public static void ResizeImage_Relative ( FilNet.Image inImage, float inHorizontalScale, float inVerticalScale, FilNet.ResizeMethod inResizeMethod, FilNet.Image outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | Input image. | ||
![]() | inHorizontalScale | float | <0.0f, 65535.0f> | 1.0f | Default value: 1.0f. |
![]() | inVerticalScale | float | <0.0f, 65535.0f> | 1.0f | Default value: 1.0f. |
![]() | inResizeMethod | FilNet.ResizeMethod | |||
![]() | outImage | FilNet.Image | Output image. |
Description
The operation stretches or shrinks the inImage so that its dimensions are scaled, accordingly, by the factor of inHorizontalScale, inVerticalScale. Two modes of pixel interpolation are available, the bilinear filtering being more precise and computationally expensive.
Examples
![]() |
![]() |
ResizeImage_Relative performed on the sample image with inHorizontalScale = 0.5, inVerticalScale = 0.25.
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).
Hardware acceleration settings may be manipulated with Settings class.