On 10.11.2015 22:37, FRIGN wrote: > +--------+-----------------------------------------------------------+ > | [2222] | 4*16-Bit BE unsigned integers [RGBA] / pixel, row-aligned | > +--------+-----------------------------------------------------------+ There are lots of different color spaces like CMYK or LAB. And scientific applications often have an arbitrary number of weird channels.
I know, its all about simplicity, but with only a marginally higher complexity an arbitrary number of channels and color spaces could be supported. Something like this: A type field +--------+-----------------------------------------------------------+ | 1 | Type of channels: 0 predefined, 1 wavelength, 2 names | +--------+-----------------------------------------------------------+ and, depending on the type: type 0 +--------+-----------------------------------------------------------+ | 8 | For example RGB, RGBA, CMYK, LAB, ... | +--------+-----------------------------------------------------------+ type 1 (Multispektral Images) +--------+-----------------------------------------------------------+ | 2 | Number of Channels | +--------+-----------------------------------------------------------+ | [8] | List of lower/higher wavelength of channel (2 floats) | +--------+-----------------------------------------------------------+ type 2 (Arbitrary image-like data) +--------+-----------------------------------------------------------+ | 2 | Number of Channels | +--------+-----------------------------------------------------------+ | [32] | List of channel labels (32 byte long strings) | +--------+-----------------------------------------------------------+
signature.asc
Description: OpenPGP digital signature
