ClassFlowAnalog.h 836 B

123456789101112131415161718192021222324252627282930313233343536
  1. #pragma once
  2. #include "ClassFlowImage.h"
  3. // #include "CTfLiteClass.h"
  4. struct roianalog {
  5. int posx, posy, deltax, deltay;
  6. float result;
  7. string name;
  8. };
  9. class ClassFlowAnalog :
  10. public ClassFlowImage
  11. {
  12. protected:
  13. std::vector<roianalog*> ROI;
  14. string cnnmodelfile;
  15. int modelxsize, modelysize;
  16. int ZeigerEval(float zahl, int ziffer_vorgaenger);
  17. public:
  18. ClassFlowAnalog();
  19. ClassFlowAnalog(std::vector<ClassFlow*>* lfc);
  20. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  21. bool doFlow(string time);
  22. string getHTMLSingleStep(string host);
  23. string getReadout();
  24. bool doNeuralNetwork(string time);
  25. bool doAlignAndCut(string time);
  26. std::vector<HTMLInfo*> GetHTMLInfo();
  27. int AnzahlROIs(){return ROI.size();};
  28. string name(){return "ClassFlowAnalog";};
  29. };