I need to convert raw images from color to mono using libraw. How libraw performs demosaicking for returning the individual R,G,B values for each sensor. so that the resulting image could have the checker pattern for each colors depending on the sensor filters.
I'm having trouble figuring out how to exactly convert a 12-bit RAW nef file to an 8-bit RGB bitmap, most specifically the 8-bit part. I've got this code section:
I'm having trouble figuring out how to convert my RAW data from a Nikon D800 image into an RGB bitmap that I can use to create a PNG. I understand I will lose image quality and such, but I have my reasons for attempting to convert the image. Here's some code I've got:
I've been reading on the internet and digging through dcraw code for weeks now. And I can't seem to figure everything out I think I need to know in order to do proper color conversions and white balancing. I'm going to try to explain how I think things work, but it might be wrong, so please try to interpret and figure out where I'm wrong. I'm trying to wrap my head around every single part, so if there are details in anything I say where I'm wrong, please please tell me. I'd be so thankful. I know it is a very long post, but I'm trying to be very clear.
I am sorry to ask such a naive question, but what I need is to extract tags under makernote of the raw image such as the CameraFormat, etc.
How can I accomplish this? For instance I could access the whole XMP data by LibRaw.imgdata.idata.xmpdata I was wondering how to access the parameters in libraw_makernotes_lens_t structure.
I am trying to stitch two images taken with different cameras, and for this I want to use RAW. But dcraw_process() and dcraw_make_mem_image() perform some image enhancement operations. Some of the enhancements are dependent on the content of the image, for example the use the histogram of the image to determine the specific enhancement. I try to look in to the documentation but I couldn't differentiate which uses camera information, image information, specific algorithm and so on. How could i categorize the operation based on the above classification.
can somebody help me with problem around convert camera RGB values (as shot, white point) to known color space.
When I converting As shot coefficients to sRGB I use:
RawProcessor->imgdata.color.cam_mul[] then use matrix
RawProcessor->imgdata.color.rgb_cam[][] to convert as sRGB. But I don't know if it is D65 or D50 illuminant or other?
White point rawProcessor->imgdata.color.pre_mul[] is with which color space? Camera or sRGB and which illuminant?
This is a long shot and i havent investigated it deeply, but this is what works and doesn't work:
The 40MP files are Nikon D800's, the 80MP is an PhaseOne IIQ.
16.2:
80 megapixel image + OpenMP = OK
17.0:
40 megapixel image +OpenMP = OK
80 megapixel image +Openmp = NOT OK, image has vertical stripes, takes ages to process and looks utterly corrupt
80 megapixel image (no openmp) = OK
Recent comments