find_shape_model_max_deformation.hdev相关例程学学习

Index:.../Matching/Shape-Based/find_shape_model_max_deformation.hdev


这个程序作了一个对比

    for Search := 1 to 2 by 1
        if (Search == 1)
            WindowHandle := WindowHandle1
            SubPixel := 'least_squares_high'
        else
            WindowHandle := WindowHandle2
            SubPixel := ['least_squares_high','max_deformation 10']
        endif
        dev_set_window (WindowHandle)
        dev_display (SearchImage)
        disp_message (WindowHandle, DispString[Search - 1], 'window', 12, 12, 'black', 'true')
        count_seconds (Seconds1)
        find_shape_model (SearchImage, ModelID, 0, 0, 0.4, 1, 0.5, SubPixel, 0, 0.9, Row, Column, Angle, Score)

在匹配时对两种Subpixel作了匹配,从算子的帮助文档也可以看到, ['least_squares_high','max_deformation 10']这也是一种常规

的输入方法。

       vector_angle_to_rigid (0, 0, 0, Row[I], Column[I], Angle[I], HomMat2D)
       affine_trans_contour_xld (ModelContours, ModelContoursTrans, HomMat2D)

做仿射变换,就是按一组向量然后把原模型投射到新的位置。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值