查看单个帖子
旧 2009-03-23, 07:01   #2
silas_xue
高级会员
 
注册日期: 2008-11-01
年龄: 39
帖子: 406
声望力: 26
silas_xue 是一个将要出名的人
默认 回复: [求助]图像裁剪

lz
I2 = imcrop(I, rect) crops the image I. rect is a four-element position vector[xmin ymin width height] that specifies the size and position of the crop rectangle.
[xmin ymin width height] 分别为横纵坐标的起始值及所截block的宽与高

你可以使用size( )函数把裁剪的出的block参数存为某些变量,即可被再次调用。

Thx for reading.
PS:若还算满意,直接点击“Thanks”,再次登陆时亦便于查看回答是否真的帮到你了。
silas_xue 当前离线   回复时引用此帖