MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB图像处理] 求程序解释 (https://www.labfans.com/bbs/showthread.php?t=14212)

冰山之客 2011-12-28 21:00

求程序解释
 
SCALE=8;
[M,N,K]=size(dh);
dh1=dh(1:SCALE:M,1:SCALE:N,1:3);
I=rgb2gray(dh1);



dh1=dh(1:SCALE:M,1:SCALE:N,1:3);这一步做什么 什么意思:)

yhcode 2011-12-29 14:12

回复: 求程序解释
 
dh1存放对dh下采样(8下采样)的结果。1:2:5 = [1 1+2 1+2+2] = [1 3 5] 看看MATLAB的冒号操作


所有时间均为北京时间。现在的时间是 03:16

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