ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
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;
59 using InputImageConstPointer = typename InputImageType::ConstPointer;
60 using InputImagePixelType = typename InputImageType::PixelType;
61 using InputImageRegionType = typename InputImageType::RegionType;
62 using InputImageSizeType = typename InputImageType::SizeType;
63 using InputImageSizeValueType = typename InputImageSizeType::SizeValueType;
64 using InputImageIndexType = typename InputImageType::IndexType;
65
66 using OutputImageType = TOutputImage;
67 using OutputImagePointer = typename OutputImageType::Pointer;
68 using OutputImageIndexType = typename OutputImageType::IndexType;
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:
139
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.
Control indentation during Print() invocation.
Definition itkIndent.h:50
LevelSetDomain(const InputImageRegionType &reg, InputImagePixelType iList)
ImageRegionConstIteratorWithIndex< OutputImageType > OutputConstIteratorType
InputImageRegionType ComputeConsistentRegion(const InputImageRegionType &inputRegion) const
~LevelSetDomainMapImageFilter() override=default
void PrintSelf(std::ostream &os, Indent indent) const override
const DomainMapType & GetDomainMap() const
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
STL namespace.