ExecuteEASI

Demonstrates how to run a set of EASI scripting commands.

Remarks

This example shows how to use EASI commands that will open irvine.pix, read a LUT and apply it to the first image channel.

Code

 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.