matlab getframe frame2im 存储坐标到图片
2012-01-18 12:35
387 查看
getframe
Capture movie frame
Syntax
getframe
F = getframe
F = getframe(h)
F = getframe(h,rect)
Description
getframe returns a movie frame. The frame is a snapshot (pixmap) of the current axes or figure.
F = getframe gets a frame from the current axes.
F = getframe(h) gets a frame from the figure or axes identified by handle h.
F = getframe(h,rect) specifies a rectangular area from which to copy the pixmap. rect is relative to the lower left corner of the figure or axes h, in pixel units. rect is a four-element vector in the form [left bottom width height], where width and height
define the dimensions of the rectangle.
frame2im -
Map fromthe single movie frame F. If the frame containstrue-color data, them-by-n-3matrix
Map is empty. The functions getframe andim2frame createa movie frame.
Capture movie frame
Syntax
getframe
F = getframe
F = getframe(h)
F = getframe(h,rect)
Description
getframe returns a movie frame. The frame is a snapshot (pixmap) of the current axes or figure.
F = getframe gets a frame from the current axes.
F = getframe(h) gets a frame from the figure or axes identified by handle h.
F = getframe(h,rect) specifies a rectangular area from which to copy the pixmap. rect is relative to the lower left corner of the figure or axes h, in pixel units. rect is a four-element vector in the form [left bottom width height], where width and height
define the dimensions of the rectangle.
frame2im -
Return image data associated with movie frame
Syntax
[X,Map] = frame2im(F)Description
[X,Map] = frame2im(F) returnsthe indexed imageX and associated colormapMap fromthe single movie frame F. If the frame containstrue-color data, them-by-n-3matrix
Map is empty. The functions getframe andim2frame createa movie frame.
Examples
Create and capture an image using getframe and frame2im:peaks %Make figure f = getframe; %Capture screen shot [im,map] = frame2im(f); %Return associated image data if isempty(map) %Truecolor system rgb = im; else %Indexed system rgb = ind2rgb(im,map); %Convert image data end
相关文章推荐
- iOS获取手指点击背景图的坐标的颜色(亲测,不需要关心UIImageView的frame是否跟图片大小一样)
- MATLAB提取图片点击处的坐标代码(仅供参考)
- matlab中GUI界面点击图片获取坐标问题的解决方法
- MATLAB getframe用法
- Matlab中对画出来的图片(plot)进行坐标轴的编辑
- matlab 显示一张图片到三维坐标
- MATLAB中将图片数据存储为.mat格式
- MATLAB getframe用法
- 如何用matlab对图片进行批量存储和读取(图片批量处理)
- matlab getframe()
- Matlab中对画出来的图片(plot)进行坐标轴的编辑
- 【Matlab图像处理】截取图像中的矩形区域(可不平行于坐标轴)并保存为图片
- getframe matlab
- 毕业设计——人脸检测——MATLAB 在图片上画矩形框(已知矩形左上角坐标、长、宽)
- Matlab 保存多个图像 getframe、imwrite、sprintf、num2str、doc
- 转载:改变figure大小存储图片(matlab)
- 图片存储之BLOB : get field slot from row
- Matlab从其他文件夹批量读取存储图片的心得体会
- Matlab 存储图片
- python、matlab、c++的括号增加次序,以及图片存储方式