Zoom

Zoom Filter: 7 points


Next, you will implement the zoom function. As previously discussed, keep the original image for reference, copy it, and then apply the filter to the copy. This function results in an image of the same size as the original, but consists of the center of the image blown up by a factor of two. So if the image has width w and height h, zooming should expand the middle (w//2 x h//2) region to fill the whole picture. Note that this means that every pixel in the section of the original image that you’re zooming will map to four pixels in the new image.

Add Zoom to your menu and test it out!

Reminder

As always, don’t forget to commit and push your changes!