soma-io  5.1.2
scaledcoding.h File Reference
#include <soma-io/config/soma_config.h>
#include <vector>
Include dependency graph for scaledcoding.h:

Go to the source code of this file.

Classes

class  soma::ScaledEncodingInfo
 
class  soma::ScaledEncoding< INP, OUTP >
 

Namespaces

 soma
 

Functions

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 *)