It is an implementation of the algorithm described in "Computing Visual Correspondence with Occlusions using Graph Cuts" by Vladimir Kolmogorov and Rabin Zabih. The quality of the inpainting heavily depends on the accuracy of the depth map at object boundaries.ĭMAG3 is an automatic depth/disparity map generator based on the Graph Cuts methodology. The disparity/depth map doesn't need to come from any of my programs. The darkest value in the depthmap corresponds to the minimum disparity and the brightest value corresponds to the maximum disparity. The disparity/depth map should be a grayscale image where white indicates closest foreground object and black indicates furthest background object. The program automatically creates an animated gif of those images after generating and saving the frames. Animated gifs or lenticular prints (see Lenticular Printing - Interlacing with SuperFlip) can be made with imageL.xxx, frame1.xxx, frame2.xxx, etc (don't use the actual right image). The last frame corresponds to the right image. If imageL.xxx is the left image (image 1), the frames generated will be named frame1.xxx, frame2.xxx, etc. This type of inpainting is quite a bit fancier than what's being done in Frame Sequence Generator 2 (FSG2) and therefore, FSG3 should be used in lieu of FSG2. FSG4 fills the "holes" by propagating the pixels to the immediate right of the disoccluded areas using a methodology similar to Semi-Automatic 2D to 3D Image Conversion using Random Walks. When you shift the background, "holes" will form on the immediate right of the foreground object. Consider a picture with an object in the foreground with disparity 0 and a background. It's pretty easy to understand why you have "holes" showing up when you shift a reference image according to a disparity/depth map. This shifted image contains "holes" (areas made up of pixels that have become disoccluded or disoccluded areas, in short) which need to be inpainted (inpainting is a common theme in computer vision. The basic idea is, for each frame, to shift the pixels in the left image according to the disparity map. Frame Sequence Generator 3 (FSG3) generates synthesized frames given a left image (image 1), a disparity/depth map, and the min and max disparities (needed to compute the actual disparity from the depth map).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |