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

#include <svkPhaseSpec.h>

Inheritance diagram for svkPhaseSpec:
svkImageInPlaceFilter

Public Member Functions

 vtkTypeMacro (svkPhaseSpec, svkImageInPlaceFilter)
 
void SetPhase0 (float phase0)
 
float GetPhase0 ()
 
void SetLinearPhase (float phase0)
 
float GetLinearPhase ()
 
void SetLinearPhasePivot (int linearPhasePivot)
 
void SetUpdateExtent (int *start, int *end)
 
void SetChannel (int channel)
 
void PhaseAllChannels ()
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from svkImageInPlaceFilter
 vtkTypeMacro (svkImageInPlaceFilter, vtkImageInPlaceFilter)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int port)
 
svkImageDataGetImageDataInput (int port)
 

Static Public Member Functions

static svkPhaseSpecNew ()
 
static void ZeroOrderPhase (float phi0, float *cmplxPt)
 
static void ZeroOrderPhase (float phi0, vtkFloatArray *spectrum)
 
static void FirstOrderPhase (float phi1, int pivotPoint, vtkFloatArray *spectrum)
 
static void FirstOrderPhase (float phi0, vtkImageComplex *linearPhaseArray, vtkFloatArray *spectrum)
 
static void FirstOrderPhase (float phi0, float phi1, int pivotPoint, vtkFloatArray *spectrum)
 

Protected Member Functions

 svkPhaseSpec ()
 
 ~svkPhaseSpec ()
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
- Protected Member Functions inherited from svkImageInPlaceFilter
 svkImageInPlaceFilter ()
 
 ~svkImageInPlaceFilter ()
 
virtual int FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 
virtual int FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 

Detailed Description

Class to apply zero and (eventually) first order phase to spectra

Constructor & Destructor Documentation

svkPhaseSpec ( )
protected
~svkPhaseSpec ( )
protected

Member Function Documentation

int FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

Port 0 is the required input port for the MRS data to be phased. Port 1 is the optional input port for a phase map of values to apply

void FirstOrderPhase ( float  phi1,
int  pivotPoint,
vtkFloatArray *  spectrum 
)
static

Applies first order phase to the complex spectrum. inputs: phi0, phase in radians phi1, phase in radians (pivot at center of spectrum (assume 0Hz spectrum

References svkSpecUtils::CreateLinearPhaseShiftArray().

Referenced by svkPhaseSpec::FirstOrderPhase(), and svkMRSFirstOrderPhase::FitPhase().

void FirstOrderPhase ( float  phi0,
vtkImageComplex *  linearPhaseArray,
vtkFloatArray *  spectrum 
)
static

Applies a zero and first order phase to the complex spectrum. inputs: phi0, phase in radians phi1, phase in radians (pivot at center of spectrum (assume 0Hz spectrum

void FirstOrderPhase ( float  phi0,
float  phi1,
int  pivotPoint,
vtkFloatArray *  spectrum 
)
static

Applies a zero and first order phase to the complex spectrum. inputs: phi0, phase in radians phi1, phase in radians (pivot at center of spectrum (assume 0Hz spectrum

References svkSpecUtils::CreateLinearPhaseShiftArray(), and svkPhaseSpec::FirstOrderPhase().

float GetLinearPhase ( )

This returns the current data phase, which may differ from the value input to SetLinearPhase until the data has been updated.

float GetPhase0 ( )

This returns the current data phase, which may differ from the value input to SetPhase0 until the data has been updated.

static svkPhaseSpec* New ( )
static
void PhaseAllChannels ( )
void PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

PrintSelf method calls parent class PrintSelf, then prints the dcos.

int RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

Phase data, either using a phaseMap, or by applying a global phase

References svkImageInPlaceFilter::GetImageDataInput().

int RequestInformation ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual
void SetChannel ( int  channel)
void SetLinearPhase ( float  linearPhase)

Sets the linear phase to apply to spectra.

void SetLinearPhasePivot ( int  linearPhasePivot)
void SetPhase0 ( float  phase0)

Sets the zero order phase to apply to spectra. Phase is input in degrees.

Referenced by svkMultiCoilPhase::RequestData().

void SetUpdateExtent ( int *  start,
int *  end 
)

Sets the extent over which the phasing should be applied. Takes 2 sets of x,y,z indices that specify the extent range in 3D.

Referenced by svkMultiCoilPhase::RequestData().

vtkTypeMacro ( svkPhaseSpec  ,
svkImageInPlaceFilter   
)
void ZeroOrderPhase ( float  phi0,
float *  cmplxPt 
)
static

Applies a zero order phase to the complex values input tuple, representing the re and im intensity at a given frequency point. inputs: phi0, phase in radians cmplxPt, complex float array with 2 elements: real, imaginary

Referenced by svkMRSZeroOrderPhase::FitPhase(), svkMRSFirstPointPhase::FitPhase(), svkMRSFirstPointPhaseCostFunction::GetFirstPointPhaseValue0(), svkMRSZeroOrderPhaseCostFunction::GetZeroOrderPhaseCost_2(), and svkPhaseSpec::ZeroOrderPhase().

void ZeroOrderPhase ( float  phi0,
vtkFloatArray *  spectrum 
)
static

Applies a zero order phase to the complex spectrum. inputs: phi0, phase in radians spectrum

References svkPhaseSpec::ZeroOrderPhase().


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