clf

img = imread('airplane.JPG');
img = img(1:4:end,1:4:end,:);

imgsmall = img(1:20:end,1:20:end,:);

image(imgsmall)
a = imgseg3(imgsmall,1);

xy = [kron(1:16,ones(1,12)); kron(ones(1,16),1:12)]';

pause

hold on;
[x,y] = gplot(a,xy);
plot(x,y,'ko')
pause

[x,y] = gplot(a,xy);
p = plot(x,y,'k-','LineWidth',1);

pause

[x,y] = gplot(a > .5,xy);
p = plot(x,y,'k-','LineWidth',6);

pause

[x,y] = gplot(a > .01,xy);
p = plot(x,y,'k-','LineWidth',4);
