1.公式
s = L - 1 - r
2.适用场景
适用于增强嵌入图像暗色区域中的白色或灰色细节,特别是当黑色面积在尺寸上占主导地位时。
3.图片效果展示
4.程序代码
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include<opencv2/imgproc/imgproc.hpp>
using namespace cv;
using namespace std;
//弹窗显示图像
void zqDisplayImage(string windowName, const Mat& img);
//获取当前日期时间字符串
string zqGetCurrentTimeString()