Login using Social Account
     Continue with GoogleLogin using your credentials
Now that we found the homography for transformation, we can now proceed to warp and display the right-side image in an orientation suitable to be stitched with the left image. This is also known as image registration.
Note:
cv2.warpPerspective
applies a perspective transformation to an image, given the image, homography matrix, and size of the output image and returns the transformed output image.
Use cv2.warpPerspective
method to apply perspective transformation of the img_right
.
dst = cv2.<< your code comes here >>(img_right,H,(img_left.shape[1] + img_right.shape[1], img_left.shape[0]))
Visualize the output image dst
.
plt.figure(figsize=(30,20))
plt.title('Warped Image')
plt.imshow(fixColor(dst))
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Loading comments...