Image ResizingImage Resizing

In OpenCV, image resizing is the process of changing the size of an image. This is done by either increasing or decreasing the number of pixels in the image. The cv2.resize() function is used to perform image resizing.

The function takes in three required parameters: the image to be resized, the desired size of the output image (specified as a tuple of width and height), and an optional interpolation method. The interpolation method is used to determine how the pixel values of the new image will be computed based on the pixel values of the original image.


  1. Read in a single image;
  2. Resize it in different formats. Use interpolation=cv2.INTER_LINEAR when stretching.
  3. Iterate over two lists to plot them all.

Everything was clear?

Section 1. Chapter 5

Start learning today and achieve
coding mastery

  • Master Python, SQL, JavaScript & more.
  • Learn with Step-by-Step Lessons.
  • Get Ready for Real-World Projects.
  • Earn a Certificate Upon Completion.