其他分享
首页 > 其他分享> > 51、reduce_domain对耗时的影响

51、reduce_domain对耗时的影响

作者:互联网

图像由reduce_domain截出来的ROI进行图像均值mean_image以及转换灰度图rgb1_to_gray所用耗时跟对整张图像进行相同处理的耗时几乎一样.

 

read_image (Mode1, 'Mode1.bmp')

*整张图像均值计时:13ms

count_seconds(Start)

mean_image (Mode1, ImageMean0, 40,40)

count_seconds(End)

AllImg := End - Start

*单个小窗均值计时8ms

gen_rectangle1 (ROI_0, 816.73, 1692.87, 853.696, 1738.82)

reduce_domain (Mode1, ROI_0, ImageReduced)

count_seconds(Start)

mean_image (ImageReduced, ImageMean1, 40,40)

count_seconds(End)

OneWin := End - Start

*20个小窗一起均值计时8ms

read_region (Region, '5678.reg')

reduce_domain (Mode1, Region, ImageReduced1)

count_seconds(Start)

mean_image (ImageReduced1, ImageMean2, 40,40)

count_seconds(End)

AllWin := End - Start

标签:count,domain,End,Mode1,seconds,reduce,51,40,Start
来源: https://www.cnblogs.com/ihh2021/p/16345652.html