<< rgb2ycbcr Image Types and Color Space Conversions ycbcr2rgb >>

IPCV >> Image Types and Color Space Conversions > xs2im

xs2im

Convert graphics to an image matrix.

Syntax

im = xs2im(win_num,[color])

Parameters

win_num :

Integer scalar or vector.

color :

Optional integer. 0 means black and white and 1 means color. The default value is 1.

im :

The returned image, uint8 type hyper-matrix.

Description

xs2im convert the recorded graphics of the window win_num to an image matrix. This function works only if the selected driver is "Rec" in the window win_num or if the window is in "new style".

Examples

scf(0)
plot2d()
im = xs2im(0);
imshow(im);

See also

Authors


Report an issue
<< rgb2ycbcr Image Types and Color Space Conversions ycbcr2rgb >>