Boundaries Detection and Color Correction of Shadows