43 #ifndef SVK_MRS_IMAGE_DATA_H
44 #define SVK_MRS_IMAGE_DATA_H
47 #include <vtkObjectFactory.h>
48 #include <vtkImageData.h>
49 #include <vtkUnstructuredGrid.h>
50 #include <vtkPlanesIntersection.h>
51 #include <vtkHexahedron.h>
81 void GetIndexArray(
int timePoint,
int channel,
int* indexArray );
83 vtkDataArray*
GetSpectrum(
int i,
int j,
int k,
int timePoint = 0,
int channel=0 );
91 vtkstd::string seriesDescription,
92 int vtkDataType = VTK_VOID
100 string seriesDescription,
101 int vtkDataType = VTK_VOID
104 void SetImage( vtkImageData* image,
int point,
int timePoint = 0,
int channel = 0 );
106 void SetImageComponent( vtkImageData* image,
int point,
int timePoint = 0,
int channel = 0,
int component = 0);
110 void EstimateDataRange(
double range[2],
int minPt,
int maxPt,
int component,
int* tlcBrc = NULL,
int timePoint = 0,
int channel = 0 );
155 void GetTlcBrcInSelectionBox(
168 #endif //SVK_MRS_IMAGE_DATA_H
void GenerateSelectionBox(vtkUnstructuredGrid *selectionBox)
Definition: svkMrsImageData.cc:327
static svkMrsImageData * New()
void GetSelectionBoxMask(short *mask, double tolerance=DEFAULT_SELECTION_TOLERANCE)
Definition: svkMrsImageData.cc:848
void GetSelectionBoxMaxMin(double minPoint[3], double maxPoint[3], double tolerance=DEFAULT_SELECTION_TOLERANCE)
Definition: svkMrsImageData.cc:677
Definition: svkMrsImageData.h:66
void GetSelectionBoxCenter(double *selBoxCenter)
Definition: svkMrsImageData.cc:441
#define DEFAULT_SELECTION_TOLERANCE
Definition: svk4DImageData.h:55
void GetIndexArray(int timePoint, int channel, int *indexArray)
Definition: svkMrsImageData.cc:88
vtkDataArray * GetSpectrumFromID(int index, int timePoint=0, int channel=0)
Definition: svkMrsImageData.cc:110
bool IsSliceInSelectionBox(int slice, svkDcmHeader::Orientation orientation=svkDcmHeader::UNKNOWN_ORIENTATION)
Definition: svkMrsImageData.cc:491
void Redimension(svkDcmHeader::DimensionVector *dimensionVector, double *newOrigin, double *newSpacing, bool resizeSelectionBoxToFOV=false)
Definition: svkMrsImageData.cc:909
void InitializeDataArrays()
Definition: svkMrsImageData.cc:942
double range[3][2]
Range needs to be able to accomodate real, imaginary, and magnitude components.
Definition: svkImageData.h:280
static vtkObject * NewObject()
Definition: svkMrsImageData.cc:73
~svkMrsImageData()
Definition: svkMrsImageData.cc:65
void GetSelectionBoxOrigin(double origin[3])
Definition: svkMrsImageData.cc:608
Definition: svkMrsImageData.h:73
int GetNumberOfVolumeDimensions()
Definition: svkMrsImageData.cc:267
void Get2DProjectedTlcBrcInSelectionBox(int tlcBrc[2], svkDcmHeader::Orientation orientation, int slice, double tolerance=DEFAULT_SELECTION_TOLERANCE)
Definition: svkMrsImageData.cc:754
void EstimateDataRange(double range[2], int minPt, int maxPt, int component, int *tlcBrc=NULL, int timePoint=0, int channel=0)
Definition: svkMrsImageData.cc:296
void GetSelectionBoxDimensions(float *dims)
Definition: svkMrsImageData.cc:469
vtkTypeMacro(svkMrsImageData, svk4DImageData)
Definition: svkMrsImageData.h:74
void SetImageComponent(vtkImageData *image, int point, int timePoint=0, int channel=0, int component=0)
Definition: svkMrsImageData.cc:208
filterDimVec for all dims
Definition: svkFlatten.cc:9
void Get3DTlcBrcInSelectionBox(int tlcBrc[2], double tolerance=DEFAULT_SELECTION_TOLERANCE)
Definition: svkMrsImageData.cc:836
void GetSelectionBoxSpacing(double spacing[3])
Definition: svkMrsImageData.cc:560
vtkDataArray * GetSpectrum(int i)
Definition: svkMrsImageData.cc:101
int GetNumberOfChannels()
Definition: svkMrsImageData.cc:276
void GetImage(svkMriImageData *image, int point, int timePoint, int channel, int component, vtkstd::string seriesDescription, int vtkDataType=VTK_VOID)
Definition: svk4DImageData.h:69
void SetImage(vtkImageData *image, int point, int timePoint=0, int channel=0)
Definition: svkMrsImageData.cc:177
Definition: svkMriImageData.h:72
bool HasSelectionBox()
Definition: svkMrsImageData.cc:311
void Get3DVoxelsInSelectionBox(int tlcVoxel[3], int brcVoxel[3], double tolerance=DEFAULT_SELECTION_TOLERANCE)
Definition: svkMrsImageData.cc:819
int GetClosestSlice(double *posLPS, svkDcmHeader::Orientation sliceOrientation, double tolerance=-1)
Definition: svkMrsImageData.cc:222
MrsVolumeIndex
Enum represents objects in the scene.
Definition: svkMrsImageData.h:72
svkMrsImageData()
Definition: svkMrsImageData.cc:56
int GetVolumeIndexSize(int volumeIndex)
Definition: svkMrsImageData.cc:250