MATLAB中imcrop函数
来源:互联网 发布:曹睿生父知乎 编辑:程序博客网 时间:2024/06/08 19:04
I=imread('图像名字(带扩展名及路径)');%首先读入一幅待裁剪的图像
I2=imcrop(I,[a b c d]);%利用裁剪函数裁剪图像,其中,(a,b)表示裁剪后左上角像素在原图像中的位置;c表示裁剪后图像的宽,d表示裁剪后图像的高
关于矩形区域[Xmin Ymin Width Height],Xmin是横向第Xmin个像素,Ymin是纵向第Ymin个像素;
The WIDTH and HEIGHT of RECT do not always correspond exactly with the size of the output image. For example, suppose RECT is [20 20 40 30], using the default spatial coordinate system. The upper left corner of the specified rectangle is the center of the pixel (20,20) and the lower right corner is the center of the pixel (50,60). The resulting output image is 31-by-41, not 30-by-40, because the output image includes all pixels in the input that are completely or partially enclosed by the rectangle.
0 0
- MATLAB中imcrop函数
- 【Matlab】图像裁剪函数imcrop的原点、长度、宽度问题
- matlab imcrop 用法
- Matlab中图像剪裁命令——imcrop()
- imcrop
- matlab图像剪裁命令imcrop()
- matlab中sum函数
- matlab中sub2ind函数
- matlab中s函数
- matlab中sum函数
- matlab中图像函数
- matlab中regionprops函数
- matlab中计时函数
- matlab中size函数
- Matlab中arrayfun函数
- MATLAB中mesh()函数
- Matlab中legend函数
- matlab中滤波函数
- IE浏览器的调试
- python的断点调试
- MATLAB的cftool工具箱
- Round #55 D. Beautiful numbers
- struts2基础学习四之参数
- MATLAB中imcrop函数
- struts2工作原理
- WinForm点击窗体任意位置拖动窗体
- 递归扭转数组--倒序
- Spring和Hibernate与Spring和Ibatis整合的差异
- 【机器学习十大算法】C4.5
- Chrome扩展离线安装
- windows下编译最新x264
- 基于中序遍历找到一个结点的后继结点