histo_2dimhisto_2dimHisto2dimHisto2dimhisto_2dim (Operator)

Name

histo_2dimhisto_2dimHisto2dimHisto2dimhisto_2dim — Histogramm von zweikanaligen Grauwertbildern.

Signatur

histo_2dim(Regions, ImageCol, ImageRow : Histo2Dim : : )

Herror histo_2dim(const Hobject Regions, const Hobject ImageCol, const Hobject ImageRow, Hobject* Histo2Dim)

Herror T_histo_2dim(const Hobject Regions, const Hobject ImageCol, const Hobject ImageRow, Hobject* Histo2Dim)

void Histo2dim(const HObject& Regions, const HObject& ImageCol, const HObject& ImageRow, HObject* Histo2Dim)

HImage HImage::Histo2dim(const HRegion& Regions, const HImage& ImageRow) const

HImage HRegion::Histo2dim(const HImage& ImageCol, const HImage& ImageRow) const

static void HOperatorSet.Histo2dim(HObject regions, HObject imageCol, HObject imageRow, out HObject histo2Dim)

HImage HImage.Histo2dim(HRegion regions, HImage imageRow)

HImage HRegion.Histo2dim(HImage imageCol, HImage imageRow)

def histo_2dim(regions: HObject, image_col: HObject, image_row: HObject) -> HObject

Beschreibung

histo_2dimhisto_2dimHisto2dimHisto2dimHisto2dimhisto_2dim berechnet das 2-dimensionale Histogramm von zwei Bildern innerhalb von RegionsRegionsRegionsRegionsregionsregions. Die Grauwerte von Kanal 1 (ImageColImageColImageColImageColimageColimage_col) werden als Zeilenindex, diejenigen von Kanal 2 (ImageRowImageRowImageRowImageRowimageRowimage_row) als Spaltenindex interpretiert. Der Grauwert an einem Punkt P(g1,g2) im Ergebnisbild Histo2DimHisto2DimHisto2DimHisto2Dimhisto2Dimhisto_2dim gibt die Häufigkeit der Grauwertkombination (g1,g2) an, wobei g1 den Zeilen- und g2 den Spaltenindex darstellt.

Achtung

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

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregionsregions (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Region, in der das Histogramm berechnet werden soll.

ImageColImageColImageColImageColimageColimage_col (input_object)  (multichannel-)image objectHImageHObjectHImageHobject (byte / direction / cyclic / int1)

Kanal 1.

ImageRowImageRowImageRowImageRowimageRowimage_row (input_object)  (multichannel-)image objectHImageHObjectHImageHobject (byte / direction / cyclic / int1)

Kanal 2.

Histo2DimHisto2DimHisto2DimHisto2Dimhisto2Dimhisto_2dim (output_object)  image objectHImageHObjectHImageHobject * (int4)

Zu berechnendes Histogramm.

Beispiel (HDevelop)

read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)

Beispiel (C)

read_image(&Image,"monkey");
get_domain (Image, &Domain)
gauss_filter(Image,&ImageGauss,7);
histo_2dim(Domain,Image,ImageGauss,&Histo2Dim);
set_part(WindowHandle,0,0,511,511);
disp_image(Histo2Dim,WindowHandle);

Beispiel (HDevelop)

read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)

Beispiel (HDevelop)

read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)

Beispiel (HDevelop)

read_image(Image,'monkey')
get_domain (Image, Domain)
gauss_filter (Image, ImageGauss, 7)
histo_2dim(Domain,ImageGauss, Image,Histo2Dim)
dev_display(Histo2Dim)

Komplexität

Sei F die Fläche der Region, dann beträgt die Laufzeitkomplexität O(F + 256^2).

Ergebnis

histo_2dimhisto_2dimHisto2dimHisto2dimHisto2dimhisto_2dim liefert den Wert 2 (H_MSG_TRUE), falls die beiden Bilder definierte Grauwerte haben. 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.

Vorgänger

decompose3decompose3Decompose3Decompose3Decompose3decompose3, decompose2decompose2Decompose2Decompose2Decompose2decompose2, draw_regiondraw_regionDrawRegionDrawRegionDrawRegiondraw_region

Nachfolger

thresholdthresholdThresholdThresholdThresholdthreshold, class_2dim_supclass_2dim_supClass2dimSupClass2dimSupClass2dimSupclass_2dim_sup, pouringpouringPouringPouringPouringpouring, local_maxlocal_maxLocalMaxLocalMaxLocalMaxlocal_max, gray_skeletongray_skeletonGraySkeletonGraySkeletonGraySkeletongray_skeleton

Alternativen

gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo, gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs

Siehe auch

get_grayvalget_grayvalGetGrayvalGetGrayvalGetGrayvalget_grayval

Modul

Foundation