mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-05-08 08:02:19 +02:00
23 lines
641 B
C++
23 lines
641 B
C++
#pragma once
|
|
|
|
#include <atomic>
|
|
#include <functional>
|
|
#include <string>
|
|
|
|
class vtkImageData;
|
|
|
|
// Pure skull removal / masking pipeline (no Qt).
|
|
class SkullRemovalService
|
|
{
|
|
public:
|
|
SkullRemovalService() = default;
|
|
|
|
// Returns a NEW vtkImageData* (caller owns; use vtkSmartPointer if you prefer).
|
|
// Throws std::runtime_error on failure (unless aborted).
|
|
vtkImageData* run(vtkImageData* inputVolume,
|
|
double thr_low,
|
|
double thr_up,
|
|
std::atomic_bool* abortFlag = nullptr,
|
|
std::function<void(const std::string&, double)> progressCb = {});
|
|
};
|