Skip to content

GATE output images shifted, does not allow for forward projection #47

@robbietuk

Description

@robbietuk

Example: I am trying to estimate scatter. I am using an attenuation map output by a GATE (.hdr) but I am running into the following error.

ERROR: ProjMatrixByBinUsingRayTracing sadly doesn't support shifted x/y origin yet
terminate called after throwing an instance of 'std::string'

The image has the following properties:

AttenuationImage=Phantom1-MuMap.hdr

list_image_info $AttenuationImage

WARNING: Unable to determine patient position. Internally this will generally be handled by assuming HFS

Origin in mm {z,y,x}    :{-150.42, 210, 210}
Voxel-size in mm {z,y,x}:{3.27, 3, 3}
Min_indices {z,y,x}     :{0, -70, -70}
Max_indices {z,y,x}     :{46, 70, 70}
Number of voxels {z,y,x}:{47, 141, 141}
Physical coordinate of first index in mm {z,y,x} :{-150.42, 0, 0}
Physical coordinate of last index in mm {z,y,x}  :{0, 420, 420}
Physical coordinate of first edge in mm {z,y,x} :{-152.055, -1.5, -1.5}
Physical coordinate of last edge in mm {z,y,x}  :{1.63499, 421.5, 421.5}
Image min: 0.00011125
Image max: 0.130242
Image sum: 29608.8

I have a temporary work around to fix this translation

## Create zeros image with same origin as GATE input
stir_math --times-scalar 0.0 --including-first zeros.hv $GATE_Atten_input
## Add the GATE output mu-map to the template
stir_math --add STIR_AttenuationImage zeros.hv $AttenuationImage

It is correct to use the GATE output as the mu-map as $GATE_Atten_input in the simulation setup, see VoxelisedSimulation/GATESubMacros/AttenuationConv.dat and #44 issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions