47 for(
size_t i=1; i < 94; i++ ) {
55 for (
size_t r = 0; r < 8; r++) {
59 for (
size_t c = 0; c < 8; c++) {
60 (*mat)(r, c) = ((line &
mask8x8[8-c]) != 0);
66 for (
size_t r = 0; r < 16; r++) {
68 for (
size_t c = 0; c < 16; c++) {
69 (*mat)(r, c) = ((line &
mask16x16[c]) != 0);
80 LOG(LINFO) <<
"Imported " <<
sample_data.size() <<
" fonts";
89 LOG(LINFO) <<
"Data import finished";
Contains declaration of an importer responsible for importing/loading characters from IBM VGA font da...
std::shared_ptr< mic::types::MatrixXf > MatrixXfPtr
Shared pointer to matrix with single precision floats (of dynamic size).
std::vector< size_t > sample_indices
Stores sample indices (sample "positions" in original dataset).
mic::configuration::Property< IBMfont_t > font_type
const uint8_t font16x16_table[]
Table containing 8x8 characters. Originally created by Marcel Sondaar (IBM - VGA fonts).
Parent class for all data importers.
std::vector< std::shared_ptr< mic::types::MatrixXf > > sample_data
Stores the data.
const char font_labels_table[]
Table encodng for labels (chars).
const uint8_t font8x8_table[]
Table containing 8x8 characters. Originally created by Marcel Sondaar (IBM - VGA fonts).
IBMFontMatrixImporter(std::string node_name_="ibm_font_matrix_importer")
Loads characters of size 16x16.
Contains characters bitmaps, originally created by Marcel Sondaar (IBM - VGA fonts).
std::vector< std::shared_ptr< char > > sample_labels
Stores labels.
const uint16_t mask8x8[]
Mask used during encoding of 8x8 characters.
Loads characters of size 8x8.
Template-typed Matrix of dynamic size. Uses OpenBLAS if found by CMAKE - overloaded, specializations of * operator for types: float, double.
const uint16_t mask16x16[]
Mask used during encoding of 8x8 characters.