diff options
| author | Nikita Kostovsky <nikita@kostovsky.me> | 2025-02-21 07:27:00 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <nikita@kostovsky.me> | 2025-02-21 07:27:00 +0100 |
| commit | d12498504c279a0a85bbfb024f7903e34dbe07db (patch) | |
| tree | 0df9f3f8bf27470ac211a57bb8e44be0aa2f6138 /src/profile.h | |
| parent | 27637ab117d8738236f6ab155300ff6e79e4843b (diff) | |
broken img calc; change dir struct
Diffstat (limited to 'src/profile.h')
| -rw-r--r-- | src/profile.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/profile.h b/src/profile.h new file mode 100644 index 0000000..0e2f839 --- /dev/null +++ b/src/profile.h @@ -0,0 +1,29 @@ +#pragma once + +#include <QJsonObject> +#include <QPointF> + +#include "calibration.h" +#include "pixels.h" + +class Profile +{ +public: + using PointsMm = std::array<QPointF, img_width>; + +public: + // TODO: make private/protected + explicit Profile(const Pixels& pixels, + const CalibrationTablePtr calibrationTableZ, + const CalibrationTablePtr calibrationTableX); + +public: + const Counters& counters() const; + const PointsMm& pointsMm() const; + + operator const QJsonObject() const; + +private: + Counters m_counters{}; + PointsMm m_pointsMm{QPointF{std::nan(""), std::nan("")}}; +}; |
