Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

frame2im

Return image data associated with movie frame

Syntax

[X,Map] = frame2im(F)

Description

[X,Map] = frame2im(F) returns the indexed image data X and associated colormap Map from the single movie frame F. The output Map is a three-column matrix where each row of the matrix is an RGB triplet value that defines one color of the colormap. If the frame contains true-color data, then Map is empty. The functions getframe and im2frame create a movie frame.

Examples

collapse all

Create a surface plot.

surf(peaks)

Use getframe to capture the plot as a movie frame. Then, convert the captured movie frame to image data.

F = getframe;
[X,map] = frame2im(F);

Introduced before R2006a

Was this topic helpful?