Image analysis for modelling shear behaviour