随笔分类 -  matlab

matlab中变量无法累加
摘要:关于matlab中数据最大稚嫩各累加到255的问题 for i=1:row for j=1:column if imagMidfilter(i,j)<k Wtotal0=Wtotal0+1; Utotal0=imagMidfilter(i,j)+Utotal0;%imagMidfilter为一幅已经灰度化的bmp图像的矩阵数据 else Wtotal1=Wtotal1+1; Utotal1=imagMidfilter(i,j)+Utotal1; end end end在这一段代码中,Utotal0最大只能累加到255 这是由于在进行数据操作Utotal0=imagMidfilter(i, 阅读全文

posted @ 2011-09-09 22:59 h2内存数据库 阅读(295) 评论(0) 推荐(0) 编辑

直线角度提取
摘要:clear all;imagDat=imread('t3','bmp');imagGray=rgb2gray(imagDat);figure(1);imshow(imagGray);imagMidfilter = medfilt2(imagGray,[3 3]); % 用指定大小为m×n的窗口对图像A进行中值滤波。%imagMidfilter=imagGray;%% 二值化图像[row column]=size(imagMidfilter);hist(imagMidfilter(:),0:255);threshold=100;%二值化的阈值 根据上面的 阅读全文

posted @ 2011-09-09 21:09 h2内存数据库 阅读(211) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示