letmaik / rawpy

📷 RAW image processing for Python, a wrapper for libraw
https://pypi.python.org/pypi/rawpy
MIT License
613 stars 68 forks source link

Raw image size does not match rgb image size #68

Closed legendongary closed 5 years ago

legendongary commented 5 years ago

I am processing some dng files from mit-adobe fivek dataset. For most photos, raw_image_visible and postprocess return images with the same resolution. For some ones like "a0009-kme_372.dng", the two resolutions do not match.

legendongary commented 5 years ago

I can provide the dng file. a0009-kme_372.dng

letmaik commented 5 years ago

This is how dcraw/libraw processes the picture. There is no guarantee that the resolution matches exactly. For further questions, please post in https://www.libraw.org/forum. rawpy is just a wrapper around libraw.