write a simple interface to to analyze the covariance matrix of the square patch