1 | initial version |
The first question is: it have to be real-time or not? The usual stesp are left-right consistency check (it help you in refine occlusion) and apply a filter. You can try one of the proposed filters in OpenCV, generally a bilateral filter do the trick (convert the depth map to a disparity map!). Better things can be the use of a Guided filter (that is pretty easy to implement) and usually achieve good result even in real time application.
2 | No.2 Revision |
The first question is: it have to be real-time or not?
The usual stesp steps are left-right consistency check (it help you in refine occlusion) and apply a filter. You can try one of the proposed filters in OpenCV, generally a bilateral filter do the trick (convert the depth map to a disparity map!). Better things can be the use of a Guided filter (that is pretty easy to implement) and usually achieve good result even in real time application.