Files
glocalize/SkullRemovalService.h
T

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 = {});
};