powered by
k means image segmentation that is a wrapper around atropos
kmeansSegmentation(img, k, kmask = NA, mrf = 0.1)
input image
integer number of classes
segment inside this mask
smoothness, higher is smoother
segmentation and probability images
# NOT RUN { fi<-antsImageRead( getANTsRData("r16") ,2) fi<-n3BiasFieldCorrection(fi,4) seg<-kmeansSegmentation( fi, 3 ) # }
Run the code above in your browser using DataLab