You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a functional index of methods available on a region object.
A region is a class for groups of voxels defined as anatomical or
functional regions (contiguous voxels above a threshold in an analysis,
parcels from an atlas, etc.). The class replaces the older clusters
struct from the scnlab toolbox; the class definition adds error
checking and structured methods (visualization, tabling, conversion to
other image types).
region is a standalone class (not a subclass of image_vector), so
it does NOT inherit image_vector methods. Instead, several region
methods convert to and from image_vector / fmri_data / atlas so
that those classes' tooling can be applied. Type methods(my_obj) in
MATLAB for the live list on any instance.
Properties
Property
Description
title
Title of the region object
shorttitle
Short title (used as label)
descrip1
Description string 1
descrip2
Description string 2 (lists key methods)
XYZ
[3 x voxels] voxel coordinates within the region
XYZmm
[3 x voxels] world (mm) coordinates within the region
val
Per-voxel values (typically the input mask values)
val_descrip
Description of values stored in val
Z
Per-voxel max-stat / Z-scores (legacy field, still widely used)
Z_descrip
Description of values stored in Z (legacy)
threshold
(legacy) Threshold associated with the region, kept for compatibility
voxSize
Voxel size in mm (3-vector from the affine)
M
Affine matrix (4x4) inherited from the source mask
dim
Image dimensions (3-vector)
numVox
Number of voxels in the region
numpeaks
Number of peaks within the region
center
Voxel-coordinate center of mass
mm_center
mm-coordinate center of mass
timeseries
Per-region timeseries (if extracted)
contrastdata
Per-region contrast data (if extracted)
dat
Per-region averaged data (images x 1 vector when extracted)
all_data
Full per-voxel data extracted from a source image set
source_images
Filenames of images data were extracted from
custom_info1
Custom info slot 1 (often the source mask filename)
custom_info1_descrip
Description for custom_info1
custom_info2
Custom info slot 2
custom_info2_descrip
Description for custom_info2
Basic image math and operations
Method
From
One-liner
merge
@region
Merge two or more regions into one, combining fields appropriately
posneg_separate
@region
Split regions into positive- and negative-valued sub-regions
subdivide_by_atlas
@region
Subdivide each blob by anatomical atlas parcels
subdivide_by_local_max
@region
Subdivide regions by local peak Z-score / maxima
reparse_continguous
@region
Re-define regions based on contiguous blobs (note: spelling is continguous in source)
select_coordinates_near_regions
@region
Filter MNI mm coordinates by minimum distance to the region object
Transparent isosurfaces with centroid labels and text annotations
match_colors_left_right
@region
Assign matched colors to symmetric L/R regions
Interactive viewers (stand-alone functions, not class methods):canlab_orthviews(r) opens an enhanced SPM-style three-plane viewer in MATLAB (multiple blob layers, region tables, and an atlas region-name readout under the crosshair); canlab_niivue(r) writes a portable point-and-click web viewer (NiiVue) with the same crosshair atlas readout, embeddable in HTML reports.