SyneRBI / SIRF

Main repository for the CCP SynerBI software
http://www.ccpsynerbi.ac.uk
Other
57 stars 29 forks source link

STIR data container max() is 0 for containers with strictly negative numbers #1234

Closed KrisThielemans closed 4 months ago

KrisThielemans commented 4 months ago

https://github.com/SyneRBI/SIRF/blob/f17f050d86c6e2b249f48a43795986a7aa7a54ea/src/xSTIR/cSTIR/stir_data_containers.cpp#L84 and other places assume that all numbers are at least 0. I haven't checked if this is true in Gadgetron/Nifti.