ClassFlowAlignment.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #include <string>
  9. using namespace std;
  10. class ClassFlowAlignment : public ClassFlow
  11. {
  12. protected:
  13. float initialrotate;
  14. bool initialflip;
  15. bool use_antialiasing;
  16. RefInfo References[2];
  17. int anz_ref;
  18. string namerawimage;
  19. bool SaveAllFiles;
  20. CAlignAndCutImage *AlignAndCutImage;
  21. std::string FileStoreRefAlignment;
  22. float SAD_criteria;
  23. bool ownsImageBasis;
  24. void SetInitialParameter(void);
  25. bool LoadReferenceAlignmentValues(void);
  26. void SaveReferenceAlignmentValues();
  27. public:
  28. CImageBasis *ImageBasis, *ImageTMP;
  29. #ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
  30. ImageData *AlgROI;
  31. #endif
  32. ClassFlowAlignment(std::vector<ClassFlow *> *lfc);
  33. ~ClassFlowAlignment() override;
  34. CAlignAndCutImage *GetAlignAndCutImage() { return AlignAndCutImage; };
  35. void DrawRef(CImageBasis *_zw);
  36. bool ReadParameter(FILE *pfile, string &aktparamgraph);
  37. bool doFlow(string time);
  38. string getHTMLSingleStep(string host);
  39. string name() { return "ClassFlowAlignment"; };
  40. };
  41. #endif // CLASSFLOWALIGNMENT_H