How the Thresholds property is exposed depends on the WhichThreshold, Channel and Phase arguments, as follows
If WhichThreshold is mchwtBoth values are type DOUBLERANGE, giving both the Start and End for each threshold; if WhichThreshold is mchwtStart or mchwtEnd then values are type double, giving only the Start or End, respectively, of each threshold.
If both Channel and Phase are -1, the default, then a 2-dimensional array of (NumberOfChannels, NumberOfPhases) using VB dimensioning or [NumberOfPhases,NumberOfChannels] using C/C++ dimensioning is returned (that is the Channel dimension is the fastest moving).
If Phase is -1, the default, and Channel a given zero-based channel index, then an array of length-NumberOfPhases is returned.
If Channel is -1, the default, and Phase a given zero-based phase index, then an array of length-NumberOfChannels is returned.
If both Channel and Phase are zero-based indices then a single value is returned giving the WhichThreshold for that phase and channel.
The Compute method is called automatically on the parent IMcImage whenever it is necessary, always if vSourceImg is not empty.