Halcom 发表于 2020-2-9 20:40:50

形态学算子:补集complement

the complement of a region:
read_image (Images, ['ic0','ic1','ic2','ic3'])
channels_to_image (Images, Ic)
select_obj (Images, Input1, 1)
select_obj (Images, Input2, 2)
select_obj (Images, Input3, 3)
select_obj (Images, Input4, 4)
stop ()
mean_n (Ic, ImageMean)
stop ()
threshold (Images, Darks, 0, 40)
union1 (Darks, Dark)
fill_up (Dark, DarkFilled)
stop ()
complement (DarkFilled, Back)
stop ()





页: [1]
查看完整版本: 形态学算子:补集complement