ClassFlowAlignment.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #pragma once
  2. #ifndef CLASSFLOWALIGNMENT_H
  3. #define CLASSFLOWALIGNMENT_H
  4. #include "ClassFlow.h"
  5. #include "Helper.h"
  6. #include "CAlignAndCutImage.h"
  7. #include "CFindTemplate.h"
  8. #ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
  9. #include "freertos/FreeRTOS.h"
  10. #include "freertos/semphr.h"
  11. #endif
  12. #include <string>
  13. using namespace std;
  14. class ClassFlowAlignment : public ClassFlow
  15. {
  16. protected:
  17. float initialrotate;
  18. bool initialflip;
  19. bool use_antialiasing;
  20. RefInfo References[2];
  21. int anz_ref;
  22. string namerawimage;
  23. bool SaveAllFiles;
  24. CAlignAndCutImage *AlignAndCutImage;
  25. std::string FileStoreRefAlignment;
  26. float SAD_criteria;
  27. bool ownsImageBasis;
  28. #ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
  29. SemaphoreHandle_t AlgROIMutex;
  30. bool PublishAlgROI(const ImageData *image);
  31. #endif
  32. void SetInitialParameter(void);
  33. bool LoadReferenceAlignmentValues(void);
  34. void SaveReferenceAlignmentValues();
  35. public:
  36. CImageBasis *ImageBasis, *ImageTMP;
  37. #ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
  38. ImageData *AlgROI;
  39. esp_err_t SendAlgROIToHTTP(httpd_req_t *req);
  40. ImageData *GetAlgROICopy(void);
  41. #endif
  42. ClassFlowAlignment(std::vector<ClassFlow *> *lfc);
  43. ~ClassFlowAlignment() override;
  44. CAlignAndCutImage *GetAlignAndCutImage() { return AlignAndCutImage; };
  45. void DrawRef(CImageBasis *_zw);
  46. bool ReadParameter(FILE *pfile, string &aktparamgraph);
  47. bool doFlow(string time);
  48. string getHTMLSingleStep(string host);
  49. string name() { return "ClassFlowAlignment"; };
  50. };
  51. #endif // CLASSFLOWALIGNMENT_H