MachineIntelligenceCore:Visualization
WindowMNISTDigit.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_OPENGL_VISUALIZATION_WINDOWMNISTDIGIT_HPP_
24 #define SRC_OPENGL_VISUALIZATION_WINDOWMNISTDIGIT_HPP_
25 
27 
28 // Dependencies on core types.
29 #include <types/TensorTypes.hpp>
30 #include <types/Position2D.hpp>
31 using namespace mic::types;
32 
33 namespace mic {
34 namespace opengl {
35 namespace visualization {
36 
41 enum class MNISTDigitChannels : std::size_t
42 {
43  Pixels = 0,
44  Goals = 1,
45  Agent = 2,
46  Count = 3
47 };
48 
49 
54 class WindowMNISTDigit: public Window {
55 public:
59  WindowMNISTDigit(std::string name_ = "MNISTDigit",
60  unsigned int position_x_ = 0, unsigned int position_y_ = 0,
61  unsigned int width_ = 512, unsigned int height_ = 512);
62 
66  virtual ~WindowMNISTDigit();
67 
68 
72  void displayHandler(void);
73 
77  void setDigitPointer(mic::types::TensorXfPtr displayed_digit_);
78 
82  void setPathPointer(std::shared_ptr<std::vector <mic::types::Position2D> > saccadic_path_);
83 
84 private:
85 
89  mic::types::TensorXfPtr displayed_digit;
90 
92  std::shared_ptr<std::vector <mic::types::Position2D> > saccadic_path;
93 
94 };
95 
96 } /* namespace visualization */
97 } /* namespace opengl */
98 } /* namespace mic */
99 
100 #endif /* SRC_OPENGL_VISUALIZATION_WINDOWMNISTDIGIT_HPP_ */
MNISTDigitChannels
MNIST Digit environment channels.
std::shared_ptr< std::vector< mic::types::Position2D > > saccadic_path
Saccadic path to be displayed - a sequence of consecutive agent positions.
OpenGL-based window responsible for displaying a MNIST digit with a moving agent on top...
Contains declaration of parent class of all OpenGL-based windows.
Parent class of all OpenGL-based windows (abstract).
Definition: Window.hpp:51
Channel storing image intensities (this is a grayscale image)