function displaysnake(im, con);

%% display
showimg(im);
hold on;

%% plot contour
x = con(:,1)'; 
x(length(x) + 1) = con(1,1);
y =con(:,2)';
y(length(y) + 1) = con(1,2);
plot(y, x, '-xg');

%% plot center
%mpoint = sum(con) ./ length(con);
%plot([mpoint(2)], [mpoint(1)], '-.or');

hold off;