img_hist_entropy: Image Entropy using histograms

Description Usage Arguments Examples

View source: R/img_hist_entropy.R

Description

Get the entropy for an entire image using histogram binning

Usage

1
img_hist_entropy(img, mask = NULL, breaks = 2000, base = exp(1), ...)

Arguments

img

object of class nifti or character

mask

binary object of class nifti or character

breaks

Number of breaks to pass to hist

base

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

...

Additional arguments to pass to hist. Plot has already been set to FALSE

Examples

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

neuroconductor-releases/extrantsr documentation built on Dec. 10, 2019, 12:07 a.m.