paint_region算子

*加载图片
read_image(Image,'monkey')
*生成矩形区域 gen_rectangle1(Rectangle,
100.0,100.0,300.0,300.0) * paint a white rectangle
*在图片的对应区域的位置,把所有像素点都设置为某个像素值,这里是设置为255.0,即白色 paint_region(Rectangle,Image,ImageResult,
255.0,'fill')

==================================================

paint_region ( Region, Image : ImageResult :  Grayval, Type  : )

 函数作用:

绘制region到image内

 参数列表:
Region(in):绘入图像内的区域

Image(in):包含绘入区域的图像
ImageResult(out):结果图像

Grayval(in):期望的区域灰度值

Type(in):所绘区域类型,如填充或边界

posted @ 2020-08-09 09:43  白菜小腾  阅读(3135)  评论(0)    收藏  举报