CorticalSurfaces.CorticalSurface
— MethodCorticalSurface(lhem::Hemisphere, rhem::Hemisphere)
Make a CorticalSurface
from a left and a right Hemisphere
, in that order
CorticalSurfaces.Hemisphere
— MethodHemisphere(medial_wall::BitVector)
Make a placeholder Hemisphere
struct, without meaningful coordinates, from just a BitVector
representing medial wall membership
CorticalSurfaces.Hemisphere
— MethodHemisphere(nvertices::Int)
Make a meaningless, but functional, placeholder Hemisphere
of a certain size
CorticalSurfaces.Hemisphere
— MethodHemisphere(coords::Matrix, medial_wall::BitVector)
Make a Hemisphere
from a Matrix
of xyz coordinates and a BitVector
denoting medial wall membership
Base.getindex
— Methodgetindex(c, h)
Index into the L
or R
Hemisphere
of a CorticalSurface
Base.getindex
— Method getindex(surf, s, Inclusive())
Access supplementary spatial data s::Symbol
for a SurfaceSpace
. Optionally pass a MedialWallIndexing
trait Inclusive()
or Exclusive()
to inform handling of medial wall (default is Inclusive()
).
Base.haskey
— Methodhaskey(surf, k)
Check whether a SurfaceSpace
has the symbol k
among its supplementary spatial data
Base.keys
— Methodkeys(surf)
Get the names of the supplementary data elements, if any, that exist for a SurfaceSpace
Base.size
— Methodsize(surf, mw)
Get the number of vertices of a SurfaceSpace
, Exclusive()
or Inclusive()
of medial wall.
Base.size
— Methodsize(surf)
Get the number of vertices of a SurfaceSpace
, inclusive of medial wall.
CorticalSurfaces.brainstructure
— Methodbrainstructure(surf)
Get the BrainStructure
designation (CORTEX_LEFT
or CORTEX_RIGHT
) of a Hemisphere
struct surf
, or, in the event that surf
is a CorticalSurface
, a Vector
of both its left and right hemisphere labels.
CorticalSurfaces.collapse
— Methodcollapse(inds, surface)
Map a set of Inclusive()
vertex indices to a collapsed (Exclusive()
) range
CorticalSurfaces.coordinates
— Methodcoordinates(surf)
Get coordinates from a SurfaceSpace
, Inclusive()
or Exclusive()
of medial wall. Each column of the output represents a vertex, and the rows represent x, y, and z.
CorticalSurfaces.coordinates
— Methodcoordinates(surf)
Get coordinates from a SurfaceSpace
, inclusive of medial wall. Each column of the output represents a vertex, and the rows represent x, y, and z.
CorticalSurfaces.coordinates
— MethodGet coordinates from a Vector of Hemispheres
CorticalSurfaces.expand
— Methodexpand(inds, surface)
Map a set of Exclusive()
vertex indices to an expanded (Inclusive()
) range
CorticalSurfaces.make_adjacency_list
— Method make_adjacency_list(hemisphere, triangles)
Make an adjacency list from a 3-column matrix of triangle vertices
CorticalSurfaces.make_adjacency_list
— Methodmake_adjacency_list(hem)
Make an adjacency list based on the triangles
field of hem::Hemisphere
CorticalSurfaces.make_adjacency_matrix
— Method make_adjacency_matrix(neighbors)
Given an adjacency list – here, a Vector
where each element v
represents a vertex and contains a Vector{Int}
listing that vertex's neighbors – of length nvertices
, construct a SparseMatrixCSC
adjacency matrix
CorticalSurfaces.make_adjacency_matrix
— Methodmake_adjacency_matrix(hem)
Make an adjacency matrix from the adjacency list :neighbors
contained in hem
CorticalSurfaces.medial_wall
— Methodmedial_wall(s)
Get the medial wall BitVector
from a SurfaceSpace
struct, where true
denotes medial wall membership, false
otherwise.
CorticalSurfaces.node_correspondence
— Methodnode_correspondence(s1, s2)
Check whether SurfaceSpace
s s1
and s2
share the same vertex space, medial wall definition, and topology.
CorticalSurfaces.pad
— Methodpad(x, surface; sentinel)
Grow vector x
to size(surface, Inclusive())
by padding it with a provided sentinel
value along the medial wall. If no sentinel value is specified, then by default NaN
will be used if T <: AbstractFloat
, or zero(T)
otherwise.
CorticalSurfaces.trim
— Methodtrim(x, surface)
Shrink x
to size(surface, Exclusive())
by trimming out medial wall indices
CorticalSurfaces.vertices
— Methodvertices(s, mw)
Get vertex numbers from a SurfaceSpace
struct, Inclusive()
or Exclusive()
of medial wall.
CorticalSurfaces.vertices
— Methodvertices(s)
Get vertex numbers from a SurfaceSpace
struct, inclusive of medial wall.