NNFS
Neural network library from scratch
Loading...
Searching...
No Matches
paint.h
Go to the documentation of this file.
1#ifndef PAINT_H
2#define PAINT_H
3
4#include "ui_paint.h"
5#include "canvas.h"
6#include <QWidget>
7#include <QLabel>
8#include <QPushButton>
9#include <NNFS/Core>
10
17class Paint : public QMainWindow
18{
19 Q_OBJECT
20
21public:
27 explicit Paint(QWidget *parent = nullptr);
28
32 ~Paint();
33
34protected:
42 bool eventFilter(QObject *obj, QEvent *event) override;
43
44private slots:
48 void restartCanvas();
49
53 void predict();
54
55private:
56 Ui::paint *ui; // User interface
57 Canvas *canvas; // Painting canvas
58 NNFS::NeuralNetwork model; // Neural network model
59};
60
61#endif // PAINT_H
The Canvas class represents a custom widget for drawing on a canvas.
Definition canvas.h:17
A neural network model.
Definition NeuralNetwork.hpp:37
The Paint class represents a painting application.
Definition paint.h:18
bool eventFilter(QObject *obj, QEvent *event) override
Filters events for the Paint object.
Definition paint.cpp:26
~Paint()
Destroys the Paint object.
Definition paint.cpp:98