SIVIC API  0.9.26
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
svkMriImageFFT Class Reference

#include <svkMriImageFFT.h>

Inheritance diagram for svkMriImageFFT:
svkImageAlgorithm

Public Types

enum  FFTMode { FORWARD = 0, REVERSE }
 

Public Member Functions

 vtkTypeMacro (svkMriImageFFT, svkImageAlgorithm)
 
void SetFFTMode (FFTMode mode)
 
void SetOperateInPlace (bool operateInPlace)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int port)
 
- Public Member Functions inherited from svkImageAlgorithm
 vtkTypeMacro (svkImageAlgorithm, vtkImageAlgorithm)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int port)
 
svkImageDataGetImageDataInput (int port)
 

Static Public Member Functions

static svkMriImageFFTNew ()
 

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)
 

Detailed Description

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.

Member Enumeration Documentation

enum FFTMode
Enumerator
FORWARD 
REVERSE 

Constructor & Destructor Documentation

svkMriImageFFT ( )
protected
~svkMriImageFFT ( )
protected

Member Function Documentation

int FillInputPortInformation ( int  port,
vtkInformation *  info 
)
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 svkMriImageFFT* New ( )
static
int RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
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   
)

The documentation for this class was generated from the following files: