<p>OpenEXR might be a good fit. You can have an arbitrary number of channels per pixel and the data types for each channel can be integers.</p>

<p><a href="http://www.openexr.com/">http://www.openexr.com/</a></p>

CC BY-SA 3.0
2016-07-06T22:00:21.027Z
2016-07-06T22:00:21.027Z
Daniel Gollás
<p>Probably <code>.dds</code>. You can store there textures array or 3d texture both can be use as array per pixel.
You can try creating this textures with <code>DxTex</code> from <code>DirecX SDK</code>.
Also you can look in <code>Legacy Texture Tools</code> from Nvidia
<a href="https://developer.nvidia.com/legacy-texture-tools" rel="nofollow">https://developer.nvidia.com/legacy-texture-tools</a></p>

CC BY-SA 3.0
2016-07-12T22:05:36.857Z
Since the OP said "array of integers" without qualifying the number of bits, it perhaps seems safe to assume they mean a C-style 'int' (at least 32 bits). Does DDS support 32 bit integer channels?
Larry Gritz
CC BY-SA 3.0
2016-07-12T22:06:42.153Z
Also note that since the OP did not specify that they were Windows-only, DDS may be a bit of a problem on other platforms, where few tools will properly read or write them.
Larry Gritz
CC BY-SA 3.0
2016-07-13T11:27:12.340Z
According to `MSDN` DDS Format Overview:

`Note that the DDS format supports any valid DXGI_FORMAT value...`

so it support 32 bit integer.
But yes, DDS may be problem on other platforms.
Derag
CC BY-SA 3.0
2016-07-06T12:27:06.610Z
2016-07-06T12:27:06.610Z
Derag
<p>For a project dealing with deep semantic labeling of images I need a format that supports arrays of arbitrary length for each pixel of the image.</p>

<p>The array is an array of integers. </p>

<p>Which image formats support this?</p>

CC BY-SA 3.0
2016-07-11T13:42:22.097Z
Does the array length vary per-pixel?
Mokosha
CC BY-SA 3.0
2016-07-12T22:04:20.717Z
How many bits are the integers? 32? 64?
Larry Gritz
CC BY-SA 3.0
2016-07-14T08:37:29.837Z
array length vary per-pixel, 32 bit integers.
smuseus
<raster-image><image><pixels>
Is there a image-format that support an array per pixel?
smuseus
# Is there a image-format that support an array per pixel?

(Asked by: username_0 on 2016-07-06)

For a project dealing with deep semantic labeling of images I need a format that supports arrays of arbitrary length for each pixel of the image.

The array is an array of integers.

Which image formats support this?

**Tags:** raster-image, image, pixels

> **Comments:**
> **username_1**: Does the array length vary per-pixel?  
> **username_2**: How many bits are the integers? 32? 64?  
> **username_0**: array length vary per-pixel, 32 bit integers.  

---

## 2 answers

### Answer by username_3 on 2016-07-06. Score: 7

OpenEXR might be a good fit. You can have an arbitrary number of channels per pixel and the data types for each channel can be integers.

<http://www.openexr.com/>


---

### Answer by username_4 on 2016-07-06. Score: 2

Probably `.dds`. You can store there textures array or 3d texture both can be use as array per pixel.
You can try creating this textures with `DxTex` from `DirecX SDK`.
Also you can look in `Legacy Texture Tools` from Nvidia
<https://developer.nvidia.com/legacy-texture-tools>

> **Comments:**
> **username_2**: Since the OP said "array of integers" without qualifying the number of bits, it perhaps seems safe to assume they mean a C-style 'int' (at least 32 bits). Does DDS support 32 bit integer channels?  
> **username_2**: Also note that since the OP did not specify that they were Windows-only, DDS may be a bit of a problem on other platforms, where few tools will properly read or write them.  
> **username_4**: According to `MSDN` DDS Format Overview:  `Note that the DDS format supports any valid DXGI_FORMAT value...`  so it support 32 bit integer. But yes, DDS may be problem on other platforms.  

---

