noise_distribution_meanT_noise_distribution_meanNoiseDistributionMeanNoiseDistributionMean (Operator)

Name

noise_distribution_meanT_noise_distribution_meanNoiseDistributionMeanNoiseDistributionMean — Determine the noise distribution of an image.

Signature

noise_distribution_mean(ConstRegion, Image : : FilterSize : Distribution)

Herror T_noise_distribution_mean(const Hobject ConstRegion, const Hobject Image, const Htuple FilterSize, Htuple* Distribution)

void NoiseDistributionMean(const HObject& ConstRegion, const HObject& Image, const HTuple& FilterSize, HTuple* Distribution)

HTuple HImage::NoiseDistributionMean(const HRegion& ConstRegion, Hlong FilterSize) const

HTuple HRegion::NoiseDistributionMean(const HImage& Image, Hlong FilterSize) const

static void HOperatorSet.NoiseDistributionMean(HObject constRegion, HObject image, HTuple filterSize, out HTuple distribution)

HTuple HImage.NoiseDistributionMean(HRegion constRegion, int filterSize)

HTuple HRegion.NoiseDistributionMean(HImage image, int filterSize)

Description

noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMean calculates the noise distribution in a region of the image ImageImageImageImageimage. The parameter ConstRegionConstRegionConstRegionConstRegionconstRegion determines a region of the image with approximately constant gray values. Ideally, the changes in gray values should only be caused by noise in this region. From this region the noise distribution is determined by using the mean_imagemean_imageMeanImageMeanImageMeanImage operator to smooth the image, and to use the gray value differences in this area as an estimate for the noise distribution, which is returned in DistributionDistributionDistributionDistributiondistribution.

Attention

It is important to ensure that the region ConstRegionConstRegionConstRegionConstRegionconstRegion is not too close to a large gradient in the image, because the gradient values are then used for calculating the mean. This means the distance of ConstRegionConstRegionConstRegionConstRegionconstRegion must be at least as large as the filter size FilterSizeFilterSizeFilterSizeFilterSizefilterSize used for calculating the mean.

Execution Information

Parameters

ConstRegionConstRegionConstRegionConstRegionconstRegion (input_object)  region(-array) objectHRegionHRegionHobject

Region from which the noise distribution is to be estimated.

ImageImageImageImageimage (input_object)  singlechannelimage objectHImageHImageHobject (byte)

Corresponding image.

FilterSizeFilterSizeFilterSizeFilterSizefilterSize (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Size of the mean filter.

Default value: 21

Suggested values: 5, 11, 15, 21, 31, 51, 101

Typical range of values: 3 ≤ FilterSize FilterSize FilterSize FilterSize filterSize ≤ 501 (lin)

Minimum increment: 2

Recommended increment: 2

DistributionDistributionDistributionDistributiondistribution (output_control)  distribution.values-array HTupleHTupleHtuple (real) (double) (double) (double)

Noise distribution of all input regions.

Possible Predecessors

draw_regiondraw_regionDrawRegionDrawRegionDrawRegion, gen_circlegen_circleGenCircleGenCircleGenCircle, gen_ellipsegen_ellipseGenEllipseGenEllipseGenEllipse, gen_rectangle1gen_rectangle1GenRectangle1GenRectangle1GenRectangle1, gen_rectangle2gen_rectangle2GenRectangle2GenRectangle2GenRectangle2, thresholdthresholdThresholdThresholdThreshold, erosion_circleerosion_circleErosionCircleErosionCircleErosionCircle, binomial_filterbinomial_filterBinomialFilterBinomialFilterBinomialFilter, gauss_filtergauss_filterGaussFilterGaussFilterGaussFilter, smooth_imagesmooth_imageSmoothImageSmoothImageSmoothImage, sub_imagesub_imageSubImageSubImageSubImage

Possible Successors

add_noise_distributionadd_noise_distributionAddNoiseDistributionAddNoiseDistributionAddNoiseDistribution

See also

mean_imagemean_imageMeanImageMeanImageMeanImage, gauss_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistribution

Module

Foundation