Local variance can be calculated as the value of standard deviation in a small neighborhood (e.g. 3x 3 moving window), then computing the mean of these values over the entire image. The obtained value is an indicator of the local variability in the image.