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
svkMRSPeakPick Class Reference

#include <svkMRSPeakPick.h>

Inheritance diagram for svkMRSPeakPick:
svkImageInPlaceFilter

Public Member Functions

 vtkTypeMacro (svkMRSPeakPick, svkImageInPlaceFilter)
 
void SetNoiseSD (float noise)
 
void SetBaselineValue (float baseline)
 
void SetSNLimit (float sn)
 
void SetResolutionHeightFraction (float resolveHeightFraction)
 
void OnlyUseSelectionBox ()
 
void PrintPeaks ()
 
float GetPeakHeight (vtkFloatArray *spectrum, int peakNum)
 
float GetPeakSymmetry (vtkFloatArray *spectrum, int peakNum)
 
float GetPeakHeightAtPeakPos (vtkFloatArray *spectrum, int peakNum)
 
float GetPeakArea (vtkFloatArray *spectrum, int peakNum)
 
float GetAvRMSPeakHeight (int peakNum)
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
int GetNumPeaks ()
 
void GetPeakDefinition (int peakNum, int *startPt, int *peakPt, int *EndPt)
 
- Public Member Functions inherited from svkImageInPlaceFilter
 vtkTypeMacro (svkImageInPlaceFilter, vtkImageInPlaceFilter)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int port)
 
svkImageDataGetImageDataInput (int port)
 

Static Public Member Functions

static svkMRSPeakPickNew ()
 

Protected Member Functions

 svkMRSPeakPick ()
 
 ~svkMRSPeakPick ()
 
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 identify noise region and compute noise SD in spectra. Uses average magnitude spectrum to first identify region with smallest SD. This region is likely to be noise rather than signal. Once the region is defined, the noise SD is computed as an average value of noise SD computed at each voxel over the identified frequency range.

Constructor & Destructor Documentation

svkMRSPeakPick ( )
protected
~svkMRSPeakPick ( )
protected

Member Function Documentation

int FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual
float GetAvRMSPeakHeight ( int  peakNum)

Returns the peak height for the specified peak in the average RMS spectrum. This is the peak height that was detected in the peak picking process.

Referenced by svkMRSZeroOrderPhase::GetLargestZeroOrderPhasePeak().

int GetNumPeaks ( )
float GetPeakArea ( vtkFloatArray *  spectrum,
int  peakNum 
)

Returns the real valued peak height in the range defined for the specified peak number.

void GetPeakDefinition ( int  peakNum,
int *  startPt,
int *  peakPt,
int *  endPt 
)

prints peak definition

float GetPeakHeight ( vtkFloatArray *  spectrum,
int  peakNum 
)

Returns the real valued peak height in the range defined for the specified peak number.

float GetPeakHeightAtPeakPos ( vtkFloatArray *  spectrum,
int  peakNum 
)

Returns the real valued peak height in the range defined for the specified peak number.

float GetPeakSymmetry ( vtkFloatArray *  spectrum,
int  peakNum 
)

Returns the peak symmetry (the closer to 0, the more symmetric.

static svkMRSPeakPick* New ( )
static
void OnlyUseSelectionBox ( )

Sets the linear phase to apply to spectra.

void PrintPeaks ( )
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
int RequestInformation ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual
void SetBaselineValue ( float  baseline)

Get the mean value of the baseline in the window used for SD calc.

Referenced by svkMRSPeakPick::RequestData().

void SetNoiseSD ( float  noise)

Set the noise SD

Referenced by svkMRSPeakPick::RequestData().

void SetResolutionHeightFraction ( float  resolveHeightFraction)

Set the fractional resolve height. For example, does a peak need to be resolved at fwhh to be detected. If so set to 0.5. If the peak only needs to be resolved at 0.7 of max then set to 0.7.

void SetSNLimit ( float  sn)
vtkTypeMacro ( svkMRSPeakPick  ,
svkImageInPlaceFilter   
)

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