gray_histo_absT_gray_histo_absGrayHistoAbsGrayHistoAbsgray_histo_abs (Operator)

Name

gray_histo_absT_gray_histo_absGrayHistoAbsGrayHistoAbsgray_histo_abs — Verteilung der Grauwerte.

Signatur

gray_histo_abs(Regions, Image : : Quantization : AbsoluteHisto)

Herror T_gray_histo_abs(const Hobject Regions, const Hobject Image, const Htuple Quantization, Htuple* AbsoluteHisto)

void GrayHistoAbs(const HObject& Regions, const HObject& Image, const HTuple& Quantization, HTuple* AbsoluteHisto)

HTuple HImage::GrayHistoAbs(const HRegion& Regions, const HTuple& Quantization) const

HTuple HImage::GrayHistoAbs(const HRegion& Regions, double Quantization) const

HTuple HRegion::GrayHistoAbs(const HImage& Image, const HTuple& Quantization) const

HTuple HRegion::GrayHistoAbs(const HImage& Image, double Quantization) const

static void HOperatorSet.GrayHistoAbs(HObject regions, HObject image, HTuple quantization, out HTuple absoluteHisto)

HTuple HImage.GrayHistoAbs(HRegion regions, HTuple quantization)

HTuple HImage.GrayHistoAbs(HRegion regions, double quantization)

HTuple HRegion.GrayHistoAbs(HImage image, HTuple quantization)

HTuple HRegion.GrayHistoAbs(HImage image, double quantization)

def gray_histo_abs(regions: HObject, image: HObject, quantization: Union[int, float]) -> Sequence[int]

Beschreibung

gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs berechnet für das übergebene Bild (ImageImageImageImageimageimage) innerhalb von RegionsRegionsRegionsRegionsregionsregions das absolute (AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHistoabsolute_histo)) Histogramm der Grauwerte.

Der Parameter QuantizationQuantizationQuantizationQuantizationquantizationquantization bestimmt die Granularität des Histogramms und gibt an, wie viele Häufigkeitswerte von benachbarte Grauwerten zu einem Häufigkeitswert zusammengefasst werden. Das resultierende Histogramm AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHistoabsolute_histo ist ein Tupel, dessen Indizes sich auf die Grauwerte des Eingabebildes ImageImageImageImageimageimage abbilden und dessen Elemente die Grauwerthäufigkeiten enthalten. Die Indizes i der Häufigkeitswerte berechnen sich aus den Grauwerten g und der Quantisierung q daher durch: wobei MIN den minimalen Grauwert bezeichnet, beispielsweise -128 für den int1 Bildtyp. Die Größe des Tupels ergibt sich folglich aus dem Verhältnis vom Grauwertebereich und der Quantelung, für int2 Bilder und der Quantelung 3.0 beispielsweise zu . Der Null-Grauwert wird bei den vorzeichenbehafteten Bildtypen int1 b.z.w. int2 auf den Index 128 b.z.w. 32768 abgebildet, negative b.z.w. positive Grauwerte haben entsprechend kleinere b.z.w. größere Indizes.

Achtung

Der Operator gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs berücksichtigt nur die mittels RegionsRegionsRegionsRegionsregionsregions übergebenen Regionen und ignoriert jede Domäne, die zuvor für das Eingabebild ImageImageImageImageimageimage festgelegt wurde.

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregionsregions (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Region, in der das Histogramm berechnet werden soll.

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / cyclic / direction / int1 / int2 / uint2)

Bild, dessen Grauwertverteilung berechnet werden soll.

QuantizationQuantizationQuantizationQuantizationquantizationquantization (input_control)  number HTupleUnion[int, float]HTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

Quantelung der Grauwerte.

Defaultwert: 1.0

Wertevorschläge: 1.0, 2.0, 3.0, 5.0, 10.0

Restriktion: Quantization >= 1.0

AbsoluteHistoAbsoluteHistoAbsoluteHistoAbsoluteHistoabsoluteHistoabsolute_histo (output_control)  histogram-array HTupleSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Absolute Häufigkeiten der Grauwerte.

Ergebnis

gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs liefert den Wert TRUE, falls das Bild definierte Grauwerte hat und die Parameter korrekt sind. Das Verhalten bei leerer Eingabe (keine Eingabebilder) wird mit set_system(::'no_object_result',<Result>:)set_system("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)SetSystem("no_object_result",<Result>)set_system("no_object_result",<Result>), das bei leerer Region mit set_system(::'empty_region_result',<Result>:)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>) festgelegt. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Nachfolger

histo_to_threshhisto_to_threshHistoToThreshHistoToThreshHistoToThreshhisto_to_thresh, gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHistogen_region_histo

Alternativen

min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray, intensityintensityIntensityIntensityIntensityintensity, gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo, gray_histo_rangegray_histo_rangeGrayHistoRangeGrayHistoRangeGrayHistoRangegray_histo_range

Siehe auch

disp_imagedisp_imageDispImageDispImageDispImagedisp_image, histo_2dimhisto_2dimHisto2dimHisto2dimHisto2dimhisto_2dim, scale_image_maxscale_image_maxScaleImageMaxScaleImageMaxScaleImageMaxscale_image_max, entropy_grayentropy_grayEntropyGrayEntropyGrayEntropyGrayentropy_gray

Modul

Foundation