An algebraic method to evaluate spatial stability in image processing neuro chips