-
Notifications
You must be signed in to change notification settings - Fork 0
/
vmtkImageFeature.h
64 lines (47 loc) · 1.77 KB
/
vmtkImageFeature.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
56
57
58
59
60
61
62
63
64
#ifndef VMTK_IMAGE_FEATURES_CPP_
#define VMTK_IMAGE_FEATURES_CPP_
using namespace std;
#include <vector>
#include <vtkImageData.h>
#include <vtkImageCast.h>
#include <vtkSmartPointer.h>
#include <vtkImageGradientMagnitude.h>
#include <vtkImageMathematics.h>
#include <vtkObjectBase.h>
#include "Uncopyable.h"
enum FeatureImageType
{
VTKGRADIENT,GRADIENT,UPWIND,FWHM
};
class vmtkImageFeature:public vtkObjectBase
{
private:
int Dimensionality;
double DerivativeSigma;
int SigmoidRemapping;
double FWHMRadius[3];
double FWHMBackgroundValue;
double UpwindFactor;
protected:
vmtkImageFeature();
virtual ~vmtkImageFeature();
public:
static vmtkImageFeature* New();
vtkTypeMacro(vmtkImageFeature,vtkObjectBase);
//originalData是原始图像,res图像是结果图像,传进来之前已经初始化,或者说已经分配内存,不是在这个函数内部分配内存
void BuildVTKGradientBasedFeatureImage(vtkImageData*originalData,vtkImageData* res);
//originalData是原始图像,res图像是结果图像,传进来之前已经初始化,或者说已经分配内存,不是在这个函数内部分配内存
void BuildFWHMBasedFeatureImage(vtkImageData*originalData,vtkImageData* res);
//originalData是原始图像,res图像是结果图像,传进来之前已经初始化,或者说已经分配内存,不是在这个函数内部分配内存
void BuildUpwindGradientBasedFeatureImage(vtkImageData*originalData,vtkImageData* res);
//originalData是原始图像,res图像是结果图像,传进来之前已经初始化,或者说已经分配内存,不是在这个函数内部分配内存
void BuildGradientBasedFeatureImage(vtkImageData*originalData,vtkImageData* res);
//
void setSigmoidRemapping(int _sigmoidRemapping);
//
void setDerivativeSigma(double _DerivativeSigma);
void setUpwindFactor(double _upwindFactor);
void setFWHMRadius(double _FWHMRadius[3]);
void setFWHMBackgroundValue(double _FWHMBackgroundValue);
};
#endif