x = imread('cameraman.jpg');[M,N]=size(x)for i=1:M for j=1:N I=x(i,j); x(i,j)=xL(I)+( L(I)*lambda(i,j) ); endend
where
xL is 1×256 dimension, xL is 1×256 dimension, and lambda is 256×256 dimension which is same with x that has 256×256 dimension.
I get this error:
Array indices must be positive integers or logical values.Error in edge_enhancing (line 134) x(i,j)=xL(I)+( L(I)*lambda(i,j) );
Ple
Best Answer