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