ClassFlowAnalog.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #pragma once
  2. #include "ClassFlowImage.h"
  3. #include "ClassFlowAlignment.h"
  4. // #include "CTfLiteClass.h"
  5. struct roianalog {
  6. int posx, posy, deltax, deltay;
  7. float result;
  8. CImageBasis *image, *image_org;
  9. string name;
  10. };
  11. struct analog {
  12. string name;
  13. std::vector<roianalog*> ROI;
  14. };
  15. class ClassFlowAnalog :
  16. public ClassFlowImage
  17. {
  18. protected:
  19. // std::vector<roianalog*> ROI;
  20. std::vector<analog*> ANALOG;
  21. string cnnmodelfile;
  22. int modelxsize, modelysize;
  23. int ZeigerEval(float zahl, int ziffer_vorgaenger);
  24. bool SaveAllFiles;
  25. ClassFlowAlignment* flowpostalignment;
  26. void SetInitialParameter(void);
  27. public:
  28. bool extendedResolution;
  29. ClassFlowAnalog(std::vector<ClassFlow*>* lfc);
  30. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  31. bool doFlow(string time);
  32. string getHTMLSingleStep(string host);
  33. string getReadout(int _analog);
  34. void DrawROI(CImageBasis *_zw);
  35. bool doNeuralNetwork(string time);
  36. bool doAlignAndCut(string time);
  37. std::vector<HTMLInfo*> GetHTMLInfo();
  38. int AnzahlROIs(int _analog);
  39. int getAnzahlANALOG();
  40. analog* GetANALOG(int _analog);
  41. analog* GetANALOG(string _name, bool _create);
  42. analog* FindANALOG(string _name_number);
  43. string getNameANALOG(int _analog);
  44. void UpdateNameNumbers(std::vector<std::string> *_name_numbers);
  45. string name(){return "ClassFlowAnalog";};
  46. };