Conversation
|
@alalek, is a unit test required to catch this? |
|
@ganesh-k13 Thanks for the patch! Yes, unit test is very appreciated. |
|
Sure @asmorkalov, I'll add it. I'm new to this, so I'll read a bit before adding. |
|
Hi @mshabunin / @asmorkalov / @alalek , I have a basic doubt. I see no crash.
Is there anything for this difference in behavior between normal code and gtest code? |
|
@ganesh-k13 could you put your sample code to OpenCV samples and build OpenCV with |
|
Thanks @asmorkalov, I'll try that, I think it is some small config mistake from my end. I'll try some more stuff or post in answers.opencv. |
|
@ganesh-k13 , prefilter pointers must be initialized with 0, add something like prefilter[0] = 0;
prefilter[1] = 0;at the beginning of the |
|
Thanks, @mshabunin, that fixed the issue. opencv/modules/calib3d/test/test_stereomatching.cpp Lines 795 to 798 in 0979940 How was the value of 0.005+DBL_EPSILON arrived at? I was planning to add |
|
Looks like this tests does not verify the output, it only checks that integer output does not differ from float output and this error margin is an arbitrary value. Yes, I think you can add another filter to the same test, or you can make parameterized test ( |
|
Thanks, @mshabunin , I have added cases, the aim of the cases is to trigger different mem allocs in BufferBM. So I added cases with combinations of |
|
@alalek , @mshabunin , @asmorkalov any update on this? |
Pull Request Changes:
resolves #17201