Back to FabImage Library website

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

DownsampleRegion


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Shrinks a region by the factor of two along each axis.

Syntax

C++
C#
 
void fil::DownsampleRegion
(
	const fil::Region& inRegion,
	fil::DownsampleRegionMode::Type inDownsampleRegionMode,
	const int inScaleStep,
	fil::Region& outRegion
)

Parameters

Name Type Range Default Description
Input value inRegion const Region& Input region
Input value inDownsampleRegionMode DownsampleRegionMode::Type
Input value inScaleStep const int 0 - 12 1 Defines how many times the region size is divided by 2
Output value outRegion Region& Output region

See Also

  • ResizeRegion – Enlarges or shrinks a region to new dimensions.
  • DownsampleImage – Shrinks an image by the factor of two along each axis.