NAME

cxPyrRefIndexGet - find the pyramid dictionary index of a compressed pyramid element

C SPECIFICATION

#include <cx/Pyramid.h>

long cxPyrRefIndexGet( cxPyramid *pyr, long j)

FORTRAN SPECIFICATION

integer function cxPyrRefIndexGet(pyr, j)
integer pyr
integer j

PARAMETERS

src
Input compressed pyramid data structure.
layer
Input element index whose dictionary index is desired.

FUNCTION RETURN VALUE

The returned value for this function is the index into the pyramid dictionary table of reference elements that describes the jth compressed element in pyr.

DESCRIPTION

cxPyrRefIndexGet finds the index of the jth compressed element in the pyr input. If pyr is a uniquely compressed pyramid (pyr->ref.compressType is cx_compress_unique), the returned value is the unique pyr->ref.r.cx_compress_unique.index. If pyr is a multiply compressed pyramid (pyr->ref.compressType is cx_compress_multiple), the returned value is the value pyr->ref.r.cx_compress_multiple.indices[j]. Otherwise, the returned value is -1.
Last modified: Mon Nov 18 13:52:54 GMT 1996
[ Documentation Home ]
© The Numerical Algorithms Group Ltd, Oxford UK. 1996