Reconstruct outline into spherical surface. Reconstruction proceeds in a number of stages:
ReconstructedOutline(o, n = 500, alpha = 8, x0 = 0.5, report = print,
plot.3d = FALSE, dev.flat = NA, dev.polar = NA)AnnotatedOutline object, containing the following information:
Poutline points as N-by-2 matrix
V0indicies of the apex of each tear
VFindicies of the forward vertex of each tear
VBindicies of the backward vertex of each tear
i0index of the landmark on the rim
phi0lattitude of rim of partial sphere
lambda0longitude of landmark on rim
Number of points in triangulation.
Area scaling coefficient
Area cutoff coefficient
Function used to report progress.
Whether to show 3D picture during optimisation.
Device to plot grid onto. Value of NA (default)
means no plotting.
Device display projection. Value of NA (default) means no plotting.
reconstructedOutline object containing the input
information and the following modified and extra information:
PNew set of points in flattened object
gfNew set of forward pointers in flattened object
gbNew set of backward pointers in flattened object
philattitude of new points on sphere
lambdalongitude of new points on sphere
TtNew triangulation
The flat object is triangulated with at least n
triangles. This can introduce new vertices in the rim.
The triangulated object is stitched.
The stitched object is triangulated again, but this time it is not permitted to add extra vertices to the rim.
The corresponding points determined by the stitching process are merged to form a new set of merged points and a new triangulation.
The merged points are projected roughly to a sphere.
The locations of the points on the sphere are moved so as to minimise the energy function.