img_density_entropy: Image Entropy using density

View source: R/img_density_entropy.R

img_density_entropyR Documentation

Image Entropy using density

Description

Get the entropy for an entire image using density binning

Usage

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

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

muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.