The invention relates to a method for identifying individual trees in airborne lidar data and a corresponding computer program product. The method comprises:a. obtaining lidar data points of a group of one or more trees;b. define voxels in a regular 3D grid on the basis of the data points;c. applying an image segmentation algorithm to obtain at least one segment;and, if at least two segments are obtained:d. find the root voxel and branch voxels of a first segment and a second neighbouring segment; ande. merging the first and second segment if the distance between the first and second root voxel is less than a first threshold, the distance between the first root voxel and the closest second branch voxel is less than a second threshold; and the distance between the first branch voxels and the second branch voxels is less than a third threshold.展开▼