Slicer  5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkITKIslandMath.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8 ==========================================================================*/
9 
10 #ifndef __vtkITKIslandMath_h
11 #define __vtkITKIslandMath_h
12 
13 #include "vtkITK.h"
14 #include "vtkSimpleImageToImageFilter.h"
15 
20 class VTK_ITK_EXPORT vtkITKIslandMath : public vtkSimpleImageToImageFilter
21 {
22  public:
23  static vtkITKIslandMath *New();
24  vtkTypeMacro(vtkITKIslandMath, vtkSimpleImageToImageFilter);
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
30  vtkGetMacro(FullyConnected, int);
31  vtkSetMacro(FullyConnected, int);
32 
35  vtkGetMacro(MinimumSize, vtkIdType);
36  vtkSetMacro(MinimumSize, vtkIdType);
37 
40  vtkGetMacro(MaximumSize, vtkIdType);
41  vtkSetMacro(MaximumSize, vtkIdType);
42 
48  vtkGetMacro(SliceBySlice, int);
49  vtkSetMacro(SliceBySlice, int);
50  void SetSliceBySliceToIJ() {this->SetSliceBySlice(3);}
51  void SetSliceBySliceToIK() {this->SetSliceBySlice(2);}
52  void SetSliceBySliceToJK() {this->SetSliceBySlice(1);}
53 
56  vtkGetMacro(NumberOfIslands, unsigned long);
57  vtkSetMacro(NumberOfIslands, unsigned long);
58  vtkGetMacro(OriginalNumberOfIslands, unsigned long);
59  vtkSetMacro(OriginalNumberOfIslands, unsigned long);
60 
61 
62 protected:
64  ~vtkITKIslandMath() override;
65 
66  void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
67 
70  vtkIdType MinimumSize;
71  vtkIdType MaximumSize;
72 
73  unsigned long NumberOfIslands;
74  unsigned long OriginalNumberOfIslands;
75 
76 private:
77  vtkITKIslandMath(const vtkITKIslandMath&) = delete;
78  void operator=(const vtkITKIslandMath&) = delete;
79 };
80 
81 #endif
ITK-based utilities for manipulating connected regions in label maps. Limitation: The filter does not...
unsigned long OriginalNumberOfIslands
unsigned long NumberOfIslands