Description Usage Arguments Value Author(s) Examples
View source: R/priorBasedSegmentation.R
markov random field regularized, prior-based image segmentation that is a wrapper around atropos (see ANTs and related publications).
1 2 3 4 5 6 7 8 | priorBasedSegmentation(
img,
priors,
mask,
priorWeight = 0.25,
mrf = 0.1,
iterations = 25
)
|
img |
input image or image list for multivariate segmentation |
priors |
list of priors that cover the number of classes |
mask |
segment inside this mask |
priorWeight |
usually 0 (priors used for initialization only), 0.25 or 0.5. |
mrf |
regularization, higher is smoother, a numerical value in range 0.0 to 0.2 |
iterations |
maximum number of iterations. could be a large value eg 25. |
segmentation and probability images
Brian B. Avants
1 2 3 4 | fi = antsImageRead( getANTsRData( "r16" ) )
seg = kmeansSegmentation( fi, 3 )
msk = thresholdImage( seg$segmentation, 1, Inf )
pseg = priorBasedSegmentation( fi, seg$probabilityimages, msk, 0.25, 0.1, 3 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.