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)
}
neuroconductor/extrantsr documentation built on Sept. 28, 2020, 11:31 a.m.