static soma::ScaledEncodingInfo info(const carto::Volume< INP > &thing)
Get the slope, offset and maximum error to encode a volume of float or double using an integer type.
bool canEncodeAsScaledS16(const carto::Volume< T > &vol, float &slope, float &offset, bool enableoffset=true, double *maxerr=0)
Checks if a volume can be encoded as 16 bit signed ints with a scale factor and optionally an offset.