1 #ifndef vvImageReader_H
2 #define vvImageReader_H
7 #include "itkCommand.h"
9 #include "vvConstants.h"
11 class vvImageReader : public QThread {
17 void SetInputFilename(const std::string & filename);
18 void SetInputFilenames(const std::vector<std::string> & filenames);
20 vvImage::Pointer GetOutput() {
24 std::string GetLastError() {
28 //====================================================================
31 void Update(LoadedImageType type);
32 void Update(int dim, std::string InputPixelType, LoadedImageType type);
33 //void Extract(int dim, std::string InputPixelType, int slice);
37 //====================================================================
38 std::vector<std::string> mInputFilenames;
39 ///Method used to load the image, see vvConstants.h for definition
40 LoadedImageType mType;
41 itk::Command::Pointer mObserver;
43 std::string mLastError;
45 //====================================================================
46 template<unsigned int VImageDimension>
47 void UpdateWithDim(std::string inputPixelType);
49 //====================================================================
50 /*template<unsigned int VImageDimension>
51 void ExtractWithDim(std::string inputPixelType, int slice);*/
53 //====================================================================
54 template<class InputPixelType, unsigned int VImageDimension>
55 void UpdateWithDimAndInputPixelType();
56 ///Input dimension and pixel type
58 std::string mInputPixelType;
61 vvImage::Pointer mImage;
63 }; // end class vvImageReader
65 #endif /* end #define CLITKvvImageReader_H */