dxwdxw2005 / gerardus

Automatically exported from code.google.com/p/gerardus
0 stars 0 forks source link

Use scimat_index2world in scimat_ndgrid so that we can use rotation matrices #53

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
>> dcm = 
dicomread('~/Software/private-gerardus/matlab/test/data/cardiac_cine_mri_sax.dcm
');
>> dcminfo = 
dicominfo('~/Software/private-gerardus/matlab/test/data/cardiac_cine_mri_sax.dcm
');
>> scimat = dcm2scimat(dcm, dcminfo);
>> scimat.axis = scimat.axis(1:3);
>> [gx, gy, gz] = ndgrid(1:size(scimat.data, 2), 1:size(scimat.data, 1), 
1:size(scimat.data, 3));
>> x = scimat_index2world([gx(:), gy(:), gz(:)], scimat);
>> gg = scimat_world2index(x, scimat);
>> hold on
>> plot3(gg(:, 1), gg(:, 2), gg(:, 3), '.r')

Original issue reported on code.google.com by rcas...@gmail.com on 12 Feb 2015 at 5:33

GoogleCodeExporter commented 8 years ago

Original comment by b.016...@gmail.com on 11 Mar 2015 at 11:05