ShrinkRegionNTimes


Shrinks a region by a natural factor along each axis.

Syntax

C++
C#
Python
 
def ShrinkRegionNTimes(
	inRegion: Region,
	outRegion: Region,
	/,
	*,
	inNX: int = 2,
	inNY: int | None = None,
	inThreshold: float = 0.5
)
-> None

Parameters

Name Type Range Default Description
Input value inRegion Region Input region
Input value inNX int 1 - 2
Input value inNY int | None 1 - None
Input value inThreshold float 0.0 - 1.0 0.5 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