Calculate Lookup Table 2

Description

This functor is deprecated and should not be used. Use Calculate Lookup Table Values or Calculate Lookup Table Keys And Values instead.

It computes a lookup table by evaluating an algebraic or logical expression once for every key of a format lookup table, in the same way as Calculate Lookup Table Values. The only difference is how the data used in the expression is connected: through hooks that identify it by name, instead of by number.

Inputs

Name Type Description
Expression Image Expression Type Algebraic or logical expression used to compute each output value. Must be enclosed in square brackets [ ] in EGO Script.
Format Lookup Table Type Lookup table whose keys define the format (and, by default, the key and value column names) of the output.

Optional Inputs

Name Type Description Default Value
Key Name Name Type Name given to the output’s key column. If omitted, the corresponding name from Format is used. This is an advanced port. .none
Value Name Name Type Name given to the output’s value column. If omitted, the corresponding name from Format is used. This is an advanced port. .none

Outputs

Name Type Description
Result Lookup Table Type Computed output lookup table.

Group

Lookup Table

Notes

The data used in the expression is connected through Name Table and Name Value hooks placed inside this container. Each hook gives its data a name, and the expression refers to the data by that name, with the same prefixes used by the calculator shorthand: a table or lookup table registered as rates is referenced as %rates, and a value registered as threshold as $threshold. The functors that replace this one use Number Table and Number Value hooks instead, which identify the data by number (t1, v1, …).

For example, this call copies the values of the lookup table registered as table:

result := CalculateLookupTable2 [ %table[line] ] formatTable {{
    NameTable formatTable "table";
}};

All operations are performed using the precision defined by ImageExpression::Value; the final result is then converted to LookupTable::Value.

See Calculate Lookup Table Values for the expression features, which apply equally to this functor.

See Manipulating Tables and Lookup Tables for techniques that combine the table and lookup table functors.

This functor is kept only so that older models that use it continue to load and run.

Internal Name

CalculateLookupTable2


This documentation was generated with the help of large language models (LLMs) and may contain errors. Please verify critical information.