Back to Adaptive Vision Library Lite website

You are here: Start » Region Spatial Transforms » UncropRegion


Header: AVL.h
Namespace: avl

Inverse of CropRegion


void avl::UncropRegion
	const avl::Region& inRegion,
	const avl::Box& inSelection,
	int inWidth,
	int inHeight,
	avl::Region& outRegion


Name Type Range Default Description
inRegion const Region& Input region
inSelection const Box& Box defining the range of the original cropping
inWidth int 0 - 65535 Width of the uncropped region
inHeight int 0 - 65535 Height of the uncropped region
outRegion Region& Output region


The operation translates a region to original coordinates. The value of inSelection describes region coordinates before the cropping.

Dimensions of outRegion depends on inWidth and inHeight.


Images below show a typical usage of the filter CropRegion.

An input region. A region after CropRegion. Result of applying UncropRegion on the cropped region.


This operation is an inversion of filter CropRegion.

See Also

  • CropRegion – Creates a region from a rectangular fragment of another one.