Back to Adaptive Vision Library website

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

RegionProjection


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Computes the profile of the region pixel count in consecutive rows or columns.

Syntax

C++
C#
 
void avl::RegionProjection
(
	const avl::Region& inRegion,
	const avl::ProjectionDirection::Type inProjectionDirection,
	avl::Profile& outProfile
)

Parameters

Name Type Default Description
inRegion const Region& Input region
inProjectionDirection const ProjectionDirection::Type Direction in which the pixel occurrences are counted, 'horizontal' means summation row after row, 'vertical' indicates summation column after column
outProfile Profile& Profile of pixel count in consecutive rows/columns

Examples

RegionProjection performed on a sample region with inProjectionDirection = Vertical.