kunzmi / ImageStackAlignator

Implementation of Google's Handheld Multi-Frame Super-Resolution algorithm (from Pixel 3 and Pixel 4 camera)
GNU General Public License v3.0
392 stars 65 forks source link

Error loading DNG files from Fuji #32

Open dejanberic opened 1 year ago

dejanberic commented 1 year ago

I converted Fuji RAF files to DNG using Adobe DNG Converter. The program crashes when trying to load them. How hard would it be to add support for Fuji's non-standard 6x6 sensor patter?

kunzmi commented 1 year ago

In theory there's not that much to change: Modify the debayer-routine in order to obtain a preview image and the grayscale image. Then let the algorithm know which pixel corresponds to what color channel - which shouldn't be that difficult. On the other hand, several RAW-converters struggle with the Fujifilm pattern, so maybe there's more to it? I don't know, I never had a closer look to what Fujifilm does... And wasn't there a thing with two different green-channels? And a 45-degree rotation? My memories are faint on that subject...

dejanberic commented 1 year ago

Thanks for the info. Right now I am struggling to even load those DNG images. I get this error:

image

You can find images here: https://drive.google.com/file/d/15tfcm38fhQ0RW0usepAShd_UPETlU1PS/view?usp=share_link