12 #ifndef CXIMAGEALGORITHMS_H_ 13 #define CXIMAGEALGORITHMS_H_ 15 #include "cxResourceExport.h" 48 cxResource_EXPORT QRgb
convertToQColor(
unsigned char *colorsPtr,
bool overlay, QColor overlayColor);
49 cxResource_EXPORT
bool isDark(
unsigned char *colorsPtr);
50 cxResource_EXPORT QRgb
modifyOverlayColor(
unsigned char *colorsPtr, QColor overlayColor);
76 typedef std::multimap<QDateTime,T> SortedMap;
79 for (
typename std::map<QString, T>::iterator iter=input.begin(); iter!=input.end(); ++iter)
81 sorted.insert(std::make_pair(iter->second->getAcquisitionTime(), iter->second));
84 std::vector<T> retval;
85 for (
typename SortedMap::iterator iter=sorted.begin(); iter!=sorted.end(); ++iter)
86 retval.push_back(iter->second);
97 typedef std::map<QString, T> DataMap;
98 std::map<QDateTime, DataMap> bin;
100 for (
typename DataMap::iterator iter=input.begin(); iter!=input.end(); ++iter)
103 bin[binTS].insert(*iter);
107 std::vector<T> retval;
109 for (
typename std::map<QDateTime, DataMap>::iterator iter=bin.begin(); iter!=bin.end(); ++iter)
112 std::copy(localSorted.begin(), localSorted.end(), back_inserter(retval));
QRgb modifyOverlayColor(unsigned char *colorsPtr, QColor overlayColor)
ImagePtr resampleImage(PatientModelServicePtr dataManager, ImagePtr image, Transform3D qMd)
Transform3D Transform3D
Transform3D is a representation of an affine 3D transform.
QRgb convertToQColor(unsigned char *colorsPtr, bool overlay, QColor overlayColor)
vtkImageDataPtr cropImage(vtkImageDataPtr input, IntBoundingBox3D cropbox)
boost::shared_ptr< class Image > ImagePtr
vtkImageDataPtr createSlice(ImagePtr image, PLANE_TYPE planeType, Vector3D outputSpacing, Eigen::Array3i outputDimensions, ToolPtr sliceTool, PatientModelServicePtr patientModel, bool applyLUT)
createSlice Creates a 2D slice through a 3D volume. Result slice will be oriented for radiological vi...
bool isDark(unsigned char *colorsPtr)
ImagePtr duplicateImage(PatientModelServicePtr dataManager, ImagePtr image)
std::vector< T > sortOnGroupsAndAcquisitionTime(std::map< QString, T > input)
boost::shared_ptr< class PatientModelService > PatientModelServicePtr
QImage vtkImageDataToQImage(vtkImageDataPtr imageData, bool overlay, QColor overlayColor)
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.
boost::shared_ptr< class Tool > ToolPtr