1 /*========================================================================= 2 * 3 * Copyright Insight Software Consortium 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 * http://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 #include "itkComplexToComplexFFTImageFilter.h" 19 20 #ifndef itkVnlComplexToComplexFFTImageFilter_h 21 #define itkVnlComplexToComplexFFTImageFilter_h 22 23 namespace itk 24 { 25 /** \class VnlComplexToComplexFFTImageFilter 26 * 27 * \brief VNL based complex to complex Fast Fourier Transform. 28 * 29 * This filter requires input images with sizes which are a power of two. 30 * 31 * \ingroup FourierTransform 32 * \ingroup ITKFFT 33 * 34 * \sa ComplexToComplexFFTImageFilter 35 * \sa FFTWComplexToComplexFFTImageFilter 36 * \sa VnlForwardFFTImageFilter 37 * \sa VnlInverseFFTImageFilter 38 */ 39 template< typename TImage > 40 class ITK_TEMPLATE_EXPORT VnlComplexToComplexFFTImageFilter: 41 public ComplexToComplexFFTImageFilter< TImage > 42 { 43 public: 44 ITK_DISALLOW_COPY_AND_ASSIGN(VnlComplexToComplexFFTImageFilter); 45 46 /** Standard class type aliases. */ 47 using Self = VnlComplexToComplexFFTImageFilter; 48 using Superclass = ComplexToComplexFFTImageFilter< TImage >; 49 using Pointer = SmartPointer< Self >; 50 using ConstPointer = SmartPointer< const Self >; 51 52 using ImageType = TImage; 53 using PixelType = typename ImageType::PixelType; 54 using InputImageType = typename Superclass::InputImageType; 55 using OutputImageType = typename Superclass::OutputImageType; 56 using OutputImageRegionType = typename OutputImageType::RegionType; 57 58 /** Method for creation through the object factory. */ 59 itkNewMacro(Self); 60 61 /** Run-time type information (and related methods). */ 62 itkTypeMacro(VnlComplexToComplexFFTImageFilter, 63 ComplexToComplexFFTImageFilter); 64 65 static constexpr unsigned int ImageDimension = ImageType::ImageDimension; 66 67 protected: 68 VnlComplexToComplexFFTImageFilter(); 69 ~VnlComplexToComplexFFTImageFilter() override = default; 70 71 void BeforeThreadedGenerateData() override; 72 void DynamicThreadedGenerateData(const OutputImageRegionType & outputRegionForThread) override; 73 }; 74 75 } // end namespace itk 76 77 #ifndef ITK_MANUAL_INSTANTIATION 78 #include "itkVnlComplexToComplexFFTImageFilter.hxx" 79 #endif 80 81 #endif //itkVnlComplexToComplexFFTImageFilter_h 82