当前位置:编程学习 > C#/ASP.NET >>

matlab织物密度计算代码谁能帮我解释一下?

BW1=getappdata(gcbf,'Data3');
[x4,y4]=size(BW1);           %计算垂直方向黑色素连续累加和sxt
sj=0;
for j4=1:y4-1                                 %?????????????????
    if(BW1(10,j4))~=BW1(10,j4+1)  %?????????????????
        sj=sj+1;                                  %?????????????????
    else sj=sj;                                 %????????????????
    end
end
sxt=floor(sj/2)+1;                   %?????????????????????
sxmd=sxt/x4;                    %计算垂直方向纱线密度(sxt除以图像宽度)
p=473;%单位cm的像素数
W=sxmd*p*10;                       %????????????????????????????
补充:.NET技术 ,  其他语言
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,