morphomapArea: morphomapArea

Description Usage Arguments Value Author(s) Examples

Description

Shoelace formula to calculate the area of a closed outline

Usage

1
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

1
2
3
4
5
extsec<-morphomapCircle(10,100)
#shoelace method
area<-morphomapArea(extsec, method="shoelace")
#delta method
area<-morphomapArea(extsec, method="delta",delta=0.01)

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