matlab大牛,给下面的每段代码写上注释,并解释各个函数的作用,clearclcff=0.5; di=dir('D:\matlab7\1\*.bmp');for k=1:length(di)I1(:,:,k)=imread(['D:\matlab7\1\',di(k).name]);I(:,:,k)=im2bw(I1(:,:,k),ff);end

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/24 08:03:54
matlab大牛,给下面的每段代码写上注释,并解释各个函数的作用,clearclcff=0.5; di=dir('D:\matlab7\1\*.bmp');for k=1:length(di)I1(:,:,k)=imread(['D:\matlab7\1\',di(k).name]);I(:,:,k)=im2bw(I1(:,:,k),ff);end
xSNA~nl3Yk ?6iz3^˶DV6UtBdAZu^f[tvGmLSMfgpv6]LEciqQDwWI_!92䙽DuB qa VޅˆT,\<ci'%#R2z絞?c| `*y6 %@тIsxu7r I fk!4IC6ɲJdp,71zY=׷w@~s tv6(}i_^=RKmEר7ypܑ=BSPd% KW+oۡ'X 08#>jZ>eZ[d/]Z#~&&O %YR:] Pj^LX9oZM .>:7Ҳ=+ 1-8UY"7E^!o¦ -<ȶq͗zCfuI/xln0`*#XR8DtiXhc5MTXQCgGcrIip"Cl?Y4'bx}6uƭ

matlab大牛,给下面的每段代码写上注释,并解释各个函数的作用,clearclcff=0.5; di=dir('D:\matlab7\1\*.bmp');for k=1:length(di)I1(:,:,k)=imread(['D:\matlab7\1\',di(k).name]);I(:,:,k)=im2bw(I1(:,:,k),ff);end
matlab大牛,给下面的每段代码写上注释,并解释各个函数的作用,
clear
clc
ff=0.5;
di=dir('D:\matlab7\1\*.bmp');
for k=1:length(di)
I1(:,:,k)=imread(['D:\matlab7\1\',di(k).name]);
I(:,:,k)=im2bw(I1(:,:,k),ff);
end

matlab大牛,给下面的每段代码写上注释,并解释各个函数的作用,clearclcff=0.5; di=dir('D:\matlab7\1\*.bmp');for k=1:length(di)I1(:,:,k)=imread(['D:\matlab7\1\',di(k).name]);I(:,:,k)=im2bw(I1(:,:,k),ff);end
clear %清除内存中已经定义内容
clc %清屏
ff=0.5; %定义自变量ff并赋值
di=dir('D:\matlab7\1\*.bmp'); %dir(字符串)就是显示字符串路径下的文件或文件夹
for k=1:length(di) %开始for循环,循环次数为文件di的长度,length()是取长度的函数.
I1(:,:,k)=imread(['D:\matlab7\1\',di(k).name]); %imread为读入文件的函数,这个结合前两句语句久实现了图片循环录入的功能,不用人工修改路径了.
I(:,:,k)=im2bw(I1(:,:,k),ff); %im2bw是把图片二值化处理,去掉灰色,只留黑白,好确认像素点.顺便问下是数模B题的亲么?
end %循环结束.