Slicer
5.2
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Libs
vtkITK
vtkITKImageThresholdCalculator.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
Program: vtkITK
9
Module: $HeadURL$
10
Date: $Date$
11
Version: $Revision$
12
13
==========================================================================*/
14
15
#ifndef __vtkITKImageThresholdCalculator_h
16
#define __vtkITKImageThresholdCalculator_h
17
18
#include "vtkImageAlgorithm.h"
19
#include "vtkImageData.h"
20
#include "vtkObjectFactory.h"
21
#include "vtkMatrix4x4.h"
22
23
#include "
vtkITK.h
"
24
#include "itkImageIOBase.h"
25
26
class
vtkStringArray;
27
28
class
VTK_ITK_EXPORT
vtkITKImageThresholdCalculator
:
public
vtkImageAlgorithm
29
{
30
public
:
31
static
vtkITKImageThresholdCalculator
*New();
32
vtkTypeMacro(
vtkITKImageThresholdCalculator
,vtkImageAlgorithm);
33
void
PrintSelf(ostream& os, vtkIndent indent)
override
;
34
35
vtkGetMacro(Threshold,
double
);
36
37
enum
38
{
39
METHOD_HUANG
,
40
METHOD_INTERMODES
,
41
METHOD_ISO_DATA
,
42
METHOD_KITTLER_ILLINGWORTH
,
43
METHOD_LI
,
44
METHOD_MAXIMUM_ENTROPY
,
45
METHOD_MOMENTS
,
46
METHOD_OTSU
,
47
METHOD_RENYI_ENTROPY
,
48
METHOD_SHANBHAG
,
49
METHOD_TRIANGLE
,
50
METHOD_YEN
,
51
NUMBER_OF_METHODS
// this must be the last
52
};
53
55
61
vtkSetClampMacro(Method,
int
, 0, NUMBER_OF_METHODS-1);
62
vtkGetMacro(Method,
int
);
63
void
SetMethodToHuang
() { this->SetMethod(
METHOD_HUANG
); }
64
void
SetMethodToIntermodes
() { this->SetMethod(
METHOD_INTERMODES
); }
65
void
SetMethodToIsoData
() { this->SetMethod(
METHOD_ISO_DATA
); }
66
void
SetMethodToKittlerIllingworth
() { this->SetMethod(
METHOD_KITTLER_ILLINGWORTH
); }
67
void
SetMethodToLi
() { this->SetMethod(
METHOD_LI
); }
68
void
SetMethodToMaximumEntropy
() { this->SetMethod(
METHOD_MAXIMUM_ENTROPY
); }
69
void
SetMethodToMoments
() { this->SetMethod(
METHOD_MOMENTS
); }
70
void
SetMethodToOtsu
() { this->SetMethod(
METHOD_OTSU
); }
71
void
SetMethodToRenyiEntropy
() { this->SetMethod(
METHOD_RENYI_ENTROPY
); }
72
void
SetMethodToShanbhag
() { this->SetMethod(
METHOD_SHANBHAG
); }
73
void
SetMethodToTriangle
() { this->SetMethod(
METHOD_TRIANGLE
); }
74
void
SetMethodToYen
() { this->SetMethod(
METHOD_YEN
); }
75
static
const
char
*GetMethodAsString(
int
method);
77
80
using
vtkAlgorithm::Update;
82
void
Update()
override
;
83
84
protected
:
85
vtkITKImageThresholdCalculator
();
86
~
vtkITKImageThresholdCalculator
()
override
;
87
88
int
Method
;
89
double
Threshold
;
90
91
private
:
92
vtkITKImageThresholdCalculator
(
const
vtkITKImageThresholdCalculator
&) =
delete
;
93
void
operator=(
const
vtkITKImageThresholdCalculator
&) =
delete
;
94
};
95
96
//vtkStandardNewMacro(vtkITKImageThresholdCalculator)
97
98
#endif
vtkITKImageThresholdCalculator::SetMethodToLi
void SetMethodToLi()
Definition:
vtkITKImageThresholdCalculator.h:67
vtkITKImageThresholdCalculator::METHOD_MAXIMUM_ENTROPY
Definition:
vtkITKImageThresholdCalculator.h:44
SegmentEditorThresholdEffect.METHOD_SHANBHAG
string METHOD_SHANBHAG
Definition:
SegmentEditorThresholdEffect.py:1241
SegmentEditorThresholdEffect.METHOD_KITTLER_ILLINGWORTH
string METHOD_KITTLER_ILLINGWORTH
Definition:
SegmentEditorThresholdEffect.py:1235
vtkITKImageThresholdCalculator::METHOD_MOMENTS
Definition:
vtkITKImageThresholdCalculator.h:45
SegmentEditorThresholdEffect.METHOD_TRIANGLE
string METHOD_TRIANGLE
Definition:
SegmentEditorThresholdEffect.py:1242
SegmentEditorThresholdEffect.METHOD_INTERMODES
string METHOD_INTERMODES
Definition:
SegmentEditorThresholdEffect.py:1233
vtkITKImageThresholdCalculator::SetMethodToTriangle
void SetMethodToTriangle()
Definition:
vtkITKImageThresholdCalculator.h:73
vtkITK.h
vtkITKImageThresholdCalculator::METHOD_HUANG
Definition:
vtkITKImageThresholdCalculator.h:39
vtkITKImageThresholdCalculator::METHOD_INTERMODES
Definition:
vtkITKImageThresholdCalculator.h:40
vtkITKImageThresholdCalculator::METHOD_OTSU
Definition:
vtkITKImageThresholdCalculator.h:46
SegmentEditorThresholdEffect.METHOD_MOMENTS
string METHOD_MOMENTS
Definition:
SegmentEditorThresholdEffect.py:1238
vtkITKImageThresholdCalculator::Threshold
double Threshold
Definition:
vtkITKImageThresholdCalculator.h:89
vtkITKImageThresholdCalculator::METHOD_TRIANGLE
Definition:
vtkITKImageThresholdCalculator.h:49
vtkITKImageThresholdCalculator::METHOD_LI
Definition:
vtkITKImageThresholdCalculator.h:43
vtkITKImageThresholdCalculator::SetMethodToHuang
void SetMethodToHuang()
Definition:
vtkITKImageThresholdCalculator.h:63
vtkITKImageThresholdCalculator::SetMethodToMoments
void SetMethodToMoments()
Definition:
vtkITKImageThresholdCalculator.h:69
vtkITKImageThresholdCalculator::METHOD_KITTLER_ILLINGWORTH
Definition:
vtkITKImageThresholdCalculator.h:42
SegmentEditorThresholdEffect.METHOD_HUANG
string METHOD_HUANG
Definition:
SegmentEditorThresholdEffect.py:1232
vtkITKImageThresholdCalculator::METHOD_YEN
Definition:
vtkITKImageThresholdCalculator.h:50
vtkITKImageThresholdCalculator::SetMethodToRenyiEntropy
void SetMethodToRenyiEntropy()
Definition:
vtkITKImageThresholdCalculator.h:71
vtkITKImageThresholdCalculator::SetMethodToIsoData
void SetMethodToIsoData()
Definition:
vtkITKImageThresholdCalculator.h:65
SegmentEditorThresholdEffect.METHOD_ISO_DATA
string METHOD_ISO_DATA
Definition:
SegmentEditorThresholdEffect.py:1234
vtkITKImageThresholdCalculator::SetMethodToIntermodes
void SetMethodToIntermodes()
Definition:
vtkITKImageThresholdCalculator.h:64
vtkITKImageThresholdCalculator::SetMethodToKittlerIllingworth
void SetMethodToKittlerIllingworth()
Definition:
vtkITKImageThresholdCalculator.h:66
vtkITKImageThresholdCalculator::Method
int Method
Definition:
vtkITKImageThresholdCalculator.h:88
vtkITKImageThresholdCalculator::METHOD_ISO_DATA
Definition:
vtkITKImageThresholdCalculator.h:41
SegmentEditorThresholdEffect.METHOD_RENYI_ENTROPY
string METHOD_RENYI_ENTROPY
Definition:
SegmentEditorThresholdEffect.py:1240
vtkITKImageThresholdCalculator::SetMethodToMaximumEntropy
void SetMethodToMaximumEntropy()
Definition:
vtkITKImageThresholdCalculator.h:68
SegmentEditorThresholdEffect.METHOD_MAXIMUM_ENTROPY
string METHOD_MAXIMUM_ENTROPY
Definition:
SegmentEditorThresholdEffect.py:1237
SegmentEditorThresholdEffect.METHOD_LI
string METHOD_LI
Definition:
SegmentEditorThresholdEffect.py:1236
vtkITKImageThresholdCalculator
Definition:
vtkITKImageThresholdCalculator.h:28
vtkITKImageThresholdCalculator::METHOD_SHANBHAG
Definition:
vtkITKImageThresholdCalculator.h:48
SegmentEditorThresholdEffect.METHOD_OTSU
string METHOD_OTSU
Definition:
SegmentEditorThresholdEffect.py:1239
vtkITKImageThresholdCalculator::SetMethodToShanbhag
void SetMethodToShanbhag()
Definition:
vtkITKImageThresholdCalculator.h:72
vtkITKImageThresholdCalculator::METHOD_RENYI_ENTROPY
Definition:
vtkITKImageThresholdCalculator.h:47
vtkITKImageThresholdCalculator::SetMethodToYen
void SetMethodToYen()
Definition:
vtkITKImageThresholdCalculator.h:74
SegmentEditorThresholdEffect.METHOD_YEN
string METHOD_YEN
Definition:
SegmentEditorThresholdEffect.py:1243
vtkITKImageThresholdCalculator::SetMethodToOtsu
void SetMethodToOtsu()
Definition:
vtkITKImageThresholdCalculator.h:70
Generated on Thu Nov 24 2022 07:48:28 for Slicer by
1.8.14