Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkITKGrowCut.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4 Queen's University, Kingston, ON, Canada. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
8
9 Unless required by applicable law or agreed to in writing, software
10 distributed under the License is distributed on an "AS IS" BASIS,
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 See the License for the specific language governing permissions and
13 limitations under the License.
14
15 This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16 and was supported through CANARIE's Research Software Program, Cancer
17 Care Ontario, OpenAnatomy, and Brigham and Women's Hospital through NIH grant R01MH112748.
18
19==============================================================================*/
20
21#ifndef __vtkITKGrowCut_h
22#define __vtkITKGrowCut_h
23
24#include "vtkITK.h"
25
26// VTK includes
27#include "vtkImageAlgorithm.h"
28#include "vtkImageData.h"
29
30class vtkInformation;
31class vtkInformationVector;
32
37class VTK_ITK_EXPORT vtkITKGrowCut : public vtkImageAlgorithm
38{
39 public:
40 static vtkITKGrowCut *New();
41 vtkTypeMacro(vtkITKGrowCut, vtkImageAlgorithm);
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
45 void SetIntensityVolume(vtkImageData* intensityVolume) { this->SetInputData(0, intensityVolume); }
46
48 void SetSeedLabelVolume(vtkImageData* labelImage) { this->SetInputData(1, labelImage); }
49
54 void SetMaskVolume(vtkImageData* labelImage) { this->SetInputData(2, labelImage); }
55
58 void Reset();
59
63 vtkGetMacro(DistancePenalty, double);
64 void SetDistancePenalty(double distancePenalty);
65
66protected:
68 ~vtkITKGrowCut() override;
69
70 int FillInputPortInformation(int port, vtkInformation* info) override;
71 void ExecuteDataWithInformation(vtkDataObject* outData, vtkInformation* outInfo) override;
72
73 double DistancePenalty{ 0.0 };
74
75private:
76 vtkITKGrowCut(const vtkITKGrowCut&) = delete;
77 void operator=(const vtkITKGrowCut&) = delete;
78
79 class vtkInternal;
80 vtkInternal* Internal;
81};
82
83#endif
ITK-based utilities for manipulating connected regions in label maps. Limitation: The filter does not...
void SetIntensityVolume(vtkImageData *intensityVolume)
Set input grayscale volume (input 0)
int FillInputPortInformation(int port, vtkInformation *info) override
~vtkITKGrowCut() override
void PrintSelf(ostream &os, vtkIndent indent) override
void ExecuteDataWithInformation(vtkDataObject *outData, vtkInformation *outInfo) override
void SetMaskVolume(vtkImageData *labelImage)
void SetDistancePenalty(double distancePenalty)
static vtkITKGrowCut * New()
double DistancePenalty
void SetSeedLabelVolume(vtkImageData *labelImage)
Set input seed label volume (input 1)