Hi Jennifer,
I don't have any experience iwth IBASPM, but I think the following
error is probably because it's looking for the imfill routine from the
MATLAB Image Processing Toolbox (sold separately), which I assume you
don't have.
> ??? Undefined command/function 'imfill'.
>
> Error in ==> Auto_Labelling at 127
> Iseg_mask = imfill(logical(Iseg_mask),'holes');
I think it should be possible to replace this call using the
spm_bwlabel function with some additional code... Essentially, I think
you can fill holes by finding the background connected component and
negating it. I don't have time to code this up this right now, but if
no-one else helps you out (hopefully the IBASPM authors will) give me
another shout and I'll try to cobble something together...
Of course, there might be further dependencies on the Image Processing
Toolbox, in which case it may be better to buy it, rather than to try
to re-code them all...
Best,
Ged
|