Name
thresholdthresholdThresholdThreshold — Segmentieren mit globalen Schwellenwerten.
thresholdthresholdThresholdThresholdThreshold wählt aus den Eingabebildern die Bildpunkte
aus, deren Grauwerte g der Schwellenwertbedingung
genügen.
Alle Punkte eines Eingabebildes, die die Bedingung erfüllen, werden
gemeinsam als eine neue Region abgespeichert. Wird mehr als ein
Grauwertbereich übergeben (Tupel von Werten für MinGrayMinGrayMinGrayMinGrayminGray
und MaxGrayMaxGrayMaxGrayMaxGraymaxGray), dann wird für jedes dieser Intervalle eine
Region erzeugt. Für Vektorfeldbilder wird der Schwellwert nicht
auf Grauwerte sondern auf die Länge der Vektoren angewandt.
Für ganzzahlige Bildtypen werden Fließkommawerte in MinGrayMinGrayMinGrayMinGrayminGray und
MaxGrayMaxGrayMaxGrayMaxGraymaxGray abgeschnitten.
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Automatisch parallelisiert auf Tupelebene.
- Automatisch parallelisiert auf interner Datenebene.
Untere Schwelle für die Grauwerte.
Defaultwert: 128.0
Wertevorschläge: 0.0, 10.0, 30.0, 64.0, 128.0, 200.0, 220.0, 255.0
Obere Schwelle für die Grauwerte.
Defaultwert: 255.0
Wertevorschläge: 0.0, 10.0, 30.0, 64.0, 128.0, 200.0, 220.0, 255.0
Restriktion: MaxGray >= MinGray
read_image(Image,'fabrik')
sobel_dir(Image,EdgeAmp,EdgeDir,'sum_abs',3)
threshold(EdgeAmp,Seg,50,255)
skeleton(Seg,Rand)
connection(Rand,Lines)
select_shape(Lines,Edges,'area','and',10,1000000)
read_image(&Image,"fabrik");
sobel_amp(Image,&EdgeAmp,"sum_abs",3);
threshold(EdgeAmp,&Seg,50.0,255.0);
skeleton(Seg,&Rand);
connection(Rand,&Lines);
select_shape(Lines,&Edges,"area","and",10.0,1000000.0);
read_image(Image,'fabrik')
sobel_dir(Image,EdgeAmp,EdgeDir,'sum_abs',3)
threshold(EdgeAmp,Seg,50,255)
skeleton(Seg,Rand)
connection(Rand,Lines)
select_shape(Lines,Edges,'area','and',10,1000000)
read_image(Image,'fabrik')
sobel_dir(Image,EdgeAmp,EdgeDir,'sum_abs',3)
threshold(EdgeAmp,Seg,50,255)
skeleton(Seg,Rand)
connection(Rand,Lines)
select_shape(Lines,Edges,'area','and',10,1000000)
read_image(Image,'fabrik')
sobel_dir(Image,EdgeAmp,EdgeDir,'sum_abs',3)
threshold(EdgeAmp,Seg,50,255)
skeleton(Seg,Rand)
connection(Rand,Lines)
select_shape(Lines,Edges,'area','and',10,1000000)
Sei A die Fläche der Eingaberegion, dann ist die
Laufzeitkomplexität O(A).
thresholdthresholdThresholdThresholdThreshold liefert den Wert 2 (H_MSG_TRUE), falls die Parameter
korrekt sind. Für das Verhalten bzgl. der Eingabebilder und
Ausgaberegionen sind die Flags 'no_object_result'"no_object_result""no_object_result""no_object_result""no_object_result",
'empty_region_result'"empty_region_result""empty_region_result""empty_region_result""empty_region_result" und 'store_empty_region'"store_empty_region""store_empty_region""store_empty_region""store_empty_region"
einstellbar (siehe set_systemset_systemSetSystemSetSystemSetSystem). Gegebenenfalls wird
eine Fehlerbehandlung durchgeführt.
histo_to_threshhisto_to_threshHistoToThreshHistoToThreshHistoToThresh,
min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGray,
sobel_ampsobel_ampSobelAmpSobelAmpSobelAmp,
binomial_filterbinomial_filterBinomialFilterBinomialFilterBinomialFilter,
gauss_filtergauss_filterGaussFilterGaussFilterGaussFilter,
reduce_domainreduce_domainReduceDomainReduceDomainReduceDomain,
fill_interlacefill_interlaceFillInterlaceFillInterlaceFillInterlace
connectionconnectionConnectionConnectionConnection,
dilation1dilation1Dilation1Dilation1Dilation1,
erosion1erosion1Erosion1Erosion1Erosion1,
openingopeningOpeningOpeningOpening,
closingclosingClosingClosingClosing,
rank_regionrank_regionRankRegionRankRegionRankRegion,
shape_transshape_transShapeTransShapeTransShapeTrans,
skeletonskeletonSkeletonSkeletonSkeleton
class_2dim_supclass_2dim_supClass2dimSupClass2dimSupClass2dimSup,
hysteresis_thresholdhysteresis_thresholdHysteresisThresholdHysteresisThresholdHysteresisThreshold,
dyn_thresholddyn_thresholdDynThresholdDynThresholdDynThreshold,
binary_thresholdbinary_thresholdBinaryThresholdBinaryThresholdBinaryThreshold,
char_thresholdchar_thresholdCharThresholdCharThresholdCharThreshold,
auto_thresholdauto_thresholdAutoThresholdAutoThresholdAutoThreshold,
dual_thresholddual_thresholdDualThresholdDualThresholdDualThreshold
zero_crossingzero_crossingZeroCrossingZeroCrossingZeroCrossing,
background_segbackground_segBackgroundSegBackgroundSegBackgroundSeg,
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing
Foundation