DBReadLUT

Demonstrates how to read LUT.

Remarks

The following example illustrates how to read LUT and print out the LUT values.

Code

 local byte lut[256], int tfid
 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.