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:
P
outline points as N-by-2 matrix
V0
indicies of the apex of each tear
VF
indicies of the forward vertex of each tear
VB
indicies of the backward vertex of each tear
i0
index of the landmark on the rim
phi0
lattitude of rim of partial sphere
lambda0
longitude 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:
P
New set of points in flattened object
gf
New set of forward pointers in flattened object
gb
New set of backward pointers in flattened object
phi
lattitude of new points on sphere
lambda
longitude of new points on sphere
Tt
New 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.