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.