Ask Your Question

Revision history [back]

I correct my mistake I change by this:

# ratio test as per Lowe's paper
for i,(m,n) in enumerate(matches):
    if m.distance < 0.7*n.distance:
        matchesMask[i]=[1,0]
        good.append(m)


dst_pt = [ kp2[m.trainIdx].pt for m in good ]
print(dst_pt)

I correct my mistake just find an issue. I change by this:with:

# ratio test as per Lowe's paper
for i,(m,n) in enumerate(matches):
    if m.distance < 0.7*n.distance:
        matchesMask[i]=[1,0]
        good.append(m)


dst_pt = [ kp2[m.trainIdx].pt for m in good ]
print(dst_pt)