Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
25
Добавлен:
09.02.2015
Размер:
500.22 Кб
Скачать

Image(f.Cdata);

See also movie, image, im2frame, frame2im.

Reference page in Help browser

doc getframe

<movie> - Play recorded movie frames.

MOVIE Play recorded movie frames.

MOVIE(M) plays the movie in matrix M once, using the current axes

as the default target. To play the movie in the figure instead of

the axes, specify the figure handle (or gcf) as the first

argument: movie(figure_handle,...). M must be an array of movie

frames (usually from getframe).

MOVIE(M,N) plays the movie N times. If N is negative, each

"play" is once forward and once backward. If N is a vector,

the first element is the number of times to play the movie and

the remaining elements comprise a list of frames to play

In the movie. For example, if m has four frames then

N = [10 4 4 2 1] plays the movie ten times, and the movie

consists of frame 4 followed by frame 4 again, followed by

frame 2 and finally frame 1.

MOVIE(M,N,FPS) plays the movie at FPS frames per second. The

default if FPS is omitted is 12 frames per second. Machines

that can't achieve the specified FPS play as fast as they can.

MOVIE(H,...) plays the movie in object H, where H is a handle

to a figure, or an axis.

MOVIE(H,M,N,FPS,LOC) specifies the location to play the movie

at, relative to the lower-left corner of object H and in

pixels, regardless of the value of the object's Units property.

LOC = [X Y unused unused]. LOC is a 4-element position

vector, of which only the X and Y coordinates are used (the

movie plays back using the width and height in which it was

recorded). All four elements are required, however.

See also getframe, im2frame, frame2im, avifile.

Overloaded methods:

xregmodel/movie

Reference page in Help browser

doc movie

<rotate> - Rotate object about specified origin and direction.

ROTATE Rotate objects about specified origin and direction.

ROTATE(H,[THETA PHI],ALPHA) rotates the objects with handles H

through angle ALPHA about an axis described by the 2-element

direction vector [THETA PHI] (spherical coordinates).

All the angles are in degrees. The handles in H must be children

of the same axes.

THETA is the angle in the xy plane counterclockwise from the

positive x axis. PHI is the elevation of the direction vector

from the xy plane (see also SPH2CART). Positive ALPHA is defined

as the righthand-rule angle about the direction vector as it

extends from the origin.

ROTATE(H,[X Y Z],ALPHA) rotates the objects about the direction

vector [X Y Z] (Cartesian coordinates). The direction vector

is the vector from the center of the plot box to (X,Y,Z).

ROTATE(...,ORIGIN) uses the point ORIGIN = [x0,y0,y0] as

the center of rotation instead of the center of the plot box.

See also sph2cart, cart2sph.

Reference page in Help browser

doc rotate

<frame2im> - Convert movie frame to indexed image.

FRAME2IM Return image data associated with movie frame.

[X,MAP] = FRAME2IM(F) returns the indexed image X and associated

colormap MAP from the single movie frame F. If the frame contains

true-color data, the MxNx3 matrix MAP is empty. The functions GETFRAME

and IM2FRAME create a movie frame.

See also im2frame, movie, getframe.

Reference page in Help browser

doc frame2im

<im2frame> - Convert index image into movie format.

IM2FRAME Convert indexed image into movie format.

F = IM2FRAME(X,MAP) converts the indexed image X and

associated colormap MAP into a movie frame F. If X is

a truecolor (MxNx3) image, then MAP is optional and has

no effect.

M(1) = im2frame(X1,map);

M(2) = im2frame(X2,map);

...

M(n) = im2frame(Xn,map);

movie(M)

F = IM2FRAME(X) converts the indexed image X into a movie

frame F using the current colormap if X contains an

indexed image.

See also frame2im, movie, getframe.

Reference page in Help browser

doc im2frame

Соседние файлы в папке Библиотеки Matlab