Eidors-logo    

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
                       

 

Hosted by SourceForge.net Logo

 

EIDORS display functions and control of colours

Colour Mapping in the image

The parameters to control the colours of an eidors image may be specified globally, or for a specific image.

Specify clim=1.5 for all subsequent display

calc_colours('clim',1.5);
show_slices( img )
% future images still use clim=1.5

Specify clim=1.5 for only this image

img.calc_colours.clim= 1.5;
show_slices( img )
% only 'img' uses clim=1.5

Create a demo image

Here we create a small sample image with a sequence of colours around the boundary
% Show EIDORS colours $Id: eidors_colours01.m 1535 2008-07-26 15:36:27Z aadler $

% Create sample image
imdl= mk_common_model('a2c2',16);
img= eidors_obj('image','small demo','fwd_model',imdl.fwd_model, ...
                'elem_data', zeros(1,64) );
img.elem_data(1:2)=[1,1];
img.elem_data([14,16])=[-1,-1];
img.elem_data([27,30])=.5*[1,1];
idx= [51:52, 56:-1:53, 57:60, 64:-1:61, 49,50]; % clockwise index elements 
img.elem_data(idx)= linspace(-2,2,16);

img.elem_data = img.elem_data + 10;

Change colour mapping parameters: greylev

% Show EIDORS colours $Id: eidors_colours02.m 1535 2008-07-26 15:36:27Z aadler $
subplot(221); img1= img;

show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours02a.png

img1.calc_colours.greylev= -0.35;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours02b.png

img1.calc_colours.greylev= 0.35;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours02c.png


Figure: greylev values of (from left to right) 1) -.001 default, 2) -.35, 3) +.35,

Change colour mapping parameters: clim

% Show EIDORS colours $Id: eidors_colours03.m 1535 2008-07-26 15:36:27Z aadler $
subplot(221); img1= img;

show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours03a.png

img1.calc_colours.clim= 1;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours03b.png

img1.calc_colours.clim= 0.3;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours03c.png


Figure: clim values of (from left to right) 1) [] default, 2) 1.0, 3) 0.3,

Change colour mapping parameters: sat_adj

% Show EIDORS colours $Id: eidors_colours04.m 1535 2008-07-26 15:36:27Z aadler $
subplot(221); img1= img;

show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours04a.png

img1.calc_colours.sat_adj= 0.99;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours04b.png

img1.calc_colours.sat_adj= 0.8;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours04c.png


Figure: sat_adj values of (from left to right) 1) 0.9 default, 2) 0.90, 3) 0.8,

Change colour mapping parameters: window_range

% Show EIDORS colours $Id: eidors_colours05.m 1535 2008-07-26 15:36:27Z aadler $
subplot(221); img1= img;

show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours05a.png

img1.calc_colours.window_range= 0.90;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours05b.png

img1.calc_colours.window_range= 0.20;
show_fem(img1,1);
axis equal; axis off; print -r75 -dpng eidors_colours05c.png


Figure: window_range values of (from left to right) 1) 0.7 default, 2) 0.9, 3) 0.2,

Last Modified: $Date: 2008-07-26 11:36:27 -0400 (Sat, 26 Jul 2008) $ by $Author: aadler $