Operator Reference

intensityintensityIntensityIntensityintensity (Operator)

intensityintensityIntensityIntensityintensity — Calculate the mean and deviation of gray values.

Signature

intensity(Regions, Image : : : Mean, Deviation)

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

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

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

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

double HImage::Intensity(const HRegion& Regions, 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 regions, HObject image, out HTuple mean, out HTuple deviation)

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

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

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

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

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

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

Description

The operator intensityintensityIntensityIntensityintensity calculates the mean and the deviation of the gray values in the input image within RegionsRegionsRegionsregionsregions. 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:

Attention

Note that the operator intensityintensityIntensityIntensityintensity only considers the given RegionsRegionsRegionsregionsregions and ignores any previously set domain of the input image ImageImageImageimageimage. The calculation of DeviationDeviationDeviationdeviationdeviation does not follow the usual definition if the region of the image contains only one pixel. In this case 0.0 is returned.

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Automatically parallelized on tuple level.

Parameters

RegionsRegionsRegionsregionsregions (input_object)  region(-array) objectHRegionHObjectHObjectHobject

Regions in which the features are calculated.

ImageImageImageimageimage (input_object)  singlechannelimage objectHImageHObjectHObjectHobject (byte / direction / cyclic / int1 / int2 / uint2 / int4 / real)

Gray value image.

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

Mean gray value of a region.

DeviationDeviationDeviationdeviationdeviation (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).

Result

The operator intensityintensityIntensityIntensityintensity 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>)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>)set_system("empty_region_result",<Result>). If necessary an exception is raised.

Possible Successors

thresholdthresholdThresholdThresholdthreshold

Alternatives

select_grayselect_graySelectGraySelectGrayselect_gray, min_max_graymin_max_grayMinMaxGrayMinMaxGraymin_max_gray

See also

mean_imagemean_imageMeanImageMeanImagemean_image, gray_histogray_histoGrayHistoGrayHistogray_histo, gray_histo_absgray_histo_absGrayHistoAbsGrayHistoAbsgray_histo_abs

Module

Foundation