Back to Adaptive Vision Library website

You are here: Start » Function Reference » Image Spatial Transforms » UncropImage

UncropImage


Header:AVL.h
Namespace:avl

Inverse of CropImage.

Syntax

C++
C#
 
void avl::UncropImage
(
	const avl::Image& inImage,
	const avl::Box& inSelection,
	int inWidth,
	int inHeight,
	avl::Image& outImage
)

Parameters

Name Type Range Default Description
inImage const Image& Input image
inSelection const Box& The same value as in CropImage
inWidth int 0 - Width of the original image
inHeight int 0 - Height of the original image
outImage Image& Output image

Description

Inverse of CropImage. Can create borders around original image e.g. passing x:50 y:50 will create new image with filled 50 pixels on top and 50 on left of the original image. inWidth and inHeight specifies the new image dimensions, Width and Height from inSelection property are not used.

Examples

inSelection property Preview
origin in x:0 y:0
origin in x:50 y:50

See Also

  • CropImage – Creates an image from a box-shaped fragment of the input image (with margins if requested).