ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLabelShapeOpeningImageFilter.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 itkLabelShapeOpeningImageFilter_h
19#define itkLabelShapeOpeningImageFilter_h
20
21#include "itkShapeLabelObject.h"
26
27namespace itk
28{
46template <typename TInputImage>
47class ITK_TEMPLATE_EXPORT LabelShapeOpeningImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(LabelShapeOpeningImageFilter);
51
57
59 using InputImageType = TInputImage;
60 using OutputImageType = TInputImage;
61 using InputImagePointer = typename InputImageType::Pointer;
62 using InputImageConstPointer = typename InputImageType::ConstPointer;
63 using InputImageRegionType = typename InputImageType::RegionType;
64 using InputImagePixelType = typename InputImageType::PixelType;
65 using OutputImagePointer = typename OutputImageType::Pointer;
66 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
67 using OutputImageRegionType = typename OutputImageType::RegionType;
68 using OutputImagePixelType = typename OutputImageType::PixelType;
69
71 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
72 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
73 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
74
83
85 itkNewMacro(Self);
86
88 itkOverrideGetNameOfClassMacro(LabelShapeOpeningImageFilter);
89
93
98 itkSetMacro(BackgroundValue, OutputImagePixelType);
99 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
101
105 itkGetConstMacro(Lambda, double);
106 itkSetMacro(Lambda, double);
108
115 itkGetConstMacro(ReverseOrdering, bool);
116 itkSetMacro(ReverseOrdering, bool);
117 itkBooleanMacro(ReverseOrdering);
119
124 itkGetConstMacro(Attribute, AttributeType);
125 itkSetMacro(Attribute, AttributeType);
126 void
127 SetAttribute(const std::string & s)
128 {
130 }
131
132
133protected:
135 ~LabelShapeOpeningImageFilter() override = default;
136 void
137 PrintSelf(std::ostream & os, Indent indent) const override;
138
142 void
144
146 void
147 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
148
151 void
152 GenerateData() override;
153
154private:
156 double m_Lambda{};
159}; // end of class
160} // end namespace itk
161
162#ifndef ITK_MANUAL_INSTANTIATION
163# include "itkLabelShapeOpeningImageFilter.hxx"
164#endif
165
166#endif
Base class for all data objects in ITK.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:50
convert a labeled image to a label collection image
Converts a LabelMap to a labeled image.
Templated n-dimensional image to store labeled objects.
Definition itkLabelMap.h:71
typename InputImageType::PixelType InputImagePixelType
void EnlargeOutputRequestedRegion(DataObject *output) override
~LabelShapeOpeningImageFilter() override=default
Image< typename OutputImageType::PixelType, Self::OutputImageDimension > ShapeLabelFilterOutput
typename LabelObjectType::AttributeType AttributeType
typename InputImageType::RegionType InputImageRegionType
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
typename OutputImageType::RegionType OutputImageRegionType
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
typename InputImageType::Pointer InputImagePointer
typename InputImageType::ConstPointer InputImageConstPointer
void GenerateInputRequestedRegion() override
ImageToImageFilter< TInputImage, TInputImage > Superclass
static constexpr unsigned int OutputImageDimension
static constexpr unsigned int InputImageDimension
void PrintSelf(std::ostream &os, Indent indent) const override
typename OutputImageType::Pointer OutputImagePointer
ShapeLabelMapFilter< LabelMapType, ShapeLabelFilterOutput > LabelObjectValuatorType
typename OutputImageType::PixelType OutputImagePixelType
ShapeLabelObject< InputImagePixelType, Self::ImageDimension > LabelObjectType
typename OutputImageType::ConstPointer OutputImageConstPointer
ShapeOpeningLabelMapFilter< LabelMapType > OpeningType
virtual void SetAttribute(AttributeType _arg)
The valuator class for the ShapeLabelObject.
A Label object to store the common attributes related to the shape of the object.
Remove objects according to the value of their shape attribute.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....