Graphical model based segmentation of massive numbers of irregular small objects in images, with application to axon characterization in histological sections