17 lines
593 B
C
17 lines
593 B
C
#pragma once
|
|
#include <QImage>
|
|
#include <QJsonObject>
|
|
#include <QString>
|
|
|
|
struct BoardPoseEstimate {
|
|
QJsonObject data;
|
|
QImage axesImage;
|
|
};
|
|
|
|
// Uses fixed intrinsics and the physical plate description, including distortion.
|
|
// Throws 视觉引导/std exceptions on failure. Never recalibrates from one image.
|
|
BoardPoseEstimate estimateBoardPose(const QImage& image, const QString& cameraFile,
|
|
const QString& descriptionFile, double axisLengthMm = 20.0, double sigma = 3.0);
|
|
QImage drawBoardCoordinateAxes(const QImage& image, QJsonObject& poseData,
|
|
const QString& cameraFile);
|