double QccHYPImageCubeMeanSAM(const QccIMGImageCube *image_cube1, const QccIMGImageCube *image_cube2);
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.