BokehMe icon indicating copy to clipboard operation
BokehMe copied to clipboard

calculate disp_focus if I want to focus on a point

Open mikebilly opened this issue 11 months ago • 2 comments

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?

mikebilly avatar Feb 29 '24 07:02 mikebilly

You can extract the disparity of that point on the disparity map and serve that disparity as disp_focus.

JuewenPeng avatar Feb 29 '24 07:02 JuewenPeng

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 ?

mikebilly avatar Mar 01 '24 14:03 mikebilly