read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfo (Operator)

Name

read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfo — Lesen von XLD-Konturen im ARC/INFO-Generate-Format.

Signatur

read_contour_xld_arc_info( : Contours : FileName : )

Herror read_contour_xld_arc_info(Hobject* Contours, const char* FileName)

Herror T_read_contour_xld_arc_info(Hobject* Contours, const Htuple FileName)

void ReadContourXldArcInfo(HObject* Contours, const HTuple& FileName)

void HXLDCont::ReadContourXldArcInfo(const HString& FileName)

void HXLDCont::ReadContourXldArcInfo(const char* FileName)

void HXLDCont::ReadContourXldArcInfo(const wchar_t* FileName)   (Nur Windows)

static void HOperatorSet.ReadContourXldArcInfo(out HObject contours, HTuple fileName)

void HXLDCont.ReadContourXldArcInfo(string fileName)

Beschreibung

read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfoReadContourXldArcInfo liest die in der Datei FileNameFileNameFileNameFileNamefileName im ARC/INFO-Generate-Format gespeicherten Linien ein und liefert sie als XLD-Konturen in ContoursContoursContoursContourscontours zurück. Dabei werden alle Verzeichnisse, die in der HALCON-Systemvariablen 'image_dir'"image_dir""image_dir""image_dir""image_dir" bzw. in der Umgebungsvariablen HALCONIMAGES enthalten sind, nach der Datei FileNameFileNameFileNameFileNamefileName durchsucht (siehe read_imageread_imageReadImageReadImageReadImage). Die eingelesenen Konturen liegen im Weltkoordinatensystem vor. Der Operator affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXldAffineTransContourXld kann verwendet werden, um sie in das Bildkoordinatensystem zu transformieren. Die dazu notwendige Transformationsmatrix kann erzeugt werden, indem mit read_world_fileread_world_fileReadWorldFileReadWorldFileReadWorldFile aus einem ARC/INFO World File die Transformationsmatrix von Bild- nach Weltkoordinatensystem gelesen wird, und diese mit hom_mat2d_inverthom_mat2d_invertHomMat2dInvertHomMat2dInvertHomMat2dInvert invertiert wird.

Ausführungsinformationen

Parameter

ContoursContoursContoursContourscontours (output_object)  xld_cont(-array) objectHXLDContHXLDContHobject *

Eingelesene XLD-Konturen.

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

Name der ARC/INFO-Datei.

Beispiel (HDevelop)

* Read the transformation and invert it
read_world_file ('image.tfw', WorldTransformation)
hom_mat2d_invert (WorldTransformation, ImageTransformation)
* Read the image
read_image (Image, 'image.tif')
* Read the line data
read_contour_xld_arc_info (LinesWorld, 'lines.gen')
* Transform the line data to image coordinates
affine_trans_contour_xld (LinesWorld, Lines, ImageTransformation)

Ergebnis

Wenn die Parameter korrekt sind und die angegebene Datei gelesen werden konnte, liefert read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfoReadContourXldArcInfo den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Nachfolger

hom_mat2d_inverthom_mat2d_invertHomMat2dInvertHomMat2dInvertHomMat2dInvert, affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXldAffineTransContourXld

Siehe auch

read_world_fileread_world_fileReadWorldFileReadWorldFileReadWorldFile, write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfoWriteContourXldArcInfo, read_polygon_xld_arc_inforead_polygon_xld_arc_infoReadPolygonXldArcInfoReadPolygonXldArcInfoReadPolygonXldArcInfo

Modul

Foundation