Darktable renders (exports) black image for Fuji RAWs
Hello, some of my images come out of "export" as pitch black images with low size. It's easily reproducible with attached RAF and XMP file. The problem occurs with about 1 in 20 images.
Workaround is to crop the image slightly differently (by few pixels) - most often this fixes the problem and the image is exported correctly. If not, re-cropping again will fix the problem.
Camera used: Fuji XT-10, lens: Samyang 12mm f/2
demosaic: don't produce NaN in Markesteijn
The TRANSLATE macro which mirrors the image when looking beyond its edge
had an off-by-one in its calculation: the first column beyond the right
edge of the image duplicated the rightmost column of the image, rather
than the second-to-rightmost (and similarly for the first row beyond the
bottom of the image). This caused interpolation code, which looks in a
3x3 area of mosaiced data, to fail, in the case of some red/blue pixels
at the image edge, to find any pixels from which to interpolate. This
produced a division by zero for these pixels, which resulted in an
output of NaN at the edge of Markesteijn demosaiced data.
This bug should only affect the CPU variant of Markesteijn. The OpenCL
version does not mirror the edges, but instead uses VNG
interpolation. Note also that this bug is not in the original dcraw
#2 Updated by Adam Z over 3 years ago
Tobias Ellinghaus wrote:
Are you using OpenCL? If so, could you try if disabling it helps?
"activate OpenCL support" is checked in the preferences, but can't be unchecked and hover says "not available on this system". It's a bit inconsistent, but I guess OpenCL is not active then ... I don't have dedicated GPU, just Intel integrated one (Intel i5 6200U).
#7 Updated by Dan Torop over 3 years ago
- % Done changed from 20 to 100
- Status changed from Triaged to Fixed
Applied in changeset darktable|37b3ba58150c86c7a2ae96a81fe925c6eba37449.