1#ifndef CELLUVIEW_GALLERY_H
2#define CELLUVIEW_GALLERY_H
5#include <opencv2/core.hpp>
6#include <opencv2/imgproc.hpp>
7#include <opencv2/imgcodecs.hpp>
8#include "imageProcessor.h"
12#include "cpp_exiftool/src/ExifTool.h"
18#include <unordered_map>
27 void updateImgName(std::string);
29 std::map<std::string, std::string>
getMetadata(std::string =
"");
31 std::string getPathname() {
return pathname; };
32 std::string getCaptureFname() {
return captureFname; };
34 std::list<std::pair<std::string, cv::Mat>>
getCaptures(
bool);
37 std::string getGalleryDisplayFname(
int);
40 void initialiseDirectory(std::string, std::string);
41 void writeMetadata(
frame, std::string);
45 std::string pathname =
"";
46 std::string flatFieldPath =
"";
47 std::string imgName =
"capture";
48 int captureImgCounter = 0;
49 std::string captureFname =
"";
51 int lastHighestIndex = -1;
53 int galleryDisplayIndex = 0;
54 std::string existingCaptureFname;
59 std::string receivedMetadata;
60 std::string MetadataToWrite;
62 ExifTool *et =
new ExifTool();
64 std::map<std::string, std::string> restoredParams;
66 std::vector<std::string> galleryDisplayFname;
void updateIndex()
Definition: gallery.cpp:161
std::map< std::string, std::string > getMetadata(std::string="")
Definition: gallery.cpp:110
void captureFrame(frame, bool flatfield=false, int flatFieldCounter=0)
Definition: gallery.cpp:55
std::list< std::pair< std::string, cv::Mat > > getCaptures(bool)
Definition: gallery.cpp:202
Gallery()
Definition: gallery.cpp:5