lacunarity

Computes the heterogeneity or lacunarity for a 2D signal (an image)

Syntax

L = lacunarity(x,kv)
L = lacunarity(...,'mask',M)

Description

L = lacunarity(x,kv) Computes the lacunarity L of the image x by centering at each point of x a window and comparing the "mass" in this window to the average mass. A lacunarity is computed for each size of window. The desired different sizes of windows are defined as a list by the input vector kv. Thus the output L of this code is also a vector of lacunarities. If (N1,N2) are the size of x, then the values of kv must be included in the interval [1 : max(N1,N2)].

L = lacunarity(...,'mask',M) Computes the lacunarity L using a specific input mask, M which defines a region where L is really computed. The mask must be the same size as x.

Examples

See Also

cropormask