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-releases/extrantsr documentation built on Dec. 10, 2019, 12:07 a.m.