Skip to content

Commit 070549f

Browse files
authored
Add files via upload
1 parent 6197f41 commit 070549f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

clahe.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include "opencv2/opencv.hpp"
2+
#include "opencv2/imgproc.hpp"
3+
4+
using namespace cv;
5+
6+
int main(int argc, char** argv) {
7+
8+
Mat m= imread("/home/yashk2000/Downloads/beach.jpeg",IMREAD_GRAYSCALE);
9+
imshow("lena_GRAYSCALE",m);
10+
11+
Mat result;
12+
Ptr<CLAHE> clahe = createCLAHE();
13+
clahe->setClipLimit(10);
14+
equalizeHist(m, result);
15+
Mat dst;
16+
clahe->apply(m,dst);
17+
imshow("lena_CLAHE",dst);
18+
imshow("Histogram", result);
19+
20+
waitKey();
21+
}

0 commit comments

Comments
 (0)