具体算法可以看源码
#include <opencv2\opencv.hpp>
using namespace cv;
int _tmain(int argc, _TCHAR* argv[])
{
Mat src = imread("d:/1.jpg",0);
Ptr<CLAHE> clahe = createCLAHE();
Mat dst;
clahe ->apply(src,dst);
imshow("src",src);
imshow("dst",dst);
waitKey();
return 0;
}
效果图如下: