| MIL 10 Reference
| Customize Help
| Save Settings

MgenLutRamp



See also
Availability
Available in MIL-Lite
Available in MIL

Available on Windows
Available on Linux

Available on Non-Matrox computer
Available on Matrox 4Sight-X
Available on Matrox 4Sight GP
Available on Matrox Supersight
function map Function map
Examples
Synopsis
Generate ramp data into a LUT buffer.
Syntax
void MgenLutRamp(
MIL_ID LutBufId, //in
MIL_INT StartIndex, //in
MIL_DOUBLE StartValue, //in
MIL_INT EndIndex, //in
MIL_DOUBLE EndValue //in
)
Description

This function generates a ramp, inverse ramp, or a constant in the specified LUT buffer region (StartIndex to EndIndex). The increment between LUT entries is the difference between StartValue and EndValue, divided by the number of entries.

If you need to generate a more complex LUT, use MgenLutFunction() or generate the values with your Host system and load them into a MIL LUT buffer, using MbufPut1d() or MbufPutColor().

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
LutBufId

Specifies the identifier of the LUT in which to generate values. This parameter must be given a valid LUT buffer identifier. Allocate a LUT buffer, using MbufAlloc1d() or MbufAllocColor().

StartIndex

Specifies the first LUT index entry for which to generate values. StartIndex must be less than or equal to EndIndex.

StartValue

Specifies the extreme value from which the increment is calculated; that is, the first LUT entry.

EndIndex

Specifies the last LUT index entry for which to generate values. EndIndex must be greater than or equal to StartIndex.

EndValue

Specifies the extreme value from which the increment is calculated; that is, the last LUT entry. If both StartValue and EndValue are the same, the entire LUT range is filled with this value. If EndValue is smaller than StartValue, an inverse ramp is generated. These parameters accept only integer values, except when using a floating-point LUT buffer.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.