-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathitkMABMISBasicOperationFilter.h
57 lines (42 loc) · 1.63 KB
/
itkMABMISBasicOperationFilter.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
#ifndef __itkMABMISBasicOperationFilter_h
#define __itkMABMISBasicOperationFilter_h
#include <itkImage.h>
#include <itkImageToImageFilter.h>
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkImageRegionIterator.h"
#define ImageDimension 3
namespace itk
{
namespace Statistics
{
template <class TInputImage, class TOutputImage>
class MABMISBasicOperationFilter : public ImageToImageFilter<TInputImage, TOutputImage>
{
public:
typedef MABMISBasicOperationFilter Self;
typedef ImageToImageFilter<TInputImage, TOutputImage> Superclass;
typedef SmartPointer<Self> Pointer;
typedef SmartPointer<const Self> ConstPointer;
typedef TInputImage ImageType;
typedef typename ImageType::Pointer ImagePointerType;
/** Method for creation through the object factory. */
itkNewMacro(Self);
/** Run-time type information (and related methods). */
itkTypeMacro(MABMISBasicOperationFilter, ImageToImageFilter);
void RemoveFile(std::string filename);
void bubbleSort(double* arr, int* index, int n);
void myitoa(int num, std::string& str, int digit);
void SaveMatrix2File(vnl_matrix<double> matrix, int iSize, int jSize, std::string martixFileName);
private:
MABMISBasicOperationFilter(const Self &); // purposely not implemented
void operator=(const Self &); // purposely not implemented
protected:
MABMISBasicOperationFilter();
~MABMISBasicOperationFilter();
void PrintSelf(std::ostream& os, Indent indent) const;
};
} // namespace itk
} // namespace Statistics
#include "itkMABMISBasicOperationFilter.hxx"
#endif