calc_bokeh_size: Calculate Bokeh Size

View source: R/calc_bokeh_size.R

calc_bokeh_sizeR Documentation

Calculate Bokeh Size

Description

Calculates the amount of blurring at each point with camera characteristics.

Usage

calc_bokeh_size(z, zfocus, f, N, ramp)

Arguments

z

Depth matrix.

zfocus

Depth in which to blur. Minimum 0, maximum 1.

f

Focal length of the virtual camera. .

N

F-stop. Focal length of the virtual camera.

Value

Matrix of bokeh sizes.


rayimage documentation built on Sept. 11, 2024, 8:13 p.m.