Back to FabImage Library website
You are here: Start » Function Reference » Profile » Profile Point Transforms » RescaleProfile

RescaleProfile
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationPro |
Applies a linear transformation to a profile.
Syntax
C++
C#
void fil::RescaleProfile ( fil::Profile& ioProfile, ftl::Optional<const fil::Range&> inRange, float inA, float inB )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
ioProfile | Profile& | ||
![]() |
inRange | Optional<const Range&> | NIL | |
![]() |
inA | float | 1.0f | Value multiplied |
![]() |
inB | float | 0.0f | Value added |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Range exceeds the input profile in RescaleProfile. |