-
Hi, all |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @liuchzzyy , MCR-ALS is intrinsically a 2-dimensional method, so to apply it to hyperspectral data (shape =n_x, n_y, n_wavenumbers) you have to: 1/ unfold the hyperspectral data in a 2-dimensional NDDataset D of the spectra (shape = n_x*n_y, n_wavenumbers). You can either keep the spatial informations as coordinates in the NDDataset, or separately 2/ carry out the MCR-ALS, that will yield the C (shape = nx*n_y, n_species) and St (shape = n_species, n_wavenumbers) matrices 3/ if needed, reshape the C matrix to (n_x, n_y, n_species) The same, I think, holds for PCA. Does this answer your question ? Best regards |
Beta Was this translation helpful? Give feedback.
-
Hi, Arnaud Best, |
Beta Was this translation helpful? Give feedback.
-
Thanks for this info! and I am so fresh with PARAFAC. |
Beta Was this translation helpful? Give feedback.
Hi @liuchzzyy ,
MCR-ALS is intrinsically a 2-dimensional method, so to apply it to hyperspectral data (shape =n_x, n_y, n_wavenumbers) you have to:
1/ unfold the hyperspectral data in a 2-dimensional NDDataset D of the spectra (shape = n_x*n_y, n_wavenumbers). You can either keep the spatial informations as coordinates in the NDDataset, or separately
2/ carry out the MCR-ALS, that will yield the C (shape = nx*n_y, n_species) and St (shape = n_species, n_wavenumbers) matrices
3/ if needed, reshape the C matrix to (n_x, n_y, n_species)
The same, I think, holds for PCA.
Does this answer your question ?
Best regards
Arnaud