| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef _DicomIO_h_
- #define _DicomIO_h_
- #include "../Pattern/Singleton.h"
- #include "../Container/ExtendedImage.h"
- #include "../Container/Video.h"
- class DcmDataset;
- class DicomIO : public Singleton< DicomIO >
- {
- public:
- enum DicomIOType
- {
- DicomIOUnknown = 0,
- DicomIOUnmanaged,
- DicomIOImage,
- DicomIOMultiFrame
- };
- DicomIOType getType( std::string fileName );
- bool read( std::string fileName, ExtendedImage& image );
- bool write( std::string fileName, ExtendedImage& image );
- bool read( std::string fileName, Video& image );
- bool HasCalibration();
- protected:
- DicomIO();
- virtual ~DicomIO();
- friend class Singleton< DicomIO >;
- bool readResolutions( DcmDataset* dataset, double& sizeX, double& sizeY );
- bool m_calibrated;
- std::string m_manufacturer;
- };
- #endif
|