forked from NIRALUser/ARCTIC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ARCTICComputation.h
56 lines (45 loc) · 1.32 KB
/
ARCTICComputation.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef ARCTICCOMPUTATION_H
#define ARCTICCOMPUTATION_H
#include <iostream>
#include <string>
#include <cstdlib>
#include <fstream>
#include <vector>
#include <itksys/Process.h>
#include "ARCTICParameters.h"
#include <itkImage.h>
#include <itkSize.h>
#include <itkPoint.h>
#include <itkImageFileReader.h>
#include <itkImageFileWriter.h>
#include "bmScriptParser.h"
#include "BMString.h"
class Computation
{
public:
Computation(Parameters _Parameters);
~Computation();
void setpipelineMode();
void WriteBMSFile();
void WriteBMSFile2();
void ExecuteBatchmakeScript();
void ExecuteBatchmakeScript2();
void Compute();
void WriteHeaderMRMLScene();
void WriteImageMRMLScene(string ImageName,string ImagePath,bool LabelFlag,int VolumeNodeNumber,int VolumeDisplayNodeNumber);
void WriteEndMRMLScene();
void WriteSnapshotBeginingMRMLScene(string SceneName,int SceneSnapshotNumber,int ActiveVolumeNumber,string ActiveVolumeLabelID);
void WriteSnapshotEndMRMLScene();
void WriteMeshSnapshotsMRMLScene(int VolumeNodeNumber1, int VolumeNodeNumber2);
void CenterImage(string Input, string Output);
private:
Parameters *m_Parameters;
ofstream CortThickPipelineBMS;
ofstream CortThickPipelineBMS2;
int m_pipelineMode;
bm::ScriptParser m_Parser;
bm::ScriptParser m_Parser2;
string m_labelFileCentered;
string m_refName;
};
#endif