Name
write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfo — Write XLD contours to a file in ARC/INFO generate format.
Herror write_contour_xld_arc_info(const Hobject Contours, const char* FileName)
Herror T_write_contour_xld_arc_info(const Hobject Contours, const Htuple FileName)
write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfo writes the XLD contours
ContoursContoursContoursContoursContourscontours to an ARC/INFO generate format file with name
FileNameFileNameFileNameFileNameFileNamefileName. If no absolute path is given in
FileNameFileNameFileNameFileNameFileNamefileName, 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_xldaffine_trans_contour_xldAffineTransContourXldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXld beforehand. The necessary
transformation can be read from an ARC/INFO world file with
read_world_fileread_world_fileReadWorldFileread_world_fileReadWorldFileReadWorldFile.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
XLD contours to be written.
Name of the ARC/INFO file.
* 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')
If the parameters are correct and the file could be written, the
operator write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfo returns the value 2 (H_MSG_TRUE).
Otherwise an exception is raised.
affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXld
read_world_fileread_world_fileReadWorldFileread_world_fileReadWorldFileReadWorldFile,
read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfo,
write_polygon_xld_arc_infowrite_polygon_xld_arc_infoWritePolygonXldArcInfowrite_polygon_xld_arc_infoWritePolygonXldArcInfoWritePolygonXldArcInfo
Foundation