#include
#include "F:/CImg.h"
using namespace std;
using namespace cimg_library;
//
float GetMean(const float *c) {
float m = 0;
for (size_t x = 0; x img, int dim, float k0, float k1, float k2, float E) {
if (dim % 2 == 0) {
cout = k1 * delta) {
img(j, i) = img(j, i)*E;
}
}
}
return 0;
}
//
//,,,。
//,。
int main(int argc, char ** argv) {
DWORD start_time = GetTickCount();
CImg img("F:/opencv/luosi.bmp");
CImg dist(img);
HistStatistic(dist, 3, 0.4, 0.008, 0.4, 5.0);
CImgDisplay disp1(img, "input");
CImgDisplay disp2(dist, "output");
DWORD end_time = GetTickCount();
cout << "The run time is:" << (end_time - start_time) << "ms" << endl;
while (!disp1.is_closed() !disp2.is_closed()) {
disp2.wait();
}
}