1 Intersection交集
dev_open_window(0,0,512,512,'black',WindowHandle)
gen_circle(Circle1,114.5,127.5,89.3588)
gen_circle(Circle2,163.5,171.5,94.8472)
intersection(Circle1,Circle2,RegionIntersection)
dev_clear_window()
dev_display(RegionIntersection)
2 Differece 补集
* 获取区域的补集
dev_open_window(0,0,512,512,'black',WindowHandle)
gen_circle(Cricle1,122.5,126.5,69.7711)
gen_circle (Cricle2, 184.5, 179.5, 73.9256)
difference(Cricle1,Cricle2,RegionDifference)
dev_clear_window()
dev_display(RegionDifference)
3 Complement反选
dev_open_window(0,0,512,512,'black',WindowHandle)
gen_circle(Cricle1,224.5,250.5,131.727)
dev_clear_window()
complement(Cricle1,RegionComplement)
获取两区域合并后的区域与两区域交集的补集
*获取两区域合并后的区域与两区域交集的补集
dev_open_window(0,0,512,512,'black',WindowHandle)
gen_circle(Cricle1,114.5,127.5,89.3588)
gen_circle(Cricle2,163.5,171.5,94.8472)
symm_difference(Cricle1,Cricle2,RegionDifference)
dev_clear_window()
dev_display(RegionDifference)
4 Union 合并
dev_open_window(0,0,512,512,'black',WindowHandle)
read_image(Image,'fabrik')
dev_set_colored(12)
threshold(Image,Region,128,255)
connection(Region,ConnectedRegions)
union1(ConnectedRegions,RegionUnion)
dev_clear_window()
dev_display(Image)
dev_display(RegionUnion)
dev_open_window(0,0,512,512,'black',WindowHandle)
dev_set_colored(12)
gen_circle(Circle1,101.5,102.5,63.2456)
gen_circle(Circle2,295.5,285.5,75.9276)
union2(Circle1,Circle2,RegionUnion)
dev_clear_window()
dev_display(RegionUnion)