gtstandardlization.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // Created by lloyd on 2020/9/28.
  3. //
  4. #ifndef GTCVR_GTSTANDARDLIZATION_H
  5. #define GTCVR_GTSTANDARDLIZATION_H
  6. class gtstandardlization {
  7. private:
  8. int MapX;
  9. int MapY;
  10. double MinX;
  11. double MaxX;
  12. double MinY;
  13. double MaxY;
  14. // 偏移量x
  15. double OffsetX;
  16. // 偏移量y
  17. double OffsetY;
  18. public:
  19. std::vector<std::vector<double>> gt_Standard1;
  20. std::vector<std::vector<double>> gt_Standard2;
  21. std::vector<std::vector<int>> mapGT_Standard1;
  22. std::vector<std::vector<int>> mapGT_Standard2;
  23. gtstandardlization();
  24. private:
  25. double x_Standardization(double S, double MinS, double MaxS);
  26. double y_Standardization1(double F, double MinF, double MaxF);
  27. double y_Standardization2(double F, double MaxF);
  28. int formateX(int x);
  29. int formateY(int y);
  30. int optimiNeedCount(std::vector<std::vector<double>> &temp);
  31. public:
  32. /**
  33. * paddingMap gtmap1 gtmap2
  34. */
  35. void paddingMap();
  36. /**
  37. * standardization
  38. * @param _baseparam
  39. */
  40. void standardization(dgns_gtbaseparam *_baseparam);
  41. };
  42. #endif //GTCVR_GTSTANDARDLIZATION_H