12 #ifndef CXIMAGEALGORITHMS_H_ 13 #define CXIMAGEALGORITHMS_H_ 15 #include "cxResourceExport.h" 58 typedef std::multimap<QDateTime,T> SortedMap;
61 for (
typename std::map<QString, T>::iterator iter=input.begin(); iter!=input.end(); ++iter)
63 sorted.insert(std::make_pair(iter->second->getAcquisitionTime(), iter->second));
66 std::vector<T> retval;
67 for (
typename SortedMap::iterator iter=sorted.begin(); iter!=sorted.end(); ++iter)
68 retval.push_back(iter->second);
79 typedef std::map<QString, T> DataMap;
80 std::map<QDateTime, DataMap> bin;
82 for (
typename DataMap::iterator iter=input.begin(); iter!=input.end(); ++iter)
85 bin[binTS].insert(*iter);
89 std::vector<T> retval;
91 for (
typename std::map<QDateTime, DataMap>::iterator iter=bin.begin(); iter!=bin.end(); ++iter)
94 std::copy(localSorted.begin(), localSorted.end(), back_inserter(retval));
ImagePtr resampleImage(PatientModelServicePtr dataManager, ImagePtr image, Transform3D qMd)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
vtkImageDataPtr cropImage(vtkImageDataPtr input, IntBoundingBox3D cropbox)
boost::shared_ptr< class Image > ImagePtr
ImagePtr duplicateImage(PatientModelServicePtr dataManager, ImagePtr image)
std::vector< T > sortOnGroupsAndAcquisitionTime(std::map< QString, T > input)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
Eigen::Vector3d Vector3D
Vector3D is a representation of a point or vector in 3D.
std::vector< T > sortOnAcquisitionTime(std::map< QString, T > input)
QDateTime extractTimestamp(QString text)
Namespace for all CustusX production code.