when using an attenuation image
asm = AcquisitionSensitivityModel(attn_image, am) acq_model = AcquisitionModelUsingRayTracingMatrix() acq_model.set_normalization(asm)
and using this for reconstruction, we seem to get
'ForwardProjectByBin: forward_project called with incorrect related_viewgrams. Problem with symmetries!\n' exception caught at line 579 of /Users/rich/Documents/OneDrive-UCL/Code/SIRF/Source/src/xSTIR/cSTIR/cstir.cpp
This is likely a STIR bug.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
I suspect you have not done am.set_up, have you?
that's not it I'm afraid
am = AcquisitionModelUsingRayTracingMatrix() am.set_up(template, attn_image) asm = AcquisitionSensitivityModel(attn_image,am) asm.set_up(acq_data) # select acquisition model that implements the geometric # forward projection by a ray tracing matrix multiplication acq_model = AcquisitionModelUsingRayTracingMatrix() acq_model.set_normalization(asm) #acq_model.set_background_term(randoms) acq_model.set_up(acq_data, image)
by the way, the am.set_up
shouldn't necessary I think (it should be called by the acq_model.set_up
via asm.set_up
if it all works ok).
Closed #103.
Reopened #103.
I still have the same problem (with SIRF/devel and STIR/master)
I found the problem. It is due to a limitation in STIR which I will try to fix. The direct cause is that the mu_map.hv
is slightly shifted w.r.t. the origin. This probably came about with the zooming etc. Clearly, STIR should be able to handle this, but at this point in time it doesn't.
An ugly work-around for now is to remove the offset
keywords in mu_map.hv
. Then everything runs ok. Let's hang on a bit before we do that though.
By the way, the clue was always in the warn.txt
:
WARNING: Disabling symmetries in transaxial plane as image is shifted
it's just that we don't see these (as STIR writes a bit too many warnings at present)
Closed #103.
This is a STIR problem, so closing here