mirror of
https://gitlab.ethz.ch/gfattori/glocalize.git
synced 2026-06-09 22:58:51 +02:00
27 lines
516 B
C++
27 lines
516 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
#include <atomic>
|
|
|
|
class vtkImageData;
|
|
|
|
class SkullRemovalWorker : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SkullRemovalWorker(QObject* parent = nullptr);
|
|
|
|
public slots:
|
|
void run(vtkImageData* inputVolume, double thr_low, double thr_up);
|
|
void abort();
|
|
|
|
signals:
|
|
void skull_mask_end(vtkImageData* maskedVolume);
|
|
void errMsg(QString msg);
|
|
void skull_mask_upd(QString msg, double val);
|
|
void aborted();
|
|
|
|
private:
|
|
std::atomic_bool m_abort{false};
|
|
};
|