Description

Returns the raw (non calibrated) histogram values.

Property type

A Variant value.  

Syntax

object.RawValues([Index], [Channel])

The RawValues Property syntax has these parts:

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

Optional bin index, -1 means return all bins.

ChannelOptional. A Long value.

Optional Channel index, -1 means return 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.

The property is exposed as a 2D array Variant ([NumberOfChannels][BinCount] in C, (BinCount,NumberOfChannels) in VB, that is each channel's histogram is the fastest moving dimension and is adjacent in memory) if NumberOfChannels is greater than 1, Index=-1 and Channel=-1. A 1D array Variant representing NumberOfChannels channel values if Channel=-1 and Index is non-negative (this will be a single scalar value if NumberOfChannels is one). Or all BinCount values for 1 Channel if Index=-1 and Channel is non-negative or if NumberOfChannels is one. Or a single value when both parameters are positive or null. All counts are reported as long integer values.