SIVIC API
0.9.26
|
#include <svkMriImageFFT.h>
Public Types | |
enum | FFTMode { FORWARD = 0, REVERSE } |
Public Member Functions | |
vtkTypeMacro (svkMriImageFFT, svkImageAlgorithm) | |
void | SetFFTMode (FFTMode mode) |
void | SetOperateInPlace (bool operateInPlace) |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int port) |
Public Member Functions inherited from svkImageAlgorithm | |
vtkTypeMacro (svkImageAlgorithm, vtkImageAlgorithm) | |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int port) |
svkImageData * | GetImageDataInput (int port) |
Static Public Member Functions | |
static svkMriImageFFT * | New () |
Protected Member Functions | |
svkMriImageFFT () | |
~svkMriImageFFT () | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Protected Member Functions inherited from svkImageAlgorithm | |
svkImageAlgorithm () | |
~svkImageAlgorithm () | |
virtual int | FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
virtual int | FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
Applies vtk FFT algorithms to svkMriImageData objects. In contrast to the vtkImageFFT and vtkImageRFFT svkMriImageFFT performs both forward and reverse FFT's. The domain is defined by the SetFFTMode method. Also this algorithm is by default not in place, but by using the SetOperateInPlace method you can force the algorithm to overate in place. Input can be any data type, but output for the FFT is complex doubles and the output for RFFT is real doubles.
enum FFTMode |
|
protected |
References svkMriImageFFT::FORWARD.
|
protected |
|
protectedvirtual |
Defines the input type: svkMriImageData.
svkImageData * GetOutput | ( | ) |
This is only overriden to prevent it from being hidden. When you override a method you need to override every overloaded version.
Referenced by svkMriImageFFT::RequestData(), and svkSincInterpolationFilter::RequestData().
svkImageData * GetOutput | ( | int | port | ) |
We want to override this method so that we can return a pointer to the input in the case of an in place operation.
References svkImageAlgorithm::GetImageDataInput().
|
static |
Referenced by svkSincInterpolationFilter::RequestData().
|
protectedvirtual |
This is the primary execution method. If the mode is set to FORWARD it will do an fft of the data. If it is set to REVERSE then it will run an rfft and then extract the real component. Input can be any data type but output is always complex double.
References svkImageData::DeepCopy(), svkDcmHeader::ElementExists(), GetDcmHeader(), svkImageData::GetDcmHeader(), svkImageAlgorithm::GetImageDataInput(), svkMriImageFFT::GetOutput(), svkDcmHeader::GetStringValue(), svkMriImageFFT::REVERSE, svkImageData::ShallowCopy(), and svkImageData::SyncVTKImageDataToDcmHeader().
void SetFFTMode | ( | FFTMode | mode | ) |
This determines if you want a forward fft are a reverse.
Referenced by svkSincInterpolationFilter::RequestData().
void SetOperateInPlace | ( | bool | operateInPlace | ) |
This determines if the input data is being operated on, or if a new dataset should be created.
Referenced by svkSincInterpolationFilter::RequestData().
vtkTypeMacro | ( | svkMriImageFFT | , |
svkImageAlgorithm | |||
) |