mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-05-03 13:44:26 +02:00
38 lines
792 B
C++
38 lines
792 B
C++
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
// Shared data model used across logic, Qt UI, and VTK rendering.
|
|
// Keep this header free of Qt Widgets / VTK includes.
|
|
|
|
struct Point3d
|
|
{
|
|
double x{0.0};
|
|
double y{0.0};
|
|
double z{0.0};
|
|
};
|
|
|
|
struct Marker
|
|
{
|
|
int regionId{-1};
|
|
// In meters (legacy code converts from mm by dividing by 1000).
|
|
Point3d centroid;
|
|
};
|
|
|
|
using MarkerList = std::vector<Marker>;
|
|
|
|
struct LocalizationParams
|
|
{
|
|
int marchThreshold{3000};
|
|
double thrDown_D{0.0};
|
|
double thrUp_D{0.0};
|
|
double thr_HAUSD{0.0};
|
|
double thr_S{0.0};
|
|
|
|
// Index mapping matches the legacy code:
|
|
// 0: bounding-box diagonal length filter
|
|
// 1: Hausdorff distance filter
|
|
// 2: side-difference filter
|
|
std::vector<bool> selectedFilters{true, true, true};
|
|
};
|