#' @export
#' @method window_img antsImage
#' @importFrom neurobase window_img
#' @importFrom ANTsRCore as.antsImage
window_img.antsImage = function(x, ...) {
arr = as.array(x)
arr = neurobase::window_img(arr, ...)
arr = ANTsRCore::as.antsImage(arr, reference = x)
return(arr)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.