Life2Coding
Image Zoom Out and Zoom In using OpenCV

Image Zoom Out and Zoom In

Usually, we need to convert an image to a size different than its original. For this, there are two possible options: zoom in (upsize) or zoom out (downsize)

Although there is a geometric transformation function in OpenCV that -literally- resize an image (resize, which we will show in a future tutorial), in this section, we analyze first the use of Image Pyramids, which are widely applied in a huge range of vision applications.

You Can easily zoom in and zoom out an image in OpenCV using the following two functions.

For Zoom In

For Zoom Out

In this tutorial, you will learn how to zoom out or zoom in an image using OpenCV 

Code:

Output:

Picture1 Image Zoom Out and Zoom In using OpenCV
Screenshot of the original, zoom out and zoom in images

 

life2coding_icon [] Image Zoom Out and Zoom In using OpenCV

Life2Coding

Technology Related Blog at Life2Coding
Feel free to contact us for your any kind of technical problems. We are here to help you.
life2coding_icon [] Image Zoom Out and Zoom In using OpenCV

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.