-
Spherical density-equalizing map (SDEM): Compute a spherical density-equalizing map of a genus-0 closed surface using the method in [1].
-
Landmark-aligned spherical density-equalizing map (LSDEM): Compute a landmark-aligned spherical density-equalizing map of a genus-0 closed surface using the method in [1].
Any comments and suggestions are welcome.
If you use this code in your work, please cite the following paper:
[1] Z. Lyu, L. M. Lui, and G. P. T. Choi, "Spherical Density-Equalizing Map for Genus-0 Closed Surfaces." Preprint, arXiv:2401.11795, 2024.
Copyright (c) 2024, Zhiyuan Lyu, Lok Ming Lui, Gary P. T. Choi
https://github.com/garyptchoi/spherical-density-equalizing-map
===============================================================
Usage:
map = SDEM(v,f,population,S,dt,epsilon,max_iter)
map = LSDEM(v,f,population,S,landmark,target,alpha,beta,gamma,dt,epsilon,max_iter)
Input:
v
: nv x 3 vertex coordinates of a genus-0 triangle meshf
: nf x 3 triangulations of a genus-0 triangle meshpopulation
: nf x 1 positive quantityS
: nv x 3 vertex coordinates of the initial spherical conformal parameterizationdt
: step sizeepsilon
: stopping parametermax_iter
: maximum number of iterationslandmark
: k x 1 vertex indices of the landmarkstarget
: k x 3 target positions of the landmarks on the unit spherealpha
: nonnegative weighting parameter for the density-equalizing termbeta
: nonnegative weighting parameter for the harmonic termgamma
: nonnegative weighting parameter for the landmark mismatch term
Output:
map
: nv x 3 vertex coordinates of the spherical parameterization