Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Core/src/IO/mitkRawImageFileReader.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 MITKRAWIMAGEFILEREADER_H_
18 #define MITKRAWIMAGEFILEREADER_H_
19 
20 #include "mitkAbstractFileReader.h"
21 
22 namespace mitk
23 {
29  {
30  public:
33 
35  typedef enum { LITTLE, BIG } EndianityType;
36 
38 
39  protected:
41 
42  virtual std::vector<itk::SmartPointer<BaseData>> Read() override;
43 
45 
46  private:
47  template <typename TPixel, unsigned int VImageDimensions>
48  mitk::BaseData::Pointer TypedRead(const std::string &path, EndianityType endianity, int *size);
49 
50  RawImageFileReaderService *Clone() const override;
51 
53  itk::Vector<int, 3> m_Dimensions;
54  };
55 
56 } // namespace mitk
57 
58 #endif /* MITKRAWIMAGEFILEREADER_H_ */
DataCollection - Class to facilitate loading/accessing structured data.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override=0
Reads a path or stream and creates a list of BaseData objects.
Base class for creating mitk::BaseData objects from files or streams.
virtual std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.