4.5

4.5 | 3 ratings Rate this file 6 Downloads (last 30 days) File Size: 1.46 KB File ID: #25261

Lacunarity of a binary image

by Tegy Vadakkan

 

08 Sep 2009 (Updated 09 Sep 2009)

Lacunarity of a binary image based on the gloding box algorithm.

| Watch this File

File Information
Description

The gliding box algorithm proposed by Tolle et al., Physica D, 237, 306-315, 2008 is used to calculate the lacunarity of a binary image.

MATLAB release MATLAB 7.1.0 (R14SP3)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
19 Oct 2009 gijo augustin

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;

19 Oct 2009 Tegy Vadakkan

thanks gijo,
i should have said..., it is assumed that the image is a square image like 64x64, 128x128, 256x256, ...

23 Oct 2009 gijo augustin  
08 Feb 2012 hamza hamza

Hi all,

Please, i want to understand this program. Because i have made a one with probabilities and masses, but it´s very slow, and i saw that yours is more fast and accurate. i would appreciate a short explanation. Thanks in advance

09 Feb 2012 Tegy Vadakkan

Hamza,
A box of edge size n is glided over the entire image in steps of one pixel. At each pixel position, the program enumerates the total number of 1's in the box (variable sigma in the program) as well as the square of the number of 1's in the box (variable sigma2 in the program). Lacunarity at an edge size n is defined as (sigma2/sigma^2)*(N(n)). N(n) is the variable count in the program.

Please login to add a comment or rating.
Updates
09 Sep 2009

gliding box instead of gloding box in the summary

Tag Activity for this File
Tag Applied By Date/Time
image processing Tegy Vadakkan 09 Sep 2009 10:56:03
statistics Tegy Vadakkan 09 Sep 2009 10:56:03
can any one help me out in giving explanation to the coding over shwethaa Ravindran 10 Oct 2011 14:22:54
can any one help me out in giving explanation to the coding over hamza hamza 08 Feb 2012 13:48:36

Contact us at files@mathworks.com