deviation_ndeviation_nDeviationNDeviationNdeviation_n (算子)

名称

deviation_ndeviation_nDeviationNDeviationNdeviation_n — 计算多个通道的标准偏差。

签名

deviation_n(Image : ImageDeviation : : )

Herror deviation_n(const Hobject Image, Hobject* ImageDeviation)

Herror T_deviation_n(const Hobject Image, Hobject* ImageDeviation)

void DeviationN(const HObject& Image, HObject* ImageDeviation)

HImage HImage::DeviationN() const

static void HOperatorSet.DeviationN(HObject image, out HObject imageDeviation)

HImage HImage.DeviationN()

def deviation_n(image: HObject) -> HObject

描述

deviation_ndeviation_nDeviationNDeviationNDeviationNdeviation_n generates the pixel-by-pixel standard deviation of a multichannel gray value image. For each coordinate point p the expected value is defined as the arithmetic mean: where g_{c}(p) denominates the gray value at p on channel c. n is the number of channels in the image.

The standard deviation itself is then calculated as: Note that this formula produces the sample standard deviation. The factor 2 is used to make better use of the range of values of the output image format. The output image has one channel.

注意

请注意,若使用域缩减后的图像作为输入,滤波器算子可能会返回意外结果。请参阅 滤波器 一章

执行信息

参数

ImageImageImageImageimageimage (输入对象)  (multichannel-)image(-array) objectHImageHObjectHImageHobject (byte / int2 / uint2 / int4 / real)

Multichannel gray image.

ImageDeviationImageDeviationImageDeviationImageDeviationimageDeviationimage_deviation (输出对象)  image(-array) objectHImageHObjectHImageHobject * (byte / int2 / uint2 / int4 / real)

Result of calculation.

可能的前趋

compose2compose2Compose2Compose2Compose2compose2, compose3compose3Compose3Compose3Compose3compose3, compose4compose4Compose4Compose4Compose4compose4, compose5compose5Compose5Compose5Compose5compose5, add_channelsadd_channelsAddChannelsAddChannelsAddChannelsadd_channels

另见

mean_nmean_nMeanNMeanNMeanNmean_n

模块

基础