[Gate-users] how to generate an 3D image that can be used for the voxellized sources by GATE

Kris Thielemans kris.thielemans at csc.mrc.ac.uk
Tue May 22 11:44:56 CEST 2007


Hi

you can ask generate_image directly to use unsigned integers by adding a
few lines to the par file. something like

output file format:=Interfile
Interfile Output File Format Parameters:=
   ; optional to specify non-native byte-order
   ; byte order := littleendian
   ; type specification as in Interfile
   number format:=unsigned integer
   number of bytes per pixel:=2
   ; optional to fix the scale factor used when writing the data
   ; otherwise the maximum range of the output data will be used
   ; if it's an integer type
   ;scale_to_write_data:=1
End Interfile Output File Format Parameters:=


> Hi Guifen,
> 
> the activity maps you created using STIR are of float 32bit data
> format.
> GATE so far accepts activity or attenuation maps (voxelised sources or
> phantoms )  of unsigned integer 16 bit data format.
> So you need a simple script that will convert the STIR generated maps
> to an unisgned integer 16bit data format without modifying any
> information, so that GATE would be able to read it.
> 
> 
> Best regards
> Nicolas
> 
> 
> 





More information about the Gate-users mailing list