ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryReconstructionByErosionImageFilter.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 itkBinaryReconstructionByErosionImageFilter_h
19#define itkBinaryReconstructionByErosionImageFilter_h
20
23#include "itkLabelMap.h"
29
30
31namespace itk
32{
33
53template <typename TInputImage>
54class ITK_TEMPLATE_EXPORT BinaryReconstructionByErosionImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
55{
56public:
57 ITK_DISALLOW_COPY_AND_MOVE(BinaryReconstructionByErosionImageFilter);
58
64
66 using InputImageType = TInputImage;
67 using OutputImageType = TInputImage;
68 using InputImagePointer = typename InputImageType::Pointer;
69 using InputImageConstPointer = typename InputImageType::ConstPointer;
70 using InputImageRegionType = typename InputImageType::RegionType;
71 using InputImagePixelType = typename InputImageType::PixelType;
72 using OutputImagePointer = typename OutputImageType::Pointer;
73 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
74 using OutputImageRegionType = typename OutputImageType::RegionType;
75 using OutputImagePixelType = typename OutputImageType::PixelType;
76
78 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
79 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
80 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
81
89
91 itkNewMacro(Self);
92
94 itkOverrideGetNameOfClassMacro(BinaryReconstructionByErosionImageFilter);
95
102 itkSetMacro(FullyConnected, bool);
103 itkGetConstReferenceMacro(FullyConnected, bool);
104 itkBooleanMacro(FullyConnected);
106
110
115 itkSetMacro(BackgroundValue, OutputImagePixelType);
116 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
118
123 itkSetMacro(ForegroundValue, OutputImagePixelType);
124 itkGetConstMacro(ForegroundValue, OutputImagePixelType);
126
131
136
137protected:
140 void
141 PrintSelf(std::ostream & os, Indent indent) const override;
142
146 void
148
150 void
151 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
152
155 void
156 GenerateData() override;
157
158private:
162}; // end of class
163
164} // end namespace itk
165
166#ifndef ITK_MANUAL_INSTANTIATION
167# include "itkBinaryReconstructionByErosionImageFilter.hxx"
168#endif
169
170#endif
A LabelObject with a generic attribute.
remove the objects according to the value of their attribute
Label the connected components in a binary image and produce a collection of label objects.
Implements the BinaryNot logical operator pixel-wise between two images.
itkSetInputMacro(MaskImage, InputImageType)
itkGetInputMacro(MaskImage, InputImageType)
BinaryImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
void PrintSelf(std::ostream &os, Indent indent) const override
LabelMapMaskImageFilter< LabelMapType, OutputImageType > BinarizerType
itkGetInputMacro(MarkerImage, InputImageType)
BinaryReconstructionLabelMapFilter< LabelMapType, InputImageType > ReconstructionType
void EnlargeOutputRequestedRegion(DataObject *output) override
itkSetInputMacro(MarkerImage, InputImageType)
AttributeLabelObject< SizeValueType, ImageDimension, bool > LabelObjectType
~BinaryReconstructionByErosionImageFilter() override=default
Mark the objects at least partially at the same position as the objects in a binary image.
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition itkIndent.h:50
Mask and image with a LabelMap.
Templated n-dimensional image to store labeled objects.
Definition itkLabelMap.h:71
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....