KlassenKlassenKlassenKlassen | | | | Operatoren

read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfo (Operator)

Name

read_contour_xld_arc_inforead_contour_xld_arc_infoReadContourXldArcInforead_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)

Herror read_contour_xld_arc_info(Hobject* Contours, const HTuple& FileName)

HXLDCont HXLDCont::ReadContourXldArcInfo(const HTuple& FileName)

HXLDContArray HXLDContArray::ReadContourXldArcInfo(const HTuple& FileName)

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

void HXLDCont::ReadContourXldArcInfo(const HString& FileName)

void HXLDCont::ReadContourXldArcInfo(const char* FileName)

void HOperatorSetX.ReadContourXldArcInfo(
[out] IHUntypedObjectX*Contours, [in] VARIANT FileName)

void HXLDContX.ReadContourXldArcInfo([in] BSTR FileName)

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

void HXLDCont.ReadContourXldArcInfo(string fileName)

Beschreibung

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

Parallelisierung

Parameter

ContoursContoursContoursContoursContourscontours (output_object)  xld_cont(-array) objectHXLDContHXLDContHXLDContHXLDContXHobject *

Eingelesene XLD-Konturen.

FileNameFileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (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_infoReadContourXldArcInforead_contour_xld_arc_infoReadContourXldArcInfoReadContourXldArcInfo den Wert 2 (H_MSG_TRUE). Andernfalls wird eine Fehlerbehandlung durchgeführt.

Nachfolger

hom_mat2d_inverthom_mat2d_invertHomMat2dInverthom_mat2d_invertHomMat2dInvertHomMat2dInvert, affine_trans_contour_xldaffine_trans_contour_xldAffineTransContourXldaffine_trans_contour_xldAffineTransContourXldAffineTransContourXld

Siehe auch

read_world_fileread_world_fileReadWorldFileread_world_fileReadWorldFileReadWorldFile, write_contour_xld_arc_infowrite_contour_xld_arc_infoWriteContourXldArcInfowrite_contour_xld_arc_infoWriteContourXldArcInfoWriteContourXldArcInfo, read_polygon_xld_arc_inforead_polygon_xld_arc_infoReadPolygonXldArcInforead_polygon_xld_arc_infoReadPolygonXldArcInfoReadPolygonXldArcInfo

Modul

Foundation


KlassenKlassenKlassenKlassen | | | | Operatoren