letmaik / rawpy

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

Can rawpy do postprocessing raw data in type of ndarray? #131

Closed leonmakise closed 3 years ago

leonmakise commented 3 years ago

I read those issuses and know that it is impossiable to save a .arw file.

But I train a network to input a 1 channel raw data and output a 1 channel raw data. The input data in processed by .raw_image_visible.astype(np.float32) to get ndarray type. However, I cannot do postprocess in RawPy due to it is not 'rawpy.RawPy' type.

Do you convert 'rawpy.RawPy' type to any numerical type in method '.postprocess'? Can I realize those postprocessing by using parts of this repo?

Thanks for your attention and valuable time!