ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLabelImageToShapeLabelMapFilter.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 itkLabelImageToShapeLabelMapFilter_h
19#define itkLabelImageToShapeLabelMapFilter_h
20
21#include "itkShapeLabelObject.h"
24
25namespace itk
26{
47template <typename TInputImage,
48 typename TOutputImage =
50class ITK_TEMPLATE_EXPORT LabelImageToShapeLabelMapFilter : public ImageToImageFilter<TInputImage, TOutputImage>
51{
52public:
53 ITK_DISALLOW_COPY_AND_MOVE(LabelImageToShapeLabelMapFilter);
54
60
62 using InputImageType = TInputImage;
63 using InputImagePointer = typename InputImageType::Pointer;
64 using InputImageConstPointer = typename InputImageType::ConstPointer;
65 using InputImageRegionType = typename InputImageType::RegionType;
66 using InputImagePixelType = typename InputImageType::PixelType;
67
68 using OutputImageType = TOutputImage;
69 using OutputImagePointer = typename OutputImageType::Pointer;
70 using OutputImageConstPointer = typename OutputImageType::ConstPointer;
71 using OutputImageRegionType = typename OutputImageType::RegionType;
72 using OutputImagePixelType = typename OutputImageType::PixelType;
73 using LabelObjectType = typename OutputImageType::LabelObjectType;
74
76 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
77 static constexpr unsigned int OutputImageDimension = TInputImage::ImageDimension;
78 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
79
83
85 itkNewMacro(Self);
86
88 itkOverrideGetNameOfClassMacro(LabelImageToShapeLabelMapFilter);
89
93
98 itkSetMacro(BackgroundValue, OutputImagePixelType);
99 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
101
106 itkSetMacro(ComputeFeretDiameter, bool);
107 itkGetConstReferenceMacro(ComputeFeretDiameter, bool);
108 itkBooleanMacro(ComputeFeretDiameter);
110
115 itkSetMacro(ComputePerimeter, bool);
116 itkGetConstReferenceMacro(ComputePerimeter, bool);
117 itkBooleanMacro(ComputePerimeter);
119
125 itkSetMacro(ComputeOrientedBoundingBox, bool);
126 itkGetConstReferenceMacro(ComputeOrientedBoundingBox, bool);
127 itkBooleanMacro(ComputeOrientedBoundingBox);
129
130
131protected:
134 void
135 PrintSelf(std::ostream & os, Indent indent) const override;
136
139 void
141
143 void
144 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
145
148 void
149 GenerateData() override;
150
151private:
156}; // end of class
157} // end namespace itk
158
159#ifndef ITK_MANUAL_INSTANTIATION
160# include "itkLabelImageToShapeLabelMapFilter.hxx"
161#endif
162
163#endif
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
convert a labeled image to a label collection image
Image< typename OutputImageType::PixelType, Self::OutputImageDimension > ShapeLabelFilterOutput
typename InputImageType::PixelType InputImagePixelType
ShapeLabelMapFilter< TOutputImage, ShapeLabelFilterOutput > LabelObjectValuatorType
void PrintSelf(std::ostream &os, Indent indent) const override
void EnlargeOutputRequestedRegion(DataObject *output) override
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::PixelType OutputImagePixelType
void GenerateInputRequestedRegion() override
~LabelImageToShapeLabelMapFilter() override=default
typename OutputImageType::ConstPointer OutputImageConstPointer
ImageToImageFilter< TInputImage, TOutputImage > Superclass
LabelImageToLabelMapFilter< InputImageType, OutputImageType > LabelizerType
typename OutputImageType::RegionType OutputImageRegionType
typename OutputImageType::LabelObjectType LabelObjectType
typename InputImageType::ConstPointer InputImageConstPointer
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....