#include <soma-io/config/soma_config.h>
#include <vector>
Go to the source code of this file.
|
template<typename T > |
bool | soma::canEncodeAsScaledS16 (const T *vol, float &slope, float &offset, const std::vector< long > &strides, const std::vector< int > &sizes, 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. More...
|
|
template<> |
bool | soma::canEncodeAsScaledS16 (const float *vol, float &slope, float &offset, const std::vector< long > &strides, const std::vector< int > &sizes, bool enableoffset, double *) |
|
template<> |
bool | soma::canEncodeAsScaledS16 (const double *vol, float &slope, float &offset, const std::vector< long > &strides, const std::vector< int > &sizes, bool enableoffset, double *) |
|