rain1206
2009-03-21, 15:09
请问请问 I2 = imcrop(I,[75 68 130 112]); 中130 112 指的什么?
如果我用I1=imcrop(I),对图像做了裁剪,想按照这个得到的裁剪图像的大小对其他图像裁剪该怎么做?
谢谢指导!
silas_xue
2009-03-23, 07:01
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”,再次登陆时亦便于查看回答是否真的帮到你了。
rain1206
2009-03-23, 10:24
谢谢提示,可是我还是不太懂,我裁剪的起始坐标怎么确定呢?
vBulletin® v3.8.3,版权所有 ©2000-2025,Jelsoft Enterprises Ltd.