TranslateImage


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

Applications:E.g. camera shaking reduction.

Syntax

C++
Python
 
def TranslateImage(
	inImage: Image,
	inDeltaX: int,
	inDeltaY: int,
	outImage: Image,
	/,
	*,
	inBorder: Pixel = Pixel(0, 0, 0, 0),
	inInverse: bool = False
)
-> None

Parameters

Name Type Default Description
Input value inImage Image Input image
Input value inBorder Pixel Pixel(0, 0, 0, 0) 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 False Switches to the inverse operation
Output value outImage Image Output image