ITK
5.1.0
Insight Toolkit
ITK
Modules
Filtering
Path
include
itkPathToChainCodePathFilter.h
Go to the documentation of this file.
1
/*=========================================================================
2
*
3
* Copyright NumFOCUS
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0.txt
10
*
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*
17
*=========================================================================*/
18
#ifndef itkPathToChainCodePathFilter_h
19
#define itkPathToChainCodePathFilter_h
20
21
#include "
itkPathToPathFilter.h
"
22
#include "
itkOffset.h
"
23
// Templates require interfaces conforming to itkPath.h and itkChainCodePath.h
24
25
namespace
itk
26
{
38
template
<
typename
TInputPath,
typename
TOutputChainCodePath>
39
class
ITK_TEMPLATE_EXPORT
PathToChainCodePathFilter
:
public
PathToPathFilter
<TInputPath, TOutputChainCodePath>
40
{
41
public
:
42
ITK_DISALLOW_COPY_AND_ASSIGN(
PathToChainCodePathFilter
);
43
45
using
Self
=
PathToChainCodePathFilter
;
46
using
Superclass
=
PathToPathFilter<TInputPath, TOutputChainCodePath>
;
47
using
Pointer
=
SmartPointer<Self>
;
48
using
ConstPointer
=
SmartPointer<const Self>
;
49
51
itkNewMacro(
Self
);
52
54
itkTypeMacro(
PathToChainCodePathFilter
,
PathToPathFilter
);
55
57
using
InputPathType
= TInputPath;
58
using
InputPathPointer
=
typename
InputPathType::Pointer;
59
using
InputPathInputType
=
typename
InputPathType::InputType;
60
using
OutputPathType
= TOutputChainCodePath;
61
using
OutputPathPointer
=
typename
OutputPathType::Pointer;
62
using
OutputPathInputType
=
typename
OutputPathType::InputType;
63
using
IndexType
=
typename
InputPathType::IndexType
;
64
using
OffsetType
=
typename
InputPathType::OffsetType;
65
67
itkSetMacro(MaximallyConnected,
bool
) itkGetConstMacro(MaximallyConnected,
bool
) itkBooleanMacro(MaximallyConnected)
68
69
protected :
PathToChainCodePathFilter
();
70
~
PathToChainCodePathFilter
()
override
=
default
;
71
void
72
PrintSelf(std::ostream & os,
Indent
indent)
const override
;
73
74
void
75
GenerateData()
override
;
76
77
private
:
78
bool
m_MaximallyConnected{
false
};
79
};
80
}
// end namespace itk
81
82
#ifndef ITK_MANUAL_INSTANTIATION
83
# include "itkPathToChainCodePathFilter.hxx"
84
#endif
85
86
#endif
itkOffset.h
itk::PathToPathFilter
Base class for filters that take a path as input and produce a path as output.
Definition:
itkPathToPathFilter.h:38
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition:
itkIndent.h:49
itk::PathToChainCodePathFilter::OutputPathInputType
typename OutputPathType::InputType OutputPathInputType
Definition:
itkPathToChainCodePathFilter.h:62
itk::GTest::TypedefsAndConstructors::Dimension2::IndexType
ImageBaseType::IndexType IndexType
Definition:
itkGTestTypedefsAndConstructors.h:50
itk::LightObject
Light weight base class for most itk classes.
Definition:
itkLightObject.h:59
itk::PathToChainCodePathFilter::OutputPathPointer
typename OutputPathType::Pointer OutputPathPointer
Definition:
itkPathToChainCodePathFilter.h:61
itk::PathToChainCodePathFilter
Filter that produces a chain code version of a path.
Definition:
itkPathToChainCodePathFilter.h:39
itk::PathToChainCodePathFilter::IndexType
typename InputPathType::IndexType IndexType
Definition:
itkPathToChainCodePathFilter.h:63
itk::PathToChainCodePathFilter::OutputPathType
TOutputChainCodePath OutputPathType
Definition:
itkPathToChainCodePathFilter.h:60
itk::PathToChainCodePathFilter::InputPathPointer
typename InputPathType::Pointer InputPathPointer
Definition:
itkPathToChainCodePathFilter.h:58
itkPathToPathFilter.h
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition:
itkArray.h:26
itk::PathToChainCodePathFilter::InputPathType
TInputPath InputPathType
Definition:
itkPathToChainCodePathFilter.h:57
itk::PathToChainCodePathFilter::InputPathInputType
typename InputPathType::InputType InputPathInputType
Definition:
itkPathToChainCodePathFilter.h:59
itk::PathToChainCodePathFilter::OffsetType
typename InputPathType::OffsetType OffsetType
Definition:
itkPathToChainCodePathFilter.h:64
Generated on Sat Apr 25 2020 01:59:16 for ITK by
1.8.16