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):所绘区域类型,如填充或边界


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM