Depth map obtained by DMAG5 using min disparity = -54, max disparity = 25, window radius = 30, alpha = 0.9, truncation (color) = 7, truncation (gradient) = 2, epsilon = 4, and Nbr of smoothing iterations = 0.
This is actually a pretty good depth map with good smoothness except in the lower body area. Of course, the depth for the background is completely wrong but that's an easy fix in post-processing.
The black pixels in the occlusion map indicate areas where the evaluated depth in the depth map is questionable. Black pixels are supposed to show up in occluded areas (areas visible in only one of the two images), in areas where there's no texture, and in areas where the texture is repeated. Black pixels that appear in other areas indicate a problem somewhere. Here, you can see black pixels showing up at the bottom of the image for no real good reason.
Clearly, I've fixed the background depth but I have also worked in the lower part of the image. I've used Gimpel3d to render the 3d scene and The Gimp to modify the depth map. The way I work in The Gimp is by making selections in "quick mask" mode using the left image and painting over the selections in the depth map (When you paint over a selection, you can be pretty sloppy because you cannot change what's not in the selection aka the mask.) I always save my selections as channels just in case they might be needed later.
I've used Gimpel3d to generate the frames on either side of the left image and The Gimp to make the animated gif (It's quite easy to do using "Open as Layers" in the "File" menu.) The youtube video below shows the process (for posterity):
Very nice work. Thanks for sharing and documenting it
ReplyDelete