Automatic Shadow Detection and Removal from a Single Image