1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-19 02:16:34 +08:00

Default kernel size of 9 was used instead of the set one

This commit is contained in:
Pierre-Emmanuel Viel
2020-08-15 21:00:42 +02:00
parent 3ce9ec6c82
commit 22f8586e89
2 changed files with 2 additions and 2 deletions

View File

@@ -393,7 +393,7 @@ namespace cv
{
starCensusTransform(left,right,params.kernelSize,censusImage[0],censusImage[1]);
}
hammingDistanceBlockMatching(censusImage[0], censusImage[1], hammingDistance);
hammingDistanceBlockMatching(censusImage[0], censusImage[1], hammingDistance, params.kernelSize);
costGathering(hammingDistance, partialSumsLR);
blockAgregation(partialSumsLR, params.agregationWindowSize, agregatedHammingLRCost);
dispartyMapFormation(agregatedHammingLRCost, disp0, 3);

View File

@@ -679,7 +679,7 @@ namespace cv
starCensusTransform(left,right,params.kernelSize,censusImageLeft,censusImageRight);
}
hammingDistanceBlockMatching(censusImageLeft, censusImageRight, hamDist);
hammingDistanceBlockMatching(censusImageLeft, censusImageRight, hamDist, params.kernelSize);
computeDisparityBinarySGBM( left, right, disp, params, buffer,hamDist);