Detecting shadow boundary for all images taken under the sun and the sky