Hello, Im working on project making HDR photo out of RAW images by making 3 samples with different exposures. Overexposing the image by setting values exp_shift between 2.0 and 8.0 works great but the underexposing values just arn't working. Setting them to 0.5 or 0.25 and it makes no difference on the result between it and input image.
Normal process - unpack(), dcraw_process(), dcraw_make_mem_image()
I am trying to copy the unpacked image to a BitmapData object using copy_mem_image(), however it gives an error saying Access Violation. Where is the problem? My code is as follows:
i actually try to load a RAW file created by the Nikon Coolscan 4000 Scanner.
Its a .nef file, original resolution 5408x3571 px, but i receive a wrong resultion and no image data.
Is it possible, that the Nikon Coolscan 4000 Raw files are not supported? (.nef is supported, but maybe the coolscan 4000 files are somehow special)
Linux konata-chan 3.2.0-37-generic #58-Ubuntu SMP Thu Jan 24 15:28:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
Steps to reproduce:
1) With a valid application or test harness incorporating libraw, attempt to decode an .s rw into a JPEG and save the result to disk.
Notice that a 'stray' file containing the name of the saved image and the process id is left behind in the directory where the conversion took place.
I am writing a GUI interface with C++ and I would like to make the LibRaw processor (i.e. LibRaw Processor = LibRaw();) to be global so that I can use it in any functions and pass it between other forms.
I've tried:
private:
LibRaw Processor1;
it turns out "error C4368: cannot define 'Processor1' as a member of managed 'RAW_GUI::Form1': mixed types are not supported"
And I tried to make it as a pointer:
private:
LibRaw *Processor1;
However I cannot run Processor1 = LibRaw(); as it cannot convert LibRaw * to LibRaw.
I wonder whether there is a way using LibRAW to process the RAW data (I think I read thru the manual how to do that) and to store that back in the RAW file (a NEF, for instance). To simplify, is it possible with LibRAW to *modify* a RAW file, instead than unpacking it for storage in a different format.
All the best for 2013, still 2 hours to go in Italy :)
David
You note that this will return either JPEG or RGB. Why not leave this in PPM format like dcraw_thumb_writer?
Additionally there's a typo in the documentation as it states that the type will be LIBRAW_IMAGE_JPEG, regardless. I checked the code and it appears to correctly type LIBRAW_IMAGE_BITMAP for RGB output.
It states that the output is either JPEG or RGB bitmap. What is it in the case of a PPM thumb model? The output does not appear to be either a JPEG, bitmap, or PPM.
I've checked the header and it's certainly not PPM.
I've tried loading the buffer into a bitmap in Java and it fails.
I can however dump the PPM thumbnail via dcraw_thumb_writer, so it can be processed.
When i load a raw file (dng, converted via Lightroom from canon cr2), process it and try to save it into jpg, every like 175-200 lines are skipped, so the overall image has less height and the rest is filled with black.
Recent comments