0

So I have been trying to convert an RGB color space to LMS space, apply certain color filters and then back to RGB space. Works fine with OpenCV and on images.

Now, I need to apply such color filters on a Qt application or the elements in the application. I found the QColorSpace and QColorTransform in Qt Graphical Effects module but these have no examples as such.

So my question is, if I have a Qt application that displays a rectangle with a few colors in it, then how can I apply a color filter on this application which would make the rectangle with the same colors look different because of the color filter?

If the color filter cannot be applied on the whole application, then is it possible to apply it on only the rectangle?

I understand that such a filter needs to be programmed in the shader somehow. But I am not sure how to do this.

Any examples explaining this in Qt would be great.

Esash
  • 155
  • 2
  • 13

0 Answers0