intensityintensityIntensityIntensityintensity (算子名称)

名称

intensityintensityIntensityIntensityintensity — Calculate the mean and deviation of gray values.

参数签名

intensity(区域, Image : : : Mean, Deviation)

Herror intensity(const Hobject 区域, const Hobject Image, double* Mean, double* Deviation)

Herror T_intensity(const Hobject 区域, const Hobject Image, Htuple* Mean, Htuple* Deviation)

void Intensity(const HObject& 区域, const HObject& Image, HTuple* Mean, HTuple* Deviation)

HTuple HImage::Intensity(const HRegion& 区域, HTuple* Deviation) const

double HImage::Intensity(const HRegion& 区域, double* Deviation) const

HTuple HRegion::Intensity(const HImage& Image, HTuple* Deviation) const

double HRegion::Intensity(const HImage& Image, double* Deviation) const

static void HOperatorSet.Intensity(HObject 区域, HObject image, out HTuple mean, out HTuple deviation)

HTuple HImage.Intensity(HRegion 区域, out HTuple deviation)

double HImage.Intensity(HRegion 区域, out double deviation)

HTuple HRegion.Intensity(HImage image, out HTuple deviation)

double HRegion.Intensity(HImage image, out double deviation)

def intensity(区域: HObject, image: HObject) -> Tuple[Sequence[float], Sequence[float]]

def intensity_s(区域: HObject, image: HObject) -> Tuple[float, float]

描述

The operator intensityintensityIntensityIntensityIntensityintensity calculates the mean and the deviation of the gray values in the input image within 区域区域区域区域区域区域. If R is a region, p a pixel from R with the gray value g(p) and F the plane (F = |R|), the features are defined by:

注意

Note that the operator intensityintensityIntensityIntensityIntensityintensity only considers the given 区域区域区域区域区域区域 and ignores any previously set domain of the input image ImageImageImageImageimageimage. The calculation of DeviationDeviationDeviationDeviationdeviationdeviation does not follow the usual definition if the region of the image contains only one pixel. In this case 0.0 is returned.

运行信息

参数表

区域区域区域区域区域区域 (input_object)  region(-array) objectHRegionHObjectHRegionHobject

Regions in which the features are calculated.

ImageImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHImageHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Gray value image.

MeanMeanMeanMeanmeanmean (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Mean gray value of a region.

DeviationDeviationDeviationDeviationdeviationdeviation (output_control)  real(-array) HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Deviation of gray values within a region.

Complexity

If F is the area of the region, the runtime complexity is O(F).

结果

The operator intensityintensityIntensityIntensityIntensityintensity returns the value 2 ( H_MSG_TRUE) . The behavior in case of empty input (no input images available) is set via the operator 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>), the behavior in case of empty region is set via set_system(::'empty_region_result',<Result>:)set_system("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)SetSystem("empty_region_result",<Result>)set_system("empty_region_result",<Result>). If necessary an exception is raised.

可能的后置算子

thresholdthresholdThresholdThresholdThresholdthreshold

可替代算子

select_grayselect_graySelectGraySelectGraySelectGrayselect_gray, min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray

参考其它

mean_imagemean_imageMeanImageMeanImageMeanImagemean_image, gray_histogray_histoGrayHistoGrayHistoGrayHistogray_histo, gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsGrayHistoAbsgray_histo_abs

模块

Foundation