Medical Imaging Interaction Toolkit  2018.4.99-c0f884b2
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkCompressedImageContainer_h_Included
14 #define mitkCompressedImageContainer_h_Included
15 
17 #include "mitkCommon.h"
18 #include "mitkGeometry3D.h"
19 #include "mitkImage.h"
20 #include "mitkImageDataItem.h"
21 
22 #include <itkObject.h>
23 
24 #include <vector>
25 
26 namespace mitk
27 {
36  {
37  public:
39  itkFactorylessNewMacro(Self);
40  itkCloneMacro(Self);
41 
48  void SetImage(Image *);
49 
57  Image::Pointer GetImage();
58 
59  protected:
60  CompressedImageContainer(); // purposely hidden
61  ~CompressedImageContainer() override;
62 
64 
65  unsigned int m_ImageDimension;
66  std::vector<unsigned int> m_ImageDimensions;
67 
69 
70  unsigned int m_NumberOfTimeSteps;
71 
73  std::vector<std::pair<unsigned char *, unsigned long>> m_ByteBuffers;
74 
76  };
77 
78 } // namespace
79 
80 #endif
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
Holds one (compressed) mitk::Image.
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:49
Image class for storing images.
Definition: mitkImage.h:72
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:51