write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfowrite_contour_xld_arc_info (Operator)

Name

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

Signature

write_contour_xld_arc_info(Contours : : FileName : )

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)

void WriteContourXldArcInfo(const HObject& Contours, const HTuple& FileName)

void HXLDCont::WriteContourXldArcInfo(const HString& FileName) const

void HXLDCont::WriteContourXldArcInfo(const char* FileName) const

void HXLDCont::WriteContourXldArcInfo(const wchar_t* FileName) const   ( Windows only)

static void HOperatorSet.WriteContourXldArcInfo(HObject contours, HTuple fileName)

void HXLDCont.WriteContourXldArcInfo(string fileName)

def write_contour_xld_arc_info(contours: HObject, file_name: str) -> None

Description

write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfowrite_contour_xld_arc_info writes the XLD contours ContoursContoursContourscontourscontours to an ARC/INFO generate format file with name FileNameFileNameFileNamefileNamefile_name. If no absolute path is given in FileNameFileNameFileNamefileNamefile_name, 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_xldAffineTransContourXldAffineTransContourXldaffine_trans_contour_xld beforehand. The necessary transformation can be read from an ARC/INFO world file with read_world_fileread_world_fileReadWorldFileReadWorldFileread_world_file.

Execution Information

Parameters

ContoursContoursContourscontourscontours (input_object)  xld_cont(-array) objectHXLDContHObjectHObjectHobject

XLD contours to be written.

FileNameFileNameFileNamefileNamefile_name (input_control)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of the ARC/INFO file.

Example (HDevelop)

* 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_infowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfowrite_contour_xld_arc_info returns the value 2 ( H_MSG_TRUE) . Otherwise an exception is raised.

Possible Predecessors

affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXldaffine_trans_contour_xld

See also

read_world_fileread_world_fileReadWorldFileReadWorldFileread_world_file, read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInforead_contour_xld_arc_info, write_polygon_xld_arc_infowrite_polygon_xld_arc_infoWritePolygonXldArcInfoWritePolygonXldArcInfowrite_polygon_xld_arc_info

Module

Foundation