itk_patch_morphology
Patch-based segmentation using expert priors (Coupe et al. 2010).
itk_patch_morphology <input> [output_labels] [options]
DESCRIPTION
itk_patch_morphology performs patch-based label fusion for anatomical segmentation using a library of pre-segmented template images. The method is based on the non-local means framework described by Coupe et al. (2010), where each voxel in the input image is labelled by comparing its local patch to patches from the training library and performing a weighted vote.
The similarity between patches is measured using a sum of squared differences, and the contribution of each training patch is weighted by an exponential function of the distance. This approach can achieve highly accurate segmentation when a sufficiently large and representative training library is available.
OPTIONS
--traindata- Training library specification file containing image paths and labels.
--verbose- Print progress information during processing.
--quiet- Suppress all output messages.
--clobber- Overwrite the output file if it already exists.
--maskfile- Restrict processing to voxels within the specified mask.
--patchn- Patch radius in voxels (default: 1).
--searchn- Search radius in voxels (default: 1).
--clsoutput- Write the discrete classification output to the specified file.
--betaf- Smoothing parameter for exponential weighting (default: 0.125).
--scalingf- Apply intensity scaling factor to patches before comparison.
--thresholdd- Threshold for minimum patch similarity.
--discreten- Number of discrete classes (default: 2).
--confidence- Output confidence (weight) maps.
--adist- Output average distance maps.
--grading- Output grading score maps.
--itern- Number of iterations for iterative refinement (default: 50).
--extractn- Extract features from the specified label.
--topn- Use only the top n most similar training patches.
--float- Store output voxels as single-precision floating point.
--short- Store output voxels as short integer.
--byte- Store output voxels as unsigned byte.
--box- Use a box-shaped (cubic) search neighbourhood.
--ball- Use a ball-shaped (spherical) search neighbourhood.
--prelabel- Use pre-existing labels to guide the segmentation.
--probprefix- Write per-class probability maps with the given filename prefix.
--groupsn- Number of training groups.
EXAMPLES
# Patch-based segmentation with a training library
itk_patch_morphology input.mnc output_labels.mnc --train library.csv \
--mask brain_mask.mnc
# Segmentation with larger patch and search radius
itk_patch_morphology input.mnc output_labels.mnc --train library.csv \
--mask brain_mask.mnc --patch 2 --search 2
# Output probability maps for each class
itk_patch_morphology input.mnc output_labels.mnc --train library.csv \
--prob prob_ --float
AUTHOR
Vladimir S. Fonov - McConnell Brain Imaging Centre, Montreal Neurological Institute.
COPYRIGHTS
Copyright © 2009-2024 by Vladimir S. Fonov
SEE ALSO
itk_patch_grading , itk_patch_segmentation , itk_patch_morphology_mc