I'm trying to find a way to change these properties (especially contrast and brightnes) and I've found a
QgsBrightnessContrastFilter class, but I can't fugure out how to apply it to my raster layer.
I think that can be done with:
contrastFilter = QgsBrightnessContrastFilter() contrastFilter.setContrast(100)
But what now? How to set this filter to my layer?