img_density_entropy: Image Entropy using density

Description Usage Arguments Examples

View source: R/img_density_entropy.R

Description

Get the entropy for an entire image using density binning

Usage

1
img_density_entropy(img, mask = NULL, base = exp(1), ...)

Arguments

img

object of class nifti or character

mask

binary object of class nifti or character

base

Base to take the log for the entropy. Default is e

...

Additional arguments to pass to density.

Examples

1
2
3
4
library(oro.nifti)
arr = array(rnorm(100^3), dim = rep(100, 3))
img = oro.nifti::nifti(arr)
img_density_entropy(img)

neuroconductor/extrantsr documentation built on Sept. 28, 2020, 11:31 a.m.