powered by
Converts a label image to coordinates summarizing their positions
labelImageCentroids(img, physical = FALSE, convex = TRUE)
ants image of labels (ints)
boolean if you want physical space coordinates or not
- if TRUE, return centroid, if FALSE return point with min average distance to other points with same label
list with labels , array of label values, and centroids <- coordinates of label centroids
# NOT RUN { labelImage<-makeImage( c(2,2,2) , 0:7 ) labelImageCentroids(labelImage) # }
Run the code above in your browser using DataLab