You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.5 KiB

1 year ago
  1. #pragma once
  2. #include <fstream>
  3. #include <functional>
  4. #include <iostream>
  5. #include <list>
  6. #include <map>
  7. #include <memory>
  8. #include <set>
  9. #include <sstream>
  10. #include <string>
  11. #include <vector>
  12. namespace a8k_opt_algo {
  13. using namespace std;
  14. /***********************************************************************************************************************
  15. * *
  16. ***********************************************************************************************************************/
  17. class OptAlgoPreProcessResult {
  18. public:
  19. bool scanAgain;
  20. int32_t suggestScanGain;
  21. };
  22. void T_A8kOptAlgoPreProcess(vector<float> ogigin_val, //
  23. int32_t now_scan_gain, //
  24. int32_t expectResultRangeStart, //
  25. int32_t expectResultRangeEnd, //
  26. OptAlgoPreProcessResult& result);
  27. void F_A8kOptAlgoPreProcess(vector<float> ogigin_val, //
  28. int32_t now_scan_gain, //
  29. int32_t expectResultRangeStart, //
  30. int32_t expectResultRangeEnd, //
  31. OptAlgoPreProcessResult& result);
  32. /***********************************************************************************************************************
  33. * *
  34. ***********************************************************************************************************************/
  35. class PeakInfo {
  36. public:
  37. bool find_peak; // 是否找到峰
  38. float area; // 峰面积
  39. int peak_pos; // 峰位置
  40. int peak_start_pos; // 峰开始位置
  41. int peak_end_pos; // 峰结束位置
  42. };
  43. class OptAlgoResult {
  44. public:
  45. /**
  46. * @brief
  47. */
  48. vector<float> displayData; // 250 压缩后的数据
  49. /**
  50. * @brief
  51. */
  52. PeakInfo pin040; // 峰040的信息
  53. PeakInfo pin080; // 峰080的信息
  54. PeakInfo pin120; // 峰120的信息
  55. PeakInfo pin160; // 峰160的信息
  56. PeakInfo pin200; // 峰200的信息
  57. };
  58. void A8kOptAlgoProcess(vector<float> ogigin_val, OptAlgoResult& result);
  59. } // namespace a8k_opt_algo