From the course: Hands-On AI: Image Processing with Python

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

Image upscaling methods

Image upscaling methods

- [Instructor] Image upscaling is a more ambitious operation. Now we want to produce a higher resolution image from a lower resolution one. It may sound impossible at first, and I claim that it is impossible indeed. Now, the fact that something is mathematically impossible doesn't necessarily mean that there aren't pretty good approximations. Well, there are some upscaling algorithms that can stretch images well enough to fool many humans. Here's the problem we face when upscaling an image. Let's say we want to do the opposite as before. Now, we want to upscale this image by a factor of three. That is, we want to convert a two by two image to a six by six image. The problem is now to determine the colors we need in each pixel of the higher resolution image. The trivial solution would be to fill all high resolution pixels with the same color of the low resolution pixel they're extending, but this would look pixelated, because it would be simply an enlarged copy of the original picture…

Contents