find_local_deformable_model_three_squirrel.hdev代码尝试修改
来源:互联网 发布:天通银哪个软件 编辑:程序博客网 时间:2024/06/05 05:54
dev_update_off ()read_image (ModelImage, 'ref2.tif')rgb1_to_gray (ModelImage,ModelImage )dev_close_window ()dev_open_window_fit_image (ModelImage, 0, 0, -1, -1, WindowHandle)set_display_font (WindowHandle, 16, 'mono', 'true', 'false')* * Create and display the local deformable modelcreate_local_deformable_model (ModelImage, 'auto', rad(-15), rad(30), 'auto', 1, 1, 'auto', 1, 1, 'auto', 'none', 'use_polarity', [15,35], 'auto', [], [], ModelID)get_deformable_model_contours (ModelContours, ModelID, 1)area_center (ModelImage, Area, Row, Column)hom_mat2d_identity (HomMat2DIdentity)hom_mat2d_translate (HomMat2DIdentity, Row, Column, HomMat2DTranslate)affine_trans_contour_xld (ModelContours, ContoursAffinTrans, HomMat2DTranslate)dev_set_line_width (2)dev_set_color ('yellow')dev_display (ModelImage)dev_display (ContoursAffinTrans)disp_message (WindowHandle, 'Model image and contours', 'window', 12, 12, 'black', 'true')disp_continue_message (WindowHandle, 'black', 'true')stop ()* Smoothness := 19NumImages := 5for Index := 2 to NumImages by 1 read_image (Image, Index+'.tif') dev_resize_window_fit_image (Image, 0, 0, -1, -1) dev_display (Image) disp_message (WindowHandle, 'Search ...', 'window', 12, 12, 'black', 'true') count_seconds (S1) * Find the model in the deformed search image. * As result, the rectified image, the respective * vector field, and the found contours are queried. find_local_deformable_model (Image, ImageRectified, VectorField, DeformedContours, ModelID, rad(-5), rad(18), 1, 1, 1, 1, 0.78, 0, 0, 0, 0.45, ['image_rectified','vector_field','deformed_contours'], ['deformation_smoothness','expand_border','subpixel'], [Smoothness,0,0], Score, Row, Column) count_seconds (S2) Time := S2 - S1 * Visualize the deformation as a mesh generated from * the returned vector field gen_warped_mesh (VectorField, WarpedMesh, Smoothness / 2) dev_set_line_width (1) dev_set_color ('yellow') dev_display (WarpedMesh) Found[Index] := |Score| dev_set_line_width (2) dev_set_color ('green') dev_display (DeformedContours) disp_message (WindowHandle, |Score| + ' matches found in ' + Time$'1.2f' + ' s', 'window', 12, 12, 'black', 'true') for J := 0 to |Score| - 1 by 1 disp_message (WindowHandle, 'Score: ' + Score[J]$'.2f', 'image', 350, Column[J] - 80, 'black', 'true') endfor if (Index < NumImages) disp_continue_message (WindowHandle, 'black', 'true') stop () endifendfor* * Clean upclear_deformable_model (ModelID)
by SRT
从这个可以看出将要处理的图片
create_local_deformable_model (ModelImage, 'auto', rad(-15), rad(30), 'auto', 1, 1, 'auto', 1, 1, 'auto', 'none', 'use_polarity', [15,35], 'auto', [], [], ModelID)
find_local_deformable_model (Image, ImageRectified, VectorField, DeformedContours, ModelID, rad(-5), rad(18), 1, 1, 1, 1, 0.78, 0, 0, 0, 0.45, ['image_rectified','vector_field','deformed_contours'], ['deformation_smoothness','expand_border','subpixel'], [Smoothness,0,0], Score, Row, Column)
仍然以这两个为主要代码
下面上图,参数调整了很多但速度还是不快,图片一张4.8MB比较大了,我考虑回头加上小波压缩这类压缩算法看看结果。
0 0
- find_local_deformable_model_three_squirrel.hdev代码尝试修改
- Activiti 驳回代码尝试修改
- 第一次尝试修改WIFI
- 在OD中修改代码可以正常运行,尝试各种补丁却不行
- 尝试CSDN发代码
- VBA入门代码尝试。
- tensorflow代码尝试
- orcle字符集'尝试性'修改
- detect_indent_fft.hdev
- VBA分割单词代码尝试
- 在电纸书里看代码的尝试
- 新手自己尝试的代码
- 尝试让代码更好一点
- 尝试让代码更好一点
- 尝试写代码,养成习惯
- 项目代码js优化尝试
- PPC字体修改之初步尝试
- 一次修改dbsnmp,sysman密码的尝试
- markdown编辑器的简单使用
- 正则表达式解析
- 强大的异步控制!!! eventproxy
- Find_cocoa_packages_local_deformable.hdev相关例程学习
- 我的Android进阶之旅------>解决 Error: ShouldNotReachHere() 问题
- find_local_deformable_model_three_squirrel.hdev代码尝试修改
- C语言数据类型总结
- matlab中涉及三角函数求雅可比矩阵出现conj无法求导的问题
- 再则memcache的multiget hole(无底洞)
- Jquery的validate,清除form方法,显示密插件,正则特殊字符处理,js的call用法,ajax,h5支持情况,elclipse tomcate去掉项目名,js 的原型
- hdu 2602 Bone Collector (01背包 入门)
- 整理一下以前写的俄罗斯方块的文章
- 线段树简介
- 最近整理的Android学习笔记