LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

Canon - offset in color filter array

Hi,

When I use image demosaicing with color filter array got by LibRaw::COLOR(row, column) most outputs looks consistent apart from some Canon images, which looks too purple.
For those files obtained color filter array (by COLOR(row, col)) looks like simple RGGB:
R G
G B
However if I use row offset instead:
G B
R G
the results seems to be OK.
Does LibRaw return correct cfa pattern for those files?

Forums: 

In-Depth Demosaicing Algorithm Analysis

At the completion of a project that uses LibRaw, I want to share the more intense algorithm artifact analysis to be helpful for anyone hoping to use LibRaw in the future, and as a thank-you to Alex for the direct support.

To summarize, algorithm (user_qual) 11, DHT, is the best. It's better than the best offered by RawTherapee, too.
Here are the most important examinations I performed!

Forums: 

Extracting Metadata Without Unpacking RAW Data

Is there a way to have libraw extract the metadata from a RAW file without unpacking all the data?

I'm using the libraw plug-in that is part of OpenImageIO. In that plugin, unpack() is called before any of the image properties are read, which causes the property reading to be incredibly slow because unpacking() is slow (relative to just reading the TIFF header in most RAW files.)

https://github.com/OpenImageIO/oiio/blob/master/src/raw.imageio/rawinput...

Forums: 

Orientation of some Canon files wrong in LibRaw 0.19-Snapshot-20170212

Hello!

Using dcraw_emu.exe compiled from the LibRaw 0.19-Snapshot-20170212.

Some Canon files are being displayed with the wrong orientation, they show as landscape when they should be portrait.

Looking at the code I found a place in dcraw_common.cpp with a note saying :

#if 0 /* Canon rotation data is handled by EXIF.Orientation */

If I re-enable that piece of code then the images show correctly. I tried to look around for "EXIF.Orientation" or something like it but couldn't find it.

Forums: 

Nikon Coolpix P330 - wrong black and white levels

Hi guys,

There seems to be a bug in LibRaw 0.19-Snapshot-20170212. To reproduce:

1. Download a Nikon Coolpix P330 raw sample. Here is one website to download from:

http://www.photographyblog.com/reviews/nikon_coolpix_p330_review/sample_...

2. Use dcraw_emu to convert the raw file to TIFF (or some other format). The TIFF image will appear almost completely white.

Forums: 

dcraw_emu - Brightness Level

First, thanks for creating this version of DCRaw. I have been using the original DCRAW as part of a utility I have developed to make it easy to run the NIK Collection standalone. One of the added features is the ability to input RAW files. I needed a way to support Fuji X compressed files and this is probably the best and easiest way to do that. It also seems to be quicker than the original DCRaw.

Forums: 

Pages

Subscribe to RSS - LibRaw technical support