Back to Adaptive Vision Library website

You are here: Start » Function Reference » Region Features » RegionArea

RegionArea


Computes the number of pixels contained in a region.

Header:AVL.h

Syntax

C++
C#
 
void avl::RegionArea
(
	const avl::Region& inRegion,
	int& outArea
)

Parameters

Name Type Default Description
inRegion const Region& Input region
outArea int&

Examples

Area of the sample region equals to 5567.

Errors

Error type Description
DomainError The area of the region exceeds the capacity of the integer type in RegionArea.

See Also

  • ShapeArea – Computes the area of a shape.