This example shows how to use EASI commands that will open irvine.pix, read a LUT and apply it to the first image channel.
local int tfid
local byte lut[256]
local string temp_file
try
temp_file = "./my.pix"
delete temp_file noerror
call CopyFile( GetPCIHOME() + "/demo/irvine.pix", \
temp_file)
tfid = DBOpen(temp_file, "r+")
call DBReadLut( tfid, 2, lut )
%1 = lut[%1+1]
call DBClose(tfid)
onerror
print "Error: "+ GetLastErrorMessage()
endonerror
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.