Nothing
#' @docType methods
#' @rdname dim_-methods
#' @title Extract Image dim_ attribute
#' @name dim_-methods
#' @description \code{dim_} method for class character
#' @aliases dim_,character-method
#' @param object is a filename to pass to \link{fslval}
#' @import oro.nifti
#' @export
setMethod("dim_", "character", function(object){
object = path.expand(object)
stopifnot(file.exists(object))
slots = paste0("dim", 0:7)
res = sapply(slots, function(key) {
fslval(object, keyword = key, verbose = FALSE)
})
res = as.numeric(res)
return(res)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.