LUT example

The following example reads an LUT using DBReadLUT() and then applies it to an image channel using a MODEL expression.

local byte lut[256], integer fd
fd = DBOpen( $PCIHOME/demo/irvine.pix", "w" )
call DBReadLUT( fd, 2, lut )
%1 = lut[%1+1]
call DBClose( fd )

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