LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

problem setting up gamma curve to use on .CR2 raw file

Hi,

I'm having a problem when trying to set up a gamma curve to use when processing data from .CR2 file.

The result is always the same (doesn't matter the values i set up).

Here's what my code looks like (pseudocode):

Rawprocessor;
Rawprocessor.openfile(file);
Rawprocessor.unpack();
Rawprocessor.imgdata.params.output_bps = 16;
 
Rawprocessor.imgdata.params.gamm[0] = 1.;
Rawprocessor.imgdata.params.gamm[1] = 1.;
 
Rawprocessor.dcraw_process();

Forums: 

Chromatic Abberation errors, blue halo

Hi!

I am using the default demosaicing functions in libraw (AHD), and i have the automatic chromatic abberation correction on. Often this works really well. Just sometimes however, this gives very strange results as can be seen in the attachment. I call it purple or blue halo's. I am absolutely sure it has to do with the chromatic abberation detection. Any ideas or questions?

Forums: 

Sony ILCE-6000 - problems reading raw image data from .arw files

Hello,

just tried to read in Sony ILCE-6000 raw image files, EXIF data seems to be ok, but the arrays with the rgb channels are filled with zeros. My routines have already worked with EOS 550d raw files. It seems that ILCE-6000 raw files are not compatible with your library. Any suggestions ?

Greetings,
lops

Forums: 

NarrowedType fixes for Clang

Hey,

I've was having some trouble compiling LibRaw a few months ago with LibRawLite using clang on OSX.

The source of the issue was incorrect sized types in internal/dcraw_common.cpp

The following errors were being thrown:

Constant expression evaluates to 128 which cannot be narrowed to type 'signed char'

Constant expression evaluates to 136 which cannot be narrowed to type 'signed char'

Constant expression evaluates to 65535 which cannot be narrowed to type 'short'

Forums: 

LibRAW licence

Hi,

I'm thinking about using libraw in my project (linking to it, not modifying in any way). But I'm a bit baffled by the licence under which to use it. There is a post on this forum about using libraw under the LGPL or CDDL licence, but the main page is speaking about GNU GPL v2 and later.

My project is going be closed source application made for a third party and GPL licence might be a problem, is it possible to use some different licence for using libraw?

Forums: 

Trying to derive linear image from NEF, how do I use cam_mul?

I am trying to derive a linear image from a D7000 NEF 14-bit. I need both color and gray. I am using opencv cv::cvtColor(rawMat, debayeredMat, cv::COLOR_BayerBG2BGR) to convert to RGB CV_16UC3 (3 component ushort).
I believe I need to use cam_mul to get proper wb.

I am getting these values for cam_mul
cam_mul[0] = 486
cam_mul[1] = 256
cam_mul[2] = 371
cam_mul[3] = 256

I am not sure how to use these values to get anything sensible.

Thanks for any help you can provide!

Forums: 

Author Information on EOS550D CR2-Files

Hello,

i have started to use libraw for raw image data processing of CR2-files from the Canon EOS 550D.
Doing:

LibRaw iProcessor;
iProcessor.open_file(fullfilename);
iProcessor.unpack()

I cannot get the author information from:

iProcessor.imgdata.other.artist

Its just an empty string there. I have checked the corresponding CR2-file and my name is in there - clearly readable as ASCII text. Why i cannot get it using your library??

Greetings,
Lops

Forums: 

How to tell if dcraw_make_mem_image() was called?

Hi comrads,

I would like to know how i can know that this call has happened:
image = iProcessor.dcraw_make_mem_image(&rc);

The reason is that i need to clear 'image':
LibRaw::dcraw_clear_mem(image);

But ofcourse only when dcraw_make_mem_image has been called. However, i have no idea to tell *if* it has been called in the first place. For example, testing for iProcessor.data!=NULL or image == NULL or .data or something similar has not worked for me, please assist.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support