Diff of /man/get_neighbors.Rd [000000] .. [242173]

Switch to unified view

a b/man/get_neighbors.Rd
1
% Generated by roxygen2: do not edit by hand
2
% Please edit documentation in R/amoment.R
3
\name{get_neighbors}
4
\alias{get_neighbors}
5
\title{Calculate Moments of Neighborhood}
6
\usage{
7
get_neighbors(
8
  image,
9
  window = NULL,
10
  nvoxels = NULL,
11
  mask = NULL,
12
  rm.value = FALSE,
13
  check.wrap = TRUE,
14
  rep.value = 0,
15
  ...
16
)
17
}
18
\arguments{
19
\item{image}{input image}
20
21
\item{window}{window (in width) for the neighborhood}
22
23
\item{nvoxels}{window (in voxels) for the neighborhood 1 results in a 3x3 cube}
24
25
\item{mask}{array or object of class nifti of same size as image}
26
27
\item{rm.value}{remove the voxel itself before taking the moment}
28
29
\item{check.wrap}{Logical - check wrapround and put \code{rep.value} in
30
for the wrapped values}
31
32
\item{rep.value}{Replace wrapped values (edge of image) to this value}
33
34
\item{...}{Not used}
35
}
36
\value{
37
Array with same dimensions as image
38
}
39
\description{
40
This function calculates Local Moments (mean, standard deviation, skew) for an array.
41
}
42
\examples{
43
x = array(rnorm(1000), dim=c(10, 10, 10))
44
neigh = get_neighbors(x, nvoxels = 1)
45
}