SIVIC API
0.9.26
|
#include <svkImageData.h>
Public Types | |
enum | RangeComponent { REAL = 0, IMAGINARY, MAGNITUDE } |
enum | DataBasis { ROW = 0, COLUMN, SLICE, LR, PA, SI } |
Public Member Functions | |
vtkTypeMacro (svkImageData, vtkImageData) | |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | DeepCopy (vtkDataObject *src) |
virtual void | DeepCopy (vtkDataObject *src, svkDcmHeader::DcmPixelDataFormat castToFormat) |
virtual void | ShallowCopy (vtkDataObject *src) |
virtual void | ShallowCopy (vtkDataObject *src, svkDcmHeader::DcmPixelDataFormat castToFormat) |
virtual void | ZeroCopy (vtkImageData *src, svkDcmHeader::DcmPixelDataFormat castToFormat=svkDcmHeader::UNDEFINED) |
virtual void | CopyAndFillComponents (vtkImageData *src, double fillValue, svkDcmHeader::DcmPixelDataFormat castToFormat=svkDcmHeader::UNDEFINED) |
virtual void | CastDataFormat (svkDcmHeader::DcmPixelDataFormat castToFormat) |
virtual void | CopyAndCastFrom (vtkImageData *inData, int extent[6]) |
virtual void | CopyAndCastFrom (vtkImageData *inData, int x0, int x1, int y0, int y1, int z0, int z1) |
virtual void | CopyStructure (vtkDataSet *ds) |
virtual void | CopyDcos (vtkDataObject *src) |
virtual void | CopyVtkImage (vtkImageData *sourceImage, double dcos[][3]) |
virtual double * | GetPoint (vtkIdType ptId) |
virtual void | GetPoint (vtkIdType id, double x[3]) |
virtual vtkCell * | GetCell (vtkIdType cellId) |
virtual void | GetCell (vtkIdType cellId, vtkGenericCell *cell) |
virtual void | GetCellBounds (vtkIdType cellId, double bounds[6]) |
virtual vtkIdType | FindPoint (double x, double y, double z) |
virtual vtkIdType | FindPoint (double x[3]) |
virtual vtkIdType | FindCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
virtual vtkIdType | FindCell (double x[3], vtkCell *cell, vtkGenericCell *gencell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
virtual vtkCell * | FindAndGetCell (double x[3], vtkCell *cell, vtkIdType cellId, double tol2, int &subId, double pcoords[3], double *weights) |
virtual int | GetCellType (vtkIdType cellId) |
virtual void | GetCellPoints (vtkIdType cellId, vtkIdList *ptIds) |
virtual void | GetPointCells (vtkIdType ptId, vtkIdList *cellIds) |
virtual void | ComputeBounds () |
virtual int | ComputeStructuredCoordinates (double x[3], int ijk[3], double pcoords[3]) |
virtual void | GetVoxelGradient (int i, int j, int k, vtkDataArray *s, vtkDataArray *g) |
virtual void | GetPointGradient (int i, int j, int k, vtkDataArray *s, double g[3]) |
virtual void | SetAxisUpdateExtent (int axis, int min, int max) |
virtual void | GetAxisUpdateExtent (int axis, int &min, int &max) |
virtual void | SetDcos (double x[3][3]) |
virtual void | GetDcos (double x[3][3]) |
void | SetDcmHeader (svkDcmHeader *dcmHeader) |
svkDcmHeader * | GetDcmHeader () |
void | SetProvenance (svkProvenance *provenance) |
svkProvenance * | GetProvenance () |
int | GetIDFromIndex (int indexX, int indexY, int indexZ) |
virtual void | GetNumberOfVoxels (int numVoxels[3])=0 |
void | GetIndexFromID (int voxelID, int *indexX, int *indexY, int *indexZ) |
void | GetIndexFromID (int voxelID, int *index) |
void | GetIndexFromPosition (double posLPS[3], int *index) |
void | GetIndexFromPosition (double posLPS[3], double *index) |
virtual void | GetPositionFromIndex (int *index, double *posLPS) |
virtual void | GetSliceOrigin (int slice, double *sliceOrigin, svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual void | GetSliceCenter (int slice, double *sliceCenter, svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual void | GetSliceNormal (double *normal, svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual int | GetClosestSlice (double *posLPS, svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION, double tolerance=-1) |
virtual int | GetNumberOfSlices (svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual int | GetFirstSlice (svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual int | GetLastSlice (svkDcmHeader::Orientation sliceOrientation=svkDcmHeader::UNKNOWN_ORIENTATION) |
virtual void | GetDataBasis (double basisVector[3], DataBasis basis) |
virtual int | GetOrientationIndex (svkDcmHeader::Orientation orientation) |
virtual void | GetImageCenter (double *center) |
void | GetDataRange (double range[2], int component) |
Getter of the data range variable. More... | |
void | SetDataRange (double range[2], int component) |
Setter of the data range variable. More... | |
void | SetSourceData (svkImageData *source) |
svkImageData * | GetSourceData () |
void | SyncVTKImageDataToDcmHeader () |
vtkSetStringMacro (SourceFileName) | |
vtkGetStringMacro (SourceFileName) | |
Static Public Member Functions | |
static void | RemoveArrays (svkImageData *data) |
Protected Member Functions | |
svkImageData () | |
~svkImageData () | |
bool | WasModified () |
virtual void | UpdateSvkParams () |
virtual void | UpdateRange (int component) |
int | FindMatchingSlice (double *posLPS, svkDcmHeader::Orientation sliceOrientation, double *origin, double *spacing, double tolerance=-1) |
Protected Attributes | |
svkDcmHeader * | dcmHeader |
svkProvenance * | provenance |
char * | SourceFileName |
svkImageData * | source |
double | range [3][2] |
Range needs to be able to accomodate real, imaginary, and magnitude components. More... | |
Oblique extention to vtkImageData. This class contains a length 9 double array to contain the directional cosine matrix. Using this methods like "GetPoint" and "GetCell" can be overridden to cause the oblique nature of the dataset to be accurately represented. NOTE: Many of the methods are not implemented currently, only those that are necessary for the filters/actors that we are using to represent image data.
Note, the svkImageData's DICOM header (svkDcmHeader) contains the following fields that define the data orientation:
The "right handed" normal to the plane defined by 1, gives the positive S direction (for an Axial Data Set).
The data ordering or 3rd row of the DCOS matrix is implicitly given by the coordinates in consecutive imagePositionPatient fields for each frame.
Data ordering is only explicitly encoded in the 3x3 DCOS in the svkImageData object to indicate the spatial relation of data buffer ordering.
enum DataBasis |
enum RangeComponent |
|
protected |
Constructor. Creates a default directional cosine matrix. dcos = +x, +y, -z. The order is Ux, Vx, Wx, Uy, Vy, Wy, Uz, Vz, Wz.
References svkImageData::dcmHeader, svkDcmHeader::DCMTK_API, svkProvenance::New(), svkDcmtkAdapter::New(), svkFastCellData::New(), svkImageData::provenance, svkImageData::range, svkImageData::source, and svkImageData::SourceFileName.
|
protected |
Destructor.
References svkImageData::dcmHeader, svkImageData::provenance, and svkImageData::source.
|
virtual |
Cast the pixel format to a different type. Only certain casts will be allowed, if you request an unsupported cast, no cast will be performed.
References svkImageData::GetDcmHeader(), svkDcmHeader::SetPixelDataType(), svkDcmHeader::SIGNED_FLOAT_4, svkDcmHeader::SIGNED_FLOAT_8, svkDcmHeader::SIGNED_INT_2, svkDcmHeader::UNDEFINED, and svkDcmHeader::UNSIGNED_INT_2.
|
virtual |
Computes the oblique bounds.
|
virtual |
NOT YET IMPLEMENTED– returns 0
|
virtual |
Copy and cast using vtkImageData::CopyAndCastFrom( vtkImageData, int[6] ) Also copies the dcos.
References svkImageData::CopyDcos().
Referenced by svkImageData::CopyAndCastFrom().
|
virtual |
Copy and cast using svkImageData::CopyAndCastFrom( vtkImageData, int[6] )
References svkImageData::CopyAndCastFrom().
|
virtual |
First calls CopyStructure, then also copies the dcos, and DICOM header.
References svkImageData::CopyStructure(), svkImageData::GetDcmHeader(), svkDcmHeader::GetVtkDataTypeFromSvkDataType(), svkDcmHeader::SetPixelDataType(), svkDcmHeader::SIGNED_FLOAT_4, svkDcmHeader::SIGNED_FLOAT_8, svkDcmHeader::UNDEFINED, svkDcmHeader::UNSIGNED_INT_1, and svkDcmHeader::UNSIGNED_INT_2.
Referenced by svkImageData::ZeroCopy().
|
virtual |
Copies the dcos of a src vtkDataObject. The object must be an svkImageData or this will do nothing. It takes a vtkDataObject and checks for its type, this is only for convenience.
References svkImageData::GetDcos(), and svkImageData::SetDcos().
Referenced by svkImageData::CopyAndCastFrom(), svkImageData::CopyStructure(), svk4DImageData::GetImage(), and svkImageAlgorithmExecuter::RequestData().
|
virtual |
Copies the structure: origin, extent, spacing, dcos... no data.
References svkImageData::CopyDcos().
Referenced by svkImageData::CopyAndFillComponents().
|
virtual |
DEPRECATED: USE DEEPCOPY!
This method copies a vtkImageData object by getting its origin, spacing, extent and copying its scalars from its point data, and all arrays from its vtkCellData. This is only used to create ad hoc pipelines for svkImageData. THIS METHOD IS FOR TEMOPORARY USE ONLY!!!!
References svkImageData::SetDcos(), and svkImageData::ShallowCopy().
|
virtual |
Calls two-argument version of the method. We want to make sure we retain the polymorphic properties of this method so we can't use a default argument otherwise the method would be hidden to the base class.
References svkDcmHeader::UNDEFINED.
Referenced by svkLCModelCoordReader::ExecuteDataWithInformation(), svkDynamicImageMap::GetNormalizationFactor(), svkGEPFileMapperUCSFfidcsiDev0::ReadData(), svkVarianUCSFEPSI2DMapper::ReadFidFile(), svkGEPFileMapper::RedimensionModifiedSVData(), svkGEPFileMapper::ReorderEPSI(), svkVarianUCSFEPSI2DMapper::ReorderEPSIData(), svkImageAlgorithmExecuter::RequestData(), svkIntegratePeak::RequestData(), svkMrsSingleVoxelSincExtraction::RequestData(), svkImageCopy::RequestData(), svkMriImageFFT::RequestData(), svkObliqueReslice::RequestData(), svkMriZeroFill::RequestData(), svkMetaboliteRatioZScores::RequestData(), svkSincInterpolationFilter::RequestData(), svkMRSKinetics::RequestData(), svkImageThreshold::RequestData(), svkHSVD::RequestData(), and svkOverlayView::UpdateSincInterpolation().
|
virtual |
DeepCopy creates a deep copy of svkImageData, including orientation information. First calls vtkImageData's deep copy, then also copies the dcos. Creates a derived copy of the DICOM header.
|
virtual |
NOT YET IMPLEMENTED– returns NULL
|
virtual |
NOT YET IMPLEMENTED– returns 0
|
virtual |
NOT YET IMPLEMENTED– returns 0
|
protected |
This projects a posLPS onto a normal vector through the real world origin. This is a common reference vector for both the MRI and MRS data. The projection is normalized by the relevant data slice spacing to get the nearest slice.
This method takes the origin and spacing as input so that it can be used for single voxel data as well as normal image and spectra.
If the matching slice is beyond the defined tolerance than -1 is returned.
posLPS | the lps coordinate to match against |
sliceOrientation | the orientation to match against |
origin | the origin to use for the matching. |
spacing | the spacing to use for the matching |
tolerance | the maximum permissible distance for a match |
References svkImageData::GetDcmHeader(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), svkImageData::GetSliceNormal(), and svkDcmHeader::UNKNOWN_ORIENTATION.
Referenced by svkMrsImageData::GetClosestSlice(), and svkImageData::GetClosestSlice().
|
virtual |
NOT YET IMPLEMENTED– returns 0
|
virtual |
NOT YET IMPLEMENTED– returns 0
|
virtual |
NOT YET IMPLEMENTED– empty method
|
virtual |
References dims.
Referenced by svkMrsImageData::IsSliceInSelectionBox().
|
virtual |
Get a cell based on the point ID. Since ImageData does not store cells, it is calculated.
References dims.
|
virtual |
NOT YET IMPLEMENTED– empty method
References dims.
|
virtual |
NOT YET IMPLEMENTED– empty method
|
virtual |
NOT YET IMPLEMENTED– returns 0
|
virtual |
Calculates the closests slice to a given LPS coordinate for a given orientation.
posLPS | the lps coordinate to match against |
sliceOrientation | the orientation to match against |
tolerance | the maximum permissible distance for a match |
Reimplemented in svkMrsImageData.
References svkImageData::FindMatchingSlice(), svkImageData::GetDcmHeader(), and svkDcmHeader::GetOrigin().
|
virtual |
Gets the data basis. Some calculations are easier conceptually if you use the different vectors of the dcos. The basis are ROW, COLUMN, SLICE, LR, PA, SI.
References svkImageData::COLUMN, svkImageData::LR, svkImageData::PA, svkImageData::ROW, svkImageData::SI, and svkImageData::SLICE.
Referenced by svkDataView::GetClippingPlanes(), svkImageData::GetIndexFromPosition(), svkMrsImageData::GetSelectionBoxMaxMin(), and svkMrsImageData::GetSelectionBoxOrigin().
void GetDataRange | ( | double | range[2], |
int | component | ||
) |
Getter of the data range variable.
References svkImageData::UpdateRange(), svkImageData::UpdateSvkParams(), and svkImageData::WasModified().
Referenced by svkPlotLineGrid::SetInput().
svkDcmHeader * GetDcmHeader | ( | ) |
Pure getter method: returns header object.
References svkImageData::dcmHeader.
Referenced by svkHSVD::AddDampingFilterRule(), svkVoxelTaggingUtils::AddTagToVoxelData(), svkDataValidator::AreDataCompatible(), svkDataValidator::AreDataOrientationsSame(), svkDataValidator::AreDataOriginsSame(), svkMRSAutoPhase::AutoPhaseExecute(), svkMRSAutoPhase::AutoPhaseSpectrum(), svkMultiCoilPhase::CalculateCenterPhase(), svkDcmSegmentationVolumeReader::CanReadFile(), svkDcmRawDataReader::CanReadFile(), svkDcmMrsVolumeReader::CanReadFile(), svkGEPostageStampReader::CanReadFile(), svkDcmMriVolumeReader::CanReadFile(), svkDcmEnhancedVolumeReader::CanReadFile(), svkBrukerDCMMRSReader::CanReadFile(), svkImageData::CastDataFormat(), svkEPSIReorder::CombineLobes(), svkDcmVolumeReader::ContainsProprietaryContent(), svkImageData::CopyAndFillComponents(), svkVoxelTaggingUtils::CreateVoxelTagData(), svkGEPFileReader::Deidentify(), svkMrsImageData::EstimateDataRange(), svkLCModelCoordReader::ExecuteDataWithInformation(), svkSdbmVolumeReader::ExecuteDataWithInformation(), svkDdfVolumeReader::ExecuteDataWithInformation(), svkPhilipsSReader::ExecuteDataWithInformation(), svkVarianFidReader::ExecuteDataWithInformation(), svkFdfVolumeReader::ExecuteDataWithInformation(), svkIdfVolumeReader::ExecuteDataWithInformation(), svkSiemensRdaReader::ExecuteDataWithInformation(), svkGEPFileReader::ExecuteDataWithInformation(), svkDcmVolumeReader::ExecuteInformation(), svkDcmSegmentationVolumeReader::ExecuteInformation(), svkDdfVolumeReader::ExecuteInformation(), svkGESigna5XReader::ExecuteInformation(), svkDcmRawDataReader::ExtractFiles(), svkImageData::FindMatchingSlice(), svkMRSFirstOrderPhase::FitPhase(), svkMRSZeroOrderPhase::FitPhase(), svkMRSFirstPointPhase::FitPhase(), svkVoxelTaggingUtils::FixPerFrameFunctionalGroupSequence(), svkMrsImageData::GenerateSelectionBox(), svkStatistics::GetAutoAdjustedBinSize(), svkMriImageData::GetCellDataRepresentation(), svkMrsImageData::GetClosestSlice(), svkImageData::GetClosestSlice(), svkDICOMEnhancedMRIWriter::GetDataLength(), svkDICOMMRIWriter::GetDataLength(), svkImageReader2::GetDcmHeader(), svkDataModel::GetDcmHeader(), svkUtils::GetDefaultSecondaryCaptureDirectory(), svkUtils::GetDefaultSecondaryCaptureFilePattern(), svkImageReader2::GetFileSeriesDescription(), svkDcmMriVolumeReader::GetFileType(), svkImageData::GetFirstSlice(), svkHSVD::GetFitSuccessStatus(), svkIdfVolumeWriter::GetHeaderString(), svk4DImageData::GetImage(), svkImageViewer2::GetImageActor(), svkImageData::GetImageCenter(), svkImageData::GetIndexFromPosition(), svkImageData::GetLastSlice(), svkImageWriterFactory::GetNewSeriesFilePattern(), svkMrsImageData::GetNumberOfChannels(), svk4DImageData::GetNumberOfSlices(), svkImageData::GetNumberOfSlices(), svkVoxelTaggingUtils::GetNumberOfTags(), svkEPSIReorder::GetNumSamplesPerLobe(), svkImageData::GetOrientationIndex(), svkDICOMImageWriter::GetPixelRange(), svkDcmEnhancedVolumeReader::GetPixelTransform(), svkImageData::GetPositionFromIndex(), svkDSCRecovery::GetRecovery(), svkQuantifyMetabolites::GetRegionNameVector(), svkDICOMImageWriter::GetScaledPixels(), svkMrsImageData::GetSelectionBoxDimensions(), svkMrsImageData::GetSelectionBoxSpacing(), svkImageData::GetSliceCenter(), svkImageData::GetSliceNormal(), svkImageData::GetSliceOrigin(), svkVoxelTaggingUtils::GetTagName(), svkVoxelTaggingUtils::GetTagValue(), svk4DImageData::GetTlcBrcInUserSelection(), svkMriImageData::GetVolumeIndexForFrame(), svkMrsImageData::GetVolumeIndexSize(), svkApodizationWindow::GetWindowResolution(), svkMrsImageData::HasSelectionBox(), svkGEPostageStampReader::InitDcmHeader(), svkDcmMriVolumeReader::InitDcmHeader(), svkBrukerDCMMRSReader::InitDcmHeader(), svkDcmVolumeReader::InitDcmHeader(), svkGESigna5XReader::InitDcmHeader(), svkGESigna5XReader::InitEnhancedGeneralEquipmentModule(), svkGESigna5XReader::InitEnhancedMRImageModule(), svkDcmVolumeReader::InitFileNames(), svkGESigna5XReader::InitGeneralEquipmentModule(), svkGESigna5XReader::InitGeneralSeriesModule(), svkGESigna5XReader::InitGeneralStudyModule(), svkImageAlgorithmPipeline::InitializeAlgorithmForTag(), svkMrsImageData::InitializeDataArrays(), svkApodizationWindow::InitializeWindow(), svkGESigna5XReader::InitMRAveragesMacro(), svkGESigna5XReader::InitMREchoMacro(), svkGESigna5XReader::InitMRFOVGeometryMacro(), svkGESigna5XReader::InitMRImageAndSpectroscopyInstanceMacro(), svkGESigna5XReader::InitMRImageFrameTypeMacro(), svkGESigna5XReader::InitMRImagingModifierMacro(), svkGESigna5XReader::InitMRModifierMacro(), svkGESigna5XReader::InitMRPulseSequenceModule(), svkGESigna5XReader::InitMRReceiveCoilMacro(), svkGESigna5XReader::InitMRTimingAndRelatedParametersMacro(), svkGESigna5XReader::InitMRTransmitCoilMacro(), svkGESigna5XReader::InitMultiFrameFunctionalGroupsModule(), svkGESigna5XReader::InitPatientModule(), svkGESigna5XReader::InitPerFrameFunctionalGroupMacros(), svkDICOMEnhancedMRIWriter::InitPixelData(), svkGESigna5XReader::InitPixelMeasuresMacro(), svkGESigna5XReader::InitPixelValueTransformationMacro(), svkGESigna5XReader::InitPlaneOrientationMacro(), svkDcmVolumeReader::InitSliceOrder(), svkVoxelTaggingUtils::IsImageVoxelTagData(), svkMrsImageData::IsSliceInSelectionBox(), svkGEPFileMapperUCSFfidcsiDev0::ModifyForPatientEntry(), svkQuantifyMetabolites::ModifyRegion(), svkMRSZeroOrderPhase::PrePhaseSetup(), svkMRSFirstPointPhase::PrePhaseSetup(), svkGEPFileMapperUCSFfidcsiDev0::ReadData(), svkMrsImageData::Redimension(), svkVarianUCSFEPSI2DMapper::RedimensionData(), svkGEPFileMapper::RedimensionModifiedSVData(), svkVarianUCSFEPSI2DMapper::RemoveArrays(), svkImageData::RemoveArrays(), svkHSVD::RemoveH20On(), svkHSVD::RemoveLipidOn(), svkVoxelTaggingUtils::RemoveTagFromVoxelData(), svkGEPFileMapper::ReorderEPSI(), svkVarianUCSFEPSI2DMapper::ReorderEPSIData(), svkAlgoTemplate::RequestData(), svkBurnResearchPixels::RequestData(), svkImageAlgorithmExecuter::RequestData(), svkMrsImageFlip::RequestData(), svkIntegratePeak::RequestData(), svkMrsApodizationFilter::RequestData(), svkDynamicImageMap::RequestData(), svkMrsLinearPhase::RequestData(), svkMrsSingleVoxelSincExtraction::RequestData(), svkMultiCoilPhase::RequestData(), svkDynamicMRIAlgoTemplate::RequestData(), svkMriImageFFT::RequestData(), svkDSCDeltaR2::RequestData(), svkMRSNoise::RequestData(), svkEPSIPhaseCorrect::RequestData(), svkMriZeroFill::RequestData(), svkMetaboliteRatioZScores::RequestData(), svkSincInterpolationFilter::RequestData(), svkMRSKinetics::RequestData(), svkImageThreshold::RequestData(), svkMetaboliteMap::RequestData(), svkMrsZeroFill::RequestData(), svkImageStatistics::RequestData(), svkHSVD::RequestData(), svkMrsImageFFT::RequestDataSpatial(), svkMrsZeroFill::RequestDataSpatial(), svkMrsZeroFill::RequestDataSpectral(), svkMrsImageFFT::RequestDataSpectral(), svkDynamicImageMap::RequestInformation(), svkMrsSingleVoxelSincExtraction::RequestInformation(), svkDynamicMRIAlgoTemplate::RequestInformation(), svkObliqueReslice::RequestInformation(), svkMRSKinetics::RequestInformation(), svkMetaboliteMap::RequestInformation(), svkMRSAutoPhase::RequestInformation(), svkMrsZeroFill::RequestInformation(), svk4DImageData::SetImage(), svkPlotGridView::SetInput(), svkMRSAutoPhase::SetMapSeriesDescription(), svkVoxelTaggingUtils::SetTagName(), svkVoxelTaggingUtils::SetTagValue(), svkObliqueReslice::SetTarget(), svkImageReader2::SetupOutputExtent(), svkImageReader2::SetupOutputInformation(), svkImageReader2::SetupOutputScalarData(), svkPlotGridView::ShowView(), svkMRSAutoPhase::SVKRequestDataPreExec(), svkMriImageData::SyncCellRepresentationToPixelData(), svkMRSAutoPhase::ValidateInput(), svkDICOMEnhancedMRIWriter::Write(), svkDICOMMRIWriter::Write(), svkDdfVolumeWriter::Write(), and svkDICOMMRSWriter::Write().
|
virtual |
Pure getter, returns the directional cosine matrix.
Referenced by svkOverlayView::CheckDataOrientations(), svkImageData::CopyDcos(), svkImageTopologyGenerator::GenerateVoxelGridActor(), svkIdfVolumeWriter::GetHeaderString(), svkImageData::GetImageCenter(), svkImageData::GetPositionFromIndex(), svkImageData::GetSliceCenter(), svkMriZeroFill::RequestData(), svkMrsZeroFill::RequestDataSpatial(), and svkSincInterpolationFilter::RequestInformation().
|
virtual |
Gets the first slice in a given orientation.
References svkImageData::GetDcmHeader(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), and svkDcmHeader::UNKNOWN_ORIENTATION.
Referenced by svkMrsImageData::Get2DProjectedTlcBrcInSelectionBox(), svk4DImageData::GetTlcBrcInUserSelection(), svkMrsImageData::IsSliceInSelectionBox(), svkPlotGridView::SetInput(), and svkImageViewer2::SetSlice().
int GetIDFromIndex | ( | int | indexX, |
int | indexY, | ||
int | indexZ | ||
) |
Compute the plotID from the x, y, z index
indexX | the x index of the voxel who's id you want |
indexY | the y index of the voxel who's id you want |
indexY | the z index of the voxel who's id you want |
References svkImageData::GetNumberOfVoxels().
Referenced by svkMriImageData::GetCenterOfMass(), svkMriImageData::GetImagePixel(), svkDataView::IsTlcBrcWithinData(), svkDataView::ResetTlcBrcForNewOrientation(), and svkMriImageData::SetImagePixel().
|
virtual |
Compute center of the image data volume
References svkImageData::GetDcmHeader(), svkImageData::GetDcos(), svkDcmHeader::GetIntValue(), svkDcmHeader::GetNumberOfSlices(), svkDcmHeader::GetOrigin(), and svkDcmHeader::GetPixelSpacing().
Referenced by svkImageViewer2::ResetCamera().
void GetIndexFromID | ( | int | voxelID, |
int * | indexX, | ||
int * | indexY, | ||
int * | indexZ | ||
) |
Compute the x, y, z indices from the voxelID.
voxelID | the id of the voxel you wish to know the indecies of |
indexX | pointer to the integer you wish to set to be the x index of the given ID |
indexY | pointer to the integer you wish to set to be the y index of the given ID |
indexZ | pointer to the integer you wish to set to be the z index of the given ID |
References svkImageData::GetNumberOfVoxels().
Referenced by svk4DImageData::EstimateDataRange(), svkMrsImageData::Get3DVoxelsInSelectionBox(), svk4DImageData::GetArrayFromID(), svkDataView::GetClippingIndexFromTlcBrc(), svkImageData::GetIndexFromID(), svkDSCRecovery::GetRecovery(), svkMrsImageData::GetSelectionBoxMask(), svkDataView::IsTlcBrcWithinData(), and svkDataView::ResetTlcBrcForNewOrientation().
void GetIndexFromID | ( | int | voxelID, |
int * | index | ||
) |
Compute the x, y indices from the voxelID.
voxelID | the id of the voxel you wish to know the indecies of |
index | pointer to the integer indices |
References svkImageData::GetIndexFromID().
void GetIndexFromPosition | ( | double | posLPS[3], |
int * | index | ||
) |
Compute the row, column, slice index for a given LPS coordinate
L | |
P | |
S |
Referenced by svk4DImageData::GetTlcBrcInUserSelection(), svkMrsSingleVoxelSincExtraction::RequestData(), and svkObliqueReslice::RequestInformation().
void GetIndexFromPosition | ( | double | posLPS[3], |
double * | index | ||
) |
Compute the row, column, slice index for a given LPS coordinate
L | |
P | |
S |
References svkImageData::COLUMN, svkImageData::GetDataBasis(), svkImageData::GetDcmHeader(), svkDcmHeader::GetOrigin(), svkDcmHeader::GetPixelSpacing(), svkImageData::ROW, and svkImageData::SLICE.
|
virtual |
Gets the last slice in a given orientation.
Reimplemented in svk4DImageData.
References svkImageData::GetDcmHeader(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), and svkDcmHeader::UNKNOWN_ORIENTATION.
Referenced by svkPlotGridView::SetInput(), and svkImageViewer2::SetSlice().
|
virtual |
Determins the number of slices for a given orientation.
Reimplemented in svk4DImageData.
References svkImageData::GetDcmHeader(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), and svkDcmHeader::UNKNOWN_ORIENTATION.
|
pure virtual |
Implemented in svkMriImageData, and svk4DImageData.
Referenced by svkImageData::GetIDFromIndex(), svkImageData::GetIndexFromID(), svkDynamicImageMap::GetNormalizationFactor(), svkDSCRecovery::GetRecovery(), svkGEPFileMapper::RedimensionModifiedSVData(), svkVarianUCSFEPSI2DMapper::RemoveArrays(), svkVarianUCSFEPSI2DMapper::ReorderEPSIData(), svkMultiCoilPhase::RequestData(), svkMRSKinetics::RequestData(), svkMetaboliteMap::RequestData(), svkObliqueReslice::RequestInformation(), svkMRSKinetics::SyncPointsFromCells(), svkMRSAutoPhase::SyncPointsFromCells(), svkDynamicImageMap::ZeroData(), svkDynamicMRIAlgoTemplate::ZeroData(), svkMRSKinetics::ZeroData(), svkMetaboliteMap::ZeroData(), and svkMRSAutoPhase::ZeroData().
|
virtual |
Pass call through to header.
orientation | the orientation whose index you wish to get |
References svkImageData::GetDcmHeader(), and svkDcmHeader::GetOrientationIndex().
Referenced by svkImageData::FindMatchingSlice(), svkImageData::GetFirstSlice(), svkImageData::GetLastSlice(), svk4DImageData::GetNumberOfSlices(), svkImageData::GetNumberOfSlices(), svkImageData::GetSliceCenter(), svkImageData::GetSliceNormal(), svkImageData::GetSliceOrigin(), svk4DImageData::GetTlcBrcInUserSelection(), svkMrsImageData::IsSliceInSelectionBox(), svkDataView::ResetTlcBrcForNewOrientation(), svkImageViewer2::SetInputData(), and svkImageViewer2::SetSlice().
|
virtual |
Get a point based on the point ID. Since ImageData does not store points, it is calculated.
References dims.
|
inlinevirtual |
|
virtual |
NOT YET IMPLEMENTED– empty method
|
virtual |
NOT YET IMPLEMENTED– empty method
|
virtual |
Compute LPS coordinate for a given x,y,z index
x | |
y | |
z |
References svkImageData::GetDcmHeader(), svkImageData::GetDcos(), svkDcmHeader::GetOrigin(), and svkDcmHeader::GetPixelSpacing().
Referenced by svkMriImageData::GetCenterOfMass().
svkProvenance * GetProvenance | ( | ) |
Pure getter method: returns provenance object.
References svkImageData::provenance.
Referenced by svkDdfVolumeReader::ExecuteDataWithInformation(), svkMRSCombine::RequestData(), svkLCModelRawWriter::SetProvenance(), svkDdfVolumeWriter::SetProvenance(), svkCorrectDCOffset::SetProvenance(), svkGEPFileReader::SetProvenance(), and svkMRSAutoPhase::UpdateProvenance().
|
virtual |
This method will get the center of a given slice, for a given orientation. Default uses the data's orientation.
References svkImageData::GetDcmHeader(), svkImageData::GetDcos(), svkDcmHeader::GetIntValue(), svkDcmHeader::GetNumberOfSlices(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), svkDcmHeader::GetOrigin(), svkDcmHeader::GetPixelSpacing(), and svkDcmHeader::UNKNOWN_ORIENTATION.
|
virtual |
Gets the normal vector to a given orientation.
References svkImageData::GetDcmHeader(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), and svkDcmHeader::UNKNOWN_ORIENTATION.
Referenced by svkImageData::FindMatchingSlice(), svkImageData::GetSliceOrigin(), svkMrsImageData::IsSliceInSelectionBox(), and svkImageViewer2::ResetCamera().
|
virtual |
This method will get the origin of a given slice, for a given orientation. Default uses the data's orientation.
References svkImageData::GetDcmHeader(), svkImageData::GetOrientationIndex(), svkDcmHeader::GetOrientationType(), svkImageData::GetSliceNormal(), and svkDcmHeader::UNKNOWN_ORIENTATION.
svkImageData * GetSourceData | ( | ) |
Set the source data. This can be used to keep track of what image data object was used to derive this one. It is just for book keeping and is not used in any other way.
References svkImageData::source.
|
virtual |
NOT YET IMPLEMENTED– empty method
|
virtual |
PrintSelf method calls parent class PrintSelf, then prints the dcos.
|
static |
Remove the cell data arrays from an svkImageData object. Used when redimensioning data.
References svk4DImageData::GetArrayName(), svkImageData::GetDcmHeader(), svkDcmHeader::GetDimensionIndexVector(), svkDcmHeader::GetDimensionVectorIndexFromCellID(), svkDcmHeader::GetNumberOfCells(), and loopVector.
Referenced by svkGEPFileMapperUCSFfidcsiDev0::ReadData(), and svkGEPFileMapper::ReorderEPSI().
|
virtual |
NOT YET IMPLEMENTED– empty method
void SetDataRange | ( | double | range[2], |
int | component | ||
) |
Setter of the data range variable.
Referenced by svkIdfVolumeReader::ExecuteDataWithInformation(), and svk4DImageData::UpdateRange().
void SetDcmHeader | ( | svkDcmHeader * | dcmHeader | ) |
Pure setter method: this->x = x.
dcmHeader | the header you wish to set for this svkImageData object |
References svkImageData::dcmHeader.
Referenced by svkMriImageData::GetCellDataRepresentation().
|
virtual |
Pure setter, copies the directional cosine matrix.
Referenced by svkImageData::CopyDcos(), svkImageData::CopyVtkImage(), svkSdbmVolumeReader::ExecuteDataWithInformation(), svkDdfVolumeReader::ExecuteDataWithInformation(), svkPhilipsSReader::ExecuteDataWithInformation(), svkVarianFidReader::ExecuteDataWithInformation(), svkFdfVolumeReader::ExecuteDataWithInformation(), svkIdfVolumeReader::ExecuteDataWithInformation(), svkSiemensRdaReader::ExecuteDataWithInformation(), svkGEPFileReader::ExecuteDataWithInformation(), svkDcmVolumeReader::ExecuteInformation(), svkGESigna5XReader::ExecuteInformation(), svkImageTopologyGenerator::GenerateVoxelGridActor(), svkObliqueReslice::RequestData(), svkSpectraReferenceView::SetupMsInput(), and svkImageData::SyncVTKImageDataToDcmHeader().
void SetProvenance | ( | svkProvenance * | provenance | ) |
Pure setter method: this->x = x.
provenance | the provenance object you wish to set for this svkImageData object |
References svkImageData::provenance.
void SetSourceData | ( | svkImageData * | source | ) |
Set the source data. This can be used to keep track of what image data object was used to derive this one. It is just for book keeping and is not used in any other way.
References svkImageData::source.
Referenced by svkMriImageData::GetCellDataRepresentation().
|
virtual |
Calls two-argument version of the method. We want to make sure we retain the polymorphic properties of this method so we can't use a default argument otherwise the method would be hidden to the base class.
References svkDcmHeader::UNDEFINED.
Referenced by svkImageData::CopyVtkImage(), svkDataModel::LoadFile(), svkGEPFileMapper::ReorderEPSI(), svkMriImageFFT::RequestData(), svkSincInterpolationFilter::RequestData(), and svkMrsZeroFill::RequestDataSpatial().
|
virtual |
First calls vtkImageData's shallow copy, then also copies the dcos, but does NOT copy the DICOM header.
void SyncVTKImageDataToDcmHeader | ( | ) |
Synchronizes vtkImageData params with information in current svkDcmHeader member variable.
References svkImageData::dcmHeader, svkDcmHeader::GetDataDcos(), svkDcmHeader::GetIntValue(), svkDcmHeader::GetNumberOfSlices(), svkDcmHeader::GetOrigin(), svkDcmHeader::GetPixelSize(), svkDcmHeader::GetPixelSpacing(), and svkImageData::SetDcos().
Referenced by svkMriImageData::GetCellDataRepresentation(), svk4DImageData::GetImage(), svkGEPFileMapperUCSFfidcsiDev0::ModifyForPatientEntry(), svkGEPFileMapperUCSFfidcsiDev0::ReadData(), svkVarianUCSFEPSI2DMapper::ReadFidFile(), svkMrsImageData::Redimension(), svkVarianUCSFEPSI2DMapper::RedimensionData(), svkMriImageFFT::RequestData(), svkMriZeroFill::RequestData(), svkSincInterpolationFilter::RequestData(), svkMrsZeroFill::RequestDataSpatial(), and svkOverlayView::UpdateSincInterpolation().
|
protectedvirtual |
Reimplemented in svk4DImageData.
Referenced by svkImageData::GetDataRange().
|
protectedvirtual |
Updates svk parameters.
Referenced by svkImageData::GetDataRange().
vtkGetStringMacro | ( | SourceFileName | ) |
vtkSetStringMacro | ( | SourceFileName | ) |
vtkTypeMacro | ( | svkImageData | , |
vtkImageData | |||
) |
|
protected |
Referenced by svkImageData::GetDataRange().
|
virtual |
First calls CopyStructure, then also copies the dcos, and DICOM header.
References svkImageData::CopyAndFillComponents().
Referenced by svkImageCopy::RequestData().
|
protected |
|
protected |
|
protected |
Range needs to be able to accomodate real, imaginary, and magnitude components.
Referenced by svkMriImageData::GetAutoWindowLevel(), and svkImageData::svkImageData().
|
protected |
|
protected |
Referenced by svkImageData::svkImageData().