ITK  6.0.0
Insight Toolkit
itkLevelSetDomainMapImageFilter.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 * https://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
19#ifndef itkLevelSetDomainMapImageFilter_h
20#define itkLevelSetDomainMapImageFilter_h
21
25#include <list>
26#include <utility>
27#include <vector>
28
29namespace itk
30{
39template <typename TInputImage, typename TOutputImage>
40class ITK_TEMPLATE_EXPORT LevelSetDomainMapImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
41{
42public:
43 ITK_DISALLOW_COPY_AND_MOVE(LevelSetDomainMapImageFilter);
44
49
50 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
51
53 itkNewMacro(Self);
54
56 itkOverrideGetNameOfClassMacro(LevelSetDomainMapImageFilter);
57
58 using InputImageType = TInputImage;
60 using InputImagePixelType = typename InputImageType::PixelType;
65
66 using OutputImageType = TOutputImage;
69 using OutputImagePixelType = typename OutputImageType::PixelType;
70
74
78
84 {
85 public:
86 LevelSetDomain() = default;
87
89 : m_Region(reg)
90 , m_IdList(std::move(iList))
91 {}
92
94 GetRegion() const
95 {
96 return &(this->m_Region);
97 }
98
100 GetIdList() const
101 {
102 return &(this->m_IdList);
103 }
104
105 private:
108 };
109
111 using DomainMapType = std::map<IdentifierType, LevelSetDomain>;
112
116 const DomainMapType &
118
119protected:
121 ~LevelSetDomainMapImageFilter() override = default;
122
127
130 void
131 GenerateData() override;
132
134 void
135 PrintSelf(std::ostream & os, Indent indent) const override;
136
137private:
138 DomainMapType m_DomainMap{};
139
140 const InputImageType * m_InputImage{};
141 OutputImageType * m_OutputImage{};
142};
143
144} /* namespace itk */
145
146#ifndef ITK_MANUAL_INSTANTIATION
147# include "itkLevelSetDomainMapImageFilter.hxx"
148#endif
149
150#endif
A multi-dimensional iterator templated over image type that walks an image region and is specialized ...
A multi-dimensional iterator templated over image type that walks pixels within a region and is speci...
A multi-dimensional iterator templated over image type that walks a region of pixels.
Base class for all process objects that output image data.
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::Pointer OutputImagePointer
Base class for filters that take an image as input and produce an image as output.
typename InputImageType::ConstPointer InputImageConstPointer
typename InputImageType::PixelType InputImagePixelType
typename InputImageType::RegionType InputImageRegionType
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Specifies an image region where an unique std::list of level sets Id's are defined.
LevelSetDomain(const InputImageRegionType &reg, InputImagePixelType iList)
typename OutputImageType::IndexType OutputImageIndexType
typename InputImageSizeType::SizeValueType InputImageSizeValueType
InputImageRegionType ComputeConsistentRegion(const InputImageRegionType &inputRegion) const
typename InputImageType::IndexType InputImageIndexType
~LevelSetDomainMapImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::SizeType InputImageSizeType
std::map< IdentifierType, LevelSetDomain > DomainMapType
const DomainMapType & GetDomainMap() const
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86
STL namespace.