Issue: #11 (closed)
Modified the construct_bvdata function.
Needs reviewing and testing.
Only tested with limagui and the Simulator, python 2.7
- profiles : now returned as byte arrays (using ndarray::tobytes)
- log : autoscale is always used if the lut method is LOG.
- if off (and not using log) : the pixels are converted to 16 bits using right/left shift (e.g a 24bpp pixel is right shifted by 8 bits).
- if on : scaled_image = ((image - min_val) * scaling) with scaling = (2**16 - 1.) / (max_val - min_val)