An adaptive exposure algorithm for stereo imaging and its performance in an orchard