ClassFlowCNNGeneral.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #ifndef __CLASSCNNGENERAL__
  2. #define __CLASSCNNGENERAL__
  3. #include"ClassFlowDefineTypes.h"
  4. #include "ClassFlowAlignment.h"
  5. enum t_CNNType {
  6. AutoDetect,
  7. Analogue,
  8. Digital,
  9. DigitalHyprid,
  10. DigitalHyprid10,
  11. DoubleHyprid10,
  12. Digital100,
  13. None
  14. };
  15. class ClassFlowCNNGeneral :
  16. public ClassFlowImage
  17. {
  18. protected:
  19. t_CNNType CNNType;
  20. std::vector<general*> GENERAL;
  21. float CNNGoodThreshold;
  22. string cnnmodelfile;
  23. int modelxsize, modelysize, modelchannel;
  24. bool isLogImageSelect;
  25. string LogImageSelect;
  26. ClassFlowAlignment* flowpostalignment;
  27. // ClassFlowPostProcessing *flowpostprocessing = NULL;
  28. bool SaveAllFiles;
  29. // bool extendedResolution;
  30. int ZeigerEval(float zahl, int ziffer_vorgaenger);
  31. int ZeigerEvalHybrid(float zahl, float zahl_vorgaenger, int eval_vorgaenger);
  32. bool doNeuralNetwork(string time);
  33. bool doAlignAndCut(string time);
  34. bool getNetworkParameter();
  35. public:
  36. ClassFlowCNNGeneral(ClassFlowAlignment *_flowalign, t_CNNType _cnntype = AutoDetect);
  37. bool ReadParameter(FILE* pfile, string& aktparamgraph);
  38. bool doFlow(string time);
  39. string getHTMLSingleStep(string host);
  40. string getReadout(int _analog, bool _extendedResolution = false, int prev = -1);
  41. void DrawROI(CImageBasis *_zw);
  42. std::vector<HTMLInfo*> GetHTMLInfo();
  43. int getAnzahlGENERAL();
  44. general* GetGENERAL(int _analog);
  45. general* GetGENERAL(string _name, bool _create);
  46. general* FindGENERAL(string _name_number);
  47. string getNameGENERAL(int _analog);
  48. bool isExtendedResolution(int _number = 0);
  49. void UpdateNameNumbers(std::vector<std::string> *_name_numbers);
  50. t_CNNType getCNNType(){return CNNType;};
  51. string name(){return "ClassFlowCNNGeneral";};
  52. };
  53. #endif