12345678910111213141516171819202122232425 |
- #pragma once
- #include <vector>
- #include "OTSSTDLib.h"
- using namespace std;
- namespace OTSClassifyEngine
- {
- class __declspec(dllexport) CClassifyOnCurveCompEng
- {
- public:
- CClassifyOnCurveCompEng(int iStartChannel, CSTDLibPtr stdLib); // constructor
- virtual ~CClassifyOnCurveCompEng(); // detractor
- int GetMatchingSTDId( CPosXrayPtr posxray, double& dValue);
- CStandardItemPtr GetMatchingSTD( CPosXrayPtr posxray, double& dValue);
- protected:
- double GetCosValue( CPosXrayPtr posxray, CPosXrayPtr posXray1, int iDataLen1);
- double GetStdEvp( CPosXrayPtr posxray, DWORD* pXrayData1, int iDataLen1);
- void GetElementChannel(const vector<CString>& vecstrItemNames, vector<int>& veciChannel);
- void GetElementChannel(CString strElementName, vector<int>& veciChannel);
- void AddChannel(double dEnergy, vector<int>& veciChannel);
- private:
- int m_iStartChannel;
- CSTDLibPtr m_stdLib;
- };
- }
|