Rank: 46602 based on 0 downloads (last 30 days) and 0 files submitted
photo

gijo augustin

E-mail
Company/University
Indian Institute of Science, Bangalore, India

Personal Profile:
Professional Interests:
Antenna Engineering, Computational Electromagnetics

 

Watch this Author's files

 

Comments and Ratings by gijo View all
Updated File Comments Rating
23 Oct 2009 Lacunarity of a binary image Lacunarity of a binary image based on the gloding box algorithm. Author: Tegy Vadakkan
19 Oct 2009 Lacunarity of a binary image Lacunarity of a binary image based on the gloding box algorithm. Author: Tegy Vadakkan

The loop in the program is not going upto the number of Columns. A modification like this would be more accurate,

for i=1:rnn
    for j=1:cnn
        sums = sum(sum(a(i:i+nn,j:j+nn)));
        sigma(index) = sigma(index) + sums;
        sigma2(index) = sigma2(index) + power(sums,2);
        [n,i,j]

    end
end

where, cnn = cols - nn;

Contact us at files@mathworks.com