Topic: Image zooming is based on the zero-order hold interpolation method of increasing the dimensions of an image, but it, instead, produces an image of the same dimensions as the input one. The output image contains only part of the original image, which is zoomed based on a zoom factor.


Exercise: Create a Python script file and perform the following tasks:

  • Import OpenCV and NumPy libraries.
  • Create a function that takes as input an image and a zoom factor performs image zooming on part of the input image. Then, return the zoomed image. You can add any extra parameters you desire.
  • Read an image.
  • Apply image zooming to the image.
  • Finally, display the original image alongside the zoomed one.

Instructions and Material for solution: Click Image to download the exercise material.

Help (if needed): Click Pdf to download the exercise help.

Lecture for better understanding: https://icarus.csd.auth.gr/image-filtering-lecture/

This exercise was developed by C. Georgiadis.

————————————————————————————————————–

For the solutions to the exercises, please contact koroniioanna@csd.auth.gr