YannisK commited on
Commit
3d3c7f5
1 Parent(s): 41cc041
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -116,15 +116,17 @@ def generate_matching_superfeatures(im1, im2, scale_id=6, threshold=50):
116
  img2rsz[m,n, :] = col_[::-1]
117
  fin_img.append(img2rsz)
118
 
119
- fig1, ax1 = plt.figure()
120
- ax1.imshow(cv2.cvtColor(img1rsz, cv2.COLOR_BGR2RGB))
 
121
  ax1.axis('scaled')
122
  ax1.axis('off')
123
 
124
  plt.tight_layout()
125
 
126
- fig2, ax2 = plt.figure()
127
- ax2.imshow(cv2.cvtColor(img2rsz, cv2.COLOR_BGR2RGB))
 
128
  ax2.axis('scaled')
129
  ax2.axis('off')
130
 
 
116
  img2rsz[m,n, :] = col_[::-1]
117
  fin_img.append(img2rsz)
118
 
119
+ fig1 = plt.figure()
120
+ ax1 = plt.gca()
121
+ ax1.show(cv2.cvtColor(img1rsz, cv2.COLOR_BGR2RGB))
122
  ax1.axis('scaled')
123
  ax1.axis('off')
124
 
125
  plt.tight_layout()
126
 
127
+ fig2 = plt.figure()
128
+ fig2.show(cv2.cvtColor(img2rsz, cv2.COLOR_BGR2RGB))
129
+ ax2 = plt.gca()
130
  ax2.axis('scaled')
131
  ax2.axis('off')
132