View source: R/morphomapCentroid.R
morphomapCentroid | R Documentation |
Calculate the barycenter of the cortical area
morphomapCentroid(cp, mp, delta = 0.1)
cp |
matrix: coordinates of the external outline of the section |
mp |
matrix: coordinates of the internal outline of the section |
delta |
numeric: picture elements of adjustable side length |
centroid numeric vector: coordinates of the cortical area
Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
extsec<-morphomapCircle(10,100)
intsec<-morphomapCircle(8,100)
plot(extsec,asp=1,type="l")
points(intsec,col=2,type="l")
cent<-morphomapCentroid(extsec,intsec,delta = 0.1)
points(cent[1],cent[2],pch=19,col=3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.