为了检测边缘,可以使用以下 HALCON/C++ 算子序列:
HImage Image("file_xyz"); HImage Sobel = Image.SobelAmp("sum_abs",3); HRegion Max = Sobel.Threshold(30,255); HRegion Edges = Max.Skeleton();
一些说明: