摘要: clear all;close all;clc;img=imread('lena.jpg');img=im2bw(img,graythresh(img));imshow(img)[height width]=size(img);img_re=zeros(height,width);temp=[];for i=2:height-1 %腐蚀 for j=2:width-1 temp=img(i-1:i+1,j-1:j+1); img_re(i,j)=min(temp(:)); endendfor i=2:height... 阅读全文
posted @ 2012-07-04 22:07 Dsp Tian 阅读(4025) 评论(0) 推荐(1) 编辑
摘要: clear all; close all; clc; n=40; point=load('point.mat'); current_point=point.point; plot(current_point(:,1),current_point(:,2),'r'); %系统方程:x(k+1)=fi* 阅读全文
posted @ 2012-07-04 15:19 Dsp Tian 阅读(11377) 评论(0) 推荐(0) 编辑