Topic: Image decimation is the reverse of image interpolation. It is a very simple routine that takes an  an1*bn2 image, where  a,b>1 and resizes into a  n_1*n_2 one, thus reducing its dimensions.

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 decimation factor and performs image decimation. Then, return the resized image. You can add any extra parameters you desire.
  • Read an image.
  • Apply image decimation to the image.
  • Finally, display the resized image.

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