VMTK
Loading...
Searching...
No Matches
vtkvmtkOtsuMultipleThresholdsImageFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 Portions of this code are covered under the ITK copyright.
13 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm
14 for details.
15
16 This software is distributed WITHOUT ANY WARRANTY; without even
17 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
18 PURPOSE. See the above copyright notices for more information.
19
20=========================================================================*/
21
38
39#ifndef __vtkvmtkOtsuMultipleThresholdsImageFilter_h
40#define __vtkvmtkOtsuMultipleThresholdsImageFilter_h
41
42#include "vtkSimpleImageToImageFilter.h"
43#include "vtkvmtkWin32Header.h"
44
45class vtkFloatArray;
46
47class VTK_VMTK_SEGMENTATION_EXPORT vtkvmtkOtsuMultipleThresholdsImageFilter : public vtkSimpleImageToImageFilter
48{
49 public:
51 vtkTypeMacro(vtkvmtkOtsuMultipleThresholdsImageFilter, vtkSimpleImageToImageFilter);
52
54
58 vtkGetMacro(NumberOfHistogramBins,int);
59 vtkSetMacro(NumberOfHistogramBins,int);
61
63
67 vtkGetMacro(NumberOfThresholds,int);
68 vtkSetMacro(NumberOfThresholds,int);
70
72
76 vtkGetMacro(LabelOffset,int);
77 vtkSetMacro(LabelOffset,int);
79
84 vtkGetObjectMacro(Thresholds,vtkFloatArray);
85
86protected:
89
90 virtual void SimpleExecute(vtkImageData* input, vtkImageData* output) override;
91 virtual int RequestInformation(vtkInformation * vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
92
93private:
95 void operator=(const vtkvmtkOtsuMultipleThresholdsImageFilter&); // Not implemented.
96
97 int NumberOfHistogramBins;
98 int NumberOfThresholds;
99 int LabelOffset;
100 vtkFloatArray* Thresholds;
101};
102
103#endif
104
virtual int RequestInformation(vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
static vtkvmtkOtsuMultipleThresholdsImageFilter * New()
virtual void SimpleExecute(vtkImageData *input, vtkImageData *output) override