Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Spatial Transforms Maps » CreateImageResizeMap

CreateImageResizeMap


Creates a spatial map representing an image resizing.

Header:AVL.h

Syntax

C++
C#
 
void avl::CreateImageResizeMap
(
	const avl::ImageFormat& inImageFormat,
	int inNewWidth,
	int inNewHeight,
	avl::InterpolationMethod::Type inInterpolationMethod,
	avl::SpatialMap& outResizeMap,
	atl::Optional<avl::Region&> outOutputRegion = atl::NIL
)

Parameters

Name Type Range Default Description
inImageFormat const ImageFormat& Information about dimensions, depth and pixel type of the image
inNewWidth int 1 - Width of an image created by output spatial map application
inNewHeight int 1 - Height of an image created by output spatial map application
inInterpolationMethod InterpolationMethod::Type Bilinear Interpolation method used in extraction of image pixel values
outResizeMap SpatialMap& Output spatial map
outOutputRegion Optional<Region&> NIL Pixels set by the spatial map application

Description

The operation generates map that stretches or shrinks the image. Two modes of pixel interpolation are available, the bilinear filtering being more precise and computationally expensive. Usually creating map and then using RemapImage is faster than ResizeImage.

See Also

  • RemapImage – Applies a precomputed image transform, defined by a spatial map object.
  • ResizeImage – Enlarges or shrinks an image to new dimensions.