regiongrowing_meanregiongrowing_meanRegiongrowingMeanRegiongrowingMeanregiongrowing_mean (算子)

名称

regiongrowing_meanregiongrowing_meanRegiongrowingMeanRegiongrowingMeanregiongrowing_mean — 使用均值灰度值执行区域生长。

签名

regiongrowing_mean(Image : Regions : StartRows, StartColumns, Tolerance, MinSize : )

Herror regiongrowing_mean(const Hobject Image, Hobject* Regions, const Hlong StartRows, const Hlong StartColumns, double Tolerance, const Hlong MinSize)

Herror T_regiongrowing_mean(const Hobject Image, Hobject* Regions, const Htuple StartRows, const Htuple StartColumns, const Htuple Tolerance, const Htuple MinSize)

void RegiongrowingMean(const HObject& Image, HObject* Regions, const HTuple& StartRows, const HTuple& StartColumns, const HTuple& Tolerance, const HTuple& MinSize)

HRegion HImage::RegiongrowingMean(const HTuple& StartRows, const HTuple& StartColumns, double Tolerance, Hlong MinSize) const

HRegion HImage::RegiongrowingMean(Hlong StartRows, Hlong StartColumns, double Tolerance, Hlong MinSize) const

static void HOperatorSet.RegiongrowingMean(HObject image, out HObject regions, HTuple startRows, HTuple startColumns, HTuple tolerance, HTuple minSize)

HRegion HImage.RegiongrowingMean(HTuple startRows, HTuple startColumns, double tolerance, int minSize)

HRegion HImage.RegiongrowingMean(int startRows, int startColumns, double tolerance, int minSize)

def regiongrowing_mean(image: HObject, start_rows: MaybeSequence[int], start_columns: MaybeSequence[int], tolerance: float, min_size: int) -> HObject

描述

regiongrowing_meanregiongrowing_meanRegiongrowingMeanRegiongrowingMeanRegiongrowingMeanregiongrowing_mean performs a regiongrowing using the mean gray values of a region, starting from points given by StartRowsStartRowsStartRowsStartRowsstartRowsstart_rows and StartColumnsStartColumnsStartColumnsStartColumnsstartColumnsstart_columns. At any point in the process the mean gray value of the current region is calculated. Gray values at the boundary of the region are added to the region if they differ from the current mean by less than ToleranceToleranceToleranceTolerancetolerancetolerance. Regions smaller than MinSizeMinSizeMinSizeMinSizeminSizemin_size are suppressed.

If no starting points are given (empty tuples), the expansion process starts at the upper leftmost point, and is continued with the first unprocessed point after a region has been created.

执行信息

参数

ImageImageImageImageimageimage (输入对象)  singlechannelimage(-array) objectHImageHObjectHImageHobject (byte / uint2 / int4)

输入图像。

RegionsRegionsRegionsRegionsregionsregions (输出对象)  region-array objectHRegionHObjectHRegionHobject *

Segmented regions.

StartRowsStartRowsStartRowsStartRowsstartRowsstart_rows (输入控制)  point.y(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row coordinates of the starting points.

默认值: []

值范围: 0 ≤ StartRows StartRows StartRows StartRows startRows start_rows

最小增量: 1

建议增量: 1

StartColumnsStartColumnsStartColumnsStartColumnsstartColumnsstart_columns (输入控制)  point.x(-array) HTupleMaybeSequence[int]HTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column coordinates of the starting points.

默认值: []

值范围: 0 ≤ StartColumns StartColumns StartColumns StartColumns startColumns start_columns

最小增量: 1

建议增量: 1

ToleranceToleranceToleranceTolerancetolerancetolerance (输入控制)  number HTuplefloatHTupleHtuple (real) (double) (double) (double)

Maximum deviation from the mean.

默认值: 5.0

建议值: 0.5, 1.0, 1.5, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 12.0, 15.0, 17.0, 20.0, 25.0, 30.0, 40.0

限制: Tolerance > 0.0

MinSizeMinSizeMinSizeMinSizeminSizemin_size (输入控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Minimum size of a region.

默认值: 100

建议值: 0, 10, 30, 50, 100, 500, 1000, 2000

值范围: 0 ≤ MinSize MinSize MinSize MinSize minSize min_size

最小增量: 1

建议增量: 100

结果

regiongrowing_meanregiongrowing_meanRegiongrowingMeanRegiongrowingMeanRegiongrowingMeanregiongrowing_mean 在所有参数正确时返回 2 ( H_MSG_TRUE )。 The behavior with respect to the input images and output regions can be determined by setting the values of the flags 'no_object_result'"no_object_result""no_object_result""no_object_result""no_object_result""no_object_result", 'empty_region_result'"empty_region_result""empty_region_result""empty_region_result""empty_region_result""empty_region_result", and 'store_empty_region'"store_empty_region""store_empty_region""store_empty_region""store_empty_region""store_empty_region" with set_systemset_systemSetSystemSetSystemSetSystemset_system。如有必要,则抛出异常。

可能的前趋

binomial_filterbinomial_filterBinomialFilterBinomialFilterBinomialFilterbinomial_filter, gauss_filtergauss_filterGaussFilterGaussFilterGaussFiltergauss_filter, sigma_imagesigma_imageSigmaImageSigmaImageSigmaImagesigma_image, anisotropic_diffusionanisotropic_diffusionAnisotropicDiffusionAnisotropicDiffusionAnisotropicDiffusionanisotropic_diffusion, median_imagemedian_imageMedianImageMedianImageMedianImagemedian_image, mean_imagemean_imageMeanImageMeanImageMeanImagemean_image

可能的后继

select_shapeselect_shapeSelectShapeSelectShapeSelectShapeselect_shape, reduce_domainreduce_domainReduceDomainReduceDomainReduceDomainreduce_domain, openingopeningOpeningOpeningOpeningopening, expand_regionexpand_regionExpandRegionExpandRegionExpandRegionexpand_region

替代

regiongrowingregiongrowingRegiongrowingRegiongrowingRegiongrowingregiongrowing, regiongrowing_nregiongrowing_nRegiongrowingNRegiongrowingNRegiongrowingNregiongrowing_n

模块

基础