Skip to contents

coo_eccentricityeigen uses the ratio of the eigen values (inertia axes of coordinates). coo_eccentricityboundingbox uses the width/length ratio (see coo_lw).

Usage

coo_eccentricityeigen(coo)

# S3 method for default
coo_eccentricityeigen(coo)

# S3 method for Coo
coo_eccentricityeigen(coo)

coo_eccentricityboundingbox(coo)

# S3 method for default
coo_eccentricityboundingbox(coo)

# S3 method for Coo
coo_eccentricityboundingbox(coo)

Source

Rosin PL. 2005. Computing global shape measures. Handbook of Pattern Recognition and Computer Vision. 177-196.

Arguments

coo

a matrix of (x; y) coordinates or any Coo

Value

numeric for single shapes, list for Coo.

Examples

# coo_eccentricityeigen
bot[1] %>% coo_eccentricityeigen()
#> [1] 0.09292547
bot %>%
    slice(1:3) %>% # for speed sake only
    coo_eccentricityeigen()
#> $brahma
#> [1] 0.09292547
#> 
#> $caney
#> [1] 0.100634
#> 
#> $chimay
#> [1] 0.1813198
#> 

# coo_eccentricityboundingbox
bot[1] %>% coo_eccentricityboundingbox()
#> [1] 0.2555899
bot %>%
    slice(1:3) %>% # for speed sake only
    coo_eccentricityboundingbox()
#> $brahma
#> [1] 0.2555899
#> 
#> $caney
#> [1] 0.2617262
#> 
#> $chimay
#> [1] 0.3744498
#>