Herror ::write_contour_xld_arc_info (
    Hobject Contours,
    const HTuple &FileName
)
void HXLDCont::WriteContourXldArcInfo (
    const HTuple &FileName
) const
void HXLDContArray::WriteContourXldArcInfo (
    const HTuple &FileName
) const

Write XLD contours to a file in ARC/INFO generate format.

::write_contour_xld_arc_info writes the XLD contours Contours to an ARC/INFO generate format file with name FileName. If no absolute path is given in FileName, the output file is created in the current directory of the HALCON process. The contours must have been transformed to the world coordinate system with ::affine_trans_contour_xld beforehand. The necessary transformation can be read from an ARC/INFO world file with ::read_world_file.


Parameters

Contours (input_object)
xld_cont(-array) -> Hobject: HXLDCont(Array)
XLD contours to be written.

FileName (input_control)
filename -> HTuple.char *
Name of the ARC/INFO file.


Example
/* Read transformation and image */
read_world_file ('image.tfw', WorldTransformation)
read_image (Image, 'image.tif')
/* Segment image */
...
/* Write result */
affine_trans_contour_xld (Contours, ContoursWorld, WorldTransformation)
write_contour_xld_arc_info (ContoursWorld, 'result.gen')

Result

If the parameters are correct and the file could be written, the operator ::write_contour_xld_arc_info returns the value H_MSG_TRUE. Otherwise an exception is raised.


Possible Predecessors

::affine_trans_contour_xld


See also

::read_world_file, ::read_contour_xld_arc_info, ::write_polygon_xld_arc_info


Module

Sub-pixel operators



Copyright © 1996-2002 MVTec Software GmbH