Tuning the locality of filtering with a spatially weighted implementation of random spray Retinex