EIDORS: Electrical Impedance Tomography and Diffuse Optical Tomography Reconstruction Software |
EIDORS
(mirror) Main Documentation Tutorials − Image Reconst − Data Structures − Applications − FEM Modelling − GREIT − Old tutorials − Workshop Download Contrib Data GREIT Browse Docs Browse SVN News Mailing list (archive) FAQ Developer
|
GREIT algorithms: Example imagesThis tutorial uses the various GREIT algorithm candidates to generate a set of example images. This is primarily a sanity check that the algorithms work. This tutorial documents work in progress during the development of the GREIT framework, it is now of mostly historical interest.Prepare data: phantom data% Tank Data $Id: demo_algs01.m 3839 2013-04-16 14:53:12Z 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; clear v 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: 2017-02-28 13:12:08 -0500 (Tue, 28 Feb 2017) $ by $Author: aadler $