39 lines
1.6 KiB
C++
39 lines
1.6 KiB
C++
#pragma once
|
|
#include<halconcpp/HalconCpp.h>
|
|
#include<halconcpp/HDevThread.h>
|
|
|
|
//#include <opencv2/opencv.hpp>
|
|
//#include <opencv2/imgcodecs/imgcodecs.hpp>
|
|
|
|
using namespace HalconCpp;
|
|
|
|
#if 1 ºó¶Ëµ÷Óú¯Êý
|
|
|
|
//extern "C" __declspec(dllexport) void _stdcall _984_14_JP(HObject ho_InputImage, HTuple hv_Path, HTuple * hv_Out_circle1, HTuple * hv_Out_circle2,HTuple * hv_Make);
|
|
extern "C" __declspec(dllexport) void _stdcall Measure(HObject ho_Image1, HObject ho_Image2, HTuple hv_in_XResolution, HTuple hv_in_YResolution,
|
|
HTuple * hv_Out_HoleArea, HTuple * hv_Out_Distance);
|
|
#endif
|
|
|
|
void gen_arrow_contour_xld(HObject* ho_Arrow, HTuple hv_Row1, HTuple hv_Column1,
|
|
HTuple hv_Row2, HTuple hv_Column2, HTuple hv_HeadLength, HTuple hv_HeadWidth);
|
|
void rake(HObject ho_Image, HObject* ho_Regions, HTuple hv_InParameters, HTuple* hv_ResultRow,
|
|
HTuple* hv_ResultColumn);
|
|
#if 1 halconµ÷Óú¯Êý
|
|
void _984_Create_Shape_Model(HTuple hv_Path1, HTuple* hv_Make);
|
|
void pts_to_best_circle(HObject* ho_Circle, HTuple hv_Rows, HTuple hv_Cols, HTuple hv_ArcType,
|
|
HTuple hv_ActiveNum, HTuple* hv_RowCenter, HTuple* hv_ColCenter, HTuple* hv_Radius,
|
|
HTuple* hv_StartPhi, HTuple* hv_EndPhi, HTuple* hv_PointOrder, HTuple* hv_ArcAngle);
|
|
void region_to_spoke(HObject ho_Region, HTuple hv_Offset, HTuple* hv_SpokeRows,
|
|
HTuple* hv_SpokeCols);
|
|
void spoke(HObject ho_Image, HObject* ho_Regions, HTuple hv_Elements, HTuple hv_DetectHeight,
|
|
HTuple hv_DetectWidth, HTuple hv_Sigma, HTuple hv_Threshold, HTuple hv_Transition,
|
|
HTuple hv_Select, HTuple hv_ROIRows, HTuple hv_ROICols, HTuple hv_Direct, HTuple* hv_ResultRow,
|
|
HTuple* hv_ResultColumn, HTuple* hv_ArcType);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|