LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Unpacking RAW without any processing using dcraw_emu

Hi,

I would like to just unpack raw data from a Fuji X-T2 camera and then continue to process the linear raw bayer data in MATLAB/Octave. Thus I am missing the -D option in dcraw_emu. Is there a way to save single channel non-debayered linear raw data to 16bit TIFF via dcraw_emu?

Thank you very much in advance for your help ,

Jan

Forums: 

Loading (unpacking), processing, but no interpolation

I've been using LibRaw for many years to grab the raw Bayer matrix out of files. It's worked like a charm and I love it. In some places, I'll have it not only load the raw data, but run its own debayers, but in other places, I need to be able to debayer on my own. Hence, the grabbing the raw Bayer matrix out.

As I understand it, though, if I set:
RawProcessor.imgdata.params.use_camera_wb = 1;
RawProcessor.imgdata.params.no_iterpolation = 1;
RawProcessor.dcraw_process();
libraw_processed_image_t *image = RawProcessor.dcraw_make_mem_image(&rval);

Forums: 

Compile and use with mingw

Hello,
May I ask a question about using libraw with mingw?
My OS is Windows 7 and I installed MSYS and mingw492_32.
I download LibRaw-0.17.2.zip and extract it.
On command prompt, I executed
sh ./configure
mingw32-make -f Makefile.mingw
and could get lib\libraw.a

I tried to test this static library with simple_dcraw.cpp in samples folder.
g++ simple_dcraw.cpp -o simple.exe -Ilibraw -Llib -lraw

I got the following error messages:

Forums: 

FujiExpoMidPointShift bug in LibRaw 0.18

Hi LibRaw team,

I ran into a problem where the FujiExpoMidPointShift variable has a different value in the debug vs release builds. This seems to be a bug in LibRaw 0.18. It worked fine in LibRaw 0.17. Here is how to reproduce.

In the following Google Drive folder is a Fuji X-Pro1 RAF test image.

https://drive.google.com/drive/folders/0BzcmCgBZCb5WNFVvREwxeDl3eEE?usp=...

Forums: 

Demosaic raw without any other post-processing

Hello again,

is there some kind of best practise to just convert/demosaic a raw file without doing any other post-processing.

Basically I need the raw just converted to 16bits per channel RGB without noise reduction, highlight clipping or anything else.

I get my image data with

Forums: 

Problems with msvc 2015 x64 build

Hello,

I've experienced some strange results when using a 64bit build of libraw.
The dll and lib has been built with:

call "D:\Programme\Visual Studio 14\VC\vcvarsall.bat" x64
nmake -f Makefile.msvc

in the libraw main directory. (latest test was with 0.18 beta 2) - There are no warnings/errors at build time.

I'm also able to run my code, but I don't get an bitmap output with 16 bits per channel.

Forums: 

DNG conversion issue

I am using LibRaw together with the rawPy wrapper (http://pythonhosted.org/rawpy/api/rawpy.RawPy.html) to read in DNG files into Python. Unfortunately the input image does not seem to be correctly read in.

The code I use is:

import rawpy
import imageio

newFile = 'GOPR0079.DNG'

with rawpy.imread(newFile) as raw:
rgb = raw.postprocess(demosaic_algorithm=None,output_color = rawpy.ColorSpace.raw)

imageio.imsave('tst.png',rub)

Forums: 

Pages

Subscribe to RSS - LibRaw technical support