get_mesh_metro_pair: Distances between two 3D meshes

View source: R/functions.R

get_mesh_metro_pairR Documentation

Distances between two 3D meshes

Description

Calculate distances between two 3D meshes. Used for distance-based agreement measures such as the Hausdorff distance or the average surface distance.

Usage

get_mesh_metro_pair(x, chop=TRUE, ...)

Arguments

x

list of two 3D meshes that should be compared, e.g., a single component of the list generated by get_mesh_pairs.

chop

logical. Delete the components from output of vcgMetro that will not be used later on.

...

Options passed to vcgMetro.

Details

Thin front-end for vcgMetro. Use get_mesh_metro to process all pairs from a list of 3D meshes. Post-processing for agreement measures is done in get_mesh_agree_pair.

Value

list with object returned by vcgMetro together with the name of the comparison and a name for the structure.

References

http://vcg.isti.cnr.it/vcglib/

See Also

get_mesh_pairs, get_mesh_metro, get_mesh_agree_pair, vcgMetro

Examples

heartL <- mesh3dL_to_cgalMeshL(data_heart_obsL)
pairL  <- get_mesh_pairs(heartL)
metro  <- get_mesh_metro_pair(pairL[[1]], nSamples=500L, silent=TRUE)
# Hausdorff distance
get_HD_max <- function(x) {
    max(c(x$ForwardSampling$maxdist,
          x$BackwardSampling$maxdist))
}

get_HD_max(metro)

MeshAgreement documentation built on Nov. 25, 2022, 5:05 p.m.