mirror of
https://github.com/opencv/opencv.git
synced 2026-07-31 00:03:03 +04:00
Merge pull request #17224 from ganesh-k13:bugfix/calib3d/17201
* Fixed indexing in prefilter * Initialised prefilter * Initialised prefilter with value initialisation * Added TC to trigger different Mem Allocs in BufferBM * Optimize cases with only needed conditions
This commit is contained in:
committed by
GitHub
parent
ea3c2307dc
commit
cddd7f10d5
@@ -347,7 +347,8 @@ public:
|
||||
htext(nstripes, NULL),
|
||||
cbuf0(nstripes, NULL),
|
||||
sad_short(nstripes, NULL),
|
||||
hsad_short(nstripes, NULL)
|
||||
hsad_short(nstripes, NULL),
|
||||
prefilter()
|
||||
{
|
||||
const int wsz = params.SADWindowSize;
|
||||
const int ndisp = params.numDisparities;
|
||||
@@ -379,7 +380,7 @@ public:
|
||||
if (params.useNormPrefilter())
|
||||
{
|
||||
for (size_t i = 0; i < 2; ++i)
|
||||
area.allocate(prefilter[0], width + params.preFilterSize + 2);
|
||||
area.allocate(prefilter[i], width + params.preFilterSize + 2);
|
||||
}
|
||||
area.commit();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user