Woolz Image Processing  Version 1.8.3
WlzCMeshValueTransfer
Name
WlzCMeshValueTransfer - creates a new object with the mesh domain of the target object and (within the domain intersection) the values of the source object.
Synopsis
WlzCMeshValueTransfer [-h] [-o<output object>] [-L] [-x]
                      [<source object>] [<target object>]
Options
-h Help, prints usage message.
-o Output object.
-L Use linear (barycentric) interpolation instead of nearest neighbour.
-x Value for indexed values external to the source mesh (default is 0).
Description
Given a pair of 2, 2.5 or 3D conforming meshes, with both of the same type, values are transfered from the source to the target mesh within their intersection. Outside of the intersection values are set to the value for external values. By default files are read from the standard input and written to the standard output. If both the source and target files are read from the standard input, the source is read before the target object.
Examples
WlzCMeshValueTransfer -x NaN -o out.wlz mesh.wlz supermesh.wlz
Reads source and target meshes from the files mesh.wlz and supermesh.wlz respectively then creates a new mesh setting all values within the intersection to the nearest value in source.wlz. Values outside the intersection are set to the given external value NaN. The resulting object is then written to the file out.wlz.
File
binWlz/WlzCMeshValueTransfer.c
See Also
WlzIntro(1) WlzCMeshValueTransfer(3)