ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkLabelContourImageFilter.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 itkLabelContourImageFilter_h
19#define itkLabelContourImageFilter_h
20
23#include <vector>
24
25namespace itk
26{
52
53template <typename TInputImage, typename TOutputImage>
54class ITK_TEMPLATE_EXPORT LabelContourImageFilter
55 : public InPlaceImageFilter<TInputImage, TOutputImage>
56 , protected ScanlineFilterCommon<TInputImage, TOutputImage>
57{
58public:
59 ITK_DISALLOW_COPY_AND_MOVE(LabelContourImageFilter);
60
70
74 itkNewMacro(Self);
75
79 itkOverrideGetNameOfClassMacro(LabelContourImageFilter);
80
81 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
82
86 using InputImageType = TInputImage;
87 using InputImagePointer = typename InputImageType::Pointer;
88 using InputIndexType = typename InputImageType::IndexType;
89 using InputSizeType = typename InputImageType::SizeType;
90 using InputOffsetType = typename InputImageType::OffsetType;
91 using InputImagePixelType = typename InputImageType::PixelType;
92 using OffsetValueType = typename InputImageType::OffsetValueType;
93 using InputPixelType = typename InputImageType::PixelType;
94
95 using OutputImageType = TOutputImage;
96 using OutputImagePointer = typename OutputImageType::Pointer;
97 using OutputRegionType = typename OutputImageType::RegionType;
98 using OutputIndexType = typename OutputImageType::IndexType;
99 using OutputSizeType = typename OutputImageType::SizeType;
100 using OutputOffsetType = typename OutputImageType::OffsetType;
101 using OutputImagePixelType = typename OutputImageType::PixelType;
102
109 itkSetMacro(FullyConnected, bool);
110 itkGetConstReferenceMacro(FullyConnected, bool);
111 itkBooleanMacro(FullyConnected);
113
118 itkSetMacro(BackgroundValue, OutputImagePixelType);
119 itkGetConstMacro(BackgroundValue, OutputImagePixelType);
121
122protected:
124 ~LabelContourImageFilter() override = default;
125
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
129 void
130 GenerateData() override;
131
132 void
134
135 void
137
138 void
139 DynamicThreadedGenerateData(const OutputRegionType & outputRegionForThread) override;
140
141 void
142 ThreadedIntegrateData(const OutputRegionType & outputRegionForThread);
143
144
148 void
150
155 void
156 EnlargeOutputRequestedRegion(DataObject * itkNotUsed(output)) override;
157
159
171
172private:
174
176};
177} // end namespace itk
178
179#ifndef ITK_MANUAL_INSTANTIATION
180# include "itkLabelContourImageFilter.hxx"
181#endif
182
183#endif
Base class for all data objects in ITK.
Control indentation during Print() invocation.
Definition itkIndent.h:50
typename ScanlineFunctions::OffsetVectorConstIterator OffsetVectorConstIterator
typename ScanlineFunctions::UnionFindType UnionFindType
void BeforeThreadedGenerateData() override
typename InputImageType::Pointer InputImagePointer
typename OutputImageType::PixelType OutputImagePixelType
void ThreadedIntegrateData(const OutputRegionType &outputRegionForThread)
typename ScanlineFunctions::LineEncodingIterator LineEncodingIterator
typename ScanlineFunctions::LineEncodingConstIterator LineEncodingConstIterator
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputImageType::PixelType InputImagePixelType
SmartPointer< const Self > ConstPointer
typename OutputImageType::RegionType OutputRegionType
typename InputImageType::OffsetValueType OffsetValueType
typename OutputImageType::OffsetType OutputOffsetType
typename OutputImageType::IndexType OutputIndexType
typename OutputImageType::SizeType OutputSizeType
typename InputImageType::OffsetType InputOffsetType
typename InputImageType::SizeType InputSizeType
void AfterThreadedGenerateData() override
typename ScanlineFunctions::RunLength RunLength
typename ScanlineFunctions::OffsetVectorType OffsetVectorType
~LabelContourImageFilter() override=default
void GenerateInputRequestedRegion() override
void EnlargeOutputRequestedRegion(DataObject *output) override
typename ScanlineFunctions::ConsecutiveVectorType ConsecutiveVectorType
typename InputImageType::PixelType InputPixelType
typename ScanlineFunctions::LineEncodingType LineEncodingType
InPlaceImageFilter< TInputImage, TOutputImage > Superclass
typename ScanlineFunctions::LineMapType LineMapType
typename InputImageType::IndexType InputIndexType
void DynamicThreadedGenerateData(const OutputRegionType &outputRegionForThread) override
static constexpr unsigned int ImageDimension
typename OutputImageType::Pointer OutputImagePointer
typename ScanlineFunctions::InternalLabelType InternalLabelType
void GenerateData() override
typename ScanlineFunctions::OutSizeType OutSizeType
ScanlineFilterCommon< TInputImage, TOutputImage > ScanlineFunctions
virtual void UnRegister() const noexcept
virtual void Register() const
typename OffsetVectorType::const_iterator OffsetVectorConstIterator
typename TOutputImage::RegionType::SizeType OutSizeType
typename LineEncodingType::const_iterator LineEncodingConstIterator
typename LineEncodingType::iterator LineEncodingIterator
std::vector< LineEncodingType > LineMapType
std::vector< RunLength > LineEncodingType
std::vector< OffsetValueType > OffsetVectorType
std::vector< InternalLabelType > UnionFindType
std::vector< OutputPixelType > ConsecutiveVectorType
ScanlineFilterCommon(EnclosingFilter *enclosingFilter)
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....