Functions for calculation of texture metrics for Grey Level