User`s guide
10 Functions — Alphabetical List
10-24
capture
Class: vr.canvas
Capture virtual reality canvas image
Syntax
image_capture = capture(canvas)
Description
image_capture = capture(canvas) captures a virtual reality canvas into a
TrueColor RGB image. You can display this image using the image command.
Input Arguments
canvas — Virtual reality canvas
vr.canvas object
Virtual reality canvas, specified as a vr.canvas object.
Output Arguments
image_capture — Virtual reality canvas image
array
Virtual reality canvas image, captured as an array. The array is an m-by-n-by-3 data
array that defines red, green, and blue color components for each individual pixel.
Examples
Capture an RGB Image of a Figure
Create and open a vrworld object and associate it with the virtual world vrmount.wrl.