KlassenKlassenKlassenKlassen | | | | Operatoren

threshold_sub_pixthreshold_sub_pixThresholdSubPixthreshold_sub_pixThresholdSubPixThresholdSubPix (Operator)

Name

threshold_sub_pixthreshold_sub_pixThresholdSubPixthreshold_sub_pixThresholdSubPixThresholdSubPix — Subpixel-genaues Extrahieren von Grauwert-Höhenlinien in einem Bild

Signatur

threshold_sub_pix(Image : Border : Threshold : )

Herror threshold_sub_pix(const Hobject Image, Hobject* Border, double Threshold)

Herror T_threshold_sub_pix(const Hobject Image, Hobject* Border, const Htuple Threshold)

Herror threshold_sub_pix(Hobject Image, Hobject* Border, const HTuple& Threshold)

HXLDContArray HImage::ThresholdSubPix(const HTuple& Threshold) const

void ThresholdSubPix(const HObject& Image, HObject* Border, const HTuple& Threshold)

HXLDCont HImage::ThresholdSubPix(const HTuple& Threshold) const

HXLDCont HImage::ThresholdSubPix(double Threshold) const

void HOperatorSetX.ThresholdSubPix(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*Border, [in] VARIANT Threshold)

IHXLDContX* HImageX.ThresholdSubPix([in] VARIANT Threshold)

static void HOperatorSet.ThresholdSubPix(HObject image, out HObject border, HTuple threshold)

HXLDCont HImage.ThresholdSubPix(HTuple threshold)

HXLDCont HImage.ThresholdSubPix(double threshold)

Beschreibung

threshold_sub_pixthreshold_sub_pixThresholdSubPixthreshold_sub_pixThresholdSubPixThresholdSubPix extrahiert die Grauwert-Höhenlinien der Höhe ThresholdThresholdThresholdThresholdThresholdthreshold des Eingabebildes ImageImageImageImageImageimage subpixel-genau. Die extrahierten Höhenlinien werden als XLD-Konturen in BorderBorderBorderBorderBorderborder zurückgegeben. Im Gegensatz zum Operator thresholdthresholdThresholdthresholdThresholdThreshold liefert threshold_sub_pixthreshold_sub_pixThresholdSubPixthreshold_sub_pixThresholdSubPixThresholdSubPix keine Fläche zurück, sondern die Linien, die Bereiche mit Grauwert kleiner ThresholdThresholdThresholdThresholdThresholdthreshold von Bereichen mit Grauwert größer ThresholdThresholdThresholdThresholdThresholdthreshold trennen.

Bei der Extraktion wird das Eingabebild als Oberfläche interpretiert, wobei zwischen den Pixelmittelpunkten bilinear interpoliert wird. Konsistent mit der so entstehenden Oberfläche werden einzelne Grauwert-Höhenlinien für jedes Pixel extrahiert und zu topologisch „sauberen“ Konturen verknüpft. Das bedeutet, dass die Höhenlinienkonturen an Kreuzungspunkten sauber aufgetrennt werden. Falls im Bild flächenhafte Bereiche mit einem konstanten Grauwert von ThresholdThresholdThresholdThresholdThresholdthreshold auftreten, wird nur der Rand solcher Gebiete als Höhenlinie zurückgeliefert.

Parallelisierung

Parameter

ImageImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHImageHImageXHobject (byte / int1 / int2 / uint2 / int4 / real)

Eingabebild.

BorderBorderBorderBorderBorderborder (output_object)  xld_cont-array objectHXLDContHXLDContHXLDContArrayHXLDContXHobject *

Extrahierte Grauwert-Höhenlinien.

ThresholdThresholdThresholdThresholdThresholdthreshold (input_control)  number HTupleHTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong) (double / Hlong)

Schwellenwert für die Grauwert-Höhenlinien.

Defaultwert: 128

Wertevorschläge: 0.0, 10.0, 30.0, 64.0, 128.0, 200.0, 220.0, 255.0

Beispiel (HDevelop)

read_image(Image,'fabrik')
threshold_sub_pix(Image,Border,35)
dev_display(Border)

Beispiel (C)

/* Detection zero crossings of the Laplacian-of-Gaussian of aerial image */
read_image(&Image,"fabrik");
threshold_sub_pix(Laplace,&Border,35);
disp_xld(Border,WindowHandle);

Beispiel (HDevelop)

read_image(Image,'fabrik')
threshold_sub_pix(Image,Border,35)
dev_display(Border)

Beispiel (C++ (HALCON 5.0-10.0))

/* Detection zero crossings of the Laplacian-of-Gaussian of aerial image */
HWindow Window(0,0,512,512);
HImage Image("fabrik");
HXLDContArray Border = Image.ThresholdSubPix(35);
Border.Display(Window);

Beispiel (HDevelop)

read_image(Image,'fabrik')
threshold_sub_pix(Image,Border,35)
dev_display(Border)

Beispiel (HDevelop)

read_image(Image,'fabrik')
threshold_sub_pix(Image,Border,35)
dev_display(Border)

Ergebnis

threshold_sub_pixthreshold_sub_pixThresholdSubPixthreshold_sub_pixThresholdSubPixThresholdSubPix liefert normalerweise den Wert 2 (H_MSG_TRUE). Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Alternativen

thresholdthresholdThresholdthresholdThresholdThreshold

Siehe auch

zero_crossing_sub_pixzero_crossing_sub_pixZeroCrossingSubPixzero_crossing_sub_pixZeroCrossingSubPixZeroCrossingSubPix

Modul

2D Metrology


KlassenKlassenKlassenKlassen | | | | Operatoren