3D machine vision system for robotic weeding and plant phenotyping