Wrapper for the ANTs funtion LabelOverlapMeasures. More documentaiton available here:

labelOverlapMeasures(sourceLabelImage, targetLabelImage)

Arguments

sourceLabelImage

label image for source image.

targetLabelImage

label image for target/reference image.

Value

data frame with overlap measures

Author

Avants BB, Tustison NJ

Examples


sourceImage <- antsImageRead(getANTsRData("r16"), 2)
sourceSegmentation <- kmeansSegmentation(sourceImage, 3)$segmentation
referenceImage <- antsImageRead(getANTsRData("r16"), 2)
referenceSegmentation <- kmeansSegmentation(referenceImage, 3)$segmentation
overlap <- labelOverlapMeasures(sourceSegmentation, referenceSegmentation)