Capture virtual reality canvas image
image_capture = capture(canvas)
canvas — Virtual reality canvas
Virtual reality canvas, specified as a
image_capture — Virtual reality canvas image
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.
Capture an RGB Image of a Figure in a Canvas
Create and open a
vrworld object and associate it with the virtual world
lights_world = vrworld('vrlights'); open(lights_world);
vr.canvas object for
f = figure; c = vr.canvas(lights_world, f, [30 30 300 200]);
Capture an image of the canvas.
image_capture = capture(c);
Display an RGB image of the canvas in a MATLAB® figure window.
Introduced before R2006a