ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkReconstructionImageFilter.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#ifndef itkReconstructionImageFilter_h
19#define itkReconstructionImageFilter_h
20
24#include "itkProgressReporter.h"
25#include <queue>
26
27// #define BASIC
28#define COPY
29
30#ifdef COPY
32#endif
33
34namespace itk
35{
51
52template <typename TInputImage, typename TOutputImage, typename TCompare>
53class ITK_TEMPLATE_EXPORT ReconstructionImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(ReconstructionImageFilter);
57
61
64
66 using InputImageType = TInputImage;
67 using ISizeType = typename InputImageType::SizeType;
68 using MarkerImageType = TInputImage;
69 using MarkerImagePointer = typename MarkerImageType::Pointer;
70 using MarkerImageConstPointer = typename MarkerImageType::ConstPointer;
71 using MarkerImageRegionType = typename MarkerImageType::RegionType;
72 using MarkerImagePixelType = typename MarkerImageType::PixelType;
73 using InputImagePixelType = typename InputImageType::PixelType;
74 using InputImageIndexType = typename InputImageType::IndexType;
75 using MaskImageType = TInputImage;
76 using MaskImagePointer = typename MaskImageType::Pointer;
77 using MaskImageConstPointer = typename MaskImageType::ConstPointer;
78 using MaskImageRegionType = typename MaskImageType::RegionType;
79 using MaskImagePixelType = typename MaskImageType::PixelType;
80 using OutputImageType = TOutputImage;
81 using OutputImagePointer = typename OutputImageType::Pointer;
82 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
83 using OutputImageRegionType = typename OutputImageType::RegionType;
84 using OutputImagePixelType = typename OutputImageType::PixelType;
85 using OutputImageIndexType = typename OutputImageType::IndexType;
86
88
90 static constexpr unsigned int MarkerImageDimension = TInputImage::ImageDimension;
91 static constexpr unsigned int MaskImageDimension = TInputImage::ImageDimension;
92 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
93
95 itkNewMacro(Self);
96
98 itkOverrideGetNameOfClassMacro(ReconstructionImageFilter);
99
108
115
122 itkSetMacro(FullyConnected, bool);
123 itkGetConstReferenceMacro(FullyConnected, bool);
124 itkBooleanMacro(FullyConnected);
126
132 itkSetMacro(UseInternalCopy, bool);
133 itkGetConstReferenceMacro(UseInternalCopy, bool);
134 itkBooleanMacro(UseInternalCopy);
136
137protected:
139 ~ReconstructionImageFilter() override = default;
140 void
141 PrintSelf(std::ostream & os, Indent indent) const override;
142
146 void
148
150 void
151 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
152
153 void
154 GenerateData() override;
155
159 typename TInputImage::PixelType m_MarkerValue{};
160
161private:
164
166
167 using FaceListType = typename FaceCalculatorType::FaceListType;
168 using FaceListTypeIt = typename FaceCalculatorType::FaceListType::iterator;
169
172
173 using OutIndexType = typename OutputImageType::IndexType;
174 using InIndexType = typename InputImageType::IndexType;
177}; // end of class
178} // end namespace itk
179
180#ifndef ITK_MANUAL_INSTANTIATION
181# include "itkReconstructionImageFilter.hxx"
182#endif
183
184#endif
Const version of ShapedNeighborhoodIterator, defining iteration of a local N-dimensional neighborhood...
Base class for all data objects in ITK.
A multi-dimensional iterator templated over image type that walks a region of pixels.
A multi-dimensional iterator templated over image type that walks a region of pixels.
Control indentation during Print() invocation.
Definition itkIndent.h:50
typename itk::NeighborhoodAlgorithm::ImageBoundaryFacesCalculator< OutputImageType > FaceCalculatorType
void EnlargeOutputRequestedRegion(DataObject *output) override
~ReconstructionImageFilter() override=default
itkGetInputMacro(MaskImage, MaskImageType)
void GenerateInputRequestedRegion() override
itkGetInputMacro(MarkerImage, MarkerImageType)
void PrintSelf(std::ostream &os, Indent indent) const override
itkSetInputMacro(MaskImage, MaskImageType)
itkSetInputMacro(MarkerImage, MarkerImageType)
A neighborhood iterator which can take on an arbitrary shape.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Splits an image into a main region and several "face" regions which are used to handle computations o...