polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagepolar_trans_image (Operator)

Name

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagepolar_trans_image — Anwenden einer Polartransformation

Warnung

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagePolarTransImagepolar_trans_image ist veraltet und wird nur aus Gründen der Rückwärtskompatibilität zur Verfügung gestellt. Neue Applikationen sollten stattdessen den Operator polar_trans_image_extpolar_trans_image_extPolarTransImageExtPolarTransImageExtPolarTransImageExtpolar_trans_image_ext verwenden.

Signatur

polar_trans_image(ImageXY : ImagePolar : Row, Column, Width, Height : )

Herror polar_trans_image(const Hobject ImageXY, Hobject* ImagePolar, const Hlong Row, const Hlong Column, const Hlong Width, const Hlong Height)

Herror T_polar_trans_image(const Hobject ImageXY, Hobject* ImagePolar, const Htuple Row, const Htuple Column, const Htuple Width, const Htuple Height)

void PolarTransImage(const HObject& ImageXY, HObject* ImagePolar, const HTuple& Row, const HTuple& Column, const HTuple& Width, const HTuple& Height)

HImage HImage::PolarTransImage(Hlong Row, Hlong Column, Hlong Width, Hlong Height) const

static void HOperatorSet.PolarTransImage(HObject imageXY, out HObject imagePolar, HTuple row, HTuple column, HTuple width, HTuple height)

HImage HImage.PolarTransImage(int row, int column, int width, int height)

def polar_trans_image(image_xy: HObject, row: int, column: int, width: int, height: int) -> HObject

Beschreibung

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagePolarTransImagepolar_trans_image wandelt ein Bild mit (x,y)-Koordinaten in ein Bild mit (Winkel,Radius)-Koordinaten um. Die Größe des Zielbildes wird mit WidthWidthWidthWidthwidthwidth und HeightHeightHeightHeightheightheight angegeben. WidthWidthWidthWidthwidthwidth gibt dabei die Auflösung des Winkels und HeightHeightHeightHeightheightheight die Auflösung des Radius an. RowRowRowRowrowrow und ColumnColumnColumnColumncolumncolumn geben die Position im Eingabebild an, in der das Zentrum des Polarkoordinatensystems liegt. Dieser Punkt wird auf die erste (oberste) Zeile im Ergebnisbild abgebildet.

Ein Punkt (x',y') im Ergebnisbild ist der Punkt (x,y) im Eingabebild wie folgt zugeordnet:

polar_trans_imagepolar_trans_imagePolarTransImagePolarTransImagePolarTransImagepolar_trans_image kann auf OpenCL-Geräten ausgeführt werden, wenn das Eingangsbild die maximale Größe für Bildobjekte des ausgewählten Gerätes nicht überschreitet. Aus numerischen Gründen kann es dabei zu geringfügigen Abweichungen des Ergebnisses gegenüber der Ausführung auf der CPU kommen.

Weitere Informationen

Ein Überblick zu den verschiedenen in HALCON verwendeten 2D Koordinatensystemen ist in der Einleitung zum Kapitel Transformationen / 2D-Transformationen gegeben.

Ausführungsinformationen

Parameter

ImageXYImageXYImageXYImageXYimageXYimage_xy (input_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte* / int2* / uint2* / real*) *erlaubt für Compute Devices

Eingabebild in x/y-Koordinaten.

ImagePolarImagePolarImagePolarImagePolarimagePolarimage_polar (output_object)  (multichannel-)image(-array) objectHImageHObjectHImageHobject * (byte / int2 / uint2 / real)

Ausgabebild in Polar-Koordinaten.

RowRowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Zeilenindex des Zentrums.

Defaultwert: 100

Wertevorschläge: 0, 10, 100, 200

Typischer Wertebereich: 0 ≤ Row Row Row Row row row ≤ 512

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

ColumnColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Spaltenindex des Zentrums.

Defaultwert: 100

Wertevorschläge: 0, 10, 100, 200

Typischer Wertebereich: 0 ≤ Column Column Column Column column column ≤ 512

Minimale Schrittweite: 1

Empfohlene Schrittweite: 1

WidthWidthWidthWidthwidthwidth (input_control)  extent.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Breite des Zielbildes.

Defaultwert: 314

Wertevorschläge: 100, 200, 157, 314, 512

Typischer Wertebereich: 2 ≤ Width Width Width Width width width ≤ 512

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

HeightHeightHeightHeightheightheight (input_control)  extent.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Höhe des Zielbildes.

Defaultwert: 200

Wertevorschläge: 100, 128, 256, 512

Typischer Wertebereich: 2 ≤ Height Height Height Height height height ≤ 512

Minimale Schrittweite: 1

Empfohlene Schrittweite: 10

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

Beispiel (C)

read_image(&Image,"monkey");
disp_image(Image,WindowHandle);
polar_trans_image(Image,&PolarImage,100,100,314,200);
disp_image(PolarImage,WindowHandle);

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

Beispiel (HDevelop)

read_image(Image,'monkey')
dev_display (Image)
polar_trans_image(Image,PolarImage,100,100,314,200)
dev_display (PolarImage)

Modul

Foundation