ITK  5.1.0
Insight Toolkit
itkBinaryReconstructionByDilationImageFilter.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 itkBinaryReconstructionByDilationImageFilter_h
19 #define itkBinaryReconstructionByDilationImageFilter_h
20 
21 #include "itkImageToImageFilter.h"
23 #include "itkLabelMap.h"
28 
29 
30 namespace itk
31 {
32 
56 template <typename TInputImage>
58  : public ImageToImageFilter<TInputImage, TInputImage>
59 {
60 public:
61  ITK_DISALLOW_COPY_AND_ASSIGN(BinaryReconstructionByDilationImageFilter);
62 
68 
70  using InputImageType = TInputImage;
71  using OutputImageType = TInputImage;
72  using InputImagePointer = typename InputImageType::Pointer;
73  using InputImageConstPointer = typename InputImageType::ConstPointer;
75  using InputImagePixelType = typename InputImageType::PixelType;
76  using OutputImagePointer = typename OutputImageType::Pointer;
77  using OutputImageConstPointer = typename OutputImageType::ConstPointer;
79  using OutputImagePixelType = typename OutputImageType::PixelType;
80 
82  static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
83  static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
84  static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
85 
92 
94  itkNewMacro(Self);
95 
98 
105  itkSetMacro(FullyConnected, bool);
106  itkGetConstReferenceMacro(FullyConnected, bool);
107  itkBooleanMacro(FullyConnected);
109 
110 #ifdef ITK_USE_CONCEPT_CHECKING
111  // Begin concept checking
112  itkConceptMacro(InputEqualityComparableCheck, (Concept::EqualityComparable<InputImagePixelType>));
115  // End concept checking
116 #endif
117 
122  itkSetMacro(BackgroundValue, OutputImagePixelType);
123  itkGetConstMacro(BackgroundValue, OutputImagePixelType);
125 
130  itkSetMacro(ForegroundValue, OutputImagePixelType);
131  itkGetConstMacro(ForegroundValue, OutputImagePixelType);
133 
135  itkSetInputMacro(MarkerImage, InputImageType);
136  itkGetInputMacro(MarkerImage, InputImageType);
138 
140  itkSetInputMacro(MaskImage, InputImageType);
141  itkGetInputMacro(MaskImage, InputImageType);
143 
144 protected:
146  ~BinaryReconstructionByDilationImageFilter() override = default;
147  void
148  PrintSelf(std::ostream & os, Indent indent) const override;
149 
153  void
154  GenerateInputRequestedRegion() override;
155 
157  void
158  EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
159 
162  void
163  GenerateData() override;
164 
165 private:
169 }; // end of class
170 
171 } // end namespace itk
172 
173 #ifndef ITK_MANUAL_INSTANTIATION
174 # include "itkBinaryReconstructionByDilationImageFilter.hxx"
175 #endif
176 
177 #endif
itk::BinaryReconstructionByDilationImageFilter::OutputImagePixelType
typename OutputImageType::PixelType OutputImagePixelType
Definition: itkBinaryReconstructionByDilationImageFilter.h:79
itk::BinaryReconstructionByDilationImageFilter::OutputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
Definition: itkBinaryReconstructionByDilationImageFilter.h:78
itk::Concept::OStreamWritable
Definition: itkConceptChecking.h:634
itk::AttributeOpeningLabelMapFilter
remove the objects according to the value of their attribute
Definition: itkAttributeOpeningLabelMapFilter.h:47
itk::BinaryReconstructionByDilationImageFilter::InputImagePixelType
typename InputImageType::PixelType InputImagePixelType
Definition: itkBinaryReconstructionByDilationImageFilter.h:75
itk::BinaryReconstructionByDilationImageFilter::OutputImagePointer
typename OutputImageType::Pointer OutputImagePointer
Definition: itkBinaryReconstructionByDilationImageFilter.h:76
itk::BinaryReconstructionByDilationImageFilter::OutputImageType
TInputImage OutputImageType
Definition: itkBinaryReconstructionByDilationImageFilter.h:71
itk::BinaryReconstructionByDilationImageFilter::OutputImageConstPointer
typename OutputImageType::ConstPointer OutputImageConstPointer
Definition: itkBinaryReconstructionByDilationImageFilter.h:77
itk::AttributeLabelObject
A LabelObject with a generic attribute.
Definition: itkAttributeLabelObject.h:74
itk::LabelMapToBinaryImageFilter
Convert a LabelMap to a binary image.
Definition: itkLabelMapToBinaryImageFilter.h:46
itkBinaryReconstructionLabelMapFilter.h
itk::BinaryReconstructionByDilationImageFilter::InputImageType
TInputImage InputImageType
Definition: itkBinaryReconstructionByDilationImageFilter.h:70
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::BinaryReconstructionByDilationImageFilter::m_ForegroundValue
OutputImagePixelType m_ForegroundValue
Definition: itkBinaryReconstructionByDilationImageFilter.h:168
itk::BinaryReconstructionLabelMapFilter
Mark the objects at least partially at the same position as the objects in a binary image.
Definition: itkBinaryReconstructionLabelMapFilter.h:49
itk::BinaryImageToLabelMapFilter
Label the connected components in a binary image and produce a collection of label objects.
Definition: itkBinaryImageToLabelMapFilter.h:56
itk::BinaryReconstructionByDilationImageFilter
binary reconstruction by dilation of an image
Definition: itkBinaryReconstructionByDilationImageFilter.h:57
itk::BinaryReconstructionByDilationImageFilter::InputImagePointer
typename InputImageType::Pointer InputImagePointer
Definition: itkBinaryReconstructionByDilationImageFilter.h:72
itk::LabelMap
Templated n-dimensional image to store labeled objects.
Definition: itkLabelMap.h:71
itk::ImageToImageFilter
Base class for filters that take an image as input and produce an image as output.
Definition: itkImageToImageFilter.h:108
itkLabelMap.h
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itkAttributeOpeningLabelMapFilter.h
itkAttributeLabelObject.h
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itkLabelMapToBinaryImageFilter.h
itkImageToImageFilter.h
itkBinaryImageToLabelMapFilter.h
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:64
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkArray.h:26
itk::BinaryReconstructionByDilationImageFilter::InputImageRegionType
typename InputImageType::RegionType InputImageRegionType
Definition: itkBinaryReconstructionByDilationImageFilter.h:74
itk::Concept::Convertible
Definition: itkConceptChecking.h:214
itk::BinaryReconstructionByDilationImageFilter::m_BackgroundValue
OutputImagePixelType m_BackgroundValue
Definition: itkBinaryReconstructionByDilationImageFilter.h:167
itk::BinaryReconstructionByDilationImageFilter::m_FullyConnected
bool m_FullyConnected
Definition: itkBinaryReconstructionByDilationImageFilter.h:166
itk::Concept::EqualityComparable
Definition: itkConceptChecking.h:304
itk::DataObject
Base class for all data objects in ITK.
Definition: itkDataObject.h:293
itk::BinaryReconstructionByDilationImageFilter::InputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
Definition: itkBinaryReconstructionByDilationImageFilter.h:73