DicomIO.h 880 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _DicomIO_h_
  2. #define _DicomIO_h_
  3. /*
  4. #include "../Pattern/Singleton.h"
  5. #include "../Container/ExtendedImage.h"
  6. #include "../Container/Video.h"
  7. class DcmDataset;
  8. class DicomIO : public Singleton< DicomIO >
  9. {
  10. public:
  11. enum DicomIOType
  12. {
  13. DicomIOUnknown = 0,
  14. DicomIOUnmanaged,
  15. DicomIOImage,
  16. DicomIOMultiFrame
  17. };
  18. DicomIOType getType( std::string fileName );
  19. bool read( std::string fileName, ExtendedImage& image );
  20. bool write( std::string fileName, ExtendedImage& image );
  21. bool read( std::string fileName, Video& image );
  22. bool HasCalibration();
  23. protected:
  24. DicomIO();
  25. virtual ~DicomIO();
  26. friend class Singleton< DicomIO >;
  27. bool readResolutions( DcmDataset* dataset, double& sizeX, double& sizeY );
  28. bool m_calibrated;
  29. };
  30. */
  31. #endif