- foxes.utils.pack_value(unpacked_value, scale_factor, add_offset, dtype, fill_value)[source]
Pack a floating point value into an integer representation.
Parameters¶
- unpacked_value: float or np.ndarray
The floating point value(s) to be packed
- scale_factor: float
The scale factor
- add_offset: float
The add offset
- dtype: numpy.dtype
The dtype of packed values
- fill_value: float
The fill value for NaN
Returns¶
- packed_value: int or np.ndarray
The packed integer value(s)