Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已阅读CImg 文档的这一部分:
但是,尚不清楚如何设置此规范化级别(它不是 display() 函数参数)。
谁能告诉我如何使用它们?谢谢!
两种方法:
干净的:您normalization在实例的构造中指定参数CImgDisplay,例如:
normalization
CImgDisplay
CImgDisplay disp(img,"Title",normalization_type);
或者 CImgDisplay disp(640,480,"Title",normalization_type);
CImgDisplay disp(640,480,"Title",normalization_type);
最脏的:您还可以通过如下设置直接更改现有显示的规范化类型:
disp._normalization = normalization_type;