MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [求助]图像裁剪 (https://www.labfans.com/bbs/showthread.php?t=6976)

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

回复: [求助]图像裁剪
 
谢谢提示,可是我还是不太懂,我裁剪的起始坐标怎么确定呢?


所有时间均为北京时间。现在的时间是 12:23

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.