Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

MeshAgreement (version 0.1.4)

get_mesh_metro_pair: 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, ...)

Value

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

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.

References

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

See Also

get_mesh_pairs, get_mesh_metro, get_mesh_agree_pair, vcgMetro

Examples

Run this code
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)

Run the code above in your browser using DataLab