Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to remove shadow of image in objective c 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 code.but also make image whole background of image is white.but i didnot want to image whole whole white.I am wanting black and white image without shadow.

Can you help me out as soon as possible.?

How to remove shadow of image in objective c 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 code.but shadow.but also make image whole background of image is white.but i didnot didn't want to whole image whole whole background white.I am wanting black and white image without shadow.

Can you help me out as soon as possible.?

click to hide/show revision 3
No.3 Revision

updated 2015-07-16 00:39:35 -0600

berak gravatar image

How to remove shadow of image in objective c 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.

Can you help me out as soon as possible.?