文摘
Content-aware image retargeting, also known as seam carving or content aware scaling, is an algorithm for image resizing developed in recent years. In this paper, we present a content-aware image retargeting method by combining the line-based Moving Least Squares (MLS) deformation and saliency map. We develop a salience-related weight of MLS deformation that allows manually defining regions in which pixels may not be moved. Therefore, the new image retargeting can change non-vital parts of the image while preserving local shapes in the areas with high saliency. Benefited from the line-based MLS deformation, our method can retarget image from rectangle to arbitrary polygon. When the constrained lines are at the interior of the boundary of image, our method can also deal with the artistic perspective manipulation problem well. The purpose of developing this algorithm is to display images without distortion on various media in the field of industrial, entertainment or artistic creation. Experimental results show that the proposed method outperforms existing methods in terms of visual performance.