Histogram of oriented gradients: a technique for the study of molecular cloud formation — arXiv2