为什么当我试图在matlab中使用二值图像的时候,detectSURFFeatures(img)给出了正确的点,但是每当我用detectMSERFeatures(img)处理相同的二值图像时。错误:Expected input number 1, I, to be one of these types:
Instead its type was logical.
Error in detectMSERFeature
我一直试图使用OpenCV的MSER算法的Python实现(opencv 2.4.11)和Java实现(opencv 2.4.10)。有趣的是,我注意到MSER的detect在Python中返回不同类型的输出。在Python中,detect返回一个点列表,其中每个点列表表示检测到的blob。Python:mser = cv2.MSER(**dict((k, kw[k]) for k in MSER_KEY