uvaSegTrain | R Documentation |
Trains a variational autoencoding with a convolutional network. This is followed by k-means clustering to produce a segmentation and probabilities.
uvaSegTrain(patches, k, convControl, standardize = TRUE, patches2)
patches |
input patch matrix, see |
k |
number of embedding layers |
convControl |
optional named list with control parameters ( see code )
|
standardize |
boolean controlling whether patches are standardized |
patches2 |
input target patch matrix, see |
model is output
Avants BB
## Not run:
library(ANTsR)
img <- ri( 1 ) %>% resampleImage( c(4,4) ) %>% iMath( "Normalize" )
mask = randomMask( getMask( img ), 50 )
r = c( 3, 3 )
patch = getNeighborhoodInMask( img, mask, r, boundary.condition = "NA" )
uvaSegModel = uvaSegTrain( patch, 6 )
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.