Nothing
#' @title Add Random Uniform Noise Image using FSL
#' @description This function calls \code{fslmaths -rand}.
#' The R functions wraps \code{fslmaths}
#' @param file (character) input image to add random uniform noise to
#' @param outfile (character) resultant image name (optional)
#' @param retimg (logical) return image of class nifti
#' @param reorient (logical) If retimg, should file be reoriented
#' when read in?
#' Passed to \code{\link{readnii}}.
#' @param intern (logical) to be passed to \code{\link{system}}
#' @param opts (character) operations to be passed to \code{fslmaths}
#' @param ... additional arguments passed to \code{\link{readnii}}.
#' @return If \code{retimg} then object of class nifti. Otherwise,
#' Result from system command, depends if intern is TRUE or FALSE.
#' @export
fslrand = function(
file,
outfile=NULL,
retimg = TRUE,
reorient = FALSE,
intern = FALSE,
opts = "",
...){
all.opts = paste("-rand ", opts, collapse=" ")
res = fslmaths(file=file,
outfile=outfile,
retimg=retimg, reorient=reorient,
intern=intern, opts = all.opts, ...)
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.