Back to FabImage Library website
You are here: Start » Function Reference » Region » Region Spatial Transforms » ShrinkRegionNTimes

ShrinkRegionNTimes
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Shrinks a region by a natural factor along each axis.
Syntax
C++
C#
void fil::ShrinkRegionNTimes ( const fil::Region& inRegion, int inNX, const ftl::Optional<int>& inNY, float inThreshold, fil::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.
- ResizeRegion – Enlarges or shrinks a region to new dimensions.
- ResizeRegion_Relative – Resizes region relatively along each axis.
- EnlargeRegionNTimes – Enlarges a region by a natural factor.
- ShrinkImageNTimes – Shrinks an image by a natural factor along each axis.
- ShrinkProfileNTimes – Reduces the length of a profile N-times by averaging each N consecutive elements.