Hi Marko
Although I haven't used the old SPM2 bias correction in SPM5, I did
write a short script to apply the bias correction as determined in the
SPM5 unified segmentation to images other than the input image (m-file
attached). This is not what you asked for, but it may be handy for you
or others. I've used this to correct bias in EPI images - I run the SPM5
segment on the mean image, then apply the correction to all the images
in the series.
Best wishes,
Paul
Marko Wilke wrote:
> Dear All,
>
> I know, the bias estimation as implemented in the segmentation is
> superior but I would still like to play around with the command line
> version that directly estimates the bias in the image as implemented
> in spm_bias_estimate and spm_bias_apply.
>
> It seems that the estimation did not change from spm2 to spm5 but the
> process works in spm2 and does not in spm5... specifically, if I call
> spm_bias_estimate, I get an error related to the plotting of results
> ("vectors must be the same length"), or Matlab crashes completely.
> Uncommenting the plot still crashes Matlab, so the error seems to be
> in the mex-file. Using the spm2-dll does not work as the spm_vol
> syntax changed, and re-compiling the spm5-version also does not
> succeed, likely due to the inaptness of the operator.
>
> My question is, has anyone used spm_bias_estimate in spm5 on a Windows
> machine? If so, I would appreciate receiving your dll-file to see if
> it is a local problem.
>
> Best regards and thanks in advance,
> Marko
>
|