12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #pragma once
- #include "ILocalizationManager.h"
- #include "TypeDef.h"
- #include "ILamp.h"
- #include "CManageDB.h"
- using namespace JVision;
- using namespace ns_db;
- namespace ns_pr
- {
- enum PR_OUTPUT_TYPE {
- LOCALIZATION_TYPE,
- CIRCLE_TYPE
- };
-
- struct FIND_OUTPUT_STRUCT
- {
- PR_OUTPUT_TYPE type;
-
- double score;
- double x;
- double y;
- union
- {
- double angle;
- double radius;
- };
- };
- class CPixelLocation
- {
- public:
- CPixelLocation();
-
-
-
-
-
- LONG SearchImageByLocalization(UINT iPrMethod, ImageInfo image, FIND_OUTPUT_STRUCT& stOutOffset);
- LONG EditTemplate(UINT iTemplate);
- private:
- CProduct* m_pCProduct = nullptr;
- ILocalizationManager* m_pLocalizationManager = nullptr;
- bool m_bInitSuccess;
- bool ConvertBMPToImageInfo(const std::string& bmpPath, ImageInfo& imageInfo);
- };
- }
|