SIVIC API
0.9.26
|
#include <svkDcmEnhancedVolumeReader.h>
Public Member Functions | |
vtkTypeMacro (svkDcmEnhancedVolumeReader, svkDcmVolumeReader) | |
void | UseDoublePrecision (bool useDoublePrecision) |
void | SetRescalePixels (bool rescalePixels) |
virtual const char * | GetDescriptiveName () |
virtual svkImageReader2::ReaderType | GetReaderType () |
virtual int | CanReadFile (const char *fname) |
Public Member Functions inherited from svkDcmVolumeReader | |
vtkTypeMacro (svkDcmVolumeReader, svkImageReader2) | |
Public Member Functions inherited from svkImageReader2 | |
vtkTypeMacro (svkImageReader2, vtkImageReader2) | |
svkImageData * | GetOutput () |
svkImageData * | GetOutput (int) |
svkDcmHeader * | GetDcmHeader (const char *fileName) |
void | OnlyReadOneInputFile () |
void | OnlyGlobFiles () |
void | GlobFileNames () |
void | OnlyReadHeader (bool onlyReadHeader) |
Static Public Member Functions | |
static svkDcmEnhancedVolumeReader * | New () |
Static Public Member Functions inherited from svkDcmVolumeReader | |
static float | GetFloatValAttribute7 (vector< string > vec) |
static int | GetIntValAttribute8 (vector< string > vec) |
static void | GetVOILUTScaledPixels (float *floatPixels, unsigned short *shortPixels, float center, float window, int numberOfPixels) |
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 | |
svkDcmEnhancedVolumeReader () | |
~svkDcmEnhancedVolumeReader () | |
void | GetPixelTransform (double &intercept, double &slope, svkDcmHeader *header) |
virtual bool | IsDataFloatingPoint () |
virtual bool | ArePixelsScaled () |
void | GetRescaledPixels (double *doublePixels, unsigned short *shortPixels, double intercept, double slope, int numberOfValues) |
void | GetRescaledPixels (float *doublePixels, unsigned short *shortPixels, double intercept, double slope, int numberOfValues) |
virtual svkDcmHeader::DcmPixelDataFormat | GetFileType () |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
virtual void | ExecuteInformation () |
Protected Member Functions inherited from svkDcmVolumeReader | |
svkDcmVolumeReader () | |
~svkDcmVolumeReader () | |
virtual void | ExecuteDataWithInformation (vtkDataObject *output, vtkInformation *outInfo) |
ProprietarySOP | ContainsProprietaryContent (svkImageData *data) |
void | InitFileNames () |
void | OnlyReadInputFile () |
void | SortFilesByImagePositionPatient (vector< vector< string > > &dcmSeriesAttributes, bool ascending) |
void | SortFilesByInstanceNumber (vector< vector< string > > &dcmSeriesAttributes, int numSlicesPerVol, bool ascending) |
virtual void | InitDcmHeader () |
void | InitSliceOrder () |
void | InitSliceOrder (string hfileStart, string fileEnd) |
virtual bool | CheckForMultiVolume () |
float | GetSliceSpacing () |
virtual void | CleanAttributes (set< string > *uniqueSlices) |
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 Types inherited from svkDcmVolumeReader | |
enum | ProprietarySOP { DICOM_STD_SOP = 0, GE_POSTAGE_STAMP_SOP, BRUKER_MRS_SOP } |
Protected Attributes inherited from svkDcmVolumeReader | |
int | numFrames |
svkDcmHeader::DcmDataOrderingDirection | dataSliceOrder |
int | numVolumes |
Protected Attributes inherited from svkImageReader2 | |
vtkDataArray * | dataArray |
bool | readOneInputFile |
bool | onlyGlobFiles |
bool | onlyReadHeader |
Reads DICOM MR Enhanced Objects SOPClassUID = 1.2.840.10008.5.1.4.1.1.4.1.
|
protected |
|
protected |
|
protectedvirtual |
Check if the data needs to be rescaled.
References svkDcmEnhancedVolumeReader::IsDataFloatingPoint().
Referenced by svkDcmEnhancedVolumeReader::ExecuteInformation(), and svkDcmEnhancedVolumeReader::GetFileType().
|
virtual |
Mandatory, must be overridden to get the factory to check for proper type of vtkImageReader2 to return.
References svkImageData::GetDcmHeader(), svkDcmHeader::GetStringValue(), svkDcmHeader::IsFileDICOM(), svkMriImageData::New(), and svkDcmHeader::ReadDcmFileHeaderOnly().
|
protectedvirtual |
Side effect of Update() method. Used to load pixel data and initialize vtkImageData Called before ExecuteData()
Reimplemented from svkDcmVolumeReader.
References svkDcmEnhancedVolumeReader::ArePixelsScaled(), and svkImageReader2::GetOutput().
|
protectedvirtual |
Define the output data type. This is used to initialize the output object.
Reimplemented from svkImageReader2.
|
inlinevirtual |
|
protectedvirtual |
Returns the pixel type. Either unsinged int or float.
Implements svkImageReader2.
References svkDcmEnhancedVolumeReader::ArePixelsScaled(), svkDcmHeader::SIGNED_FLOAT_4, svkDcmHeader::SIGNED_FLOAT_8, and svkDcmHeader::UNSIGNED_INT_2.
|
protected |
Get the slope and intercept from the PixelValueTransformationSequence in the DICOM Header.
References svkImageReader2::GetDcmHeader(), svkImageData::GetDcmHeader(), svkImageReader2::GetOutput(), svkDcmHeader::GetStringSequenceItemElement(), and svkTypeUtils::StringToDouble().
Referenced by svkDcmEnhancedVolumeReader::IsDataFloatingPoint().
|
inlinevirtual |
Implements svkImageReader2.
References svkImageReader2::DICOM_ENHANCED_MRI.
|
protected |
Rescales the short data to floating point data using an intercept and slope.
|
protected |
Rescales the short data to floating point data using an intercept and slope.
|
protectedvirtual |
Check if data is actually floating point data. The data is floating point unless the RescaleIntercept is 0 and the RescaleSlope is 1.
References svkImageReader2::GetDcmHeader(), svkImageReader2::GetOutput(), and svkDcmEnhancedVolumeReader::GetPixelTransform().
Referenced by svkDcmEnhancedVolumeReader::ArePixelsScaled().
|
static |
void SetRescalePixels | ( | bool | rescalePixels | ) |
If set to true then rescale data to floating point when appropriate.
void UseDoublePrecision | ( | bool | useDoublePrecision | ) |
Set to true if the data should be interpreted as double precision. This is unlikely BUT hypothetically the slope and intercept fields allow for double precision. This precision is most likely artificial.
vtkTypeMacro | ( | svkDcmEnhancedVolumeReader | , |
svkDcmVolumeReader | |||
) |