R/window_img.antsImage.R

Defines functions window_img.antsImage

#' @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)
}
muschellij2/extrantsr documentation built on July 27, 2021, 7:41 a.m.