Histogram match condition relaxed and now less vulnerable to intensity changes