ImageDev

Quantile

This attribute manages quantile measurements belonging to the Histogram category of native measurements.

ImageDev provides five hard-coded and six customizable histogram quantile measurements in the Histogram category of native measurements. This attribute manages customizable quantile at a given index (between 1 and 6) and its corresponding value (between 0 and 1).

Syntax

Method Description
void setValue( int32_t index, float value ) Sets a value between 0 and 1 of a quantile measurement identified by an index between 1 and 6.
float value( int32_t index ) Gets the value between 0 and 1 of a quantile measurement identified by an index between 1 and 6.

Quantile::Ptr quantile = MeasurementAttributes::quantile();
quantile->setValue( 1, 0.3f );
float value = quantile->value( 1 );