Use applyWindowed for glcm calculation.