Ask Your Question

deepak7855's profile - activity

2019-12-06 10:32:19 -0600 received badge  Popular Question (source)
2016-04-17 07:10:50 -0600 received badge  Student (source)
2015-07-27 00:16:19 -0600 received badge  Enthusiast
2015-07-16 00:37:32 -0600 received badge  Editor (source)
2015-07-16 00:34:24 -0600 asked a question How to remove shadow of image with help of open cv.?

I was tried many none of them help me out.

Like :- cv::Mat grayMat;

cv::cvtColor( cvMat, grayMat, CV_BGR2GRAY );
cv::GaussianBlur(grayMat, grayMat, cvSize(9,9), 0);
cv::adaptiveThreshold(grayMat, grayMat, 220, 0, 0, 11, 3);

This code remove the shadow.but also make whole background of image white.but i didn't want to whole image background white.I am wanting black and white image without shadow.