Back to FabImage Library website

You are here: Start » Function Reference » Image » Image Spatial Transforms » TranslateImage

TranslateImage


Header: FIL.h
Namespace: fil
Module: FoundationLite

Translates an image by a vector, without changing its dimensions.

Applications: E.g. camera shaking reduction.

Syntax

C++
C#
 
void fil::TranslateImage
(
	const fil::Image& inImage,
	const fil::Pixel& inBorder,
	int inDeltaX,
	int inDeltaY,
	bool inInverse,
	fil::Image& outImage
)

Parameters

Name Type Default Description
Input value
inImage const Image& Input image
Input value
inBorder const Pixel& Color used to fill pixels outside of the translated image
Input value
inDeltaX int Horizontal shift
Input value
inDeltaY int Vertical shift
Input value
inInverse bool Switches to the inverse operation
Output value
outImage Image& Output image

Examples

TranslateImage performed on the sample image.