资源简介

最为经典的ROA和ROEWA算子,用于SAR图像边缘检测,并附有一定的实例图像,以说明实验结果。

资源截图

代码片段和文件信息

a=imread(‘首尔L波段.bmp‘);
% a=imread(‘seashore.bmp‘);
X=1+double(a)/255*254;
[MN]=size(X);
T1=0.2;
for i=1:M
    for j=1:N
        output(ij)=0;
        direction(ij)=0;
        r=[];
        if  i>4 & i4 &j            %angle 0
            u1=mean(X(i-4:i-2j));
            u2=mean(X(i-1:i+1j)); 
            u3=mean(X(i+2:i+4j));
            r12=1-min(u1/u2u2/u1);
            r13=1-min(u2/u3u3/u2);
            r=[rmin(r12r13)];
            %angle 22.5
            u1=mean([X(i-4j-2)X(i-3j-2)X(i-2j-1)]);
            u2=mean([X(i-1j-1)X(ij)X(i+1j+1)]);
            u3=mean([X(i+2j+1)X(i+3j+2)X(i+4j+2)]);         
            r12=1-min(u1/u2u2/u1);
            r13=1-min(u2/u3u3/u2);
            r=[rmin(r12r13)];
            %angle 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2011-12-05 14:28  ROA绠楁硶浠g爜\
     文件        2873  2011-07-05 15:59  ROA绠楁硶浠g爜\roa.asv
     文件        2854  2011-07-07 09:29  ROA绠楁硶浠g爜\roa.m
     文件       66614  2011-07-05 15:58  ROA绠楁硶浠g爜\seashore.bmp
     文件       66616  2011-07-07 09:29  ROA绠楁硶浠g爜\棣栧皵L娉㈡.bmp
     文件       66614  2011-06-29 03:14  ROA绠楁硶浠g爜\棣栧皵L娉㈡9绫冲垎杈ㄧ巼.bmp
     目录           0  2011-12-05 14:28  ROEWA绠楀瓙\
     文件        2165  2011-07-11 14:24  ROEWA绠楀瓙\roewa.m
     文件       66614  2011-07-05 15:49  ROEWA绠楀瓙\seashore.bmp
     文件      263224  2011-07-11 14:24  ROEWA绠楀瓙\鍙板寳.bmp
     文件       66616  2011-07-07 09:30  ROEWA绠楀瓙\棣栧皵L娉㈡.bmp
     文件       66614  2011-06-23 04:40  ROEWA绠楀瓙\棣栧皵L娉㈡9绫冲垎杈ㄧ巼.bmp

评论

共有 条评论