morphomapArea {morphomap}R Documentation

morphomapArea

Description

Shoelace formula to calculate the area of a closed outline

Usage

morphomapArea(p, delta = 0.1, method = "shoelace")

Arguments

p

matrix: kx2 matrix

delta

numeric: picture elements of adjustable side length

method

character: the user can choice to calculate the area applying the "shoelace" formula or discretizing the cross sections in dA areas (method = "delta")

Value

ar numeric: area

Author(s)

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

Examples

extsec<-morphomapCircle(10,100)
#shoelace method
area<-morphomapArea(extsec, method="shoelace")
#delta method
area<-morphomapArea(extsec, method="delta",delta=0.01)

[Package morphomap version 1.5 Index]