Nice. I created a package to generate similar depth of field images in R, using a depth map/image pair. Also offers customizable bokeh shape and some other nice features.
Github: https://github.com/tylermorganwall/rayfocus Blogpost: https://www.tylermw.com/portrait-mode-data/