- dev_update_window ('off')
- read_image (Bond, 'die/die_03')
- threshold (Bond, Bright, 100, 255)
- shape_trans (Bright, Die, 'rectangle2')
- reduce_domain (Bond, Die, DieGrey)
- threshold (DieGrey, Wires, 0, 50)
- fill_up_shape (Wires, WiresFilled, 'area', 1, 100)
- stop ()
- opening_circle (WiresFilled, Balls, 15.5)
- stop ()
- connection (Balls, SingleBalls)
- select_shape (SingleBalls, IntermediateBalls, 'circularity', 'and', 0.85, 1.0)
- sort_region (IntermediateBalls, FinalBalls, 'first_point', 'true', 'column')
- smallest_circle (FinalBalls, Row, Column, Radius)
复制代码 |