Back to Aurora Vision Library Lite website

You are here: Start » Region » Region Spatial Transforms » CropRegion

CropRegion


Header: AVL.h
Namespace: avl

Creates a region from a rectangular fragment of another one.

Applications: Can be used to obtain a part of a bigger region, but also to enforce specific region frame.

Syntax

void avl::CropRegion
(
	const avl::Region& inRegion,
	const avl::Box& inSelection,
	avl::Region& outRegion
)

Parameters

Name Type Default Description
Input value inRegion const Region& Input region
Input value inSelection const Box& Box defining the range of cropping
Output value outRegion Region& Output region

Examples

CropRegion performed on the sample region with inSelection = Box(0,0,200,200).

See Also

  • SetRegionFrame – Changes the width and the height of a region's frame (but does not rescale the content).