ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSimpleContourExtractorImageFilter.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 itkSimpleContourExtractorImageFilter_h
19#define itkSimpleContourExtractorImageFilter_h
20
21#include "itkBoxImageFilter.h"
22#include "itkImage.h"
23#include "itkNumericTraits.h"
24
25namespace itk
26{
52template <typename TInputImage, typename TOutputImage>
53class ITK_TEMPLATE_EXPORT SimpleContourExtractorImageFilter : public BoxImageFilter<TInputImage, TOutputImage>
54{
55public:
56 ITK_DISALLOW_COPY_AND_MOVE(SimpleContourExtractorImageFilter);
57
59 static constexpr unsigned int InputImageDimension = TInputImage::ImageDimension;
60 static constexpr unsigned int OutputImageDimension = TOutputImage::ImageDimension;
61
63 using InputImageType = TInputImage;
64 using OutputImageType = TOutputImage;
65
71
73 itkNewMacro(Self);
74
76 itkOverrideGetNameOfClassMacro(SimpleContourExtractorImageFilter);
77
79 using InputPixelType = typename InputImageType::PixelType;
80 using OutputPixelType = typename OutputImageType::PixelType;
82
83 using InputImageRegionType = typename InputImageType::RegionType;
84 using OutputImageRegionType = typename OutputImageType::RegionType;
85
86 using InputSizeType = typename InputImageType::SizeType;
87
90 itkSetMacro(InputForegroundValue, InputPixelType);
91
94 itkGetConstReferenceMacro(InputForegroundValue, InputPixelType);
95
98 itkSetMacro(InputBackgroundValue, InputPixelType);
99
102 itkGetConstReferenceMacro(InputBackgroundValue, InputPixelType);
103
106 itkSetMacro(OutputForegroundValue, OutputPixelType);
107
110 itkGetConstReferenceMacro(OutputForegroundValue, OutputPixelType);
111
114 itkSetMacro(OutputBackgroundValue, OutputPixelType);
115
118 itkGetConstReferenceMacro(OutputBackgroundValue, OutputPixelType);
119
120 itkConceptMacro(InputHasNumericTraitsCheck, (Concept::HasNumericTraits<InputPixelType>));
121 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
122
123protected:
126 void
127 PrintSelf(std::ostream & os, Indent indent) const override;
128
141 void
142 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
143
144
145private:
150};
151} // end namespace itk
152
153#ifndef ITK_MANUAL_INSTANTIATION
154# include "itkSimpleContourExtractorImageFilter.hxx"
155#endif
156
157#endif
Control indentation during Print() invocation.
Definition itkIndent.h:50
~SimpleContourExtractorImageFilter() override=default
typename NumericTraits< InputPixelType >::RealType InputRealType
typename OutputImageType::RegionType OutputImageRegionType
void PrintSelf(std::ostream &os, Indent indent) const override
BoxImageFilter< InputImageType, OutputImageType > Superclass
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
Implements transparent reference counting.
#define itkConceptMacro(name, concept)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....