Back to Adaptive Vision Library website

You are here: Start » Function Reference » Profile » Profile Point Transforms » RescaleProfile

RescaleProfile


Header: AVL.h
Namespace: avl
Module: FoundationPro

Applies a linear transformation to a profile.

Syntax

C++
C#
 
void avl::RescaleProfile
(
	avl::Profile& ioProfile,
	atl::Optional<const avl::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.