7 #include <dcmtk/config/osconfig.h> 8 #include <dcmtk/dcmnet/diutil.h> 9 #include <dcmtk/dcmdata/dcfilefo.h> 10 #include <dcmtk/dcmdata/dcdeftag.h> 11 #include <dcmtk/dcmimgle/dcmimage.h> 13 #include "fwDicomIOFilter/helper/Filter.hpp" 14 #include "fwDicomIOFilter/registry/macros.hpp" 15 #include "fwDicomIOFilter/exceptions/FilterFailure.hpp" 16 #include "fwDicomIOFilter/splitter/TagValueSplitter.hpp" 17 #include "fwDicomIOFilter/splitter/ImageDimensionsSplitter.hpp" 28 "Split instances according to image dimensions.";
59 const ::fwMedData::DicomSeries::sptr& series, const ::fwLog::Logger::sptr& logger)
const 61 DicomSeriesContainerType result;
62 result.push_back(series);
65 auto columnsSplitter = ::fwDicomIOFilter::splitter::TagValueSplitter::New();
66 columnsSplitter->setTag(DCM_Columns);
70 auto rowsSplitter = ::fwDicomIOFilter::splitter::TagValueSplitter::New();
71 rowsSplitter->setTag(DCM_Rows);
FWDICOMIOFILTER_API ImageDimensionsSplitter(::fwDicomIOFilter::IFilter::Key key)
Constructor.
static const std::string s_FILTER_NAME
Filter name.
Filter that uses the image dimensions to split the instances.
fwDicomIOFilter contains filters used to pre-process images before reading.
static FWDICOMIOFILTER_API bool applyFilter(DicomSeriesContainerType &dicomSeriesContainer,::fwDicomIOFilter::IFilter::sptr filter, bool forcedApply=false, const ::fwLog::Logger::sptr &logger=::fwLog::Logger::New())
Apply a filter to the DicomSeries.
virtual FWDICOMIOFILTER_API std::string getDescription() const override
Return the description of the filter.
Key class used to restrict access to Filter construction. See http://www.drdobbs.com/184402053.
virtual FWDICOMIOFILTER_API ~ImageDimensionsSplitter()
Destructor.
static const std::string s_FILTER_DESCRIPTION
Filter description.
virtual FWDICOMIOFILTER_API std::string getName() const override
Return the name of the filter.
virtual FWDICOMIOFILTER_API DicomSeriesContainerType apply(const ::fwMedData::DicomSeries::sptr &series, const ::fwLog::Logger::sptr &logger) const override
Override.
Base class for Dicom instance splitter.