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

#include <svkSiemensRdaReader.h>

Inheritance diagram for svkSiemensRdaReader:
svkImageReader2

Public Member Functions

 vtkTypeMacro (svkSiemensRdaReader, svkImageReader2)
 
virtual const char * GetDescriptiveName ()
 
virtual svkImageReader2::ReaderType GetReaderType ()
 
virtual int CanReadFile (const char *fname)
 
- Public Member Functions inherited from svkImageReader2
 vtkTypeMacro (svkImageReader2, vtkImageReader2)
 
svkImageDataGetOutput ()
 
svkImageDataGetOutput (int)
 
svkDcmHeaderGetDcmHeader (const char *fileName)
 
void OnlyReadOneInputFile ()
 
void OnlyGlobFiles ()
 
void GlobFileNames ()
 
void OnlyReadHeader (bool onlyReadHeader)
 

Static Public Member Functions

static svkSiemensRdaReaderNew ()
 
- Static Public Member Functions inherited from svkImageReader2
static string StripWhite (string in)
 
static string RemoveDelimFromDate (string *slashDate, char delimChar= '/')
 
static string GetFileRoot (const char *fname)
 
static string GetFileExtension (const char *fname)
 
static string GetFilePath (const char *fname)
 
static string GetFileNameWithoutPath (const char *fname)
 
static long GetFileSize (ifstream *fs)
 

Protected Member Functions

 svkSiemensRdaReader ()
 
 ~svkSiemensRdaReader ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
virtual void ExecuteInformation ()
 
virtual void ExecuteDataWithInformation (vtkDataObject *output, vtkInformation *outInfo)
 
svkDcmHeader::DcmPixelDataFormat GetFileType ()
 
- Protected Member Functions inherited from svkImageReader2
 svkImageReader2 ()
 
 ~svkImageReader2 ()
 
void SetupOutputInformation ()
 
void SetupOutputExtent ()
 
void SetupOutputScalarData ()
 
virtual void ReadLine (ifstream *hdr, istringstream *iss)
 
void ReadLineIgnore (ifstream *hdr, istringstream *iss, char delim)
 
string ReadLineSubstr (ifstream *hdr, istringstream *iss, int start, int stop)
 
string ReadLineValue (ifstream *hdr, istringstream *iss, char delim)
 
int ReadLineKeyValue (ifstream *hdr, istringstream *iss, char delim, string *key, string *value)
 
virtual void SetProvenance ()
 
virtual string GetFileSeriesDescription (string fileName)
 
void SetReadLength (int length)
 

Additional Inherited Members

- Public Types inherited from svkImageReader2
enum  ReaderType {
  UNDEFINED = -1, DICOM_MRS =0, DICOM_MRI, DICOM_ENHANCED_MRI,
  DICOM_SEGMENTATION, DICOM_RAW, SIEMENS_RDA, VARIAN_FID,
  VARIAN_FDF, GE_PFILE, GE_SDBM, GE_POSTAGE_STAMP,
  GE_SIGNA_LX2, GE_SIGNA_5X, LC_MODEL_COORD, LC_MODEL_CSV,
  LC_MODEL_TABLE, VARIABLE_FLIP_DAT, BRUKER_MRS, PHILIPS_S,
  DDF, IDF, LAST_TYPE = IDF
}
 
- Protected Attributes inherited from svkImageReader2
vtkDataArray * dataArray
 
bool readOneInputFile
 
bool onlyGlobFiles
 
bool onlyReadHeader
 

Detailed Description

This is a SIVIC reader for Siemens *.rda files. This class parses a Siemens rda header to initialize an svkMrsImageData object with an svkDcmHeader corresponding to a DICOM MR Spectroscopy Storage SOP class (SOP Class UID: 1.2.840.10008.5.1.4.1.1.4.2).

Thanks to Jeff Yager (Ph.D Candidate) and Vincent A. Magnotta, Ph.D. of the University of Iowa Department of Radiology for providing sample Siemens .rda phantom data.

Thanks to Bjoern Menze, Ph.D. of the MIT CSAIL Medical Vision Group (http://groups.csail.mit.edu/vision/medical-vision/members.html) for providing sample data and for help implementing and validating this class.

This is a beta release of this class. Spatial localization parameters are still being validated and DICOM IE initialization is being refactored into svkMRSIOD.

Constructor & Destructor Documentation

svkSiemensRdaReader ( )
protected
~svkSiemensRdaReader ( )
protected

Member Function Documentation

int CanReadFile ( const char *  fname)
virtual

Check to see if the extension indicates a Siemens rda file. If so, try to open the file for reading. If that works, then return a success code. Return Values: 1 if can read the file, 0 otherwise.

References svkImageReader2::ReadLine().

void ExecuteDataWithInformation ( vtkDataObject *  output,
vtkInformation *  outInfo 
)
protectedvirtual

Side effect of Update() method. Used to load pixel data and initialize vtkImageData Called after ExecuteInformation()

References svkDcmHeader::GetDataDcos(), svkImageData::GetDcmHeader(), svkImageReader2::GetOutput(), svkDcmHeader::PrintDcmHeader(), and svkImageData::SetDcos().

void ExecuteInformation ( )
protectedvirtual

Side effect of Update() method. Used to initialize the svkDcmHeader member of the target svkImageData object and uses the header to set up the Output Informatin. Called before ExecuteData()

References svkImageReader2::SetupOutputInformation().

int FillOutputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

Reimplemented from svkImageReader2.

virtual const char* GetDescriptiveName ( )
inlinevirtual
svkDcmHeader::DcmPixelDataFormat GetFileType ( )
protectedvirtual

Returns the file type enum

Implements svkImageReader2.

References svkDcmHeader::SIGNED_FLOAT_8.

virtual svkImageReader2::ReaderType GetReaderType ( )
inlinevirtual
static svkSiemensRdaReader* New ( )
static
vtkTypeMacro ( svkSiemensRdaReader  ,
svkImageReader2   
)

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