calc_bokeh_size {rayimage}R 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.


[Package rayimage version 0.15.1 Index]