Tooth segmentation using dynamic programming-gradient inverse coefficient of variation