powered by
Shoelace formula to calculate the area of a closed outline
morphomapArea(p, delta = 0.1, method = "shoelace")
ar numeric: area
matrix: kx2 matrix
numeric: picture elements of adjustable side length
character: the user can choice to calculate the area applying the "shoelace" formula or discretizing the cross sections in dA areas (method = "delta")
Antonio Profico, Luca Bondioli, Pasquale Raia, Paul O'Higgins, Damiano Marchi
extsec<-morphomapCircle(10,100) #shoelace method area<-morphomapArea(extsec, method="shoelace") #delta method area<-morphomapArea(extsec, method="delta",delta=0.01)
Run the code above in your browser using DataLab