模板匹配——金字塔图像计算gen_gauss_pyramid

 

 

 

 

 

 

 

复制代码
** 计算高斯金字塔图像
* 
dev_open_window(0, 0, 800, 600, 'black', WindowHandle)
read_image (Image, 'fix.png')
* 
* 初始化显示
dev_close_window ()
get_image_size (Image, Width, Height)
dev_open_window (0, 0, 512, 512, 'black', WindowID)
set_display_font (WindowID, 16, 'mono', 'true', 'false')
* 
* 计算高斯金字塔
gen_gauss_pyramid (Image, ImagePyramid, 'constant', 0.5)
* 
* 显示所有高斯金字塔图像
count_obj (ImagePyramid, Number)
for Index := 1 to Number by 1
    select_obj (ImagePyramid, Level, Index)
    dev_display (Level)
    disp_message (WindowID, 'Pyramid level ' + (Index), 'window', 12, 12, 'white', 'false')
    if (Index < Number)
        disp_continue_message (WindowID, 'black', 'false')
        stop ()
    endif
    
endfor
复制代码

 

posted @   echo-efun  阅读(157)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
点击右上角即可分享
微信分享提示