threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixthreshold_sub_pix (Operator)

Name

threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixthreshold_sub_pix — 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)

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

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

HXLDCont HImage::ThresholdSubPix(double Threshold) const

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

HXLDCont HImage.ThresholdSubPix(HTuple threshold)

HXLDCont HImage.ThresholdSubPix(double threshold)

def threshold_sub_pix(image: HObject, threshold: Union[float, int]) -> HObject

Beschreibung

threshold_sub_pixthreshold_sub_pixThresholdSubPixThresholdSubPixThresholdSubPixthreshold_sub_pix 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_pixThresholdSubPixThresholdSubPixThresholdSubPixthreshold_sub_pix 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.

Ausführungsinformationen

Parameter

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / int1 / int2 / uint2 / int4 / real)

Eingabebild.

BorderBorderBorderBorderborderborder (output_object)  xld_cont-array objectHXLDContHObjectHXLDContHobject *

Extrahierte Grauwert-Höhenlinien.

ThresholdThresholdThresholdThresholdthresholdthreshold (input_control)  number HTupleUnion[float, int]HTupleHtuple (real / integer) (double / int / long) (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 (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_pixThresholdSubPixThresholdSubPixThresholdSubPixthreshold_sub_pix liefert normalerweise den Wert TRUE. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Alternativen

thresholdthresholdThresholdThresholdThresholdthreshold

Siehe auch

zero_crossing_sub_pixzero_crossing_sub_pixZeroCrossingSubPixZeroCrossingSubPixZeroCrossingSubPixzero_crossing_sub_pix

Modul

2D Metrology