Skip to main content

compression:quantization (field)

Version: 0.0.0

Description

Scales a field to a given precision threshold, then rounds all the values to the unit.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
input_fieldfieldField to quantize.
Pin 1
Required
thresholddouble, fieldPrecision threshold desired.
Case double : the threshold is applied on all the input field.
Case field with one value : the threshold is applied on all the input field.
Case field with "numComp" values : each threhsold is applied to the corresponding component of the input field.
Case field with the same number of values than the input field : quantization is performed component-wise.

Outputs

OutputNameExpected type(s)Description
Pin 0output_fieldfieldScaled and rounded field

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: compression

Plugin: N/A

Scripting name: quantization

Full name: compression.quantization

Internal name: quantization

License: any_dpf_supported_increments

Changelog

  • Version 0.0.0: Initial release.