Add thumbnails

This commit is contained in:
2022-04-18 07:16:46 +02:00
parent 2c95364fc4
commit 4e6230eef2
14 changed files with 347 additions and 39 deletions
+6
View File
@@ -9,6 +9,9 @@
#include <opencv2/imgproc.hpp>
#include <QImage>
const int THUMB_SIZE = 128;
const int THUMB_SIZE_BORDER = 138;
class Peak
{
uint32_t m_v;
@@ -42,6 +45,7 @@ protected:
double m_min;
double m_max;
double m_mad;
float m_thumbAspect;
public:
enum ImgType
{
@@ -72,6 +76,8 @@ public:
uint32_t norm() const;
void* data();
const void* data() const;
void convertToThumbnail();
float thumbAspect() const;
};
#endif // RAWIMAGE_H