fw4spl
core/fwDicomTools/include/fwDicomTools/Image.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #ifndef __FWDICOMTOOLS_IMAGE_HPP__
8 #define __FWDICOMTOOLS_IMAGE_HPP__
9 
10 #include "fwDicomTools/config.hpp"
11 
12 #include <fwTools/Type.hpp>
13 
14 #include <stdint.h>
15 
16 namespace fwDicomTools
17 {
18 
22 class FWDICOMTOOLS_CLASS_API Image
23 {
24 public:
25 
36  FWDICOMTOOLS_API Image(
37  unsigned short samplesPerPixel,
38  unsigned short bitsAllocated,
39  unsigned short bitsStored,
40  unsigned short highBit,
41  unsigned short pixelRepresentation,
42  double rescaleSlope,
43  double rescaleIntercept);
44 
46  FWDICOMTOOLS_API virtual ~Image();
47 
49  FWDICOMTOOLS_API ::fwTools::Type findImageTypeFromMinMaxValues() const;
50 
51 protected:
52 
54  FWDICOMTOOLS_API int64_t getPixelMin() const;
55 
57  FWDICOMTOOLS_API int64_t getPixelMax() const;
58 
60  unsigned short m_samplesPerPixel;
61 
63  unsigned short m_bitsAllocated;
64 
66  unsigned short m_bitsStored;
67 
69  unsigned short m_highBit;
70 
72  unsigned short m_pixelRepresentation;
73 
76 
79 
80 };
81 
82 } //fwDicomTools
83 
84 
85 #endif /* __FWDICOMTOOLS_IMAGE_HPP__ */
unsigned short m_samplesPerPixel
Samples per pixel.
unsigned short m_pixelRepresentation
Pixel representation.
unsigned short m_bitsAllocated
Bits allocated.
fwDicomTools contains general tools to handle DICOM format