OTSClassifyOnCurveCompEng.h 913 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include <vector>
  3. #include "OTSSTDLib.h"
  4. using namespace std;
  5. namespace OTSClassifyEngine
  6. {
  7. class __declspec(dllexport) CClassifyOnCurveCompEng
  8. {
  9. public:
  10. CClassifyOnCurveCompEng(int iStartChannel, CSTDLibPtr stdLib); // constructor
  11. virtual ~CClassifyOnCurveCompEng(); // detractor
  12. int GetMatchingSTDId( CPosXrayPtr posxray, double& dValue);
  13. CStandardItemPtr GetMatchingSTD( CPosXrayPtr posxray, double& dValue);
  14. protected:
  15. double GetCosValue( CPosXrayPtr posxray, CPosXrayPtr posXray1, int iDataLen1);
  16. double GetStdEvp( CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1);
  17. void GetElementChannel(const vector<CString>& vecstrItemNames, vector<int>& veciChannel);
  18. void GetElementChannel(CString strElementName, vector<int>& veciChannel);
  19. void AddChannel(double dEnergy, vector<int>& veciChannel);
  20. private:
  21. int m_iStartChannel;
  22. CSTDLibPtr m_stdLib;
  23. };
  24. }