ClassFlowAlignment.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 :
  11. public ClassFlow
  12. {
  13. protected:
  14. float initialrotate;
  15. bool initialmirror;
  16. bool initialflip;
  17. bool use_antialiasing;
  18. RefInfo References[2];
  19. int anz_ref;
  20. string namerawimage;
  21. bool SaveAllFiles;
  22. CAlignAndCutImage *AlignAndCutImage;
  23. std::string FileStoreRefAlignment;
  24. float SAD_criteria;
  25. void SetInitialParameter(void);
  26. bool LoadReferenceAlignmentValues(void);
  27. void SaveReferenceAlignmentValues();
  28. public:
  29. CImageBasis *ImageBasis, *ImageTMP;
  30. #ifdef ALGROI_LOAD_FROM_MEM_AS_JPG
  31. ImageData *AlgROI;
  32. #endif
  33. ClassFlowAlignment(std::vector<ClassFlow*>* lfc);
  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