Back to FabImage Library website

You are here: Start » Function Reference » Region » Region Morphology » ThresholdSmoothedRegion_Mean

ThresholdSmoothedRegion_Mean


Header: FIL.h
Namespace: fil
Module: FoundationBasic

Returns region of pixels witch collect minAmount of pixels in rectangle in input region.

Syntax

C++
C#
 
void fil::ThresholdSmoothedRegion_Mean
(
	const fil::Region& inRegion,
	int inRadiusX,
	ftl::Optional<int> inRadiusY,
	float inMinCount,
	int& outMinAmount,
	fil::Region& outRegion
)

Parameters

Name Type Range Default Description
Input value
inRegion const Region& Input region
Input value
inRadiusX int Nearly half of the kernel's width (2*R+1)
Input value
inRadiusY Optional<int> NIL Nearly half of the kernel's height (2*R+1), or same as inRadiusX
Input value
inMinCount float 0.0 - 1.0 Minimal part of pixels in rectangle to be in region
Output value
outMinAmount int&
Output value
outRegion Region& Output region