ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFrequencyShrinkImageFilter.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 itkFrequencyShrinkImageFilter_h
19#define itkFrequencyShrinkImageFilter_h
20
23
24namespace itk
25{
75template <typename TImageType>
76class FrequencyShrinkImageFilter : public ImageToImageFilter<TImageType, TImageType>
77{
78public:
79 ITK_DISALLOW_COPY_AND_MOVE(FrequencyShrinkImageFilter);
80
86
88 itkNewMacro(Self);
89
91 itkOverrideGetNameOfClassMacro(FrequencyShrinkImageFilter);
92
94 using ImageType = TImageType;
95 using ImagePointer = typename ImageType::Pointer;
96 using ImageConstPointer = typename ImageType::ConstPointer;
97 using IndexType = typename TImageType::IndexType;
98 using PixelType = typename TImageType::PixelType;
99
101 using ImageRegionType = typename TImageType::RegionType;
102
104 static constexpr unsigned int ImageDimension = TImageType::ImageDimension;
105 static constexpr unsigned int OutputImageDimension = TImageType::ImageDimension;
106
109
113 void
114 SetShrinkFactors(unsigned int factor);
115
116 void
117 SetShrinkFactor(unsigned int i, unsigned int factor);
118
120 itkGetConstReferenceMacro(ShrinkFactors, ShrinkFactorsType);
121
122 void
124
130 void
132
134
135 itkGetConstReferenceMacro(ApplyBandFilter, bool);
136 itkSetMacro(ApplyBandFilter, bool);
137 itkBooleanMacro(ApplyBandFilter);
138
139 itkGetMacro(FrequencyBandFilter, typename FrequencyBandFilterType::Pointer);
140
141protected:
143 void
144 PrintSelf(std::ostream & os, Indent indent) const override;
145
146 void
147 GenerateData() override;
148
149private:
151 bool m_ApplyBandFilter{ false };
153};
154} // end namespace itk
155
156#ifndef ITK_MANUAL_INSTANTIATION
157# include "itkFrequencyShrinkImageFilter.hxx"
158#endif
159
160#endif
Simulate a standard C array with copy semantics.
Performs a frequency band filtering on a frequency domain image.
void PrintSelf(std::ostream &os, Indent indent) const override
void GenerateInputRequestedRegion() override
static constexpr unsigned int OutputImageDimension
void GenerateOutputInformation() override
FrequencyBandImageFilter< TImageType > FrequencyBandFilterType
typename TImageType::PixelType PixelType
typename TImageType::RegionType ImageRegionType
static constexpr unsigned int ImageDimension
ImageToImageFilter< TImageType, TImageType > Superclass
typename ImageType::ConstPointer ImageConstPointer
typename TImageType::IndexType IndexType
FrequencyBandFilterType::Pointer m_FrequencyBandFilter
void SetShrinkFactor(unsigned int i, unsigned int factor)
void SetShrinkFactors(unsigned int factor)
FixedArray< unsigned int, ImageDimension > ShrinkFactorsType
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)