mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-05-03 13:44:26 +02:00
23 lines
534 B
C++
23 lines
534 B
C++
#pragma once
|
|
|
|
#include "types.h"
|
|
|
|
#include <functional>
|
|
|
|
class vtkImageData;
|
|
|
|
// Pure logic (no Qt widgets, no rendering).
|
|
// Takes a volume and parameters and returns detected marker centroids.
|
|
class LocalizationService
|
|
{
|
|
public:
|
|
using ProgressFn = std::function<void(double /*percent*/)>;
|
|
using AbortFn = std::function<bool()>;
|
|
|
|
static MarkerList localize(
|
|
vtkImageData* volume,
|
|
const LocalizationParams& params,
|
|
const ProgressFn& onProgress = {},
|
|
const AbortFn& shouldAbort = {});
|
|
};
|