Add new comment

Fujifilm Pattern with rawpy

Hello,

I am trying to extract channel by channel pixel values of a X-Pro2. For detector calibration purpose (educational).
I do not understand the color pattern returned by the library (or is it rawpy ?).

   >>> rawpy.libraw_version
  (0, 18, 2)
   >>> im = rawpy.imread("20170728-DSCF3470.RAF")
   >>> im.raw_pattern
   array([[1, 2, 1, 2, 1, 2],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0],
       [0, 0, 0, 0, 0, 0]], dtype=uint8)

Same thing with im.raw_colors.
However looking at a grey scale raw_image it is obvious that the (non-bayer) pattern is not has indicated.
Maybe it is a feature of rawpy and not libraw ?
Any clues?

S.

Forums: