region_to_meanregion_to_meanRegionToMeanRegionToMeanregion_to_mean (算子名称)
名称
region_to_meanregion_to_meanRegionToMeanRegionToMeanregion_to_mean — Paint regions with their average gray value.
参数签名
Herror region_to_mean(const Hobject 区域, const Hobject Image, Hobject* ImageMean)
Herror T_region_to_mean(const Hobject 区域, const Hobject Image, Hobject* ImageMean)
def region_to_mean(区域: HObject, image: HObject) -> HObject
描述
region_to_meanregion_to_meanRegionToMeanRegionToMeanRegionToMeanregion_to_mean returns an image in which the regions
区域区域区域区域区域区域 are painted with their average gray value based on
the image ImageImageImageImageimageimage. This operator is mainly
intended to visualize segmentation results.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 在图像通道级别自动并行化。
参数表
区域区域区域区域区域区域 (input_object) region(-array) → objectHRegionHObjectHRegionHobject
Input regions.
ImageImageImageImageimageimage (input_object) (multichannel-)image → objectHImageHObjectHImageHobject (byte / uint2)
original gray-value image.
ImageMeanImageMeanImageMeanImageMeanimageMeanimage_mean (output_object) image → objectHImageHObjectHImageHobject * (byte / uint2)
Result image with painted regions.
例程 (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)
例程 (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);
例程 (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)
例程 (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)
例程 (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)
结果
region_to_meanregion_to_meanRegionToMeanRegionToMeanRegionToMeanregion_to_mean returns 2 (
H_MSG_TRUE)
if all parameters are
correct. If the input is empty the behavior can be set via
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>).
如有必要,将引发异常。
可能的前置算子
regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing,
connectionconnectionConnectionConnectionConnectionconnection
可能的后置算子
disp_imagedisp_imageDispImageDispImageDispImagedisp_image
可替代算子
paint_regionpaint_regionPaintRegionPaintRegionPaintRegionpaint_region,
intensityintensityIntensityIntensityIntensityintensity
模块
Foundation