Woolz Image Processing  Version 1.7.0
WlzClosestVertices - finds an objects closest vertices to those in a list.
WlzClosestVertices  [-h] [-2] [-3] [-s <transform>] [-t <transform>]
                    [-u <vertices>] [-o<output file>] [<input file>]
-h Help, prints usage message.
-2 Vertices and object are 2D.
-3 Vertices and object are 3D.
-s Affine transform to be applied to the given vertices.
-t Affine transform to be applied to the given object.
-u File containing vertices encoded as ASCII in x, y, z order.
-o Output file for closest vertices to those given that have been found in in the given object. These are in the same order as the given vertices and have the same format.
Reads vertices, optional affine transforms and a Woolz object which has a vertex representation (such as boundaries and contours) and finds the closest points ion the given object to those given.
WlzClosestVertices -3 -s tr.wlz -o out.num -u in.num surf.wlz
Reads a target surface object from file surf.wlz and 3D vertices from file in.num. Transforms the vertices using an affine transform read from the file tr.wlz. For each transformed vertex finds the closest vertex in the surface object and then saves the list of closest surface vertices to the file out.num.
See Also
WlzIntro(1) WlzVerticesBuildTree(3) AlcKDTGetNN(3)