Learn R Programming

neurobase (version 1.32.4)

fast_dice_tab: Fast Dice Tabulation

Description

Fast Dice Tabulation

Usage

fast_dice_tab(x, y)

fast_dice(x, y, verbose = FALSE)

Value

A table object

Arguments

x

A nifti image, filename, or niftiImage

y

A nifti image, filename, or niftiImage

verbose

A logical indicating output

Examples

Run this code
library(oro.nifti)
set.seed(20161007)
dims = rep(10, 3)
arr = array(rnorm(10*10*10), dim = dims)
nim = oro.nifti::nifti(arr) > -1
fast_dice_tab(nim, nim)
fast_dice(nim, nim) == 1

Run the code above in your browser using DataLab