Medical Imaging Interaction Toolkit  2024.06.00
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  };
48 
49 } // namespace mitk
50 
51 #endif
mitk::RawImageFileReaderService::RawImageFileReaderService
RawImageFileReaderService()
mitk::RawImageFileReaderService::FLOAT
@ FLOAT
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::RawImageFileReaderService::UINT
@ UINT
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::RawImageFileReaderService::UCHAR
@ UCHAR
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::RawImageFileReaderService::SINT
@ SINT
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::RawImageFileReaderService::USHORT
@ USHORT
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::RawImageFileReaderService::SSHORT
@ SSHORT
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::AbstractFileReader
Base class for creating mitk::BaseData objects from files or streams.
Definition: mitkAbstractFileReader.h:42
mitk::RawImageFileReaderService::EndianityType
EndianityType
Definition: Core/src/IO/mitkRawImageFileReader.h:31
mitk::RawImageFileReaderService::DoRead
std::vector< itk::SmartPointer< BaseData > > DoRead() override
itk::SmartPointer< Self >
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::RawImageFileReaderService
Definition: Core/src/IO/mitkRawImageFileReader.h:24
mitk::RawImageFileReaderService::SCHAR
@ SCHAR
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitkAbstractFileReader.h
mitk::RawImageFileReaderService::LITTLE
@ LITTLE
Definition: Core/src/IO/mitkRawImageFileReader.h:31
mitk::RawImageFileReaderService::IOPixelType
IOPixelType
Definition: Core/src/IO/mitkRawImageFileReader.h:28
mitk::RawImageFileReaderService::BIG
@ BIG
Definition: Core/src/IO/mitkRawImageFileReader.h:31
mitk::AbstractFileReader::Read
std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
mitk::RawImageFileReaderService::DOUBLE
@ DOUBLE
Definition: Core/src/IO/mitkRawImageFileReader.h:28