Program: gdcm
Module: $RCSfile: gdcmFile.h,v $
Language: C++
- Date: $Date: 2005/01/23 10:12:34 $
- Version: $Revision: 1.99 $
+ Date: $Date: 2005/01/28 17:01:30 $
+ Version: $Revision: 1.101 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
namespace gdcm
{
+class RLEFramesInfo;
+class JPEGFragmentsInfo;
//-----------------------------------------------------------------------------
// Dicom Part 3.3 Compliant
*/
//-----------------------------------------------------------------------------
-
class GDCM_EXPORT File : public Document
{
protected:
/// Accessor to \ref File::NumPixel
uint16_t GetNumPixel() { return NumPixel; }
+ /// Replace patient's specific information by 'anonymous'
+ bool AnonymizeFile();
+
bool Write(std::string fileName, FileType filetype);
+ /// returns the RLE info
+ RLEFramesInfo *GetRLEInfo() { return RLEInfo; }
+ /// Returns the JPEG Fragments info
+ JPEGFragmentsInfo *GetJPEGInfo() { return JPEGInfo; }
+
+protected:
/// Initialize DICOM File when none
void InitializeDefaultFile();
-protected:
- /// Replace patient's specific information by 'anonymous'
- bool AnonymizeFile();
+ /// Store the RLE frames info obtained during parsing of pixels.
+ RLEFramesInfo *RLEInfo;
+ /// Store the JPEG fragments info obtained during parsing of pixels.
+ JPEGFragmentsInfo *JPEGInfo;
private:
-
+ void ComputeRLEInfo();
+ void ComputeJPEGFragmentInfo();
+ void ReadAndSkipEncapsulatedBasicOffsetTable();
+ bool ReadTag(uint16_t, uint16_t);
+ uint32_t ReadTagLength(uint16_t, uint16_t);
};
} // end namespace gdcm