Learn R Programming

rayimage (version 0.26.1)

preview_focus: Preview Focus

Description

Displays the focal point

Usage

preview_focus(image, depthmap, focus, imagetype, depthtype)

Arguments

image

3-layer RGB/4-layer RGBA array, rayimg class, or filename of an image.

depthmap

Depth map filename or 1d array.

focus

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

Examples

Run this code
#Plot the dragon

Run the code above in your browser using DataLab