StereoSGBM will leave a black band in the left of disparity output (Bug #3378)
Description
Seems output pixel in the black band always has value "0".
according to comments of "calcPixelCostBT":
max(-maxD, 0) <= minX <= x < maxX <= width - max(0, -minD)
but, in its implemention:
minX1 = std::max(maxD, 0)
So I makes "maxD" to "-maxD", and the black band disappeared.
History
Updated by Shan Huang over 11 years ago
Updated by Ivan Korolev over 11 years ago
Hi Shan,
thank you for the pull request, we will review one as soon as possible.
- Category set to calibration, 3d
- Assignee set to Shan Huang
- Status changed from New to Open
Updated by Ivan Korolev over 11 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/1787
Updated by Brendan Gaylord-Miles about 11 years ago
Can we fix the black bar on the right from the min disparity as well?
Updated by Dmitry Retinskiy over 10 years ago
- Status changed from Open to Done