ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkShapeRelabelImageFilter.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 itkShapeRelabelImageFilter_h
19#define itkShapeRelabelImageFilter_h
20
21#include "itkShapeLabelObject.h"
26
27namespace itk
28{
45template <typename TInputImage>
46class ITK_TEMPLATE_EXPORT ShapeRelabelImageFilter : public ImageToImageFilter<TInputImage, TInputImage>
47{
48public:
49 ITK_DISALLOW_COPY_AND_MOVE(ShapeRelabelImageFilter);
50
56
58 using InputImageType = TInputImage;
59 using OutputImageType = TInputImage;
60 using InputImagePointer = typename InputImageType::Pointer;
61 using InputImageConstPointer = typename InputImageType::ConstPointer;
62 using InputImageRegionType = typename InputImageType::RegionType;
63 using InputImagePixelType = typename InputImageType::PixelType;
64 using OutputImagePointer = typename OutputImageType::Pointer;
65 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
66 using OutputImageRegionType = typename OutputImageType::RegionType;
67 using OutputImagePixelType = typename OutputImageType::PixelType;
68
70 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
71 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
72 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
73
82
84 itkNewMacro(Self);
85
87 itkOverrideGetNameOfClassMacro(ShapeRelabelImageFilter);
88
92
97 itkSetMacro(BackgroundValue, OutputImagePixelType);
98 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
100
106 itkGetConstMacro(ReverseOrdering, bool);
107 itkSetMacro(ReverseOrdering, bool);
108 itkBooleanMacro(ReverseOrdering);
110
114 itkGetConstMacro(Attribute, AttributeType);
115 itkSetMacro(Attribute, AttributeType);
116 void
117 SetAttribute(const std::string & s)
118 {
120 }
121
122
123protected:
125 ~ShapeRelabelImageFilter() override = default;
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
132 void
134
136 void
137 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
138
141 void
142 GenerateData() override;
143
144private:
148}; // end of class
149} // end namespace itk
150
151#ifndef ITK_MANUAL_INSTANTIATION
152# include "itkShapeRelabelImageFilter.hxx"
153#endif
154
155#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
The valuator class for the ShapeLabelObject.
A Label object to store the common attributes related to the shape of the object.
~ShapeRelabelImageFilter() override=default
typename OutputImageType::PixelType OutputImagePixelType
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::PixelType InputImagePixelType
typename LabelObjectType::AttributeType AttributeType
typename InputImageType::RegionType InputImageRegionType
void GenerateInputRequestedRegion() override
static constexpr unsigned int InputImageDimension
typename InputImageType::Pointer InputImagePointer
SmartPointer< const Self > ConstPointer
LabelImageToLabelMapFilter< InputImageType, LabelMapType > LabelizerType
ShapeRelabelLabelMapFilter< LabelMapType > RelabelType
Image< typename OutputImageType::PixelType, Self::OutputImageDimension > ShapeLabelFilterOutput
ImageToImageFilter< TInputImage, TInputImage > Superclass
void SetAttribute(const std::string &s)
typename OutputImageType::ConstPointer OutputImageConstPointer
static constexpr unsigned int ImageDimension
typename OutputImageType::Pointer OutputImagePointer
void EnlargeOutputRequestedRegion(DataObject *output) override
ShapeLabelObject< InputImagePixelType, Self::ImageDimension > LabelObjectType
LabelMapToLabelImageFilter< LabelMapType, OutputImageType > BinarizerType
void GenerateData() override
virtual void SetAttribute(AttributeType _arg)
ShapeLabelMapFilter< LabelMapType, ShapeLabelFilterOutput > LabelObjectValuatorType
static constexpr unsigned int OutputImageDimension
typename OutputImageType::RegionType OutputImageRegionType
LabelMap< LabelObjectType > LabelMapType
typename InputImageType::ConstPointer InputImageConstPointer
Relabels objects according to their shape attributes.
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....