Integration Wrappers for Intel® Integrated Performance Primitives Developer Guide and Reference 2018

iwValueAbsToRel

Syntax

IW_DECL(double) iwValueAbsToRel(
    double      val,
    IppDataType type    
);

Parameters

val

Input absolute value.

dstType

Data type for the absolute range.

Description

This function converts an absolute value in a range of the given type to the relative value in range [0, 1].

Return Values

Relative value.