Dealing with invalid pixels from on-sensor phase detect

How do other programs handle this?

On reddit’s /r/photography raw editing challenge, the current raw is from a Sony A6000, which has a sensor littered with phase detect pixels, which screw up highlight recovery.


As you can see, there are large trains of pink pixel screwing up the otherwise wonderfully recovered highlights, as delivered by LibRaw. I use LMMSE, which seems to be more prone to these pink dots otherwise, but the big lines of it are almost certainly from long lines of on-sensor phase detect.

Is there anything that other raw editors do to handle these?

EDIT: it appears the provided DNG conversion dealt with the pixels appropriately, but that’s relying on proprietary software…

EDIT2: it appears that RawTherapee handles the .ARW just fine. Can you please spin your raw handling off into a library?

+1 for proposing to bundle the RT raw decoding into a library! At the moment the situation is IMHO really messy, and each raw processor is doing its own magic to decode the raw data…

In photoflow I am taking the raw decoding from darktable, but not everything is supported. For example, some hdr dngs are correctly loaded by RT but not by DT.

1 Like

I just tried with darktable and didn’t see any funny looking pixels. I am not sure if dt itself deals with them or if rawspeed is handling that.

The pixels didn’t show up unless I did color reconstruction in the highlights and pulled down the exposure (well in LibRaw, enabling highlight reconstruction automatically lowers the exposure).

It looks like things have been recovered in your sample there though…

Yes, I went down almost 2ev and played with different means of highlight reconstruction. Maybe the pipes are just too different to compare.

Try LMMSE as well. Amaze I believe had a routine that specifically does something different when some pixels are clipped, possibly to deal with the pink dots that LMMSE produces that aren’t caused by the phase detect pixels.

darktable doesn’t support LMMSE. Just PPG (the default), AMaZE and VNG4. None of those show the wrong pixels.