Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitkCompressedImageContainer.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef mitkCompressedImageContainer_h_Included
18 #define mitkCompressedImageContainer_h_Included
19 
21 #include "mitkCommon.h"
22 #include "mitkGeometry3D.h"
23 #include "mitkImage.h"
24 #include "mitkImageDataItem.h"
25 
26 #include <itkObject.h>
27 
28 #include <vector>
29 
30 namespace mitk
31 {
40  {
41  public:
43  itkFactorylessNewMacro(Self) itkCloneMacro(Self)
44 
45 
51  void SetImage(Image *);
52 
60  Image::Pointer GetImage();
61 
62  protected:
63  CompressedImageContainer(); // purposely hidden
64  virtual ~CompressedImageContainer();
65 
67 
68  unsigned int m_ImageDimension;
69  std::vector<unsigned int> m_ImageDimensions;
70 
72 
73  unsigned int m_NumberOfTimeSteps;
74 
76  std::vector<std::pair<unsigned char *, unsigned long>> m_ByteBuffers;
77 
79  };
80 
81 } // namespace
82 
83 #endif
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Holds one (compressed) mitk::Image.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Image class for storing images.
Definition: mitkImage.h:76
std::vector< unsigned int > m_ImageDimensions
std::vector< std::pair< unsigned char *, unsigned long > > m_ByteBuffers
one for each timestep. first = pointer to compressed data; second = size of buffer in bytes ...
Class for defining the data type of pixels.
Definition: mitkPixelType.h:55