Added igv code from Rawtherapee to darktable demosaic, without borderinterpolation code. Seems to work quite well.