BokehMe
BokehMe copied to clipboard
calculate disp_focus if I want to focus on a point
given that I want to exactly focus on the point x, y of the image, how to calculate disp_focus to focus on that point?
You can extract the disparity of that point on the disparity map and serve that disparity as disp_focus.
thanks @JuewenPeng . Also, I'm planning to blur the background and add the person on top of the blurred image. My background has transparency, where the person part is transparent. How to modify your code to handle input images with alpha channel / transparency ?