Flash Sale: Flat 70% + Addl. 25% Off on all Courses | Use Coupon DS25 in Checkout | Offer Expires In

  Enroll Now

Stitching the Images

And finally comes the last part, the stitching of the images.

We shall place the left image on the dst whose shape is left-image width plus right-mage width.

Then, we shall save the resultant file - the final stitched panorama image - and display it.

Note:

cv2.imwrite method saves the given image as a file with the given name.

INSTRUCTIONS
  • We are placing the left image on the dst whose shape is left-image width plus right-mage width.

    dst[0:img_left.shape[0], 0:img_left.shape[1]] = img_left
    
  • Now let us store the resultant stitched image dst as resultant_stitched_panorama.jpg using imwrite method of cv2.

    cv2.<< your code comes here >>('resultant_stitched_panorama.jpg',dst)
    
  • Let us display the stitched image using plt.imshow.

    plt.figure(figsize=(30,20))
    plt.title('Stitched Image')
    plt.imshow(fixColor(dst))
    

No hints are availble for this assesment

Answer is not availble for this assesment


Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...