Back to FabImage Library website
You are here: Start » Function Reference » Image » Image Local Transforms » SmoothRegion_Mean
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Smooths an region by averaging pixels within a rectangular kernel.
Applications: Usually used for computing features related to local image "windows". Can be also used for noise removal, but Gauss is superior here.
Syntax
C++
C#
void fil::SmoothRegion_Mean ( const fil::Region& inRegion, int inRadiusX, ftl::Optional<int> inRadiusY, fil::Image& outImage )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inRegion | const Region& | Input region | ||
![]() |
inRadiusX | int | 0 - ![]() |
1 | Nearly half of the kernel's width (2*R+1) |
![]() |
inRadiusY | Optional<int> | 0 - ![]() |
NIL | Nearly half of the kernel's height (2*R+1), or same as inRadiusX |
![]() |
outImage | Image& | Output image |
Hardware Acceleration
This operation supports automatic parallelization for multicore and multiprocessor systems.