_images/xtensor-io.svg

Input/Output routines for reading images, audio, and NumPy npz files for the xtensor C++ multi-dimensional array library.

Introduction

xtensor-io offers bindings to popular open source libraries for reading and writing

  • Images with OpenImageIO (many supported formats, among others: jpg, png, gif, tiff, bmp …)

  • Sound files with libsndfile (supports wav, ogg files)

  • NumPy compressed file format (npz). Note: support for uncompressed NumPy files (npy) is available in core xtensor.

  • Geospatial rasters with GDAL (many supported formats)

Enabling xtensor-io in your C++ libraries

xtensor and xtensor-io require a modern C++ compiler supporting C++14. The following C++ compilers are supported:

  • On Windows platforms, Visual C++ 2015 Update 2, or more recent

  • On Unix platforms, gcc 4.9 or a recent version of Clang