|
EIDORS: Electrical Impedance Tomography and Diffuse Optical Tomography Reconstruction Software |
|
EIDORS
(mirror) Main Documentation Examples Tutorials − Image Reconst − Data Structures − Application Examples − FEM Modelling Download Contrib Data GREIT Browse SVN News FAQ Developer
|
GREIT algorithms: Example imagesThis tutorial uses the various GREIT algorithm to generate a set of example images. This is primarily a sanity check that the algorithms work.Prepare data: phantom data% Tank Data $Id: demo_algs01.m 1557 2008-07-27 00:19:17Z aadler $ % exclude measures at electrodes [x,y]= meshgrid(1:16,1:16); idx= abs(x-y)>1 & abs(x-y)<15; load iirc_data_2006 v(1).vh= - real(v_reference(idx,1)); v(1).vi= - real(v_rotate(idx,1)); Prepare data: simulated FEM
Prepare data: human tidal breathing% Human breathing $Id: demo_algs03.m 1559 2008-07-27 03:19:58Z aadler $ % Electrodes on back load montreal_data_1995 v(4).vh = double( zc_resp(idx,1) ); v(4).vi = double( zc_resp(idx,22) ); Algorithm resultsUsing the function get_list_of_algs.m:
% Algorithm list $Id: get_list_of_algs.m 1619 2008-09-22 16:32:56Z aadler $
function algs= get_list_of_algs;
algs = {'GREIT_Sheffield_backproj', ...
'GREIT_NOSER_ndiff', ...
'GREIT_NOSER_diff', ...
'GREIT_test_ndiff', ...
};
we can run the following demo script:
% Demo algorithms $Id: demo_algs04.m 1576 2008-07-28 09:19:55Z aadler $
algs= get_list_of_algs;
imb.calc_colours.ref_level = 0; % select colour output
imb.calc_colours.greylev = 0.01; % black backgnd
imb.calc_colours.backgnd = [.5,.5,.5]; %grey
for i= 1:length(algs)
for k= 1:4
[img,map] = feval(algs{i}, v(k).vh, v(k).vi );
imc= calc_colours(img, imb);
imc(~map) = 1; % background
imwrite(imc,colormap, sprintf('demo_algs04_%d%d.png',i,k),'png')
end
end
|
Last Modified: $Date: 2008-07-28 05:19:55 -0400 (Mon, 28 Jul 2008) $ by $Author: aadler $