dng

DNG raw pictures imported as 16 bit deep but unexpected plt.show() result

强颜欢笑 提交于 2019-12-11 02:24:55
问题 Trying to process raw DNG pictures in Python with rawpy ends with strange results. import rawpy import imageio from matplotlib import pyplot as plt path = '/home/stefan/AIJ/RAW.DNG' with rawpy.imread(path) as raw: rgb = raw.postprocess() plt.imshow(rgb) plt.show() The result is an rgb picture array with 8-bit values while my camera generates 14 bit raw pictures. Visualizing the rgb array gives an expected result: From some googleing I understood that it is possible to import the same file but

Can you save an edited RAW .dng file on iOS?

北战南征 提交于 2019-12-01 11:15:17
I want to build an iOS 10 app that lets you shoot a RAW ( .dng ) image, edit it, and then saved the edited .dng file to the camera roll. By combining code from Apple's 2016 " AVCamManual " and " RawExpose " sample apps, I've gotten to the point where I have a CIFilter containing the RAW image along with the edits. However, I can't figure out how to save the resulting CIImage to the camera roll as a .dng file. Is this possible? A RAW file is "raw" output direct from a camera sensor, so the only way to get it is directly from a camera. Once you've processed a RAW file, what you have is by

Can you save an edited RAW .dng file on iOS?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 09:07:02
问题 I want to build an iOS 10 app that lets you shoot a RAW ( .dng ) image, edit it, and then saved the edited .dng file to the camera roll. By combining code from Apple's 2016 " AVCamManual " and " RawExpose " sample apps, I've gotten to the point where I have a CIFilter containing the RAW image along with the edits. However, I can't figure out how to save the resulting CIImage to the camera roll as a .dng file. Is this possible? 回答1: A RAW file is "raw" output direct from a camera sensor, so

RAW Image processing in Python [closed]

丶灬走出姿态 提交于 2019-11-29 01:28:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Are there any Pythonic solutions to reading and processing RAW images. Even if it's simply accessing a raw photo file (eg. cr2 or dng) and then outputting it as a jpeg. Ideally a dcraw bindings for python, but anything else that can accomplish the came would be sufficient as well. 回答1: A while ago I wrote a libraw

Reading RAW image files as GDI+ bitmaps [closed]

巧了我就是萌 提交于 2019-11-28 07:03:06
Is there a good way to read RAW image files (especially Canon CR2 and Adobe DNG files) as GDI+ bitmaps that is reasonably fast? I found an example running under WPF that would read an image using any installed image codec and then display it in an image control. And I modified this example to create a GDI+ bitmap by writing the WPF image to a MemoryStream and creating the Bitmap from that. But this process is slow! Horribly slow! Opening a simple image takes around 10 seconds on my computer. This solution also requires references to the WPF assemblies and that doesn't feel right, especially