ClassFlowCNNGeneral.h 1.8 KB

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