HALCON Reference Manual 10.0.2
Table of Contents / Filters / Smoothing ClassesClassesClasses | | | Operators

mean_nmean_nmean_nMeanNMeanN (Operator)

Name

mean_nmean_nmean_nMeanNMeanN — Average gray values over several channels.

Signature

mean_n(Image : ImageMean : : )

Herror mean_n(const Hobject Image, Hobject* ImageMean)

Herror T_mean_n(const Hobject Image, Hobject* ImageMean)

Herror mean_n(Hobject Image, Hobject* ImageMean)

HImage HImage::MeanN() const

HImageArray HImageArray::MeanN() const

void HOperatorSetX.MeanN(
[in] IHUntypedObjectX* Image, [out] IHUntypedObjectX*ImageMean)

IHImageX* HImageX.MeanN()

static void HOperatorSet.MeanN(HObject image, out HObject imageMean)

HImage HImage.MeanN()

Description

The operator mean_nmean_nmean_nMeanNMeanN generates the pixel-by-pixel mean value of all channels . For each coordinate point the sum of all gray values at this coordinate is calculated. The result is the mean of the gray values (sum divided by the number of channels). The output image has one channel.

Parallelization

Parameters

ImageImageImageImageimage (input_object)  multichannel-image(-array) objectHImageHImageHImageXHobject (byte / int2 / uint2 / int4 / real)

Multichannel gray image.

ImageMeanImageMeanImageMeanImageMeanimageMean (output_object)  singlechannelimage(-array) objectHImageHImageHImageXHobject * (byte / int2 / uint2 / int4 / real)

Result of averaging.

Example (C)

compose3(Channel1,Channel2,Channel3,&MultiChannel);
mean_n(MultiChannel,&Mean);

Possible Predecessors

compose2compose2compose2Compose2Compose2, compose3compose3compose3Compose3Compose3, compose4compose4compose4Compose4Compose4, compose5compose5compose5Compose5Compose5, add_channelsadd_channelsadd_channelsAddChannelsAddChannels

Alternatives

rank_nrank_nrank_nRankNRankN

See also

count_channelscount_channelscount_channelsCountChannelsCountChannels, mean_imagemean_imagemean_imageMeanImageMeanImage

Module

Foundation


Table of Contents / Filters / Smoothing ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH