region_to_meanregion_to_meanRegionToMeanRegionToMean (Operator)

Name

region_to_meanregion_to_meanRegionToMeanRegionToMean — Einfärben von Regionen mit ihrem mittleren Grauwert.

Signatur

region_to_mean(Regions, Image : ImageMean : : )

Herror region_to_mean(const Hobject Regions, const Hobject Image, Hobject* ImageMean)

Herror T_region_to_mean(const Hobject Regions, const Hobject Image, Hobject* ImageMean)

void RegionToMean(const HObject& Regions, const HObject& Image, HObject* ImageMean)

HImage HImage::RegionToMean(const HRegion& Regions) const

HImage HRegion::RegionToMean(const HImage& Image) const

static void HOperatorSet.RegionToMean(HObject regions, HObject image, out HObject imageMean)

HImage HImage.RegionToMean(HRegion regions)

HImage HRegion.RegionToMean(HImage image)

Beschreibung

region_to_meanregion_to_meanRegionToMeanRegionToMeanRegionToMean liefert ein Ergebnisbild, in das die Eingaberegionen RegionsRegionsRegionsRegionsregions mit ihrem mittleren Grauwert innerhalb des zugrundegelegten Bildes ImageImageImageImageimage eingezeichnet wurden. Diese Routine ist insbesondere zur Visualisierung von Segmentationsergebnissen nützlich.

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregions (input_object)  region(-array) objectHRegionHRegionHobject

Eingaberegionen.

ImageImageImageImageimage (input_object)  (multichannel-)image objectHImageHImageHobject (byte / uint2)

Zugrundeliegendes Grauwertbild.

ImageMeanImageMeanImageMeanImageMeanimageMean (output_object)  image objectHImageHImageHobject * (byte / uint2)

Ausgabebild mit eingefärbten Regionen.

Beispiel (HDevelop)

read_image(Image,'fabrik')
regiongrowing(Image,Regions,3,3,6,100)
region_to_mean(Regions,Image,Disp)
dev_display(Disp)
dev_set_draw('margin')
dev_display(Regions)

Beispiel (C)

read_image(&Image,"fabrik");
regiongrowing(Image,&Regions,3,3,6,100);
region_to_mean(Regions,Image,&Disp);
disp_image(Disp,WindowHandle);
set_draw(WindowHandle,"margin");
disp_region(Regions,WindowHandle);

Beispiel (HDevelop)

read_image(Image,'fabrik')
regiongrowing(Image,Regions,3,3,6,100)
region_to_mean(Regions,Image,Disp)
dev_display(Disp)
dev_set_draw('margin')
dev_display(Regions)

Beispiel (HDevelop)

read_image(Image,'fabrik')
regiongrowing(Image,Regions,3,3,6,100)
region_to_mean(Regions,Image,Disp)
dev_display(Disp)
dev_set_draw('margin')
dev_display(Regions)

Beispiel (HDevelop)

read_image(Image,'fabrik')
regiongrowing(Image,Regions,3,3,6,100)
region_to_mean(Regions,Image,Disp)
dev_display(Disp)
dev_set_draw('margin')
dev_display(Regions)

Ergebnis

region_to_meanregion_to_meanRegionToMeanRegionToMeanRegionToMean liefert den Wert 2 (H_MSG_TRUE), falls die Parameter korrekt sind. Das Verhalten bei leerer Eingabe (keine Eingaberegionen vorhanden) lässt sich mittels 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>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowing, connectionconnectionConnectionConnectionConnection

Nachfolger

disp_imagedisp_imageDispImageDispImageDispImage

Alternativen

paint_regionpaint_regionPaintRegionPaintRegionPaintRegion, intensityintensityIntensityIntensityIntensity

Modul

Foundation