// // Created by lloyd on 2020/9/28. // #ifndef GTCVR_GTSTANDARDLIZATION_H #define GTCVR_GTSTANDARDLIZATION_H class gtstandardlization { private: int MapX; int MapY; double MinX; double MaxX; double MinY; double MaxY; // 偏移量x double OffsetX; // 偏移量y double OffsetY; public: std::vector> gt_Standard1; std::vector> gt_Standard2; std::vector> mapGT_Standard1; std::vector> mapGT_Standard2; gtstandardlization(); private: double x_Standardization(double S, double MinS, double MaxS); double y_Standardization1(double F, double MinF, double MaxF); double y_Standardization2(double F, double MaxF); int formateX(int x); int formateY(int y); int optimiNeedCount(std::vector> &temp); public: /** * paddingMap gtmap1 gtmap2 */ void paddingMap(); /** * standardization * @param _baseparam */ void standardization(dgns_gtbaseparam *_baseparam); }; #endif //GTCVR_GTSTANDARDLIZATION_H