region_to_meanregion_to_meanRegionToMeanRegionToMeanregion_to_mean (Operator)

Name

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

def region_to_mean(regions: HObject, image: HObject) -> HObject

Beschreibung

region_to_meanregion_to_meanRegionToMeanRegionToMeanRegionToMeanregion_to_mean liefert ein Ergebnisbild, in das die Eingaberegionen RegionsRegionsRegionsRegionsregionsregions mit ihrem mittleren Grauwert innerhalb des zugrundegelegten Bildes ImageImageImageImageimageimage eingezeichnet wurden. Diese Routine ist insbesondere zur Visualisierung von Segmentierungsergebnissen nützlich.

Ausführungsinformationen

Parameter

RegionsRegionsRegionsRegionsregionsregions (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Eingaberegionen.

ImageImageImageImageimageimage (input_object)  (multichannel-)image objectHImageHObjectHImageHobject (byte / uint2)

Zugrundeliegendes Grauwertbild.

ImageMeanImageMeanImageMeanImageMeanimageMeanimage_mean (output_object)  image objectHImageHObjectHImageHobject * (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_meanRegionToMeanRegionToMeanRegionToMeanregion_to_mean liefert den Wert 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>)set_system("no_object_result",<Result>) festlegen. Gegebenenfalls wird eine Fehlerbehandlung durchgeführt.

Vorgänger

regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, connectionconnectionConnectionConnectionConnectionconnection

Nachfolger

disp_imagedisp_imageDispImageDispImageDispImagedisp_image

Alternativen

paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region, intensityintensityIntensityIntensityIntensityintensity

Modul

Foundation