12 #ifndef CXDICOMCONVERTER_H_ 13 #define CXDICOMCONVERTER_H_ 16 #include "org_custusx_dicom_Export.h" 17 class ctkDICOMDatabase;
37 void setDicomDatabase(ctkDICOMDatabase* database);
38 ImagePtr convertToImage(QString seriesUid);
41 QString generateUid(DicomImageReaderPtr reader);
42 QString generateName(DicomImageReaderPtr reader);
43 std::map<double, ImagePtr> sortImagesAlongDirection(std::vector<ImagePtr> images,
Vector3D e_sort);
44 ImagePtr mergeSlices(std::map<double, ImagePtr> sorted)
const;
45 double getMeanSliceDistance(std::map<double, ImagePtr> sorted)
const;
46 bool slicesFormRegularGrid(std::map<double, ImagePtr> sorted,
Vector3D e_sort)
const;
48 ImagePtr createCxImageFromDicomFile(QString filename,
bool ignoreLocalizerImages);
49 std::vector<ImagePtr> createImages(QStringList files);
50 QString convertToValidName(QString text)
const;
52 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.
Namespace for all CustusX production code.