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

#include <svkVariableFlipDatReader.h>

Inheritance diagram for svkVariableFlipDatReader:
svkImageReader2

Public Member Functions

 vtkTypeMacro (svkVariableFlipDatReader, svkImageReader2)
 
virtual const char * GetDescriptiveName ()
 
virtual svkImageReader2::ReaderType GetReaderType ()
 
virtual int CanReadFile (const char *fname)
 
svkImageReader2::ReaderType InitDatReader ()
 
int GetNumTimePoints ()
 
float GetProfileBandwidth ()
 
int GetProfileNumPoints ()
 
int GetSignalScaling (int timePt, vtkFloatArray *signalScale)
 
int GetMzScaling (int timePt, vtkFloatArray *mzScale)
 
- 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 svkVariableFlipDatReaderNew ()
 
- 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

 svkVariableFlipDatReader ()
 
 ~svkVariableFlipDatReader ()
 
virtual int FillOutputPortInformation (int vtkNotUsed(port), vtkInformation *info)
 
virtual void ExecuteInformation ()
 
virtual
svkDcmHeader::DcmPixelDataFormat 
GetFileType ()
 
- Protected Member Functions inherited from svkImageReader2
 svkImageReader2 ()
 
 ~svkImageReader2 ()
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
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

Reads .dat files that containg scaling information about variable flip angle acquisitions.

Authors: Jason C. Crane Peder E.Z. Larson Beck(Marram) P. Olson

Example V1 format: dat_type: variable_flip_angle dat_version: 1 dat_content_name: brain_2d_17-Feb-2016 num_time_pts: 20 profile_bandwidth: 543.478261 profile_num_pts: 256 time_point: 1 signal_scaling: space_separated_float_values(256) mz_scaling: space_separated_float_values(256) time_point: 2 signal_scaling: space_separated_float_values(256) mz_scaling: space_separated_float_values(256) ... time_point: 20 signal_scaling: space_separated_float_values(256) mz_scaling: space_separated_float_values(256)

Thsigna_scaling arrays are array of scaling factors for each dynamic time point. The scaling factors are to be applied to the reconstructed data in frequency domain by dividing the complex intensities by the scaling factor at the corresponding frequency point. The bandwidth is defined (GetProfileBandwidth) with 0 hz at the center point ( GetNumTimePoints()/2 , e.g. 128 for 256 point profile.

The time index starts at 1 returns status 0 on success

Constructor & Destructor Documentation

svkVariableFlipDatReader ( )
protected
~svkVariableFlipDatReader ( )
protected

Member Function Documentation

int CanReadFile ( const char *  fname)
virtual

Check to see if the extension indicates a UCSF IDF 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 svkVariableFlipDatReader::InitDatReader(), and svkImageReader2::VARIABLE_FLIP_DAT.

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 svkVariableFlipDatReader::InitDatReader().

int FillOutputPortInformation ( int   vtkNotUsedport,
vtkInformation *  info 
)
protectedvirtual
  • input ports 0 is required. All input ports are MRI data. 0: Input File Name(required)
virtual const char* GetDescriptiveName ( )
inlinevirtual
svkDcmHeader::DcmPixelDataFormat GetFileType ( )
protectedvirtual

returns the data size.

Implements svkImageReader2.

References svkDcmHeader::SIGNED_FLOAT_4.

int GetMzScaling ( int  timePt,
vtkFloatArray *  mzScale 
)

The time index starts at 1 returns status 0 on success

int GetNumTimePoints ( )
float GetProfileBandwidth ( )
int GetProfileNumPoints ( )
virtual svkImageReader2::ReaderType GetReaderType ( )
inlinevirtual
int GetSignalScaling ( int  timePt,
vtkFloatArray *  signalScale 
)

This is an array of scaling factors to be applied to the reconstructed data in frequency domain. The bandwidth is defined (GetProfileBandwidth) with 0 hz at the center point ( GetNumTimePoints()/2 , e.g. 128 for 256 point profile.

The time index starts at 1 returns status 0 on success

svkImageReader2::ReaderType InitDatReader ( )
static svkVariableFlipDatReader* New ( )
static
vtkTypeMacro ( svkVariableFlipDatReader  ,
svkImageReader2   
)

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