ANIMA  4.0
animaMCMFileReader.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include <animaMCMImage.h>
5 #include <itkImageIOBase.h>
6 
7 #include <string>
8 #include <animaBaseCompartment.h>
9 
10 #include <AnimaMCMBaseExport.h>
11 
12 namespace anima
13 {
14 
15 // For distinguishing image internal pixel type, used for medInria plugins
16 itk::ImageIOBase::IOComponentType ANIMAMCMBASE_EXPORT GetMCMComponentType(std::string fileName);
17 
18 template <class PixelType, unsigned int ImageDimension>
20 {
21 public:
26  typedef itk::VectorImage <PixelType, ImageDimension> BaseInputImageType;
27  typedef typename BaseInputImageType::Pointer BaseInputImagePointer;
28 
29  MCMFileReader();
31 
32  OutputImagePointer &GetModelVectorImage() {return m_OutputImage;}
33  void SetFileName(std::string fileName) {m_FileName = fileName;}
34 
35  void Update();
36  virtual anima::BaseCompartment::Pointer CreateCompartmentForType(std::string &compartmentType);
37 
38 private:
39  OutputImagePointer m_OutputImage;
40  std::string m_FileName;
41 };
42 
43 } // end namespace anima
44 
45 #include "animaMCMFileReader.hxx"
itk::VectorImage< PixelType, ImageDimension > BaseInputImageType
OutputImageType::Pointer OutputImagePointer
anima::MultiCompartmentModel ModelType
itk::ImageIOBase::IOComponentType ANIMAMCM_EXPORT GetMCMComponentType(std::string fileName)
anima::MCMImage< PixelType, ImageDimension > OutputImageType
OutputImagePointer & GetModelVectorImage()
itk::SmartPointer< Self > Pointer
MultiCompartmentModel: holds several diffusion compartments, ordered by type It also handles weights ...
BaseInputImageType::Pointer BaseInputImagePointer
virtual anima::BaseCompartment::Pointer CreateCompartmentForType(std::string &compartmentType)
void SetFileName(std::string fileName)
itk::SmartPointer< Self > Pointer
Definition: animaMCMImage.h:15
ModelType::Pointer ModelPointer