Code covered by the BSD License  

Highlights from
Seam Carving for content aware image resizing: GUI implementation demo

image thumbnail
from Seam Carving for content aware image resizing: GUI implementation demo by Danny Luong
Complete seam carving algorithm implementation with GUI demo

x=SeamPlot(x,SeamVector)
function x=SeamPlot(x,SeamVector)
% SEAMPLOT takes as input an image and the SeamVector array and produces
% an image with the seam line superimposed upon the input image, x, for
% display purposes.
%
% Author: Danny Luong
%         http://danluong.com
%
% Last updated: 12/20/07


value=1.5*max(x(:));
for i=1:size(SeamVector,1)
    x(i,SeamVector(i))=value;
end

Contact us at files@mathworks.com