Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZDefocus plugin #32

Open
devernay opened this issue Aug 6, 2015 · 0 comments
Open

ZDefocus plugin #32

devernay opened this issue Aug 6, 2015 · 0 comments
Assignees

Comments

@devernay
Copy link
Member

devernay commented Aug 6, 2015

inputs are:

  • a depth or disparity map
  • an image

parameters are:

  • boolean: is it depth or disparity?
  • boolean: is the focus distance set using a point interact or a scalar value?
  • double2D: point interact (disabled if focus is set using a value)
  • double: focus distance
  • depth of focus
  • number of focus slices
  • apperture shape (Gaussian apperture uses a fast blur)

Algorithm: create masks for each focus slice, blur premultiplied image+mask with the right blur radius (using convolve, for a nice bokeh effect), and merge over successively each blurred image from far to near focus slices, to handle occlusions correctly.

In draft mode, always use Gaussian blur

@devernay devernay self-assigned this Aug 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant