IMcIntensityCalibCalibrateValues Method
|
|
Calibrates an array luminance values, filling an array of Double calibrated results
Namespace:
MediaCy.IQL.Calibrations
Assembly:
MediaCy.IQL.Calibrations (in MediaCy.IQL.Calibrations.dll) Version: 10.0.6912.0
SyntaxFunction CalibrateValues (
ByRef LuminanceValues As Object,
<OutAttribute> ByRef CalibratedValues As Object,
Optional StartIndex As Integer = 0,
Optional EndIndex As Integer = -1
) As Integer
Parameters
- LuminanceValues
- Type: SystemObject
An single scalar luminance value or an array of such
values to be calibrated. - CalibratedValues
- Type: SystemObject
An array of Double type, filled with the calibrated
luminance values. An existing Double array is not resized if it is large
enough to hold the results. - StartIndex (Optional)
- Type: SystemInt32
If given, an index into the LuminanceValues array indicating
the first value to calibrate. This will be placed in the first (0'th) location
in the CalibratedValues output array. - EndIndex (Optional)
- Type: SystemInt32
If given, an index into the LuminanceValues array indicating
the last value to calibrate; if not given, then LuminanceValues up to the
end of the array are calibrated.
Return Value
Type:
Int32The number of values converted (EndIndex-StartIndex+1).
RemarksThis method takes an array or scalar value of any numeric type and
applies the current intensity calibration to it. An output array will be
filled with Double type (64-bit IEEE floating point values) calibrated results.
The source LuminanceValues argument and the destination CalibratedValues
argument may point to the same Variant, in which case, the LuminanceValues are
replaced by the array of Double calibrated values. In this case, the StartIndex
argument must be zero (the default).
See Also