光线补偿算法的实现
最近扒拉了一些光线补偿算法的实现,可能是能力比较有限,看到的大多是是基于Face detection in color images是这篇论文的实现。从效果上来看,的确起到了明亮、美白的效果。但是从代码本身来看,最终的结果只是分别对各通道进行一个有控制的伸展。只不过这个伸展的弹性是“自适应”的,这里我就疑问:这样就能够起到去除影音的效果了吗?还是所谓光线补偿并不是为了取得这样的一个效果。 #include "stdafx.h" #include <cv.h> #include <cxcore.h> #include <highgui.h> #include <stdio.h> #include <io.h> #include <iostream> #include <stdio.h> #include "GObeautifyhelper.h" //算法库 #include "opencv2/contrib/contrib.hpp" #include "opencv2/highgui/highgui.hp...
