ocaml-imagelib icon indicating copy to clipboard operation
ocaml-imagelib copied to clipboard

Allow read/write from Bigarray blob

Open bluddy opened this issue 5 years ago • 3 comments

Since we lack good functionality for combining/stacking Bigarrays (as in numpy), it would be very useful to provide functions that convert to/from the image format in this library to Bigarrays, such as the ones used in C code or by the TSDL library. Those formats are obviously dynamic rather than statically checked, but they're required by other libraries.

I'd be happy to submit such code if you agree on its usefulness.

bluddy avatar Jan 20 '20 16:01 bluddy

As the internal representation of images is exposed, isn't that already possible? If not, can you explain what is it you need exactly?

rlepigre avatar Jan 20 '20 21:01 rlepigre

You mean like in layer support using multi-dimensional bigarrays @bluddy?

cfcs avatar Mar 27 '20 17:03 cfcs

I mean that it's easier to have an interface that just works with multi-dimensional bigarrays, rather than having to match the exact data type used by imagelib.

bluddy avatar Mar 27 '20 17:03 bluddy