Open KrisThielemans opened 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.
read_image_from_file
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
ImageData
HAVE_STIR
#ifdef
Once this is implemented, all C++ executables in the Synergistic folder should call it.
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. AddHAVE_STIR
etc#ifdef
to avoid compilation problems