Table of Contents

NAME

QccHYPrkltTrain, QccHYPrkltFactorization, QccHYPrkltTransform, QccHYPrkltInverseTransform - training, factorization, and forward/inverse transform for the reversible KLT

SYNOPSIS

#include "libQccPack.h"

int QccHYPrkltTrain(const QccVolumeInt image, int num_bands, int num_rows, int num_cols, QccHYPrklt *rklt);
int QccHYPrkltFactorization(QccHYPrklt *rklt);
int QccHYPrkltTransform(QccVolumeInt image, int num_bands, int num_rows, int num_cols, const QccHYPrklt *rklt );
int QccHYPrkltInverseTransform(QccVolumeInt image, int num_bands, int num_rows, int num_cols, const QccHYPrklt *rklt);

DESCRIPTION

QccHYPrkltTrain() determines the KLT transform mean vector and transform matrix for the pixel vectors contained in image. Together, the mean vector and transform matrix constitute the KLT for image, and they are returned in rklt. rklt must be allocated prior to calling QccHYPrkltTrain(); furthermore, the num_bands field of klt must match the num_frames field of image (i.e., the number of frames of the image cube is considered to be the number of spectral bands of the hyperspectral image). The operation of QccHYPrkltTrain() is essentially the same as that of QccHYPkltTrain(3) ; the primary difference is that the mean vector is integer-valued as is needed for a reversible KLT.

QccHYPrkltFactorization() factors the KLT matrix into the lifting-step matrices. See QccHYPrklt(3) for more details on this process. QccHYPrkltTrain() must be called prior to calling QccHYPrkltFactorization(). QccHYPrkltFactorization() sets rklt->factored.

QccHYPrkltTransform() applies the forward reversible KLT spectrally to each pixel vector in image, which is overwritten with the transformed dataset. QccHYPrkltFactorization() must be called on rklt prior to calling QccHYPrkltTransform() which checks to see if rklt->factored is set and returns in error if it is not.

QccHYPrkltInverseTransform() is the corresponding inverse reversible transform. QccHYPrkltFactorization() must be called on rklt prior to calling QccHYPrkltInverseTransform() which checks to see if rklt->factored is set and returns in error if it is not.

THEORY

See QccHYPrklt(3) .

RETURN VALUE

Both routines return 0 on success, 1 on error.

SEE ALSO

QccHYPrklt(3) , QccHYPkltTrain(3) , QccPackHYP(3) , QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads