Medical Imaging Interaction Toolkit  2018.4.99-b5518f0d
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 (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 MITKRAWIMAGEFILEREADER_H_
14 #define MITKRAWIMAGEFILEREADER_H_
15 
16 #include "mitkAbstractFileReader.h"
17 
18 namespace mitk
19 {
25  {
26  public:
29 
31  typedef enum { LITTLE, BIG } EndianityType;
32 
34 
35  protected:
37 
38  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
39 
41 
42  private:
43  template <typename TPixel, unsigned int VImageDimensions>
44  mitk::BaseData::Pointer TypedRead(const std::string &path, EndianityType endianity, int *size);
45 
46  RawImageFileReaderService *Clone() const override;
47 
49  itk::Vector<int, 3> m_Dimensions;
50  };
51 
52 } // namespace mitk
53 
54 #endif /* MITKRAWIMAGEFILEREADER_H_ */
DataCollection - Class to facilitate loading/accessing structured data.
std::vector< itk::SmartPointer< BaseData > > DoRead() override
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
Base class for creating mitk::BaseData objects from files or streams.