Back to FabImage Library website

You are here: Start » Function Reference » Profile » Profile Local Transforms » SharpenProfile

SharpenProfile


Header: FIL.h
Namespace: fil
Module: FoundationPro

Sharpens a profile using a 3x1 filter.

Syntax

C++
C#
 
void fil::SharpenProfile
(
	const fil::Profile& inProfile,
	ftl::Optional<const fil::Range&> inRange,
	const float inFactor,
	const bool inCyclic,
	fil::Profile& outProfile
)

Parameters

Name Type Range Default Description
Input value inProfile const Profile& Input profile
Input value inRange Optional<const Range&> NIL
Input value inFactor const float 0.0 - 1.0f
Input value inCyclic const bool Defines whether the first element should be considered adjacent to the last element
Output value outProfile Profile& Output profile

In-place Processing

This function supports in-place data processing - you can pass the same reference to inProfile and outProfile

Read more about In-place Computation.

Errors

List of possible exceptions:

Error type Description
DomainError Range exceeds the input profile in SharpenProfile.