Description

The calibrated (depending on Mode) Sum of all the bin counts where calibrated bin counts (Values) are multiplied by their x value (calibrated intensity), and accumulated.

Property type

A Variant value.  

Syntax

object.Sum([Channel])

The Sum Property syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McHistogram.
ChannelOptional. A Long value.

Optional Channel index, default value -1 means all channels.

Remarks

The Compute method is called automatically (on the parent IMcImage) whenever it is necessary. In order to compute the Histogram on another image than the parent, one has to call Compute explicitly.

This property returns an array of NumberOfChannels values if Channel=-1, or otherwise a single double precision floating point value for the specified channel. Note that since most property viewers (including the VBA Immediate window) will only display single (scalar) values, the channel must be specified when the property is used in this way, for instance, ?ActiveImage.Histogram.Sum 0

Exceptions

Exception: Meaning:

E_INVALIDARG