I have calculated by Matlab the four characteristics of texture derived from the GLCM or co-occurrence matrix (entropy, contrast, correlation, energy) but in what way can the VARIANCE be calculated having the GLCM. Is there some implemented code (matlab function) for that?