Removing shadow to reduce noise