Main Content

snapshot

Create snapshot of trackingGlobeViewer

Description

snapshot(viewer) creates a snapshot of the viewer and displays the snapshot as a figure.

Tip

Before taking the snapshot, consider using the drawnow function to update the viewer.

example

img = snapshot(viewer) creates a snapshot of the viewer and saves the snapshot as a matrix of uint32 values. Use the imshow function to display the snapshot img.

Examples

collapse all

Create a trackGlobeViewer object.

viewer = trackingGlobeViewer;

Show a snapshot of the viewer.

drawnow
snapshot(viewer)

Save a snapshot as an image and display it using the imshow function.

img = snapshot(viewer);
imshow(img)

Input Arguments

collapse all

Tracking globe viewer, specified as a trackingGlobeViewer object.[1]

Output Arguments

collapse all

Snapshot image, returned as an M-by-N-by-3 matrix of uint32 values.

Introduced in R2021b

[1] Alignment of boundaries and region labels are a presentation of the feature provided by the data vendors and do not imply endorsement by MathWorks®.