OpenImageIO icon indicating copy to clipboard operation
OpenImageIO copied to clipboard

ImageBufferAlgo::demosaic (IBA::demosaic)

Open ssh4net opened this issue 6 months ago • 7 comments

OpenImageIO already supports different demosaic algorithms via the libraw or OpenCV plugin.

Technically, as soon as libraw is already built and the library is present, it is possible to call libraw to demosaic routine passing binary blob to it. That should work fine for 8/12/16-bit inputs. In most cases, users are OK with that.

But if you need demosaic float imagery there are only OpenCV can help. The problem is that OpenCV as a meta library is probably even bigger than OIIO. And building OIIO with OpenCV only for demosaic is probably a huge overhead.

So, the idea is to implement a lightweight Demosaic function as a part of ImageBufferAlgo with the support of all bit depths OIIO.

For start it can be a simple Linear Demosaic. Later it can be extended by adding other open source algorithms.

ssh4net avatar Aug 01 '24 01:08 ssh4net