do you have the matlab code for finding edge preservation index??

2 views (last 30 days)
ENL is commonly used to measure the speckle suppression of different SAR image filters. When the ENL value is bigger, it indicates the image is smoothed well.EPI measures the ability to maintain details of the image
function[y] = epi(Io, If)
[a,b] = size(Io);
o=0;
p=0;
for i = 1:a
for j = 1:b
if(((i+1)<=a) && ((j+1)<=b))
r= abs(Io(i,j) - Io(i+1,j));
t= abs(Io(i,j) - Io(i,j+1));
l=abs(If(i,j) - If(i+1,j));
u=abs(If(i,j) - If(i,j+1));
o = o+ r + t;
p= p +l+ u;
r;
t;
l;
u;
o;
p;
end
end
end
y =(o./p )
my code is this. but it doest working

Answers (0)

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!