ITK
6.0.0
Insight Toolkit
|
#include <itkFFTWHalfHermitianToRealInverseFFTImageFilter.h>
FFTW-based reverse Fast Fourier Transform.
This filter computes the reverse Fourier transform of an image. The implementation is based on the FFTW library.
This filter is multithreaded and supports input images of any size.
This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/0iky0u
Definition at line 52 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static double | GetGlobalDefaultCoordinateTolerance () |
static double | GetGlobalDefaultDirectionTolerance () |
static void | SetGlobalDefaultCoordinateTolerance (double) |
static void | SetGlobalDefaultDirectionTolerance (double) |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool val) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | ImageDimension = InputImageType::ImageDimension |
Static Public Attributes inherited from itk::HalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | ImageDimension = InputImageType::ImageDimension |
Static Public Attributes inherited from itk::ImageToImageFilter< TInputImage, TOutputImage > | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Static Public Attributes inherited from itk::ImageSource< TOutputImage > | |
static constexpr unsigned int | OutputImageDimension = TOutputImage::ImageDimension |
Private Attributes | |
bool | m_CanUseDestructiveAlgorithm {} |
int | m_PlanRigor {} |
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::ConstPointer = SmartPointer<const Self> |
Definition at line 70 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::FFTWProxyType = typename fftw::Proxy<OutputPixelType> |
The proxy type is a wrapper for the FFTW API since the proxy is only defined over double and float, trying to use any other pixel type is unsupported, as is trying to use double if only the float FFTW version is configured in, or float if only double is configured.
Definition at line 77 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::InputImageType = TInputImage |
Standard class type aliases.
Definition at line 59 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::InputPixelType = typename InputImageType::PixelType |
Definition at line 60 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::InputSizeType = typename InputImageType::SizeType |
Definition at line 61 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::OutputImageType = TOutputImage |
Definition at line 62 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::OutputPixelType = typename OutputImageType::PixelType |
Definition at line 63 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::OutputRegionType = typename OutputImageType::RegionType |
Definition at line 64 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::OutputSizeType = typename OutputImageType::SizeType |
Definition at line 65 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::Pointer = SmartPointer<Self> |
Definition at line 69 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::Self = FFTWHalfHermitianToRealInverseFFTImageFilter |
Definition at line 67 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
using itk::FFTWHalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >::Superclass = HalfHermitianToRealInverseFFTImageFilter<InputImageType, OutputImageType> |
Definition at line 68 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotectedvirtual |
If an imaging filter needs to perform processing after the buffer has been allocated but before threads are spawned, the filter can can provide an implementation for BeforeThreadedGenerateData(). The execution flow in the default GenerateData() method will be: 1) Allocate the output buffer 2) Call BeforeThreadedGenerateData() 3) Spawn threads, calling ThreadedGenerateData() in each thread. 4) Call AfterThreadedGenerateData() Note that this flow of control is only available if a filter provides a ThreadedGenerateData() method and NOT a GenerateData() method.
Reimplemented from itk::ImageSource< TOutputImage >.
|
overrideprotectedvirtual |
If an imaging filter can be implemented as a multithreaded algorithm, the filter will provide an implementation of ThreadedGenerateData() or DynamicThreadedGenerateData(). This superclass will automatically split the output image into a number of pieces, spawn multiple threads, and call (Dynamic)ThreadedGenerateData() in each thread. Prior to spawning threads, the BeforeThreadedGenerateData() method is called. After all the threads have completed, the AfterThreadedGenerateData() method is called. If an image processing filter cannot support threading, that filter should provide an implementation of the GenerateData() method instead of providing an implementation of (Dynamic)ThreadedGenerateData(). If a filter provides a GenerateData() method as its implementation, then the filter is responsible for allocating the output data. If a filter provides a (Dynamic)ThreadedGenerateData() method as its implementation, then the output memory will allocated automatically by this superclass. The (Dynamic)ThreadedGenerateData() method should only produce the output specified by "outputThreadRegion" parameter. (Dynamic)ThreadedGenerateData() cannot write to any other portion of the output image (as this is responsibility of a different thread).
DynamicThreadedGenerateData() is the newer variant without threadId, and is the preferred signature, which is called by default. This variant can split the requested region into different number of pieces depending on current multi-processing load, which allows better load balancing. The non-dynamic (also known as classic) ThreadedGenerateData() signature has threadId, and number of pieces to be split into is known in advance. It is activated by calling this->DynamicMultiThreadingOff(); in derived class constructor. It should be used when the multi-threaded algorithm needs to pre-allocate some data structure with size dependent on the number of pieces (also known as chunks, work units, and sometimes also incorrectly as threads). Only PlatformMultiThreader guarantees that each piece will be processed in its own specific thread. Pool and TBB multi-threaders maintain a pool of threads (normally equal to number of processing cores) which they use to process the pieces. This normally results in a single thread being reused to process multiple work units.
Reimplemented from itk::ImageSource< TOutputImage >.
|
overridevirtual |
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
virtual |
Set/Get the behavior of wisdom plan creation. The default is provided by FFTWGlobalConfiguration::GetPlanRigor().
The parameter is one of the FFTW planner rigor flags FFTW_ESTIMATE, FFTW_MEASURE, FFTW_PATIENT, FFTW_EXHAUSTIVE provided by FFTWGlobalConfiguration.
This has no effect with ITK_USE_CUFFTW enabled. /sa FFTWGlobalConfiguration
|
overridevirtual |
Reimplemented from itk::HalfHermitianToRealInverseFFTImageFilter< TInputImage, TOutputImage >.
|
static |
Method for creation through the object factory.
|
overrideprotectedvirtual |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageToImageFilter< TInputImage, TOutputImage >.
|
inlinevirtual |
Set/Get the behavior of wisdom plan creation. The default is provided by FFTWGlobalConfiguration::GetPlanRigor().
The parameter is one of the FFTW planner rigor flags FFTW_ESTIMATE, FFTW_MEASURE, FFTW_PATIENT, FFTW_EXHAUSTIVE provided by FFTWGlobalConfiguration.
This has no effect with ITK_USE_CUFFTW enabled. /sa FFTWGlobalConfiguration
Definition at line 98 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
References itk::FFTWGlobalConfiguration::GetPlanRigorName().
|
inline |
Set/Get the behavior of wisdom plan creation. The default is provided by FFTWGlobalConfiguration::GetPlanRigor().
The parameter is one of the FFTW planner rigor flags FFTW_ESTIMATE, FFTW_MEASURE, FFTW_PATIENT, FFTW_EXHAUSTIVE provided by FFTWGlobalConfiguration.
This has no effect with ITK_USE_CUFFTW enabled. /sa FFTWGlobalConfiguration
Definition at line 112 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
References itk::FFTWGlobalConfiguration::GetPlanRigorValue().
|
overrideprotectedvirtual |
Actually generate new output
Reimplemented from itk::ProcessObject.
|
staticconstexpr |
Define the image dimension.
Definition at line 86 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
|
private |
Definition at line 140 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.
|
private |
Definition at line 142 of file itkFFTWHalfHermitianToRealInverseFFTImageFilter.h.