Pregunta

I have read this part of the CImg documentation:

However, it is not clear how to set this normalization levels (it is not a display() function parameter).

Can anybody tell me how to use them? Thank you!

¿Fue útil?

Solución

Two methods :

  • The clean one : you specify the normalization parameter at the construction of the CImgDisplay instance, like :

    CImgDisplay disp(img,"Title",normalization_type);

or CImgDisplay disp(640,480,"Title",normalization_type);

  • The dirty one : you can also change the normalization type of an existing display directly by setting it like this :

    disp._normalization = normalization_type;

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top