RAW processing

All about RAW processing

disappeared dcraw functionality

Hi,

I have been using dcraw a lot and now trying LibRaw because I have a camer that uses cr3 files. In LibRaw I am missing two main featerus that used to be pasrt of DcRaw.

1. The possibility to keep original capture date when converting to tiff (-z in DcRaw)
2. The option to assign a camera icc profile after linear conversion ( -p )

Have those options been removed for a specifif reason?

Forums: 

Accessing processed image data

I'm unsure how and where to access processed image data after calling libraw_dcraw_process. I noticed that imgdata.image now has a valid pointer, but looking at the 4channels samples that suggests that this is just raw data (which I can and do currently access via imgdata.rawdata.raw_image). I've also looked at calling libraw_dcraw_make_mem_image which seems to create reasonable values in libraw_processed_image_t (width, height, etc., ) but just has data as a byte array (despite 16bit processed data) length=1 (libraw_types.h has ''unsigned char data[1]" declaration).

Forums: 

Generic white-balance and color correction when dcraw_process()

I am creating a post-processing pipeline that will deal with a large variety of cameras (makes, models, lenses etc...)

All Formats supported by libraw will likely be encountered at some point.

All of the images will, at some point, call dcraw_process().

But, during testing, i have observed that some images tend to come out "dark", and some have "not ideal" white-balancing.

In search for a comparison, i looked at the images using FastRawViewer and they look EXCELLENT there!

Forums: 

libraw_internal_data access

Hi, I'm new user of LibRaw.

I'm wondering can I get access to libraw_internal_data.

For example, in src / postprocessing / postprocessing_utils.cpp, there is a 'convert_to_rgb_loop' function.

And in that function, I can print 'imgdata.idata.colors' but I want to know generated 'libraw_internal_data.output_data.histogram'.

So please let me know whether internal_data is public information or not.

Thank you.

Forums: 

Negative value in XYZ space by using inverse adobe-coeff

Thanks for reading this post.

I am working on converting camera-RGB to sRGB space. What I did is to first multiply the inverse of the adobe-coeff matrix with camera-RGB image (normalized to : [0,1]) (convert from camera-rgb to XYZ), then convert it to sRGB space. However, what I found is that the XYZ space has negative values. And after conversion, the minimum value of sRGB space can be lower than 0, and the maximum value can be higher than 1.

My script:
raw_rgb = np.float32(raw_rgb/255)

Forums: 

Pages

Subscribe to RSS - RAW processing