ClassFlowCNNGeneral.h 1.6 KB

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