Jacopo Farina's blog

Recent Posts

Seam Carving in Pure Java

Seam Carving in Pure Java

Today I tried to implement seam carving in pure Java, without dependencies. In a few words, itโ€™s a method to automatically reduce the size of an image keeping as much details as possible. How is this accomplished? It’s done by calculating the importance of each pixel with some metric (for example, the gradient magnitude) and removing the less important pixels at first. The result is made clear by this example from Wikipedia:...