close

Sample  

 

read_image(Image,'D:/Study/Halcon/異域檢測/Sample.jpg')
decompose3(Image, Image1, Image2, Image3)
mean_image(Image3, ImageMean, 20, 20)
sub_image(Image1,ImageMean,ImageSub, 2, 130)
gray_range_rect(ImageSub, ImageResult, 7, 7)
threshold(ImageResult,reg,0,120)
connection(reg, ConnectedRegions1)
opening_circle(ConnectedRegions1, RegionOpening1, 3.5)
union1(RegionOpening1, RegionUnion)
closing_circle(RegionUnion, RegionClosing, 10)
fill_up(RegionClosing, RegionFillUp)
gen_contour_region_xld(RegionFillUp, Contours, 'border')
smooth_contours_xld(Contours, SmoothedContours, 31)

 

 

arrow
arrow
    文章標籤
    Halcon
    全站熱搜

    Rh 發表在 痞客邦 留言(0) 人氣()