img = imread('pig-thorax.jpg');
!wget http://www.easyrams.co.uk/__sites/70/Recording/shoulder.gif
img = imread('shoulder.gif');
colormap(gray(256))
imagesc(img)

[x,y]= ginput;
trunk = [x,y]*.01;
fmdl = ng_mk_extruded_model({2,{trunk} ,[4,50],.1}, [], 1);
show_fem(fmdl)
view(2)

[x,y] = ginput;
lung = [x,y]*.01;
fmdl = ng_mk_extruded_model({2,{trunk, lung} ,[4,50],.1}, [], 1);
show_fem(fmdl)

img2 = mk_image(fmdl,1);
img2.elem_data(fmdl.mat_idx{2}) = 0.9;
show_fem(img2)

save name1 trunk lung