33 #ifndef CXDICOMCONVERTER_H_
34 #define CXDICOMCONVERTER_H_
37 #include "org_custusx_dicom_Export.h"
38 class ctkDICOMDatabase;
58 void setDicomDatabase(ctkDICOMDatabase* database);
59 ImagePtr convertToImage(QString seriesUid);
64 std::map<double, ImagePtr> sortImagesAlongDirection(std::vector<ImagePtr> images,
Vector3D e_sort);
65 ImagePtr mergeSlices(std::map<double, ImagePtr> sorted)
const;
66 double getMeanSliceDistance(std::map<double, ImagePtr> sorted)
const;
67 bool slicesFormRegularGrid(std::map<double, ImagePtr> sorted,
Vector3D e_sort)
const;
69 ImagePtr createCxImageFromDicomFile(QString filename,
bool ignoreLocalizerImages);
70 std::vector<ImagePtr> createImages(QStringList files);
71 QString convertToValidFilename(QString text)
const;
73 ctkDICOMDatabase* mDatabase;
boost::shared_ptr< class Image > ImagePtr
boost::shared_ptr< class DicomImageReader > DicomImageReaderPtr
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.