Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
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 {
31  {
32  public:
35 
37  typedef enum { LITTLE, BIG } EndianityType;
38 
46 
47  protected:
50 
59  std::vector<itk::SmartPointer<BaseData>> DoRead() override;
60 
62 
63  private:
74  template <typename TPixel, unsigned int VImageDimensions>
75  mitk::BaseData::Pointer TypedRead(const std::string &path, EndianityType endianity, int *size);
76 
77  RawImageFileReaderService *Clone() const override;
78  };
79 
80 } // namespace mitk
81 
82 #endif
Base class for creating mitk::BaseData objects from files or streams.
std::vector< itk::SmartPointer< BaseData > > Read() override
Read data and create a list of BaseData objects.
Reader for raw (headerless) binary image files.
RawImageFileReaderService()
Construct and register the raw image reader service.
IOPixelType
Supported pixel types for raw image data.
std::vector< itk::SmartPointer< BaseData > > DoRead() override
Read a raw binary image file based on the configured options.
RawImageFileReaderService(const RawImageFileReaderService &other)
Copy constructor.
EndianityType
Byte order of the raw image data.
Find image slices visible on a given plane.