create_inclusion
PURPOSE
USAGE: inhomg_img = create_inclusion( homg_img, inclusion_xyz, ...
SYNOPSIS
function inhomg_img = create_inclusion( homg_img, center, r, inclusion_mat, order)
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
- mk_c2f_circ_mapping MK_C2F_CIRC_MAPPING: create a mapping matrix from circles/spheres to FEM
- eidors_obj EIDORS_OBJ: 'constructor' to create a eidors structure
This function is called by:
- object_in_tank_2d 2D demo example for reconstruction of object floating inside tank with
SOURCE CODE
0001 function inhomg_img = create_inclusion( homg_img, center, r, inclusion_mat, order)
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 name = homg_img.name;
0019 mat = homg_img.elem_data;
0020 fwd_model = homg_img.fwd_model;
0021
0022
0023 xyzr = [center r];
0024 fraction = mk_c2f_circ_mapping( homg_img.fwd_model, xyzr');
0025
0026
0027 mat = fraction*inclusion_mat + (1-fraction).*mat;
0028
0029
0030 inhomg_img= eidors_obj('image', name, ...
0031 'elem_data', mat, ...
0032 'fwd_model', fwd_model );
0033
0034
0035
0036
Generated on Tue 09-Aug-2011 11:38:31 by m2html © 2005