bioio-devs / bioio

Image reading, metadata management, and image writing for Microscopy images in Python
https://bioio-devs.github.io/bioio/OVERVIEW.html
BSD 3-Clause "New" or "Revised" License
55 stars 4 forks source link

Add ArrayLikeReader #39

Closed toloudis closed 4 months ago

toloudis commented 7 months ago

Feature Description

BioImage should be able to wrap an already in memory numpy array.

Use Case

This previously existed in aicsimageio and some scientists have asked for it.

Solution

Bring this implementation over: https://github.com/AllenCellModeling/aicsimageio/blob/main/aicsimageio/readers/array_like_reader.py Add it to bioio. Plugin selection can check for arraylike first and apply this reader if a numpy array is passed in instead of a path/url etc.