SyneRBI / SIRF

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

create C++ function to read image with engine specified as text #525

Open KrisThielemans opened 4 years ago

KrisThielemans commented 4 years ago

Essentially make https://github.com/CCPPETMR/SIRF/blob/12d2a9dc36f63efc854e1ac5bb293e3ee6e15a1c/src/Synergistic/sirf_convert_image_type.cpp#L36 available from a header file. call it read_image_from_file I guess.

Might be easiest to put in as a header only in samedirectory wherever ImageData is defined. Add HAVE_STIR etc #ifdef to avoid compilation problems

rijobro commented 4 years ago

Once this is implemented, all C++ executables in the Synergistic folder should call it.