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?

  • 1
    $\begingroup$ Does the array length vary per-pixel? $\endgroup$
    – Mokosha
    Jul 11, 2016 at 13:42
  • 1
    $\begingroup$ How many bits are the integers? 32? 64? $\endgroup$ Jul 12, 2016 at 22:04
  • $\begingroup$ array length vary per-pixel, 32 bit integers. $\endgroup$
    – smuseus
    Jul 14, 2016 at 8:37

2 Answers 2


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.



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

  • $\begingroup$ 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? $\endgroup$ Jul 12, 2016 at 22:05
  • $\begingroup$ 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. $\endgroup$ Jul 12, 2016 at 22:06
  • $\begingroup$ 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. $\endgroup$
    – Derag
    Jul 13, 2016 at 11:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.