use "stream" tool to read out raw image file to integer cvs file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
teachbio
Posts: 1
Joined: 2015-12-14T18:25:01-07:00
Authentication code: 1151

use "stream" tool to read out raw image file to integer cvs file

Post by teachbio »

My RAW file is "ARW" from Sony Alpha camera. I would like to read .ARW file, the RGB values of each pixel and output as a CSV file format.

I have tried
stream -map r -storage-type integer _DSC2000.ARW 2000r.dat
The .dat file is binary and could not be read by text processor or Excel.

Does anyone know how to extract the values of each pixel from RAW image data?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: use "stream" tool to read out raw image file to integer cvs file

Post by fmw42 »

try outputing as txt: format and then parse the text data as you need it and then reformat to CSV. See http://www.imagemagick.org/Usage/files/#txt
Post Reply