morphomapCentroid: morphomapCentroid

Description Usage Arguments Value Author(s) Examples

View source: R/morphomapCentroid.R

Description

Calculate the barycenter of the cortical area

Usage

1
morphomapCentroid(cp, mp, delta = 0.1)

Arguments

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

Value

centroid numeric vector: coordinates of the cortical area

Author(s)

Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi

Examples

1
2
3
4
5
6
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)

morphomap documentation built on Jan. 13, 2021, 6:27 a.m.