Lacunarity, from the Latin lacuna meaning "gap" or "lake", is a specialized term in geometry referring to a measure of how patterns, especially fractals, fill space, where patterns having more or larger gaps generally have higher lacunarity. Beyond being an intuitive measure of gappiness, lacunarity can quantify additional features of patterns such as "rotational invariance" and more generally, heterogeneity. This is illustrated in Figure 1 showing three fractal patterns. When rotated 90°, the first two fairly homogeneous patterns do not appear to change, but the third more heterogeneous figure does change and has correspondingly higher lacunarity. The earliest reference to the term in geometry is usually attributed to Mandelbrot, who, in 1983 or perhaps as early as 1977, introduced it as, in essence, an adjunct to fractal analysis. Lacunarity analysis is now used to characterize patterns in a wide variety of fields and has application in multifractal analysis in particular (see Applications).
In many patterns or data sets, lacunarity is not readily perceivable or quantifiable, so computer-aided methods have been developed to calculate it. As a measurable quantity, lacunarity is often denoted in scientific literature by the Greek letters or but it is important to note that there is no single standard and several different methods exist to assess and interpret lacunarity.
Box counting lacunarity
One well-known method of determining lacunarity for patterns extracted from digital images uses box counting, the same essential algorithm typically used for some types of fractal analysis. Similar to looking at a slide through a microscope with changing levels of magnification, box counting algorithms look at a digital image from many levels of resolution to examine how certain features change with the size of the element used to inspect the image. Basically, the arrangement of pixels is measured using traditionally square (i.e., box-shaped) elements from an arbitrary set of sizes, conventionally denoted s. For each , the box is placed successively over the entire image, and each time it is laid down, the number of pixels that fall within the box is recorded.[note 1] In standard box counting, the box for each in is placed as though it were part of a grid overlaid on the image so that the box does not overlap itself, but in sliding box algorithms the box is slid over the image so that it overlaps itself and the "Sliding Box Lacunarity" or SLac is calculated. Figure 2 illustrates both types of box counting.
Calculations from box counting
The data gathered for each are manipulated to calculate lacunarity. One measure, denoted here as , is found from the coefficient of variation (), calculated as the standard deviation () divided by the mean (), for pixels per box. Because the way an image is sampled will depend on the arbitrary starting location, for any image sampled at any there will be some number () of possible orientations, each denoted here by , that the data can be gathered over, which can have varying effects on the measured distribution of pixels.[note 2] Equation 1 shows the basic method of calculating :
Alternatively, some methods sort the numbers of pixels counted into a probability distribution having bins, and use the bin sizes (masses, ) and their corresponding probabilities () to calculate according to Equations 2 through 5:
Lacunarity based on has been assessed in several ways including by using the variation in or the average value of for each (see Equation 6) and by using the variation in or average over all grids (see Equation 7).
Relationship to the fractal dimension
Lacunarity analyses using the types of values discussed above have shown that data sets extracted from dense fractals, from patterns that change little when rotated, or from patterns that are homogeneous, have low lacunarity, but as these features increase,[clarification needed] so generally does lacunarity. In some instances, it has been demonstrated that fractal dimensions and values of lacunarity were correlated, but more recent research has shown that this relationship does not hold for all types of patterns and measures of lacunarity. Indeed, as Mandelbrot originally proposed, lacunarity has been shown to be useful in discerning amongst patterns (e.g., fractals, textures, etc.) that share or have similar fractal dimensions in a variety of scientific fields including neuroscience.
Other methods of assessing lacunarity from box counting data use the relationship between values of lacunarity (e.g., ) and in different ways from the ones noted above. One such method looks at the vs plot of these values. According to this method, the curve itself can be analyzed visually, or the slope at can be calculated from the vs regression line. Because they tend to behave in certain ways for respectively mono-, multi-, and non-fractal patterns, vs lacunarity plots have been used to supplement methods of classifying such patterns.
To make the plots for this type of analysis, the data from box counting first have to be transformed as in Equation 9:
This transformation avoids undefined values, which is important because homogeneous images will have at some equal to 0 so that the slope of the vs regression line would be impossible to find. With , homogeneous images have a slope of 0, corresponding intuitively to the idea of no rotational or translational invariance and no gaps.
One box counting technique using a "gliding" box calculates lacunarity according to:
is the number of filled data points in the box and the normalized frequency distribution of for different box sizes.
Another proposed way of assessing lacunarity using box counting, the Prefactor method, is based on the value obtained from box counting for the fractal dimension (). This statistic uses the variable from the scaling rule , where is calculated from the y-intercept () of the ln-ln regression line for and either the count () of boxes that had any pixels at all in them or else at . is particularly affected by image size and the way data are gathered, especially by the lower limit of s used. The final measure is calculated as shown in Equations 11 through 13:
Below is a list of some fields where lacunarity plays an important role, along with links to relevant research illustrating practical uses of lacunarity.
- Medical Imaging  
- Urban Spatial Analysis
- Seismic studies
- Food Science
- This contrasts with box counting fractal analysis where the total number of boxes that contained any pixels is counted to determine a fractal dimension.
- See http://rsb.info.nih.gov/ij/plugins/fraclac/FLHelp/BoxCounting.htm#gridlocation for an explanation of methods to address variation with grid location
- Smith, T. G.; Lange, G. D.; Marks, W. B. (1996). "Fractal methods and results in cellular morphology — dimensions, lacunarity and multifractals". Journal of Neuroscience Methods 69 (2): 123–136. doi:10.1016/S0165-0270(96)00080-5. PMID 8946315.
- Plotnick, R. E.; Gardner, R. H.; Hargrove, W. W.; Prestegaard, K.; Perlmutter, M. (1996). "Lacunarity analysis: A general technique for the analysis of spatial patterns". Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics 53 (5): 5461–5468. PMID 9964879.
- Plotnick, R. E.; Gardner, R. H.; O'Neill, R. V. (1993). "Lacunarity indices as measures of landscape texture". Landscape Ecology 8 (3): 201. doi:10.1007/BF00125351.
- Mandelbrot, Benoit (1983). The Fractal Geometry of Nature. ISBN 978-0-7167-1186-5.
- Karperien (2004). "Chapter 8 Multifractality and Lacunarity". Defining Microglial Morphology: Form, Function, and Fractal Dimension. Charles Sturt University.
- Al-Kadi, O.S.; Watson, D. (2008). "Texture Analysis of Aggressive and non-Aggressive Lung Tumor CE CT Images". IEEE Transactions on Biomedical Engineering 55 (7): 1822–1830. doi:10.1109/TBME.2008.919735. PMID 18595800.
- McIntyre, N. E.; Wiens, J. A. (2000). Landscape Ecology 15 (4): 313. doi:10.1023/A:1008148514268. Missing or empty
- Jelinek, Herbert; Karperien, Audrey; Milosevic, Nebojsa (June 2011). "Lacunarity Analysis and Classification of Microglia in Neuroscience". 8th European Conference on Mathematical and Theoretical Biology, Kraków.
- Karperien (2002). "Interpreting Lacunarity".
- Tolle, C. (2003). "Lacunarity definition for ramified data sets based on optimal cover". Physica D: Nonlinear Phenomena 179 (3–4): 129–201. doi:10.1016/S0167-2789(03)00029-0.
- Stevens, N. E.; Harro, D. R.; Hicklin, A. (2010). "Practical quantitative lithic use-wear analysis using multiple classifiers". Journal of Archaeological Science 37 (10): 2671. doi:10.1016/j.jas.2010.06.004.
- Sener, B. (2008). "47 Lacunarity analysis of TEM Images". In Sener, Bilge. Innovations in Chemical Biology. Springer.
- Filho, M.B.; Sobreira, F. (2008). "Accuracy of Lacunarity Algorithms in Texture Classification of High Spatial Resolution Images from Urban Areas". The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences. XXXVII (Part B3b).
- Gorsich, D. J.; Tolle, C. R.; Karlsen, R. E.; Gerhart, G. R. (1996). "Wavelet and fractal analysis of ground-vehicle images". Wavelet Applications in Signal and Image Processing IV. Wavelet Applications in Signal and Image Processing IV 2825. p. 109. doi:10.1117/12.255224.
- Vannucchi, P.; Leoni, L. (30 October 2007). "Structural characterization of the Costa Rica decollement: Evidence for seismically-induced fluid pulsing. journal=Earth and Planetary Science Letters". 262(3-4). pp. 413–428.
- Yaşar, F.; Akgünlü, F. (2005). "Fractal dimension and lacunarity analysis of dental radiographs". Dentomaxillofacial Radiology 34 (5): 261. doi:10.1259/dmfr/85149245.
- Valous, N.A.; Sun, D.-W.; Allen, P.; Mendoza, F. (January 2010). "The use of lacunarity for visual texture characterization of pre-sliced cooked pork ham surface intensities Food Research International" (43(1)). pp. 387–395.