View source: R/img_hist_entropy.R
img_hist_entropy | R Documentation |
Get the entropy for an entire image using histogram binning
img_hist_entropy(img, mask = NULL, breaks = 2000, base = exp(1), ...)
img |
object of class |
mask |
binary object of class |
breaks |
Number of breaks to pass to |
base |
Base to take the log for the entropy. Default is e |
... |
Additional arguments to pass to |
library(oro.nifti)
arr = array(rnorm(100^3), dim = rep(100, 3))
img = oro.nifti::nifti(arr)
img_hist_entropy(img)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.