[f6d9b9]: / includes / Masking / MaskingMethods / RegularMasking.h

Download this file

35 lines (29 with data), 940 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "../MaskingStrategy.h"
#include <iostream>
#include <stdexcept>
#include <SimpleITK.h>
namespace sitk = itk::simple;
class RegularMasking : public MaskingStrategy
{
private:
const std::string regionGrowingSeedType;
const int regionGrowingLowerThreshold;
const int regionGrowingUpperThreshold;
unsigned int nSlices;
sitk::ConnectedThresholdImageFilter regionGrower;
sitk::MaskImageFilter maskFilter;
sitk::ThresholdImageFilter thresholdFilter;
sitk::MedianImageFilter medianFilter;
sitk::ExtractImageFilter extractImage;
public:
RegularMasking(sitk::Image &image, const std::string &regionGrowingSeedType,
const int &regionGrowingLowerThreshold,
const int &regionGrowingUpperThreshold);
void run()
{
sitk::Image brainParenchyma = getBrainParenchyma();
}
private:
sitk::Image getBrainParenchyma();
};