7 #ifndef __VTKGDCMIO_SERIESDBLAZYREADER_HPP__ 8 #define __VTKGDCMIO_SERIESDBLAZYREADER_HPP__ 10 #include "vtkGdcmIO/config.hpp" 14 #include <fwData/Image.hpp> 15 #include <fwData/location/Folder.hpp> 16 #include <fwData/location/MultiFiles.hpp> 18 #include <fwDataIO/reader/GenericObjectReader.hpp> 20 #include <gdcmScanner.h> 52 typedef std::vector< std::string > SeriesFilesType;
54 typedef std::map< std::string, SeriesFilesType > MapSeriesType;
59 ::fwDataIO::reader::factory::New< SeriesDBLazyReader >
71 VTKGDCMIO_API
void read()
override;
85 SPTR( ::
fwMedData::SeriesDB ) createSeriesDB( const ::
boost::filesystem::path &dicomDir );
93 void addSeries( const
SPTR( ::
fwMedData::SeriesDB )& seriesDB, const
std::vector<
std::
string >& filenames);
96 double computeZSpacing( const SeriesFilesType& seriesFiles );
99 void fillImage( gdcm::Scanner& scanner, const SeriesFilesType& seriesFiles,
100 const
std::
string& dcmFile, ::
fwData::Image::sptr img );
103 void preprocessImage( const ::
fwData::Image::sptr& img, const SeriesFilesType& files );
106 void fillEquipment( gdcm::Scanner & scanner, const
std::
string & dcmFile,
SPTR( ::
fwMedData::Equipment ) equipment);
109 void fillStudy( gdcm::Scanner & scanner, const
std::
string & dcmFile,
SPTR( ::
fwMedData::Study ) study );
112 void fillPatient( gdcm::Scanner & scanner, const
std::
string & dcmFile,
SPTR( ::
fwMedData::
Patient ) patient );
115 void fillSeries( gdcm::Scanner & scanner, const
std::
string & dcmFile,
SPTR( ::
fwMedData::Series ) series );
118 void scanFiles( gdcm::Scanner& scanner, const
std::vector<
std::
string >& filenames );
126 #endif // __VTKGDCMIO_SERIESDBLAZYREADER_HPP__
This class contains helper to generate Medical Data (SeriesDB, ImageSeries, ...). ...
This class is an interface for class managing job.
Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
This file defines fwCore base macros.
vtkmGdcm reader/writer lib
Reads DICOM data from a directory path in order to create a SeriesDB object in lazy mode...
generic class for all object readers.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
#define fwCoreAllowSharedFromThis()
Generate getSptr and getConstSptr methods.
This class is derived by reader/writer.
Contains the representation of the data objects used in the framework.
This class is derived by reader/writer.
This namespace fwJobs provides jobs management.