


One possible solution is to remove a column of pixels from the image, and merge the two halves. Rescaling all pixels to a new canvas is not ideal, as it would introduce blurring and severe deformations. For instance, if the original size is 800×600, we might want to downscale it to 799×600. Let’s imagine that we want to reduce the width of a given image by one pixel. If we want to understand how seam carving works, it is first helpful to understand why much more naïve approaches are not enough. Since then, it has been integrated into several other softwares, such as Photoshop CS4 ( Content Aware Scaling) and GIMP ( Liquid Rescale). One of the first algorithms for content-aware resizing is called seam carving and has been introduced by Shai Avidan and Ariel Shamir in 2007, in a paper called Seam carving for content-aware image resizing. The techniques that implement this strategy are grouped under the umbrella term of content-aware image resizing. This reduces the image size, but does not require rescaling pixels, hence avoiding any loss of quality on the parts that are unaffected. A better approach would be the identify the elements that are not necessary and remove them from the image. It is fairly obvious that cropping and resizing are often insufficient. Naively changing the size of an image requires an interpolation step, which often results in aliasing or blurring. Such a task is not just tedious: is often very challenging. Most people who are working with computers had to, at some point, crop or resize an image. For this reason, it is always good to remind how much can be achieved with some classical AI techniques such as the one presented in this article. Meme potential is very high 📈😁 /F36UvlZUPu- Bilawal Sidhu May 27, 2023īut for all the excitement they brought to this industry, generative AI models have also raised serious concerns about copyright, consent, energy consumption and workers’ right. Photoshop generative fill is a ton of fun 🪄 If you are interested in learning more about tools like DALL♾ 2 and Midjourney, I would suggest checking one of my most detailed articles titled The Rise of AI Art. With AI-powered tools becoming more and more popular, I find it helpful to show how a lot can be achieved with some clever algorithms, without the need to train expensive neural network models. Hence, it belongs to the field of what I call Classical AI, conversely to the more recent field of Deep Learning. However, it does so without any neural network and-most importantly-without the need to be trained on external data. The “AI part” resides in the fact that it is able to identify which pixels to remove on its own. By all means, it can be considered an AI-powered algorithm. Seam carving is an example of a context-aware resizing algorithm, as it does not treat images as mere collections of pixels. As a result, it allows to shrink images preserving most of the details. Compared to the traditional resizing tool, it does not “stretch” the image, but it selectively removes the pixels which contain the least amount of information. Seam carving is a technique that can be used to resize images, which is also known as liquid rescaling.
