An example method presents a system for improved image resizing using seam carving. The system may receive a digital image file of an image and determine a target aspect ratio of the image. The system may compute a mask identifying objects in the image, determine a path of pixels extending between a first edge of the image and a second edge of the image using the mask, and remove the path of pixels from the image to generate an edited image. In some instances, the system may output the edited image with a different aspect ratio than the received image using the removed path of pixels. In some instances, the system may process the image from 2, 4, or 8 directions, for example, to balance proportionate amounts of resizing when adjusting the aspect ratio of the image.
展开▼