Table of Contents

NAME

QccHYPImageCubeMeanSAM - calculate the mean SAM between two image cubes

SYNOPSIS

#include "libQccPack.h"

double QccHYPImageCubeMeanSAM(const QccIMGImageCube *image_cube1, const QccIMGImageCube *image_cube2);

DESCRIPTION

QccHYPImageCubeMeanSAM() calculates the mean spectral angle mapper (SAM) between image_cube1 and image_cube2. Both image_cube1 and image_cube2 must have the same size.

In hyperspectral terminology, the SAM is simply the angle between two pixel vectors. image_cube1 and image_cube2 are considered to be 2D arrays of spectral pixel vectors, where the vectors have dimension image_cube1->num_frames. QccVectorAngle(3) is used to calculate the angle, in degrees, between a pixel vector from image_cube1 and the corresponding pixel vector in image_cube2. These angles are averaged over the entire dataset and the value of the mean angle returned.

RETURN VALUE

This routine returns the mean SAM in degrees. If the image cubes do not have the same size, 0.0 is returned.

SEE ALSO

QccPackHYP(3) , QccVectorAngle(3) , QccIMGImageCube(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