1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- //
- // 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<std::vector<double>> gt_Standard1;
- std::vector<std::vector<double>> gt_Standard2;
- std::vector<std::vector<int>> mapGT_Standard1;
- std::vector<std::vector<int>> 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<std::vector<double>> &temp);
- public:
- /**
- * paddingMap gtmap1 gtmap2
- */
- void paddingMap();
- /**
- * standardization
- * @param _baseparam
- */
- void standardization(dgns_gtbaseparam *_baseparam);
- };
- #endif //GTCVR_GTSTANDARDLIZATION_H
|