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 );
        
Method Description
set_value(self, index, value) Sets a value between 0 and 1 of a quantile measurement identified by an index between 1 and 6.
value(self, index) Gets the value between 0 and 1 of a quantile measurement identified by an index between 1 and 6.

quantile = imagedev.MeasurementAttributes.quantile
quantile.set_value(1, 0.3)
value = quantile.value(1)
        
Method Description
void SetValue(int index, float value) Sets a value between 0 and 1 of a quantile measurement identified by an index between 1 and 6.
float Value(int index) Gets the value between 0 and 1 of a quantile measurement identified by an index between 1 and 6.

Quantile quantile = MeasurementAttributes.quantile();
quantile.SetValue(1, 0.3f);
auto value = quantile.Value(1);