ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBinaryImageToShapeLabelMapFilter.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 itkBinaryImageToShapeLabelMapFilter_h
19#define itkBinaryImageToShapeLabelMapFilter_h
20
21#include "itkShapeLabelObject.h"
24
25namespace itk
26{
60template <typename TInputImage,
62class ITK_TEMPLATE_EXPORT BinaryImageToShapeLabelMapFilter : public ImageToImageFilter<TInputImage, TOutputImage>
63{
64public:
65 ITK_DISALLOW_COPY_AND_MOVE(BinaryImageToShapeLabelMapFilter);
67
73
75 using InputImageType = TInputImage;
76 using InputImagePointer = typename InputImageType::Pointer;
77 using InputImageConstPointer = typename InputImageType::ConstPointer;
78 using InputImageRegionType = typename InputImageType::RegionType;
79 using InputImagePixelType = typename InputImageType::PixelType;
80
81 using OutputImageType = TOutputImage;
82 using OutputImagePointer = typename OutputImageType::Pointer;
83 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
84 using OutputImageRegionType = typename OutputImageType::RegionType;
85 using OutputImagePixelType = typename OutputImageType::PixelType;
86 using LabelObjectType = typename OutputImageType::LabelObjectType;
87
89 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
90 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
91 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
92
96
98 itkNewMacro(Self);
99
101 itkOverrideGetNameOfClassMacro(BinaryImageToShapeLabelMapFilter);
102
108 itkSetMacro(FullyConnected, bool);
109 itkGetConstReferenceMacro(FullyConnected, bool);
110 itkBooleanMacro(FullyConnected);
112
116
121 itkSetMacro(OutputBackgroundValue, OutputImagePixelType);
122 itkGetConstMacro(OutputBackgroundValue, OutputImagePixelType);
124
129 itkSetMacro(InputForegroundValue, InputImagePixelType);
130 itkGetConstMacro(InputForegroundValue, InputImagePixelType);
132
137 itkSetMacro(ComputeFeretDiameter, bool);
138 itkGetConstReferenceMacro(ComputeFeretDiameter, bool);
139 itkBooleanMacro(ComputeFeretDiameter);
141
146 itkSetMacro(ComputePerimeter, bool);
147 itkGetConstReferenceMacro(ComputePerimeter, bool);
148 itkBooleanMacro(ComputePerimeter);
150
156 itkSetMacro(ComputeOrientedBoundingBox, bool);
157 itkGetConstReferenceMacro(ComputeOrientedBoundingBox, bool);
158 itkBooleanMacro(ComputeOrientedBoundingBox);
160
161protected:
164 void
165 PrintSelf(std::ostream & os, Indent indent) const override;
166
169 void
171
173 void
174 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
175
178 void
179 GenerateData() override;
180
181private:
188}; // end of class
189} // end namespace itk
190
191#ifndef ITK_MANUAL_INSTANTIATION
192# include "itkBinaryImageToShapeLabelMapFilter.hxx"
193#endif
194
195#endif
Label the connected components in a binary image and produce a collection of label objects.
void EnlargeOutputRequestedRegion(DataObject *output) override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename InputImageType::RegionType InputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::PixelType OutputImagePixelType
typename OutputImageType::LabelObjectType LabelObjectType
BinaryImageToLabelMapFilter< InputImageType, OutputImageType > LabelizerType
Image< typename OutputImageType::PixelType, Self::OutputImageDimension > ShapeLabelFilterOutput
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::ConstPointer OutputImageConstPointer
typename InputImageType::ConstPointer InputImageConstPointer
ShapeLabelMapFilter< TOutputImage, ShapeLabelFilterOutput > LabelObjectValuatorType
~BinaryImageToShapeLabelMapFilter() override=default
Base class for all data objects in ITK.
Base class for filters that take an image as input and produce an image as output.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
Templated n-dimensional image to store labeled objects.
Definition itkLabelMap.h:71
The valuator class for the ShapeLabelObject.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....