23 #ifndef COLMATRIXENCODER_H_
24 #define COLMATRIXENCODER_H_
37 template<
typename T =
float>
virtual mic::types::MatrixPtr< T > decodeSample(const mic::types::MatrixPtr< T > &sdr_)
size_t matrix_width
Width of the matrix - number of columns.
Abstract parent class for all encoders using MatrixXf as SDR datatype.
ColMatrixEncoder(size_t matrix_height_, size_t matrix_width_)
virtual mic::types::MatrixPtr< T > encodeSample(const mic::types::MatrixPtr< T > &sample_)
Method responsible for encoding of input data sample into SDR (a 1D matrix - vector of floats)...
size_t sdr_length
Length of SDR.
size_t matrix_height
Height of the matrix - number of rows.
typename std::shared_ptr< mic::types::Matrix< T > > MatrixPtr
Typedef for a shared pointer to template-typed dynamic matrices.
Template-typed Matrix of dynamic size. Uses OpenBLAS if found by CMAKE - overloaded, specializations of * operator for types: float, double.
~ColMatrixEncoder()
Default destructor - empty.
Encoder responsible for encoding single channel (float) matrices (e.g. grayscale images) into SDRs...