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 Range Description
inRegion Region Input region
inDeltaX Integer Horizontal shift
inDeltaY Integer Vertical shift
inInverse Bool Negates the delta values
inFrameWidth Integer* 0 - 65535 Output region frame width
inFrameHeight Integer* 0 - 65535 Output region frame height
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 in Error Handling.

List of possible exceptions:

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