REC

Create Recode-LUT Segment


EnvironmentsPYTHON :: EASI :: MODELER
Batch ModeYes
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Related

Back to top

Description


REC creates or overwrites a 256-value database lookup table layer, which can be used to transform or recode 8-bit image data stored in image layers. Unspecified lookup table values can be defaulted to either zero or identity. No image data is changed.
Back to top

Parameters


Name Type Length Value range
Output: Output lookup table segment LUT port 0 - 1  
Default Background String 0 - 1 IDEN, ZERO
Default: ZERO
LUT Layer Name * String 1 - 1  
LUT Layer Description String 0 - 1  
Recode Values: (0 to 15) Integer 0 - 16 0 - 255
Recode Values: (16 to 31) Integer 0 - 16 0 - 255
Recode values: (32 to 47) Integer 0 - 16 0 - 255
Recode Values: (48 to 63) Integer 0 - 16 0 - 255
Recode Values: (64 to 79) Integer 0 - 16 0 - 255
Recode Values: (80 to 95) Integer 0 - 16 0 - 255
Recode Values: (96 to 111) Integer 0 - 16 0 - 255
Recode Values: (112 to 127) Integer 0 - 16 0 - 255
Recode Values: (128 to 143) Integer 0 - 16 0 - 255
Recode Values: (144 to 159) Integer 0 - 16 0 - 255
Recode Values: (160 to 175) Integer 0 - 16 0 - 255
Recode Values: (176 to 191) Integer 0 - 16 0 - 255
Recode Values: (192 to 207) Integer 0 - 16 0 - 255
Recode Values: (208 to 223) Integer 0 - 16 0 - 255
Recode Values: (224 to 239) Integer 0 - 16 0 - 255
Recode Values: (240 to 255) Integer 0 - 16 0 - 255
Report String 0 - 192 See parameter description

* Required parameter
Back to top

Parameter descriptions

Output: Output lookup table segment

Specifies the segment to receive the output lookup table. If this parameter is specified, the lookup table segment is overwritten. If it is not specified, a new lookup table segment is created.

Default Background

Specifies whether the default background lookup table values should be zero or identity. Valid values are:

LUT Layer Name

Specifies a name (up to 8 characters) for the output LUT segment.

LUT Layer Description

Describes (in up to 64 characters) the contents or origins of the output LUT segment.

Recode Values: (0 to 15)

Specifies 16 lookup table (recode) values for gray levels between nnn and nnn+15 inclusive. In general, Rnnn(x) specifies a lookup table value for gray level nnn + x - 1, where 'nnn' is between 0 and 240 and is a multiple of 16, and where 'x' is between 1 and 16. Therefore, R000(1) specifies a lookup table value for gray level 0, and R240(16) specifies a lookup table value for gray level 255.

Values must be between 0 and 255. Default values are determined by the BACK (Default Background) parameter. Each value of Rnnn must be specified, if no defaults are desired.

Recode Values: (16 to 31)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode values: (32 to 47)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (48 to 63)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (64 to 79)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (80 to 95)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (96 to 111)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (112 to 127)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (128 to 143)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (144 to 159)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (160 to 175)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (176 to 191)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (192 to 207)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (208 to 223)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (224 to 239)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Recode Values: (240 to 255)

Refer to the Parameter Details for R000 (Recode Values: (0 to 15)).

Report

Specifies where to direct the generated report.

Available options are:

Back to top

Details

REC creates an arbitrary lookup table, which can be used to recode gray levels stored on 8-bit database image channels. You can perform the same function using LUTREAD, which reads lookup table values from a text file.

A lookup table for 256 gray levels (between 0 and 255) is created by assigning values to the various recode value parameters. The default value for these parameters is either zero or identity, as determined by the BACK (Default Background) parameter. The values can be any arbitrary 8-bit value and do not have to increase monotonically.

If DBLUT (Output) is not specified, REC creates a new database lookup table segment (type 170). The name and description of the new segment are specified by DBSN (LUT Layer Name) and DBSD (LUT Layer Description) parameters respectively.

If DBLUT (Output) is specified, REC overwrites the lookup table on the existing database segment. The name and description of the existing segment are not changed.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.