Comparing pixel values or logical combinations thereof, or feature values having positional relevance