42 #ifndef SVK_GE_PFILE_READER_H
43 #define SVK_GE_PFILE_READER_H
45 #include <vtkCallbackCommand.h>
46 #include <vtkInformation.h>
121 map <string, vector< string > >
155 map <string, vector< string > >
164 string GetOffsetsString();
165 virtual void InitDcmHeader();
168 void DumpShortHeader();
169 void PrintKeyValuePairs();
170 string GetFieldAsString(
string key);
171 int GEUncompressUID(
unsigned char* short_uid,
char* long_uid);
172 string UncompressUID(
const char* compressedUID);
173 int GECompressUID(
unsigned char* short_uid,
char* long_uid);
174 string CompressUID(
char* compressedUID);
175 float GetPFileVersion();
177 static void UpdateProgressCallback(
183 void FillInMissingInfo();
184 void SetDataByteOrder();
185 void DeidentifyData();
186 int GetNumElementsInField(
string key );
187 int GetNumBytesInField(
string key );
188 void DeidentifyField( fstream* fs,
string key,
string deidString);
189 bool IsFieldChar(
string key );
190 bool IsFieldUID(
string key );
191 bool IsFieldInt2(
string key );
192 bool IsFieldFloat4(
string key );
193 bool IsFieldInt4(
string key );
194 bool IsFieldLInt4(
string key );
195 bool IsFieldLInt8(
string key );
196 string GetSeriesUID(
const char* fname);
203 map < string, void* >
206 vtkCallbackCommand* progressCallback;
207 vtkStringArray* tmpFileNames;
210 string deidPatientId;
213 string deidSeriesUID;
215 string deidLandmarkUID;
223 #endif //SVK_GE_PFILE_READER_H
void SetEPSIParams(svkEPSIReorder::EPSIType type, svkEPSIReorder::EPSIAxis axis, int first, int numLobes, int numSkip)
Definition: svkGEPFileReader.cc:474
Definition: svkImageReader2.h:77
void SetDeidentify(svkDcmHeader::PHIType phiType)
Definition: svkGEPFileReader.cc:498
void Deidentify()
Definition: svkGEPFileReader.cc:3540
virtual const char * GetDescriptiveName()
Definition: svkGEPFileReader.h:129
Definition: svkImageReader2.h:60
virtual svkDcmHeader::DcmPixelDataFormat GetFileType()
Definition: svkGEPFileReader.cc:997
virtual string GetFileSeriesDescription(string fileName)
Definition: svkGEPFileReader.cc:3634
ReaderType
Definition: svkImageReader2.h:67
void SetDeidentificationInstanceUID(string deidImageUID)
Definition: svkGEPFileReader.cc:3521
void ReadGEPFile()
Definition: svkGEPFileReader.cc:706
map< string, vector< string > > GetPFMap()
Definition: svkGEPFileReader.cc:3187
void PrintHeader()
Definition: svkGEPFileReader.cc:543
svkGEPFileMapper * GetMapper()
Definition: svkGEPFileReader.cc:696
map< string, vector< string > > pfMap
Definition: svkGEPFileReader.h:156
EPSIType
Definition: svkEPSIReorder.h:70
void InitOffsetsMap()
Definition: svkGEPFileReader.cc:959
virtual void ExecuteInformation()
Definition: svkGEPFileReader.cc:232
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Definition: svkGEPFileReader.cc:854
virtual svkImageReader2::ReaderType GetReaderType()
Definition: svkGEPFileReader.h:133
void SetChop(bool chop)
Definition: svkGEPFileReader.cc:575
static float LookupRawVersion(float rdbmRev, float rdbmRevSwapped)
Definition: svkGEPFileReader.cc:1296
~svkGEPFileReader()
Definition: svkGEPFileReader.cc:104
virtual int CanReadFile(const char *fname)
Definition: svkGEPFileReader.cc:138
EPSIAxis
Definition: svkEPSIReorder.h:77
void SetDeidentificationLandmarkUID(string deidLandmarkUID)
Definition: svkGEPFileReader.cc:3529
static svkGEPFileReader * New()
Definition: svkGEPFileReader.h:88
void ModifyRawField(string rawField, string value)
Definition: svkGEPFileReader.cc:3470
void SetDeidentificationStudyUID(string deidStudyUID)
Definition: svkGEPFileReader.cc:3505
void ParsePFile()
Definition: svkGEPFileReader.cc:811
bool checkSeriesUID
Definition: svkGEPFileReader.h:138
virtual void SetProvenance()
Definition: svkGEPFileReader.cc:330
virtual void ExecuteDataWithInformation(vtkDataObject *output, vtkInformation *outInfo)
Definition: svkGEPFileReader.cc:287
vtkTypeMacro(svkGEPFileReader, svkImageReader2)
void PrintShortHeader()
Definition: svkGEPFileReader.cc:553
svkGEPFileReader()
Definition: svkGEPFileReader.cc:68
MapperBehavior
Definition: svkGEPFileMapper.h:76
Definition: svkGEPFileMapper.h:65
void SetTemperature(float temp)
Definition: svkGEPFileReader.cc:564
void SetMapperBehavior(svkGEPFileMapper::MapperBehavior type)
Definition: svkGEPFileReader.cc:459
void SetDeidentificationSeriesUID(string deidSeriesUID)
Definition: svkGEPFileReader.cc:3513
void SetPSDLogic(string psdName)
Definition: svkGEPFileReader.cc:616