Class: vrfigure

Capture virtual reality figure image


image_capture = capture(figure)


image_capture = capture(figure) captures a virtual reality figure into a TrueColor RGB image. You can display this image using the image command. You can then print the figure.

Input Arguments

expand all

Virtual reality figure, specified as a vrfigure object.

Output Arguments

expand all

Virtual reality figure 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.


expand all

Create and open a vrworld object and associate it with the virtual world vrmount.wrl.

myworld = vrworld('vrmount.wrl');

View the virtual world in the Simulink® 3D Animation™ Viewer.

f = vrfigure(myworld);

Create an RGB image of the figure.

image_capture = capture(f);

Display the RGB figure image in a MATLAB® figure window.


Introduced before R2006a

Was this topic helpful?