View source: R/labelOverlapMeasures.R
labelOverlapMeasures | R Documentation |
Wrapper for the ANTs funtion LabelOverlapMeasures. More documentaiton available here:
labelOverlapMeasures(sourceLabelImage, targetLabelImage)
sourceLabelImage |
label image for source image. |
targetLabelImage |
label image for target/reference image. |
https://www.insight-journal.org/browse/publication/707
data frame with overlap measures
Avants BB, Tustison NJ
sourceImage <- antsImageRead(getANTsRData("r16"), 2)
sourceSegmentation <- kmeansSegmentation(sourceImage, 3)$segmentation
referenceImage <- antsImageRead(getANTsRData("r16"), 2)
referenceSegmentation <- kmeansSegmentation(referenceImage, 3)$segmentation
overlap <- labelOverlapMeasures(sourceSegmentation, referenceSegmentation)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.