ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkComplexConjugateImageFilter.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 itkComplexConjugateImageFilter_h
19#define itkComplexConjugateImageFilter_h
20
22
23#include <complex>
24
25namespace itk
26{
27
35namespace Function
36{
37template <class TInput, class TOutput>
39{
40public:
41 ComplexConjugate() = default;
42 ~ComplexConjugate() = default;
43 bool
45 {
46 return false;
47 }
48 bool
49 operator==(const ComplexConjugate & other) const
50 {
51 return !(*this != other);
52 }
53 inline TOutput
54 operator()(const TInput & A) const
55 {
56 return (TOutput)(std::conj(A));
57 }
58};
59} // end namespace Function
60
61
62template <class TInputImage, class TOutputImage>
63class ITK_TEMPLATE_EXPORT ComplexConjugateImageFilter
65 TInputImage,
66 TOutputImage,
67 Function::ComplexConjugate<typename TInputImage::PixelType, typename TOutputImage::PixelType>>
68{
69public:
73 TInputImage,
74 TOutputImage,
78
80 itkNewMacro(Self);
81
83 itkOverrideGetNameOfClassMacro(ComplexConjugateImageFilter);
84
85 using InputPixelType = typename TInputImage::PixelType;
86 using OutputPixelType = typename TOutputImage::PixelType;
88
89#ifdef ITK_USE_CONCEPT_CHECKING
93#endif
94
95protected:
97 ~ComplexConjugateImageFilter() override = default;
98
99private:
100 ComplexConjugateImageFilter(const Self &); // purposely not implemented
101 void
102 operator=(const Self &); // purposely not implemented
103};
104
105} // end namespace itk
106
107#endif
~ComplexConjugateImageFilter() override=default
UnaryFunctorImageFilter< ComplexImageType, ComplexImageType, Function::ComplexConjugate< typename ComplexImageType::PixelType, typename ComplexImageType::PixelType > > Superclass
ComplexConjugateImageFilter(const Self &)
bool operator==(const ComplexConjugate &other) const
TOutput operator()(const TInput &A) const
bool operator!=(const ComplexConjugate &) const
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....