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 Jan. 3, 2020, 10:22 p.m.