March 2020
Intermediate to advanced
366 pages
9h 8m
English
In order to be able to merge images, we need to compute homography matrices of all the images and then use those to adjust the images so they can be merged together. We will write a function to do that:
def find_camera_parameters(features, pair_matches): estimator = cv2.detail_HomographyBasedEstimator()
success, cameras = estimator.apply(features, pair_matches, None) if not success: raise RuntimeError("Homography estimation failed.")
for cam in cameras: cam.R = cam.R.astype(np.float32) ...