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.
Corey, I am using r2008a and I am not able to reproduce the error.
I agree that p is double instead of integer. please change p to integer and see if you can get rid of the warning.
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, 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
Corey, I am using r2008a and I am not able to reproduce the error.
I agree that p is double instead of integer. please change p to integer and see if you can get rid of the warning.
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.
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
Corey, I am using r2008a and I am not able to reproduce the error.
I agree that p is double instead of integer. please change p to integer and see if you can get rid of the warning.
I getting the following errors when I use your code:
Warning: Size vector should be a row vector with integer elements.
> In 22, 38, 44
Warning: Integer operands are required for colon operator when used as index
> In 47
I believe some of it can be traced back to 'p' not being an integer, but am unsure beyond that.
Comment only