Enhancing human detection using crowd density measures and an adaptive correction filter