BITHASH

Compute image hash number


EnvironmentsPYTHON :: EASI
Quick linksDescription :: Parameters :: Parameter descriptions :: Details :: Example :: Related

Back to top

Description


BITHASH computes a hash number that represents a window of bitmap values from an input bitmap segment. This hash number is used as a checksum for software testing.
Back to top

Parameters


Name Type Caption Length Value range
FILE * String Input file name 1 - 192  
DBIB * Integer Input bitmap channel(s) 1 -    
DBIW Integer Raster input window 0 - 4 Xoffset, Yoffset, Xsize, Ysize
REPORT String Report mode 0 - 192 Quick links

* Required parameter
Back to top

Parameter descriptions

FILE

Specifies the name of the GDB-supported file containing the bitmap data for which the hash number will be computed.

DBIB

Specifies the bitmap channel(s) in the input file to be processed.

Ranges of channels or segments can be specified with negative values. For example, {1,-4,10} is internally expanded to {1,2,3,4,10}. When you are not specifying a range in this way, only 48 numbers can be specified explicitly.

DBIW

Specifies the raster window (Xoffset, Yoffset, Xsize, Ysize) that is read from the input layers. If DBIW is not specified, the entire layer is used by default. Xoffset, Yoffset define the upper-left starting pixel coordinates of the window. Xsize is the number of pixels that define the window width. Ysize is the number of lines that define the window height.

REPORT

Specifies where to direct the generated report.

Available options are:

Back to top

Details

BITHASH computes a hash value for a window of bitmap data in a GDB-supported file. This function is primarily used for the construction of test procedures.

The hash function results in a value between 0 and 32767 being placed into the IMSTAT parameter.

Back to top

Example

Compute and display the hash values for each of the bitmaps in irvine.pix.

EASI>FILE="irvine.pix"
EASI>DBIB=9,10,11,12,13,14,15,16
EASI>DBIW=

EASI>RUN BITHASH
EASI>PRINT IMSTAT

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