Questions tagged [dcraw]

dcraw is an open-source computer program which is able to read numerous raw image formats, typically produced by high-end digital cameras.

26 questions
51
votes
6 answers

RAW Image processing in Python

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…
The Unknown
  • 19,224
  • 29
  • 77
  • 93
5
votes
1 answer

Libtiff: Generating TIFF/EP Profile 2 Raw image from pixel array

I'm trying to generate a TIFF/EP Profile 2 raw (.dng) image from an arbitrary pixel array. This pixel array represents a Bayer pattern (CFA). I studied the TIFF/EP file specifications and, by using libtiff, I included all tags I believe are…
Fabian K
  • 141
  • 1
  • 7
4
votes
3 answers

Is there anyway (commandline tools) to calculate MD5 hash for .NEF (also .CR2, .TIFF) regardless any metadata?

Is there anyway (commandline tools) to calculate MD5 hash for .NEF (also .CR2, .TIFF) regardless any metadata, e.g. EXIF, IPTC, XMP and so on? The MD5 hash should be same once we update any metadata inside the image file. I searched for a while, the…
3
votes
1 answer

convert dcraw to jpeg with imagemagick too dark/light

I am using dcraw (http://www.cybercom.net/~dcoffin/dcraw/) to handle camera raw files and piping it to imagemagick to convert it to a jpg for web use. I have done a few different test and the jpeg never produces the exact same colours/brightness as…
David
  • 4,717
  • 8
  • 35
  • 46
2
votes
1 answer

how to post-process raw images using rawpy to have the same effect with default output like ISP in camera?

I use rawpy module in python to post-process raw images, however, no matter how I set the Params, the output is different from the default RGB in camera ISP, so anyone know how to operate on this please? I have tried the following…
rainyfly
  • 21
  • 2
2
votes
2 answers

R parallel system call on files

I have to convert a large number of RAW images and am using the program DCRAW to do that. Since this program is only using one core I want to parallelize this in R. To call this function I use: system("dcraw.exe -4 -T image.NEF") This results in…
2
votes
0 answers

Dcraw bit depth of 14 bit in output 16 bit tiff

How is it possible to convert a 14-bit raw (Nikon D7000 NEF) to 16-bit tiff preserving the bit depth (ie. max of 16383) and not getting a max of 65535. I'm using dcraw -T -4 input.NEF
Dolphin
  • 123
  • 4
2
votes
1 answer

How to make a simple grafical interface in C# for DCRAW

i have a problem. I need to make a simple GUI in Visual Studio 2008 using C Sharp that uses a Dave Coffins DCRAW written in C but I don't know how to "connect" dcraw.c (DCRAW source code) file with Csharp... UFRAW is the example of grafical…
1
vote
3 answers

imagemagick RAW file identify/convert - no such file or directory (tmp file)

I'm trying to use imagemagick-7 (CLI) on ubuntu to identify and convert RAW images to PNG format. I am using the dcraw binary as the delegate for identifying and converting raw images. I updated the dng:decode delegate in delegates.xml as…
corecase
  • 1,278
  • 5
  • 18
  • 29
1
vote
1 answer

Gphoto2 capture and download

I'm using gphoto2 capture image and download but it takes 3 or 4 seconds. I want it to only take 1 second; is it possible? Can anyone help me please? This is my code: time gphoto2 --capture-image-and-download --stdout > /dev/null Which…
1
vote
1 answer

Output from dcraw has checkerboard shading

I'm trying to use dcraw on a color image (e.g.CR or NEF) to extract raw monochrome data for image processing. With parameters -4 -D -c I get an image with a checkerboard as shown below: When unzoomed, the image data is correct, except for the…
RobertFrank
  • 7,332
  • 11
  • 53
  • 99
1
vote
1 answer

Raw Images, and DCRaw in C++

I want to be able to work with RAW images in C++ so I downloaded an already compiled DCRaw executable. I tried compiling it myself but I kept getting errors. So I want to be able to read in raw images to C++ and work with them. What would be the…
chasep255
  • 11,745
  • 8
  • 58
  • 115
0
votes
0 answers

"Uncaught RuntimeError: memory access out of bounds" when trying to load file in WASM of C-program

I try to load a file from my local filesystem, which is then loaded into MEMFS (provided by Emscripten) and pass the file name as one argument to a C program which is cross compiled as WebAssembly using Emscripten. When calling the function to load…
niels_h
  • 1,869
  • 2
  • 13
  • 15
0
votes
1 answer

Estimate average channel intensity of a raw images without using dcraw

I have a pipeline that records images on a raspberry pi, converts them to tiff via dcraw, and then estimates the average intensity for the three channels (RGB). Since the conversion to tiff is the bottleneck, I wonder if I can skip it. More…
joeDiHare
  • 619
  • 8
  • 19
0
votes
1 answer

What is the name of a algorithm implemented in gamma_curve of dcraw?

Dcraw contains a following algorithm to process image colors: https://gist.github.com/1047302. Is it a formal (named) image processing algorithm? If not, what should I read to understand reasoning behind it?
Andrey Shchekin
  • 21,101
  • 19
  • 94
  • 162
1
2