Recent comments

Reply to: open_bayer() and save as .tiff file without any peocess   4 years 5 months ago

You ca even use existing tools instead of coding w/ libraw or libtiff, see e.g. http://netpbm.sourceforge.net/doc/rawtopgm.html (and then easily convert PGM to TIFF w/ pamtotiff), or you can also use ImageMagick/GraphicsMagick and define the 'gray' input:

convert -size 512x512 -depth 16 -endian LSB gray:original.bayer -type grayscale result.tif (of course change the dimensions and endianness to suit your need)

Reply to: open_bayer() and save as .tiff file without any peocess   4 years 5 months ago

why don't you want to use libtiff?

You already have sensor dump in memory array, unprocessed. Just write it to file, you do not need to use LibRaw::open_bayer() for that.

Reply to: LibRaw 0.20 supported cameras   4 years 5 months ago

Dear Sir:
We do support all raw samples from Leaf Aptus 17 that we have.
The easiest way to check if your files are supported is to download free trial of FastRawViewer https://www.fastrawviewer.com/download and open your .mos files with it.

Reply to: LibRaw 0.20 supported cameras   4 years 5 months ago

I can't browse mos file on my windows 10 PC.
It is installed raw image extension program.But it doesn't work.
Mos file have been shot by leaf aptus 17.
That problem is viewing dark image preview on my PC.
I hope you support leaf aptus 17 raw file format.

Reply to: LibRaw 0.20.2 Release   4 years 5 months ago

As soon as we consider that everything is ready

Reply to: LibRaw 0.20.2 Release   4 years 5 months ago

Any projected date for the final release yet?

Reply to: photon statistics and LibRaw   4 years 5 months ago

Thank you Lexa! I appreciate the pointers.

Reply to: photon statistics and LibRaw   4 years 5 months ago

samples/unprocessed_raw.cpp sample is also a good starting point if you need unaltered raw values.

Reply to: photon statistics and LibRaw   4 years 5 months ago

Quote from above:

> You can use 4channels sample to split source RAW into four separate TIFF files.

(or you can use 4channels sample source as reference for your code)

Reply to: photon statistics and LibRaw   4 years 5 months ago

OK, but it's not possible to get the R/G/B/G2 values without postprocessing, or am I confused?

Reply to: photon statistics and LibRaw   4 years 5 months ago

RawDigger calculated statistics on unaltered RAW values, the only processing performed is black level subtraction (if not turned off by user).

Reply to: photon statistics and LibRaw   4 years 5 months ago

I am trying to recreate the pixel statistics (min/max/avg/σ) that appear in RawDigger (per channel). Am I correct in assuming you are the authors of this software? If yes, then which LibRaw parameter was used to obtain these values?
Thanks

Reply to: photon statistics and LibRaw   4 years 5 months ago

Well, I was originally trying to perform my analysis on difference images (subtract one image with identical parameters from another in order to remove flat field effects) but I'm getting ridiculously large values for the std dev (in the 1000s) which doesn't seem right. Am I being naive in assuming I can simply subtract the values of one raw array from the other?

Reply to: photon statistics and LibRaw   4 years 5 months ago

To add to what Alex just said, what demosaic, when what you want is sensor PTCs?

Reply to: photon statistics and LibRaw   4 years 5 months ago

You can use 4channels sample to split source RAW into four separate TIFF files.

Reply to: photon statistics and LibRaw   4 years 5 months ago

Yes but... if I just use raw_image I only get a 2D array back.
If I need colour channels I need to manually demosaic?

Reply to: photon statistics and LibRaw   4 years 5 months ago

You do not need postprocessing step(s) if you want to analyze unaltered raw data

Reply to: Convert Raw Bayer data to.dng file.   4 years 6 months ago

Some examples of `light` DNG creation tools:

http://a1ex.magiclantern.fm/bleeding-edge/pgm2dng.c (needs a few more files from CHDK)
https://github.com/fastvideo/pgm2dng

Reply to: Convert Raw Bayer data to.dng file.   4 years 6 months ago

LibRaw only reads files, not writes.

DNG format is TIFF format + some additional tags.
So your options are:
- Adobe DNG SDK
- libtiff (you'll need to add tags using libtiff calls)
- plain write w/o addional libraries.

Reply to: HELP to compile with LibRaw QT / MingW64 / Windows 8   4 years 6 months ago

Thanks a lot Alex !
It work well now !

Lucien

Reply to: HELP to compile with LibRaw QT / MingW64 / Windows 8   4 years 6 months ago

You need this only for Microsoft or Intel compilers. For others LIBRAW_WIN32_DLLDEFS is not defined automatically.

Reply to: HELP to compile with LibRaw QT / MingW64 / Windows 8   4 years 6 months ago

For the static library, you must define LIBRAW_NODLL when compiling programs that link to it.

Reply to: Noticeable difference between LibRaw and dcraw in DNG processing   4 years 6 months ago

In this specific case LibRaw/dcraw_emu works better (more correctly) than dcraw.

This is especially true for DNG files with multiple sub-images and different color data (e.g. DNG w/ fast-load JPEG data): LibRaw/dcraw will select correct matrix, while dcraw will always use the last one.

Reply to: Noticeable difference between LibRaw and dcraw in DNG processing   4 years 6 months ago

Thanks for your reply!

Yes, I've done a side-by-side debug run of dcraw and LibRaw example, and I've found the divergence point.

Can dcraw_emu be used as a replacement of dcraw, or it is just an example program that is not intended for everyday use?

Reply to: Noticeable difference between LibRaw and dcraw in DNG processing   4 years 6 months ago

dcraw parses DNG tags one-by-one, in order (in file being processed), both ColorMatrix1 and ColorMatrix2 tags are parsed into same (cmatrix) structure. So, latest one wins.

LibRaw w/ default settings (without LIBRAW_PROCESSING_DONT_CHECK_DNG_ILLUMINANT flag) analyzes CalibrationIlluminant1/2 tags too and selects color matrix which is closer to D65/daylight.

Usually (e.g. files created by Adobe DNG SDK) the last matrix is the one that corresponds to daylight (resulting in same dcraw/dcraw_emu results), but not in this specific file (CameraMatrix1 => D65, CameraMatrix2 => Ill.A).

So, LibRaw is right in this specific case, while dcraw is not.

(dcraw is *much* worse if DNG file contains multiple sub-images w/ different color data).

Pages