Get rid of QPixmap

This commit is contained in:
2021-04-20 23:28:52 +02:00
parent 1ba6a0ff19
commit f173e48a26
7 changed files with 38 additions and 57 deletions
+2
View File
@@ -7,6 +7,7 @@
#include <math.h>
#include <memory.h>
#include <opencv2/imgproc.hpp>
#include <QImage>
class Peak
{
@@ -49,6 +50,7 @@ public:
RawImage(int w, int h, ImgType type);
RawImage(cv::Mat &img);
RawImage(const RawImage &d);
RawImage(const QImage &img);
bool imageStats(double *mean, double *stdDev, double *median, double *min, double *max) const;
void rect(int &x, int &y, int w, int h, std::vector<double> &r) const;
int findPeaks(double background, double distance, std::vector<Peak> &peaks) const;