Inverse estimation of canopy architecture from 3D images