Rodousse / stbipp

A small size Image IO library based on stb_image. This has been archived due to a conflict of interest with my current employer.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Image] Set at runtime Image data underlying type

Rodousse opened this issue · comments

Is your feature request related to a problem? Please describe.
The same way OpenCV is doing it, we can change at runtime the "Color" underlying type.
For the moment it is fixed to Color<float,4>. But what if we want it to be encoded with 3 unsigned chars, or 26 doubles...

It would get rid of the castData() templated member function and will come very handy in some cases.