Javi
Javi

Reputation: 3610

How to change display normalization settings in CImg?

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!

Upvotes: 0

Views: 536

Answers (1)

bvalabas
bvalabas

Reputation: 301

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;

Upvotes: 1

Related Questions