Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Region Spatial Transforms » TranslateRegion

TranslateRegion


Translates a region by a given number of pixels along each axis.

Name Type Description
inRegion Region Input region
inDeltaX Integer Horizontal shift
inDeltaY Integer Vertical shift
inInverse Bool Negates the delta values
outRegion Region Output region

Examples

Description of usage of this filter can be found in examples and tutorial: Brick destroy (Game).

TranslateRegion performed on the sample region with inDeltaX and inDeltaY both set to 50.

Errors

This filter can throw an exception to report error. Read how to deal with errors here: Error Handling

Error type Description
DomainError Input and output regions are not distinct in TranslateRegion.

Complexity Level

This filter is available on Basic Complexity Level.

See Also