You need to pass the name of the *_sn3d.mat file as an argument to the
function:
matname = 'the_sn3d.mat'; % Name of the sn3d.mat file
vox = [2 2 2]; % Voxel sizes of normalised
image
bb = [[-78 -112 -50];[78 76 85]]; % Bounding box of normalised
image
dets_from(matname, vox,bb);
All the best,
-John
| I am trying to run the two matlab functions that you posted previously to
| write the deformation fields to an image. However in the Function
| dets_from_sn3d it keeps crashing at the line below with the subsequent
| error message. I know others have used this function ,but I'm not sure
what
| I'm doing wrong.
|
| load(deblank(matname))
|
| ???? Input argument "matname" is undefined
| Error in ===> /home/sphadpt/matlab/dets_from.m
| On line 8 ===> load(deblank(matname))
|