blob: 0e2f83933c631d0fef59e2829ef431c096bd63b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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("")}};
};
|