SIVIC API
0.9.26
|
#include <svkMrsSingleVoxelSincExtraction.h>
Public Types | |
enum | svkMrsSingleVoxelExtractionInput { INPUT_SPECTRA = 0, L_COORDINATE, P_COORDINATE, S_COORDINATE, RETAIN_INPUT_EXTENT } |
Public Member Functions | |
vtkTypeMacro (svkMrsSingleVoxelSincExtraction, svkImageAlgorithmWithPortMapper) | |
void | SetVoxelCenter (double l_coordinate, double p_coordinate, double s_coordinate) |
void | SetRetainInputExtent (bool retainInputExtent) |
Public Member Functions inherited from svkImageAlgorithmWithPortMapper | |
vtkTypeMacro (svkImageAlgorithmWithPortMapper, svkImageAlgorithm) | |
virtual void | SetInputPortsFromXML (vtkXMLDataElement *element) |
Parses an XML element and converts it into input port parameters. Converts image filename strings to svkImageData objects. More... | |
virtual svkAlgorithmPortMapper * | GetPortMapper () |
Get the internal port mapper. More... | |
void | PrintSelf (ostream &os, vtkIndent indent) |
Prints all input parameters set. More... | |
Public Member Functions inherited from svkImageAlgorithm | |
vtkTypeMacro (svkImageAlgorithm, vtkImageAlgorithm) | |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int port) |
svkImageData * | GetImageDataInput (int port) |
Static Public Member Functions | |
static svkMrsSingleVoxelSincExtraction * | New () |
Static Public Member Functions inherited from svkImageAlgorithmWithPortMapper | |
static svkImageAlgorithmWithPortMapper * | New () |
Protected Member Functions | |
svkMrsSingleVoxelSincExtraction () | |
~svkMrsSingleVoxelSincExtraction () | |
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | FillInputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
virtual int | FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info) |
Protected Member Functions inherited from svkImageAlgorithmWithPortMapper | |
svkImageAlgorithmWithPortMapper () | |
~svkImageAlgorithmWithPortMapper () | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
All ports must be initialized through the svkAlgorithmPortMapper BEFORE this method is called. More... | |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
Protected Member Functions inherited from svkImageAlgorithm | |
svkImageAlgorithm () | |
~svkImageAlgorithm () | |
|
protected |
References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkAlgorithmPortMapper::InitializeInputPort(), svkMrsSingleVoxelSincExtraction::INPUT_SPECTRA, svkMrsSingleVoxelSincExtraction::L_COORDINATE, svkMrsSingleVoxelSincExtraction::P_COORDINATE, svkMrsSingleVoxelSincExtraction::RETAIN_INPUT_EXTENT, svkMrsSingleVoxelSincExtraction::S_COORDINATE, svkAlgorithmPortMapper::SVK_BOOL, svkAlgorithmPortMapper::SVK_DOUBLE, and svkAlgorithmPortMapper::SVK_MRS_IMAGE_DATA.
|
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 |
|
protectedvirtual |
Copy the Dcm Header and Provenance from the input to the output.
References svkDcmHeader::COL_INDEX, svkImageData::DeepCopy(), svkAlgorithmPortMapper::GetBoolInputPortValue(), svkDcmHeader::GetCellIDFromDimensionVectorIndex(), svkImageData::GetDcmHeader(), svkDcmHeader::GetDimensionIndexVector(), svkDcmHeader::GetDimensionVectorIndexFromCellID(), svkDcmHeader::GetDimensionVectorValue(), svkAlgorithmPortMapper::GetDoubleInputPortValue(), svkImageAlgorithm::GetImageDataInput(), svkImageData::GetIndexFromPosition(), svkDcmHeader::GetNumberOfCells(), svkMrsImageData::GetNumberOfChannels(), svkDcmHeader::GetNumberOfTimePoints(), svkImageAlgorithm::GetOutput(), svkImageAlgorithmWithPortMapper::GetPortMapper(), svkMrsImageData::GetSpectrum(), svkBool::GetValue(), svkDouble::GetValue(), svkMrsSingleVoxelSincExtraction::L_COORDINATE, loopVector, svkMrsSingleVoxelSincExtraction::P_COORDINATE, svkMrsSingleVoxelSincExtraction::RETAIN_INPUT_EXTENT, svkDcmHeader::ROW_INDEX, svkMrsSingleVoxelSincExtraction::S_COORDINATE, svkDcmHeader::SetDimensionVectorValue(), and svkDcmHeader::SLICE_INDEX.
|
protectedvirtual |
Always produces single voxel output
References svkAlgorithmPortMapper::GetBoolInputPortValue(), svkImageData::GetDcmHeader(), svkAlgorithmPortMapper::GetDoubleInputPortValue(), svkImageAlgorithm::GetImageDataInput(), svkDcmHeader::GetOrigin(), svkImageAlgorithmWithPortMapper::GetPortMapper(), svkBool::GetValue(), svkDouble::GetValue(), svkMrsSingleVoxelSincExtraction::L_COORDINATE, svkMrsSingleVoxelSincExtraction::P_COORDINATE, svkMrsSingleVoxelSincExtraction::RETAIN_INPUT_EXTENT, svkMrsSingleVoxelSincExtraction::S_COORDINATE, and svkMrsSingleVoxelSincExtraction::SetRetainInputExtent().
void SetRetainInputExtent | ( | bool | retainInputExtent | ) |
Sets to true and the output will have the same extent as the input, but the same data in every voxel equal to the requpested lps voxel center.
References svkImageAlgorithmWithPortMapper::GetPortMapper(), svkMrsSingleVoxelSincExtraction::RETAIN_INPUT_EXTENT, and svkAlgorithmPortMapper::SetBoolInputPortValue().
Referenced by svkMrsSingleVoxelSincExtraction::RequestInformation().
void SetVoxelCenter | ( | double | l_coordinate, |
double | p_coordinate, | ||
double | s_coordinate | ||
) |
vtkTypeMacro | ( | svkMrsSingleVoxelSincExtraction | , |
svkImageAlgorithmWithPortMapper | |||
) |