Dear CASToR community,
I am appealing for some help getting CASToR to reconstruct some SPECT projection data with scatter correction.
I have attached the Matlab code we’re using to convert SPECT projection data from Interfile into CASToR .cdh/.cdf files. I also attach the result of this code when we feed it three interfiles (photopeak and upper/lower scatter windows). The code estimates the scatter component (in counts/sec) using the Triple Energy Window method.
When we run the resulting datafiles through castor-recon.exe, we get the attached error message. As there is a mismatch between the expected and actual sizes, I suspect the problem relates to the bit depth of the variables as I write them to the .cdf file, or a problem with the header and CASToR not recognising the fact that I’ve included normalisation factors. As we are using the pre-compiled binaries, we haven’t changed the default FLTNMDATA variable, so I am writing variables of this type as 32-bit floats.
I can’t spot any other issues with the conversion code, but I’m obviously missing something. I would appreciate any help anyone can offer. I have already had some very helpful email exchanges with Michael Ljungberg in Lund, who has already got this working. But rather than continue to hassle Michael, I thought I would give him a break and appeal to the wider community!
Kind regards,
James.
James Scuffham, MSc, PhD, MIPEM
sct.cdf (1.34 MB)
sct.cdh (1.32 KB)
CASTOR.m (5.81 KB)