Segmentation Tools#
Methods applying to segmentations.
Available methods:
* combine_regions_as_mask(): Merge regions in a segmentation image into a mask with value 1
* resample_segmentation(): Resample a segmentation image to the affine of a 4D PET image.
* vat_wm_ref_region(): Compute the white matter reference region for the VAT radiotracer.
Functions#
|
Create a mask from a segmentation image and one or more labels. |
|
Merge segmentations by assigning regions to a primary segmentation image from a secondary |
|
Convert a segmentation image array into a mask by setting nonzero values |
|
Divide a region within a segmentation image into right and left values. |
|
Runs a correction on a segmentation by replacing a list of regions with |
|
Resamples a segmentation image to the resolution of a 4D PET series image. Takes the affine |
|
Generates the cortical white matter reference region described in O'Donnell |
|
Generates eroded white matter region on a segmentation image and merges it into the image, |
|
Merge subcortical structures into a merged segmentation image according to |
|
Creates a gray matter and a white matter mask based on FreeSurfer regions. Useful for PVC. |
|
Gets a mask for subcortical regions from a FreeSurfer label image. |
|
Computes a vesselness measure image using Hessian-based objectness filtering. |
Generates a binary vesselness mask from a given vesselness image using quantile-based |
|
|
Get a list of unique ROI labels in a segmentation image. |
|
Zero out segmentation values that lie outside of the PET FOV. |