Hyperspectral Imagery Framework for Unmixing and Dimensionality Estimation