Ask Your Question

vsooda's profile - activity

2020-11-07 04:06:24 -0600 received badge  Popular Question (source)
2017-04-12 14:07:16 -0600 received badge  Popular Question (source)
2014-08-25 00:55:34 -0600 answered a question TLD Tracking (opencv3.0)

hi @wangwanguo03, the tld is in the tracking module here

2014-08-24 11:46:57 -0600 received badge  Nice Question (source)
2014-08-23 20:28:08 -0600 commented question opencv3.0 illuminationChange Issue and bug fix

@berak, thank you. I am using opencv for my researsh recently. If I find any other bug, I will report and fix it.

2014-08-23 10:07:58 -0600 commented question opencv3.0 illuminationChange Issue and bug fix

@berak . Thank you. This is my first time to report bug. The test data are in this page https://github.com/Itseez/opencv_extra/tree/master/testdata/cv/cloning/Illumination_Change . You can simplely read the source image and mask, then call the api illuminationChange. And the show the result. You can also see the test code in https://github.com/Itseez/opencv/blob/master/modules/photo/test/test_cloning.cpp (TEST(Photo_SeamlessClone_illuminationChange, regression))

2014-08-23 08:44:51 -0600 commented question opencv3.0 illuminationChange Issue and bug fix

@StevenPuttemans . Adding the code in my question after line 544 can fix the bug. https://github.com/Itseez/opencv/blob/master/modules/photo/src/seamless_cloning.hpp

2014-08-23 08:41:09 -0600 commented question opencv3.0 illuminationChange Issue and bug fix

@berak , There is bug in the api illuminationChange" not the sample. The api can find in http://docs.opencv.org/trunk/modules/photo/doc/cloning.html . The problem is in the Cloning::illum_change functions. https://github.com/Itseez/opencv/blob/master/modules/photo/src/seamless_cloning.hpp

2014-08-23 00:46:21 -0600 received badge  Student (source)
2014-08-22 23:30:53 -0600 asked a question opencv3.0 illuminationChange Issue and bug fix

Hi,

I have find a bug in illuminationChange sample. when I use the illuminationchange sample code to test the function.The result is wrong. image description

I have tried to fix the bug and it looked as if I were succeeding. The result is as follow: image description

The bug is in the file sources\modules\photo\src\seamless_cloning.hpp (line 549 and 553), in the functon Cloning::illum_change. The magnitude of the place outside of mask is [0, 0, 0] and if calucalate: pow(mag, -1 * beta, multy_temp); The value of multy_temp will be "-1.#IND".

what I have do is do filter the mag value as follow:

for (int i = 0; i < mag.cols; i++)
    {
        for (int j = 0; j < mag.rows; j++)
        {
            if (mag.at<cv::Vec3f>(j, i)[0] == 0)
                mag.at<cv::Vec3f>(j, i)[0] = 1e-8;

            if (mag.at<cv::Vec3f>(j, i)[1] == 0)
                mag.at<cv::Vec3f>(j, i)[1] = 1e-8;

            if (mag.at<cv::Vec3f>(j, i)[2] == 0)
                mag.at<cv::Vec3f>(j, i)[2] = 1e-8;
        }
    }

This is my solutionn. There must be some better methods to fix the bug.

2014-08-22 06:39:01 -0600 commented answer opencv3.0 xphoto missing

Thank you very much.

2014-08-22 06:36:29 -0600 received badge  Supporter (source)
2014-08-22 06:35:57 -0600 received badge  Scholar (source)
2014-08-22 03:02:56 -0600 received badge  Editor (source)
2014-08-22 03:02:15 -0600 asked a question opencv3.0 xphoto missing

Hi:

I have found the page http://docs.opencv.org/trunk/modules/xphoto/doc/xphoto.html The functions are very useful for me. But I can't find them after I install opencv3.0.

How can I use the function in xphoto module.

Thanks.

liushouda