|
@@ -8,6 +8,11 @@
|
|
|
#include "CAlignAndCutImage.h"
|
|
#include "CAlignAndCutImage.h"
|
|
|
#include "CFindTemplate.h"
|
|
#include "CFindTemplate.h"
|
|
|
|
|
|
|
|
|
|
+#ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
|
|
|
|
|
+#include "freertos/FreeRTOS.h"
|
|
|
|
|
+#include "freertos/semphr.h"
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
#include <string>
|
|
#include <string>
|
|
|
|
|
|
|
|
using namespace std;
|
|
using namespace std;
|
|
@@ -26,6 +31,10 @@ protected:
|
|
|
std::string FileStoreRefAlignment;
|
|
std::string FileStoreRefAlignment;
|
|
|
float SAD_criteria;
|
|
float SAD_criteria;
|
|
|
bool ownsImageBasis;
|
|
bool ownsImageBasis;
|
|
|
|
|
+#ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
|
|
|
|
|
+ SemaphoreHandle_t AlgROIMutex;
|
|
|
|
|
+ bool PublishAlgROI(const ImageData *image);
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
void SetInitialParameter(void);
|
|
void SetInitialParameter(void);
|
|
|
bool LoadReferenceAlignmentValues(void);
|
|
bool LoadReferenceAlignmentValues(void);
|
|
@@ -35,6 +44,8 @@ public:
|
|
|
CImageBasis *ImageBasis, *ImageTMP;
|
|
CImageBasis *ImageBasis, *ImageTMP;
|
|
|
#ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
|
|
#ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
|
|
|
ImageData *AlgROI;
|
|
ImageData *AlgROI;
|
|
|
|
|
+ esp_err_t SendAlgROIToHTTP(httpd_req_t *req);
|
|
|
|
|
+ ImageData *GetAlgROICopy(void);
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
ClassFlowAlignment(std::vector<ClassFlow *> *lfc);
|
|
ClassFlowAlignment(std::vector<ClassFlow *> *lfc);
|