1.交集:两个ROI相交的部分
dev_open_window (0, 0, 512, 512, 'black', WindowHandle)
read_image (Image, 'clip')
threshold (Image, Region, 0, 128)* 交集
intersection (Circle1, Circle2, RegionIntersection)
最终效果如下图所示:
2.差集:计算两个区域的差值
* 差集
difference (Circle1, Circle2, RegionDifference)最终效果如下图所示:
3.反选:选中输入区以外的区域
* 反选
complement (Circle1, RegionComplement)最终效果如下图所示: