LibRaw technical support

Stable LibRaw versions: technical support, errors, API questions

new cameras

Hi,

(I'm not sure where this post belongs. I started to put it in general but that area seems overrun by watch spam.)

I've recently worked with a couple of industrial cameras based on the Sony ICX 625/655 5MP color sensor. I modified libraw to work with these images, and the patch is below. The JAI BB-500GE wasn't tested, but should work OK because the GigE camera is nearly identical to the CameraLink, which was tested. The other 3 were tested and work OK.

I hope this helps someone.

-kc

6783a6784,6787

Forums: 

Reading color

Hi,

I am trying to read raw images with libraw and paint them to screen.

I need to extract per pixel RGB values where each color component must be in 0-255 range.

I am loading a raw file, iProcessor.imgdata.params.output_bps reports 8 bits per plane.

Whilst reading the image with iProcessor.imgdata.image[idx][0], I see values way above 255.

Am I missing something simple ?

Forums: 

dcraw_emu.exe versus dcraw.exe

Hi,
I wanted to compare the images generated by dcraw_emu.exe and the latest version of dcraw, which I compiled on Windows 7 using:

gcc -o dcraw.exe -O4 dcraw.c -lm -lws2_32 -DNO_JPEG -DNO_LCMS -DDJGPP

I then ran both dcraw.exe and dcraw_emu.exe with the same command line parameters:

dcraw.exe -g 1.0 1.0 -W -q 3 data.cr2
dcraw_emu.exe -g 1.0 1.0 -W -q 3 data.cr2

using this image:

http://www.filefactory.com/file/b345c12/n/data.cr2

Forums: 

New image pixel cropping feature

Hi,
the company that I work for has now paid for and received a patch from Dave Coffin for new image pixel cropping functionality. We are C++ programmers and are eager to get this new code integrated into LibRaw as soon as possible, so if we can be of any help please let us know. Also, we may be available to assist in the future development of LibRaw. Can someone please reply back as soon as possible please as to how we may move these plans forward?
Thanks,
Patrick

Forums: 

Crash when freeing a libraw_processd_image_i

I am using libraw in a project (Windows, Visual Studio). My program crashes, when I free the memory allocated by dcraw_make_mem_image:

libraw_processed_image_t *image = rawProcessor.dcraw_make_mem_image(&error);
free(image);

This does not occur, when I make the free-function defined in the libraw class public and use it to free the memory. What is the cause and solution to this problem?

Thank you in advance.

Forums: 

OpenMP problems compiling

Hi,
when building kdegraphics 4.4.3 on OpenSolaris with the Sun Studio 12U1 compiler, the code inherited from LibRaw fails to build saying:
...
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: "}" expected instead of "start of omp pragma".
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: A declaration does not specify a tag or an identifier.
"/.../srcdir/libs/libkdcraw/libraw/libraw/libraw_types.h", line 109: Error: Use ";" to terminate declarations.

Forums: 

Installing to /usr not /usr/local

On Linux, why does the makefile install everything to /usr/local? It would be better to install to /usr. Can you add a proper configure script, or just change all the /usr/local to /user?

The reason for this, is that various programs that use libraw (such as shotwell: http://yorba.org/shotwell/) would be much easier to install if all we had to do was make, sudo make install.

Forums: 

Implementing custom demosaic algorithm - any examples?

As the title says I am working on implementing a custom demosaic algorithm. I am having some trouble writing intermediate results to file. I have been trying to use dcraw_ppm_tiff_writer() but I seem to be missing G2 in the output. I have the same problem trying to write the raw (opened and unpacked file) to a TIFF. Does anyone have a suitable example?

Forums: 

Pages

Subscribe to RSS - LibRaw technical support