CvMatchShapes函数匹配到不同形状后是否返回零? [英] CvMatchShapes function returns zero after matching to different shapes?

查看:541
本文介绍了CvMatchShapes函数匹配到不同形状后是否返回零?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

曾经处理过CvMatchShapes函数的人,为什么CvMatchShapes函数在匹配不同形状(轮廓或灰度图像)后返回零?

Sombody who had deal with CvMatchShapes function, why CvMatchShapes function returns zero after matching to different shapes (contours or gray scale images)?

推荐答案

好吧,我猜返回的值是指形状之间的匹配程度.因此,如果返回零,则形状根本不匹配.如果您按照您所说的为函数提供两种不同的形状,这将是预期的行为.
Well i would guess that the returned value refers to the grade of match between the shapes. So if it returns zero the shapes do not match at all. This would be the expected behaviour if you provide the function two different shapes as you said.


这篇关于CvMatchShapes函数匹配到不同形状后是否返回零?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆