Share
 
 

Array (LUT1D)

The Array element specifies an array of values for a LUT or matrix. When it is contained by a LUT1D element, the format of its contents is different than when it is contained by LUT3D or Matrix elements.

Contains

  • A series of numeric values specifying the output values of the LUT. The corresponding input values are implied by the inBitDepth of the containing element. For integers, the first value corresponds to an input of 0 and the last to an input of (2bitdepth – 1). For floating-point numbers, the first value corresponds to an input of 0.0 and the last to an input of 1.0. Input values outside these domains are clamped.

    The intervals between the input values are uniform and depend on the number of entries. For example, if there are 5 floating-point entries, they correspond to inputs of 0.0, 0.25, 0.5, 0.75, and 1.0.

    For a 1D LUT, there is one value per entry which is used for all color channels. For a 3×1D LUT, there are three values per entry specifying the separate R, G, and B output values.

Contained By

Attributes

dim
Two integers representing the dimensions of the array. The first value is the number of entries in the contents of the Array element. The second value is number of values per entry: 1 for a single value applied to all channels or 3 for for separate values applied to the R, G, and B channels respectively.

The dim attribute is required, and its value must match the number of entries actually present.

Example

1D LUT

<ProcessList id="8a52d5fb-a903-4805-8bae-24f7553bfb70" version="1.2">
    <LUT1D inBitDepth="10i" outBitDepth="32f">
        <Array dim="1024 1">
-0.014279292
-0.014160193
-0.014040368
<!-- 1021 values omitted -->

        </Array>
    </LUT1D>
</ProcessList>

3×1D LUT

<ProcessList id="a76dbe2e-e610-49a6-8c3b-5962375a8b4a" version="1.2">
    <LUT1D inBitDepth="16i" outBitDepth="32f">
        <Array dim="2 3">
 -0.092903227  -0.092903227  -0.092903227
 11.798709869  11.798709869  11.798709869
        </Array>
    </LUT1D>
 </ProcessList>

Was this information helpful?