ShapeContext

Hungarian algorithm寻找点的对应集合

python实现
http://github.com/tdedecko/hungarian-algorithm

调试和wiki的说明一起对照看

Hungarian 算法对于m,n不等的情况怎么处理,以下链接解题步骤一目了然

http://hungarianalgorithm.com/solve.php


TPS算法

https://en.wikipedia.org/wiki/Thin_plate_spline

代码实现可参看里面的bookstein

https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/shape/sc_digits.html

源码已传到同步盘

Thin Plate Spline
http://mathworld.wolfram.com/ThinPlateSpline.html

The name "thin plate spline" refers to a physical analogy involving the bending of a thin sheet of metal. In the physical setting, the deflection is in the z direction, orthogonal to the plane. In order to apply this idea to the problem of coordinate transformation, ++one interprets the lifting of the plate as a displacement of the x or y coordinates within the plane. Thus, in general, two thin plate splines are needed to specify a two-dimensional coordinate transformation++


Shape context

https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/shape/sc_digits.html

  • 模板点对X,图片点对Y(Y点对的数目可能大于X)
  • hungarian algorithm出当前距离最小的点对,然后根据这些点对使用TPS算法(bookstein)计算出coofficient,然后计算出原始点X变换后的点对XA,更新energy loss
  • 对XA和Y再用hungarian algorithm 算法计算点对assignment,然后根据assignment计算coofficient,然后用coofficient处理原始点对X后更新XA,和energy loss
  • 根据迭代次数和energy loss 选择合适的时候结束迭代

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 锦瑟流年(目录) ——————————场面竟然没有一片混乱。 除了明珠过来查看美玉的手,太后及四妃坐定定,完全局外...
    玉楼人醉阅读 2,578评论 6 4
  • 我想,你是星空 只远远望着,便惊艳得使人不敢出气 我想,你是明月’ 只默默看着,那笑容便使人不能自已’ 你会开心如...
    一树青桃阅读 1,020评论 0 2
  • 自从前几天因为梦境写了一篇《我经历了那年五月的一场大火》之后,对梦也留意起来,这似乎也使梦多起来。像今天,半夜三点...
    两棵松阅读 1,560评论 3 3
  • 文/小哲小诗 ——献给所有奋斗并快乐的人们 不是所有的贡献者 在这一天都有奖项 万方努力似乎还不够强 拉长战线...
    小哲小诗阅读 3,073评论 0 1