ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkBModeImageFilter.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 itkBModeImageFilter_h
19#define itkBModeImageFilter_h
20
21#include "itkAddImageFilter.h"
26#include "itkImage.h"
27#include "itkLog10ImageFilter.h"
28
30
31namespace itk
32{
33
50template <typename TInputImage,
51 typename TOutputImage = TInputImage,
52 typename TComplexImage = Image<std::complex<typename TInputImage::PixelType>, TInputImage::ImageDimension>>
53class ITK_TEMPLATE_EXPORT BModeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
54{
55public:
61
63 using InputImageType = TInputImage;
64
66 static constexpr unsigned int ImageDimension = TInputImage::ImageDimension;
67
69 using InputPixelType = typename InputImageType::PixelType;
70
72 using OutputImageType = TOutputImage;
73
75 using OutputPixelType = typename OutputImageType::PixelType;
76
79 using ComplexImageType = TComplexImage;
80
82 using InputRegionType = typename InputImageType::RegionType;
83 using InputSizeType = typename InputImageType::SizeType;
84 using InputIndexType = typename InputImageType::IndexType;
85
87 itkOverrideGetNameOfClassMacro(BModeImageFilter);
88
90 itkNewMacro(Self);
91
93
95 virtual void
96 SetDirection(unsigned int direction)
97 {
98 this->m_AnalyticFilter->SetDirection(direction);
99 this->Modified();
100 }
101
103 virtual unsigned int
105 {
106 return m_AnalyticFilter->GetDirection();
107 }
108
109 void
111 {
112 m_AnalyticFilter->SetFrequencyFilter(filter);
113 }
114
115protected:
117 ~BModeImageFilter() override = default;
118
119 virtual void
120 PrintSelf(std::ostream & os, Indent indent) const override;
121
122 virtual void
123 GenerateData() override;
124
125 // These behave like their analogs in Forward1DFFTImageFilter.
126 virtual void
128 virtual void
130
138
139private:
140 BModeImageFilter(const Self &); // purposely not implemented
141 void
142 operator=(const Self &); // purposely not implemented
143
150};
151
152} // end namespace itk
153
154#ifndef ITK_MANUAL_INSTANTIATION
155# include "itkBModeImageFilter.hxx"
156#endif
157
158#endif // itkBModeImageFilter_h
Pixel-wise addition of two images.
Generates the analytic signal from one direction of an image.
void operator=(const Self &)
Log10ImageFilter< InputImageType, OutputImageType > LogType
ComplexToModulusImageFilter< typename AnalyticType::OutputImageType, OutputImageType > ComplexToModulusType
virtual unsigned int GetDirection() const
SmartPointer< const Self > ConstPointer
typename InputImageType::IndexType InputIndexType
typename OutputImageType::PixelType OutputPixelType
virtual void GenerateData() override
ConstantPadImageFilter< InputImageType, InputImageType > PadType
AddConstantType::Pointer m_AddConstantFilter
typename InputImageType::RegionType InputRegionType
virtual void EnlargeOutputRequestedRegion(DataObject *output) override
AnalyticType::Pointer m_AnalyticFilter
typename InputImageType::SizeType InputSizeType
SmartPointer< Self > Pointer
RegionFromReferenceImageFilter< OutputImageType, OutputImageType > ROIType
AnalyticSignalImageFilter< InputImageType, ComplexImageType > AnalyticType
ImageToImageFilter< TInputImage, TOutputImage > Superclass
void SetFrequencyFilter(FrequencyFilterType *filter)
static constexpr unsigned int ImageDimension
BModeImageFilter(const Self &)
AddImageFilter< InputImageType, InputImageType > AddConstantType
~BModeImageFilter() override=default
virtual void GenerateInputRequestedRegion() override
ComplexToModulusType::Pointer m_ComplexToModulusFilter
typename InputImageType::PixelType InputPixelType
FrequencyDomain1DImageFilter< ComplexImageType, ComplexImageType > FrequencyFilterType
virtual void SetDirection(unsigned int direction)
virtual void PrintSelf(std::ostream &os, Indent indent) const override
Computes pixel-wise the Modulus of a complex image.
Increase the image size by padding with a constant value.
Base class for all data objects in ITK.
Filter a frequency domain along a single direction.
Templated n-dimensional image class.
Definition itkImage.h:89
Control indentation during Print() invocation.
Definition itkIndent.h:53
Computes the log10 of each pixel.
virtual void Modified() const
Decrease the image size by cropping the image by an itk::Size at both the upper and lower bounds of t...
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....