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);
79 typedef std::multimap<QDateTime,T> SortedMap;
82 for (
typename std::map<QString, T>::iterator iter=input.begin(); iter!=input.end(); ++iter)
84 sorted.insert(std::make_pair(iter->second->getAcquisitionTime(), iter->second));
87 std::vector<T> retval;
88 for (
typename SortedMap::iterator iter=sorted.begin(); iter!=sorted.end(); ++iter)
89 retval.push_back(iter->second);
100 typedef std::map<QString, T> DataMap;
101 std::map<QDateTime, DataMap> bin;
103 for (
typename DataMap::iterator iter=input.begin(); iter!=input.end(); ++iter)
106 bin[binTS].insert(*iter);
110 std::vector<T> retval;
112 for (
typename std::map<QDateTime, DataMap>::iterator iter=bin.begin(); iter!=bin.end(); ++iter)
115 std::copy(localSorted.begin(), localSorted.end(), back_inserter(retval));