SyneRBI / SIRF-Exercises

SIRF Training and demonstration material
http://www.ccpsynerbi.ac.uk
Apache License 2.0
17 stars 21 forks source link

listmode DL notebooks for PSMR 2024 #225

Closed gschramm closed 2 months ago

gschramm commented 2 months ago

Don't merge yet, because:

gschramm commented 2 months ago

@KrisThielemans for adding the LM caching:

KrisThielemans commented 2 months ago

Some quick comments:

gschramm commented 2 months ago
  1. Isn't it the easiest / most efficient if we only unlist + reconstruct the complete (1m and 60min) list mode files. Should avoid all kind of problems ...
  2. is the "large number" in bytes / MB / GB?
  3. Just starting reconstructing the 60min data after downloading. But I immediately get this error when reading the mumap file:
    
    attn_image = sirf.STIR.ImageData("../../data/PET/mMR/NEMA_IQ/20170809_NEMA_MUMAP_UCL.v.hdr")

error: ??? '\'\nERROR: Error parsing: expected a vectorised key as in "image duration (sec)[1]", but no bracket found\n\' exception caught at line 417 of /users/nexuz/gschra2/nge/SIRF/build_lm/sources/SIRF/src/xSTIR/cSTIR/cstir.cpp; the reconstruction engine output may provide more information'


The header looks like this:

!IMAGE DATA DESCRIPTION:= !total number of data sets:=1 !image duration (sec):=0 !image relative start time (sec):=0

KrisThielemans commented 2 months ago
  1. sure
  2. bytes
  3. yes, the full notebook contains extra stuff to handle this, but easiest is to use the same attenuation image and norm (or indeed acq_sens_model) as for the 1 min data. Note that there will be scale factor of 60 (or nearly, due to decay) between the images, as that's currently not yet taken into account.
gschramm commented 2 months ago

Thanks Kris! Will update the notebooks accoordingly tmr. To take care of the scale difference for the 60min ref. image, I will probably just rescale based on the mean intensity.

KrisThielemans commented 2 months ago

I'll merge this in a few minutes

gschramm commented 2 months ago

@KrisThielemans ready to be merged

KrisThielemans commented 2 months ago

squash or not? As you prefer

gschramm commented 2 months ago

please squash, but let me fix one typo before

gschramm commented 2 months ago

@KrisThielemans : typos fixed, ready to be squashed and merged