ClassFlowDigit.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. ClassFlowAlignment* flowpostalignment;
  22. bool doNeuralNetwork(string time);
  23. bool doAlignAndCut(string time);
  24. void SetInitialParameter(void);
  25. public:
  26. ClassFlowDigit();
  27. ClassFlowDigit(std::vector<ClassFlow*>* lfc);
  28. ClassFlowDigit(std::vector<ClassFlow*>* lfc, ClassFlow *_prev);
  29. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  30. bool doFlow(string time);
  31. string getHTMLSingleStep(string host);
  32. string getReadout();
  33. std::vector<HTMLInfo*> GetHTMLInfo();
  34. void DrawROI(CImageBasis *_zw);
  35. string name(){return "ClassFlowDigit";};
  36. };