Page 1 of 1
DNG to PNG conversion
Posted: 2016-11-09T02:06:09-07:00
by kvothe
I have captured a burst of 5 dng images from a Nexus6P for scientific imaging. The pixel intensities from the image will be mapped to my measurement value. For further processing the 5 dng images are averaged to reduce the noise and converted to png. I am using convert dng:*.dng -average out.png to achieve this.
I would like to know if any processing is being done on the dng image, changing the pixel intensity values while conversion as it would affect my final calibration.
Version: ImageMagick 7.0.3-4, Windows 10
Thank you
Re: DNG to PNG clarification
Posted: 2016-11-09T02:49:40-07:00
by snibgo
The output from the conversion will be a three channels per pixel, encoded as non-linear sRGB. But your input DNG may be "raw": Bayer filter (hence one channel/pixel), linear RGB, requiring white balance, and so on.
So the answer to your question is: it depends on the DNG file you give it. A quick Google search suggests that Nexus 6 DNG files are indeed Bayer, linear, etc.
Re: DNG to PNG clarification
Posted: 2016-11-09T04:46:25-07:00
by kvothe
snibgo wrote:The output from the conversion will be a three channels per pixel, encoded as non-linear sRGB. But your input DNG may be "raw": Bayer filter (hence one channel/pixel), linear RGB, requiring white balance, and so on.
So the answer to your question is: it depends on the DNG file you give it. A quick Google search suggests that Nexus 6 DNG files are indeed Bayer, linear, etc.
On using identify command on the DNG file obtained from Nexus 6P, the colorspace is listed as sRGB. However when I checked the metadata in MATLAB it is specified as CFA (Color Filter Array).
Re: DNG to PNG conversion
Posted: 2016-11-09T04:52:44-07:00
by snibgo
"identify" tells you about the image
after it has been converted.
CFA says nothing about colorspace: CFA could be sRGB or linear. But it is probably linear.
dcraw will give you some information, eg: