core: Save image bit depth as metatdata
Image bit depth is used in image processing, and should be stored in the metadata and hdf5 file. It currently exists as a simple integer RawDataReader::parameters::bpp
which takes a value of 1, 2 or 3, corresponding to 8 bit, 16 bit and 32 bit respectively. This is incorrectly implemented (it presumably stands for "bytes per pixel", i.e. 1 for 8 bit, 2 for 16 bit and 4 for 32 bit, but in RawDataReader
, 3 corresponds to 32 bit. This is used to resize data arrays, and will be incorrect for 32 bit images.
Edited by Raza, Zamaan