soma-io  5.0.5
soma::ScaledEncoding< INP, OUTP > Class Template Reference

#include <soma-io/io/scaledcoding.h>

Static Public Member Functions

static ScaledEncodingInfo info (const INP *thing, const std::vector< long > &strides, const std::vector< int > &sizes)
 Get the slope, offset and maximum error to encode a volume of float or double using an integer type. More...
 
static ScaledEncodingInfo rescale (const INP *in, const std::vector< long > &strides, const std::vector< int > &sizes, OUTP *out)
 

Detailed Description

template<typename INP, typename OUTP>
class soma::ScaledEncoding< INP, OUTP >

Definition at line 99 of file scaledcoding.h.

Member Function Documentation

◆ info()

template<typename INP , typename OUTP >
static ScaledEncodingInfo soma::ScaledEncoding< INP, OUTP >::info ( const INP *  thing,
const std::vector< long > &  strides,
const std::vector< int > &  sizes 
)
static

Get the slope, offset and maximum error to encode a volume of float or double using an integer type.

◆ rescale()

template<typename INP , typename OUTP >
static ScaledEncodingInfo soma::ScaledEncoding< INP, OUTP >::rescale ( const INP *  in,
const std::vector< long > &  strides,
const std::vector< int > &  sizes,
OUTP *  out 
)
static

The documentation for this class was generated from the following file: