Back to Adaptive Vision Library website
You are here: Start » Function Reference » Region Spatial Transforms » ShrinkRegionNTimes
ShrinkRegionNTimes
Shrinks a region by a natural factor along each axis.
Header: | AVL.h |
---|
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 | |
---|---|---|---|---|---|
inRegion | const Region& | Input region | |||
inNX | int | 1 - | 2 | ||
inNY | const Optional<int>& | 1 - | NIL | ||
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. | |
outRegion | Region& | Output region |
See Also
- DownsampleRegion – Shrinks a region by the factor of two along each axis.
- EnlargeRegionNTimes – Enlarges a region by a natural factor.
- ResizeRegion – Enlarges or shrinks a region to new dimensions.
- ResizeRegion_Relative – Resizes region relatively along each axis.
- ShrinkImageNTimes – Shrinks an image by a natural factor along each axis.
- ShrinkProfileNTimes – Reduces the length of the profile by averaging its elements.