Added method that checks if detected corners belong to query object.