SIVIC API
0.9.26
|
#include <svkMetaboliteMap.h>
Public Types | |
enum | algorithm { INTEGRATE = 0, PEAK_HT = 1, MAG_PEAK_HT = 2, LINE_WIDTH = 3, MAG_LINE_WIDTH = 4, MAG_INTEGRATE = 5 } |
Public Member Functions | |
vtkTypeMacro (svkMetaboliteMap, svkImageAlgorithm) | |
void | SetSeriesDescription (vtkstd::string newSeriesDescription) |
void | SetOutputDataType (svkDcmHeader::DcmPixelDataFormat dataType) |
void | SetZeroCopy (bool zeroCopy) |
void | SetPeakPosPPM (float peak_center_ppm) |
void | SetPeakWidthPPM (float peak_width_ppm) |
void | SetAlgorithmToIntegrate () |
void | SetAlgorithmToPeakHeight () |
void | SetAlgorithmToMagPeakHeight () |
void | SetAlgorithmToLineWidth () |
void | SetAlgorithmToMagLineWidth () |
void | SetAlgorithmToMagIntegrate () |
void | SetAlgorithm (vtkstd::string algo) |
void | SetVerbose (bool isVerbose) |
void | LimitToSelectedVolume (float fraction=0.5001) |
short * | GetSelectedVolumeMask () |
Public Member Functions inherited from svkImageAlgorithm | |
vtkTypeMacro (svkImageAlgorithm, vtkImageAlgorithm) | |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int port) |
svkImageData * | GetImageDataInput (int port) |
Static Public Member Functions | |
static svkMetaboliteMap * | New () |
static double | GetIntegral (float *specPtr, int startPt, int endPt) |
static double | GetMagIntegral (float *specPtr, int startPt, int endPt) |
static double | GetPeakHt (float *specPtr, int startPt, int endPt) |
static double | GetMagPeakHt (float *specPtr, int startPt, int endPt) |
Protected Member Functions | |
svkMetaboliteMap () | |
~svkMetaboliteMap () | |
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
void | ZeroData () |
virtual int | FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
virtual int | FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
Protected Member Functions inherited from svkImageAlgorithm | |
svkImageAlgorithm () | |
~svkImageAlgorithm () | |
Class to extract an svkMriImageData object out of an svkMrsImageData object. This is useful for generating metaboite maps or other maps from spectral, dynamic or other multi- volumetric data.
enum algorithm |
|
protected |
References svkMetaboliteMap::INTEGRATE.
|
protected |
|
protectedvirtual |
Default input type is svkImageData base class. Override with a specific concrete type in sub class if necessary.
Reimplemented from svkImageAlgorithm.
|
protectedvirtual |
Output from this algo is an svkMriImageData object.
Reimplemented from svkImageAlgorithm.
|
static |
Gets integral of real component over the specified range from startPt to endPt.
|
static |
Gets integral of real component over the specified range from startPt to endPt.
|
static |
Gets max peak ht of magnitude spectrum over the specified range from startPt to endPt.
|
static |
Gets max peak ht of real component over the specified range from startPt to endPt.
Referenced by svkMRSZeroOrderPhaseCostFunction::GetZeroOrderPhaseCost_2().
short * GetSelectedVolumeMask | ( | ) |
void LimitToSelectedVolume | ( | float | fraction = 0.5001 | ) |
|
static |
|
protectedvirtual |
Copy the Dcm Header and Provenance from the input to the output.
References svkImageData::GetDcmHeader(), svkImageAlgorithm::GetImageDataInput(), svkImageData::GetNumberOfVoxels(), svkImageAlgorithm::GetOutput(), svkDcmHeader::InsertUniqueUID(), and svkDcmHeader::SetValue().
|
protectedvirtual |
Resets the origin and extent for correct initialization of output svkMriImageData object from input svkMrsImageData object.
References svkImageData::GetDcmHeader(), svkImageAlgorithm::GetImageDataInput(), and svkDcmHeader::GetOrigin().
void SetAlgorithm | ( | vtkstd::string | algo | ) |
void SetAlgorithmToIntegrate | ( | ) |
References svkMetaboliteMap::INTEGRATE.
Referenced by svkMetaboliteMap::SetAlgorithm().
void SetAlgorithmToLineWidth | ( | ) |
References svkMetaboliteMap::LINE_WIDTH.
Referenced by svkMetaboliteMap::SetAlgorithm().
void SetAlgorithmToMagIntegrate | ( | ) |
References svkMetaboliteMap::MAG_INTEGRATE.
Referenced by svkMetaboliteMap::SetAlgorithm().
void SetAlgorithmToMagLineWidth | ( | ) |
References svkMetaboliteMap::MAG_LINE_WIDTH.
Referenced by svkMetaboliteMap::SetAlgorithm().
void SetAlgorithmToMagPeakHeight | ( | ) |
References svkMetaboliteMap::MAG_PEAK_HT.
Referenced by svkMetaboliteMap::SetAlgorithm().
void SetAlgorithmToPeakHeight | ( | ) |
References svkMetaboliteMap::PEAK_HT.
Referenced by svkMetaboliteMap::SetAlgorithm().
void SetOutputDataType | ( | svkDcmHeader::DcmPixelDataFormat | dataType | ) |
void SetPeakPosPPM | ( | float | centerPPM | ) |
Set the chemical shift of the peak position to integrate over.
void SetPeakWidthPPM | ( | float | widthPPM | ) |
Set the chemical shift range to integrate over. Integration will be +/- 1/2 this width about the peak position.
void SetSeriesDescription | ( | vtkstd::string | newSeriesDescription | ) |
Set the series description for the DICOM header of the copy.
void SetVerbose | ( | bool | isVerbose | ) |
Write the integrals for each voxel to stdout. Default is false.
void SetZeroCopy | ( | bool | zeroCopy | ) |
vtkTypeMacro | ( | svkMetaboliteMap | , |
svkImageAlgorithm | |||
) |
|
protected |
Zero data
References svkImageData::GetNumberOfVoxels(), and svkImageAlgorithm::GetOutput().