linrl3 / Image-Stitching-OpenCV

Simple image stitching algorithm based on SIFT, homography, KNN and Ransac in Python and OpenCV
MIT License
198 stars 43 forks source link

Runtime improvement #7

Open caesarakalaeii opened 1 year ago

caesarakalaeii commented 1 year ago

I know that is not really the point of the script, but since I used it modified for a real-time application I wanted to share this: In lines 67 and 68, you find the minimum/maximum using python's build-in version. using np.min() and np.max significantly improves runtime.