Python OpenCV
About Lesson

In this Python OpenCV lesson we are going to learn about Python OpenCV Image Pyramid, so image pyramid is one the best concepts of the image processing, when we are going to work with the images that is high resolution images. sometimes we need to work with images of different resolution of the same image like low resolution images. and we create the different resolution of the same image now this is called pyramid in opencv, or we can say Image pyramid refers to the way of representing an image at multiple resolutions. so there are two functions that we can use pyrup() function increases the size to double of its original size pydown() function decreases the size to half.

 

 

This is the complete code for this lesson.

 

 

 

You can see that in here we have used these two functions for the image resolution.

 

 

 

Run the complete code and this will be the result, and you can see that we have different image with different resolution.

Python OpenCV Image Pyramid
Python OpenCV Image Pyramid