Create INLA mesh and observation weight matrix based on a binary brain mask
make_mesh_2D(mask)
List containing INLA mesh, observation weight matrix A for translating between mesh locations and original data locations, the brain mask used to create the mesh, and the number of original and mesh data locations.
Brain mask (matrix of 0 and 1 or TRUE
and FALSE
).
This function requires the INLA
package, which is not a CRAN
package. See https://www.r-inla.org/download-install for easy
installation instructions.