Automatic and Accurate Shadow Detection Using Near-Infrared Information