Back to Aurora Vision Library website

You are here: Start » Function Reference » Region » Region Spatial Transforms » ShrinkRegionNTimes

ShrinkRegionNTimes


Header: AVL.h
Namespace: avl
Module: FoundationBasic

Shrinks a region by a natural factor along each axis.

Syntax

C++
C#
 
void avl::ShrinkRegionNTimes
(
	const avl::Region& inRegion,
	int inNX,
	const atl::Optional<int>& inNY,
	float inThreshold,
	avl::Region& outRegion
)

Parameters

Name Type Range Default Description
Input value inRegion const Region& Input region
Input value inNX int 1 - 2
Input value inNY const Optional<int>& 1 - NIL
Input value inThreshold float 0.0 - 1.0 0.5f How much of the input pixels must be present to produce output pixel. When 0 - any pixel, when 1 - all pixels.
Output value outRegion Region& Output region

See Also

  • ResizeRegion – Enlarges or shrinks a region to new dimensions.
  • ShrinkProfileNTimes – Reduces the length of a profile N-times by averaging each N consecutive elements.