Back to Aurora Vision Library Lite website

You are here: Start » Image » Image Spatial Transforms » TrimImageToRegion

TrimImageToRegion


Header: AVL.h
Namespace: avl

Trims an image to the area of the specified region.

Syntax

void avl::TrimImageToRegion
(
	const avl::Image& inImage,
	const avl::Region& inRegion,
	const avl::Pixel& inBorderColor,
	avl::Image& outImage
)

Parameters

Name Type Default Description
Input value inImage const Image& Input image
Input value inRegion const Region& Input region
Input value inBorderColor const Pixel& Color used for locations outside the region
Output value outImage Image& Output image

Description

The operation extracts part of the inImage that corresponds to the region. Other pixels are set to inBorderColor color.

Examples

TrimImageToRegion performed on the sample image and region.