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
Input will be modified ioProfile Profile&
Input value inRange Optional<const Range&> NIL
Input value inA float 1.0f Value multiplied
Input value inB float 0.0f Value added

Errors

List of possible exceptions:

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