ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkExpandWithZerosImageFilter.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 itkExpandWithZerosImageFilter_h
19#define itkExpandWithZerosImageFilter_h
20
23
24namespace itk
25{
62template <typename TInputImage, typename TOutputImage>
63class ExpandWithZerosImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
64{
65public:
66 ITK_DISALLOW_COPY_AND_MOVE(ExpandWithZerosImageFilter);
67
73
75 itkNewMacro(Self);
76
78 itkOverrideGetNameOfClassMacro(ExpandWithZerosImageFilter);
79
81 using OutputImageRegionType = typename TOutputImage::RegionType;
83 using InputImageRegionType = typename TInputImage::RegionType;
84
86 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
87
91 using OutputPixelType = typename OutputImageType::PixelType;
92 using InputImagePointer = typename InputImageType::Pointer;
93 using OutputImagePointer = typename OutputImageType::Pointer;
94
97
101 virtual void
102 SetExpandFactors(const unsigned int factor);
103
105 itkGetConstReferenceMacro(ExpandFactors, ExpandFactorsType);
106
113 void
115
121 void
123
125 itkConceptMacro(OutputHasNumericTraitsCheck, (Concept::HasNumericTraits<OutputPixelType>));
126
127protected:
129 ~ExpandWithZerosImageFilter() override = default;
130 void
131 PrintSelf(std::ostream & os, Indent indent) const override;
132
142
143 void
144 DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override;
145
148 void
150
151private:
153};
154} // end namespace itk
155
156#ifndef ITK_MANUAL_INSTANTIATION
157# include "itkExpandWithZerosImageFilter.hxx"
158#endif
159
160#endif
typename TOutputImage::RegionType OutputImageRegionType
typename Superclass::InputImageType InputImageType
void GenerateInputRequestedRegion() override
typename InputImageType::Pointer InputImagePointer
typename Superclass::OutputImageType OutputImageType
~ExpandWithZerosImageFilter() override=default
void BeforeThreadedGenerateData() override
ImageToImageFilter< TInputImage, TOutputImage > Superclass
typename OutputImageType::Pointer OutputImagePointer
void GenerateOutputInformation() override
virtual void SetExpandFactors(const unsigned int factor)
void PrintSelf(std::ostream &os, Indent indent) const override
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
FixedArray< unsigned int, ImageDimension > ExpandFactorsType
typename TInputImage::RegionType InputImageRegionType
typename OutputImageType::PixelType OutputPixelType
Simulate a standard C array with copy semantics.
TOutputImage OutputImageType
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
#define itkConceptMacro(name, conceptType)
Compile-time check that a template argument satisfies an itk::Concept.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)