Questions tagged [libraw]

LibRaw is a library for reading RAW files from digital photo cameras (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc.; virtually all RAW formats are supported).

LibRaw is a library for reading RAW files from digital photo cameras (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc.; virtually all RAW formats are supported). It pays special attention to correct retrieval of data required for subsequent RAW conversion.

The library is intended for embedding in RAW converters, data analyzers, and other programs using RAW files as the initial data.

Home: http://www.libraw.org/

26 questions
0
votes
0 answers

struct.error: unpack requires a buffer of 4380480 bytes (RAW to DNG) using Python

I need to convert a RAW file to DNG using Python and I keep getting a struct.error... This error is uncommon as far I can see on the internet — I am processing RAW image frames — and my error is "struct.error: unpack requires a buffer of 4380480…
krivinus
  • 17
  • 1
0
votes
1 answer

How do I read an image using Rawpy image processing library, from a URL?

How do I read an image using the rawpy library, from a url? I have tried filepath = www.google.com/image.jpeg im = rawpy.imread(filepath) but it doesn't work. I looked deeper into rawpy's code and it says it takes "path or file". I have also tried…
CoderMath
  • 25
  • 1
  • 5
0
votes
0 answers

Xcode 11 not properly loading header files from search paths

I'm trying to build a command line tool in C++ using Xcode 11.2.1, and I'm getting stuck trying to configure my dependencies. I'm trying to use a library called libraw, which I've installed via Homebrew. I see a libraw directory in…
flimsy
  • 204
  • 1
  • 10
0
votes
0 answers

Saving raw CFA buffer to raw image

I'm trying to save a raw sensor buffer as a raw file using PIL. The buffer contains the CFA data (at 8-bit per pixel) and I'd like to save it as a raw CFA image that I'd be able to process later with and LibRaw (dcraw). I've tried using PIL to save…
Tal Klinger
  • 51
  • 1
  • 4
0
votes
1 answer

Error when linking LibRaw to shared object

So, what i'm actually trying to is to build a shared object, that contains a python-includable-module, generated by pybind11. I got it as far as to have no syntax-errors in CLion, but when i try to compile it, it gives the following…
Tim Hilt
  • 605
  • 5
  • 23
0
votes
1 answer

ERROR while compilation of libraw program

I am trying to compile this simple program of libraw, the readraw formed after g++ libraw.cpp -o readraw -lraw -lm gives following error ./readraw: error while loading shared libraries: libraw.so.19: cannot open shared object file: No such file or…
0
votes
1 answer

Libraw doesn't use camera-provided white balance

I tried this: LibRaw iProcessor; iProcessor.open_file(filename); iProcessor.unpack(); iProcessor.imgdata.params.use_auto_wb = 1; iProcessor.imgdata.params.use_camera_wb = 1; iProcessor.dcraw_process(); …
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
0
votes
1 answer

Converting *.raw to *.tiff

There was such a problem. Requires conversion of *.RAW files received the camera 4K NDVI CAMERA for GitUp G3. I use libraw.h, which contains dcraw.c. She works with the GitUp Git2 camera format. My file she does not recognize it and deduces…
0
votes
0 answers

Libraw - How can I get a image just with the red pixels using Libraw?

I'm using Libraw to a project which is about manipulating raw image files. I need to implement a feature that from a raw file I need to export an image just with the red pixels (and other 3 images for blue, green and green2 pixels). I've tried the…
0
votes
1 answer

Using LibRaw to correctly decode CR2 image?

My eventual goal is to decode CR2 images from multiple cameras for display in a desktop gui. Using the LibRaw image decoding library, I've used the sample project to attempt to decode a CR2 image into a .TIFF file. The original file as a jpg…
-1
votes
1 answer

How to get the raw data of CR2 image using LibRaw(c++)

LibRaw is a library for reading RAW files from digital photo cameras (CRW/CR2, NEF, RAF, DNG, MOS, KDC, DCR, etc.; virtually all RAW formats are supported). I want to know how to use LibRaw to get the raw data of a Canon CR2 image. typedef…
Chan Xiang
  • 56
  • 3
1
2