This function takes your 3D hyperspectral image and flattens it into a 2D matrix by merging the two spatial dimensions—because who really wants to type out dimensions every time?
Reference
Gomez-Sanchez, A. (2024). unfoldImage function. Lovelace's Square / GitHub repository. https://github.com/LovelaceSquare/unfold-image Version 1.0.