Open bobobo1618 opened 8 years ago
It would be even nicer if it could support an arbitrary number of up-to-64-bit channels. Float32 and Float64 would be useful, too
https://github.com/FLIF-hub/FLIF/commit/938a89fc4405f6ac90626e35d8faeaf6dd448e33 added some basic RGGB support. The script raw2flif
gives a method to convert camera raw files to FLIF, perhaps in a lossless way. You need dcraw
to extract the raw RGGB data and exiv2
to extract the metadata.
Now the only thing I don't know how to do is how to reconstruct the original camera raw file from that...
Great! The best way to reconstruct the RAW is probably as Adobe DNG (a TIFF derivative with more embedded metadata and some lossless JPEG92 compression) or TIFF (but you'll either have to write an XMP (XML sidecar) or lose metadata).
Support of multiple channels (maybe up to 256) should also be useful for multispectral images for infrared, ultraviolet, etc...
Applying a kind of YIQ transform might be useful for compression efficiency. :)
Basically a continuation of https://github.com/jonsneyers/FLIF/issues/37#issuecomment-145675273.
It'd be nice if FLIF supported weird things like RGGB as well as RGB and RGBA.