Convergent methods for spatial and semantic image comparison