StereoSGBM will leave a black band in the left of disparity output (Bug #3378)


Added by Shan Huang over 11 years ago. Updated over 10 years ago.


Status:Done Start date:2013-11-12
Priority:Normal Due date:
Assignee:Shan Huang % Done:

0%

Category:calibration, 3d
Target version:-
Affected version:branch '2.4' (2.4-dev) Operating System:Linux
Difficulty: HW Platform:x64
Pull request:https://github.com/Itseez/opencv/pull/1787

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 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

Also available in: Atom PDF