Re: [dev] [farbfeld] announce

From: Stefan Mark <mark_AT_unserver.de>
Date: Tue, 17 Nov 2015 18:34:06 +0100

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) |
+--------+-----------------------------------------------------------+




Received on Tue Nov 17 2015 - 18:34:06 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 17 2015 - 18:36:05 CET