Back to Aurora Vision Library website

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

CreateImageRotationMap


Header: AVL.h
Namespace: avl
Module: Calibration

Creates a spatial map representing an image rotation.

Applications: Preprocessing data for fast image rotation by a constant angle. The result is used by RemapImage.

Syntax

C++
C#
 
void avl::CreateImageRotationMap
(
	const avl::ImageFormat& inImageFormat,
	float inAngle,
	avl::RotationSizeMode::Type inSizeMode,
	avl::InterpolationMethod::Type inInterpolationMethod,
	avl::SpatialMap& outRotationMap,
	atl::Optional<avl::Region&> outOutputRegion = atl::NIL
)

Parameters

Name Type Default Description
Input value inImageFormat const ImageFormat& Information about dimensions, depth and pixel type of the image
Input value inAngle float 45.0f The angle of rotation
Input value inSizeMode RotationSizeMode::Type
Input value inInterpolationMethod InterpolationMethod::Type Bilinear Interpolation method used in extraction of image pixel values
Output value outRotationMap SpatialMap& Output spatial map
Output value outOutputRegion Optional<Region&> NIL Pixels set by the spatial map application

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outOutputRegion.

Read more about Optional Outputs.

Description

The operation generates map that describes rotation mapping. Dimensions of the resulting image depends on inSizeMode. In 'Fit' mode size is extended to fit the rotated image. In 'Preserve' mode size of source image is left unchanged and part of rotated image may be lost. 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 RotateImage. outOutputRegion return region, which can be calculated by RemapImage.

Hardware Acceleration

This operation supports automatic parallelization for multicore and multiprocessor systems.

See Also

  • RemapImage – Applies a precomputed image transform, defined by a spatial map object.