centreborelli / s2p

Satellite Stereo Pipeline
GNU Affero General Public License v3.0
209 stars 67 forks source link

problem in visualization.py - the image of sift_matches is (w1+w2) x 1 #160

Closed arellignapika closed 5 months ago

arellignapika commented 5 months ago

When using visualization.py's plot_matches, the output image of SIFT_matches.png is incorrect. I tested it with S2p test data, specifically the input pair. The output image has dimensions of 1803x1, but it should be 1803x951. Additionally, the debug=True option doesn't work when the corresponding coordinates x2,y2,h2,w2 are negative. It gives error of cannot unpack non-iterable numpy.float64 object.

image image

arellignapika commented 5 months ago

you need to reshape the img array before making it to 3 dim . image