Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Spatial Transforms » CropPathToRectangle

CropPathToRectangle


Header:AVL.h
Namespace:avl

Creates a path contained in a rectangle from another path.

Syntax

C++
C#
 
void avl::CropPathToRectangle
(
	const avl::Path& inPath,
	const avl::Rectangle2D& inRectangle,
	avl::CropPathMethod::Type inCropPathMethod,
	avl::Path& outPath
)

Parameters

Name Type Default Description
inPath const Path& Input path
inRectangle const Rectangle2D&
inCropPathMethod CropPathMethod::Type PointToPoint
outPath Path& Output path

Errors

List of possible exceptions:

Error type Description
DomainError Unknown method for cropping a path in CropPathToRectangle.