Skip to main content

MgenLutRamp

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Generate ramp data into a LUT buffer.

Syntax

void MgenLutRamp(
AIL_ID LutBufId, //out
AIL_INT StartIndex, //in
AIL_DOUBLE StartValue, //in
AIL_INT EndIndex, //in
AIL_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 - 1).

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

Parameters

LutBufId (out, AIL_ID)

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 (in, AIL_INT)

Specifies the first LUT index for which to generate a value.

StartValue (in, AIL_DOUBLE)

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

EndIndex (in, AIL_INT)

Specifies the last LUT index for which to generate a value.

EndValue (in, AIL_DOUBLE)

Specifies the ending 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. This parameter accepts only an integer value, except when using a floating-point LUT buffer.

Copyright © 2026 Zebra Technologies.