This was an attempt to use some photographic image processing techniques1 to bring back some detail in the regions of mountain shadows in a Landsat7 composite image. It didn’t work but I learned a lot in the process. It could be useful in future with other data which is has not lost so much to white and black shadows.
Original on left while right shows result of contrast mask combined with grain merge selected in the layer Mode. It almost works, but not enough for the project I was researching for. Below, detail view of grain merge result.

