Back to FabImage Library website
You are here: Start » Function Reference » Profile » Profile Local Transforms » SmoothProfile_Mean

SmoothProfile_Mean
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Smooths a profile by averaging points within a kernel.
Syntax
C++
C#
void fil::SmoothProfile_Mean ( const fil::Profile& inProfile, ftl::Optional<const fil::Range&> inRange, const int inKernelRadius, const bool inCyclic, fil::Profile& outProfile )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inProfile | const Profile& | Input profile | ||
![]() |
inRange | Optional<const Range&> | NIL | ||
![]() |
inKernelRadius | const int | 0 - ![]() |
3 | Defines the width of the kernel as '2 * inKernelRadius + 1' |
![]() |
inCyclic | const bool | Defines whether the first element should be considered adjacent to the last element | ||
![]() |
outProfile | Profile& | Output profile |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Range exceeds the input profile in SmoothProfile_Mean. |