RAW processing

All about RAW processing

Color correlated temperature: fallback strategy for non supported cameras ?

Hi,
I am using libraw to access cam_xyz and cam_mul to compute the Color correlated temp and tint of an image.
When the RAW comes from a non supported camera, cam_xyz is a matrix filled with zeros.
Is there a recommended way to fallback on cam_xyz values coming from a different but similar cameras (same brand, earlier models) and compute an approximate value rather than returning some default temp and tint.

Thanks

Matt

Forums: 

Questions about black-level and white-levels in colordata

Hi,
I had posted a question about this yesterday, but I dont think that post was well-researched (my bad!). I am reposting after doing some digging around myself. Hopefully these questions are a little more pointed.

The comments that I am specifying below is after calling unpack(). I am trying to use libraw to read the CFA data and all metadata to build my own RAW processing pipeline. Hence, I am using libraw primarily to read the data.

Forums: 

Q about BlackLevels and Maximum values

Hi,
I am using libraw to read CFA data into my application and build my own RAW processing pipeline. To this effect, I am trying to understand how the black level and saturation values are handled by libraw.

My workflow is primarily going to be:
LibRaw rp;
rp.open_file(fileName);
rp.unpack();
// Read the rawdata and inspect the rp.imgdata to get the necessary metadata for building my own pipeline.

Forums: 

Questions about color matrices in colordata

Hi,
I am trying to understand the behaviour/purpose of the various color conversion matrices that are present in the colordata struct. I was able to glean some information from the various forum posts dating back several years but I still have a bunch of clarifications. I am little new to raw processing and so I want to ensure that any erroneous results I am getting is not due to my misunderstanding of how the library returns these coefficients.

Forums: 

Determining CFA Pattern from cdesc and filters

Hi folks,
This is my first rodeo using libraw to read RAW files and so apologies in advance if these questions are very trivial.

I am trying to determine the Bayer layout of the RAW images in some sample images I have. It appears that using the filter field in conjunction with cdesc is the way to go. Please correct me if I am mistaken.
I also tried to call COLOR function to confirm my understanding. But, the results I am getting do not appear to be consistent.

Forums: 

unpack_thumb unpacks previews instead

Upon using ExifRead (https://pypi.org/project/ExifRead/) to processes exif metadata from an image and using that to extract the Jpeg Thumbnail, we came to know that the extract_thumb method, instead of extracting the Jpeg Thumbnail, will extract the Jpeg Preview of a RAW image. Is this a desired behavior and if so, is there a way to extract the actual Jpeg Thumbnail from the image?

Also, in case the Jpeg Preview is missing, will Libraw report and error or extract the Jpeg Thumbnail instead?

Forums: 

Cr3 Raw wrong Whitebalance

Hello,

I'm working on a project in whiche I need to load a Cr3 Raw from the Canon EOS 250D, edit further in a c# programm via GDI and save it as Jpg, Tiff or png.
As far I can load the raw file via Libraw and copy the imagebuffer in my c# programm.

After I save the image, the Whitebalance isn't equal to the Cr3 file opened in Photoshop.

How it looks out ouf PS
http://neuland.wtf/img/ps.jpg

Forums: 

ARW processing color shift

I am working on some ARW files but having some color shifting problem in raw post-processing. The color seems to be totally shifted specially the red channel values when i compare it with other consumer grade software (adobe PS, RAW therapee). It maybe a bug or perhaps i am doing something wrong. Please help
My raw.postprocess parameters
use_auto_wb=False,use_camera_wb=True,no_auto_bright=False,output_color=rawpy.ColorSpace.sRGB,fbdd_noise_reduction=rawpy.FBDDNoiseReductionMode(0),output_bps=16

Forums: 

Pages

Subscribe to RSS - RAW processing