ClassFlowDigit.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #pragma once
  2. #include "ClassFlowImage.h"
  3. #include "ClassFlowAlignment.h"
  4. #include "Helper.h"
  5. #include <string>
  6. struct roi {
  7. int posx, posy, deltax, deltay;
  8. int resultklasse;
  9. string name;
  10. CImageBasis *image, *image_org;
  11. roi* next;
  12. };
  13. class ClassFlowDigit :
  14. public ClassFlowImage
  15. {
  16. protected:
  17. std::vector<roi*> ROI;
  18. string cnnmodelfile;
  19. int modelxsize, modelysize;
  20. bool SaveAllFiles;
  21. string NameDigit;
  22. int DecimalShift;
  23. bool DecimalShiftEnabled;
  24. ClassFlowAlignment* flowpostalignment;
  25. bool doNeuralNetwork(string time);
  26. bool doAlignAndCut(string time);
  27. void SetInitialParameter(void);
  28. public:
  29. ClassFlowDigit();
  30. ClassFlowDigit(std::vector<ClassFlow*>* lfc);
  31. ClassFlowDigit(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
  32. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  33. bool doFlow(string time);
  34. string getHTMLSingleStep(string host);
  35. string getReadout();
  36. std::vector<HTMLInfo*> GetHTMLInfo();
  37. void DrawROI(CImageBasis *_zw);
  38. string name(){return "ClassFlowDigit";};
  39. };