CPC G06V 10/58 (2022.01) [G01J 3/2803 (2013.01); G01N 21/25 (2013.01); G01N 21/27 (2013.01); G01N 21/31 (2013.01); G01N 21/55 (2013.01); G06T 7/90 (2017.01); G06V 10/143 (2022.01); G06V 10/25 (2022.01); H04N 5/30 (2013.01); H04N 23/10 (2023.01); G01J 2003/2826 (2013.01); G01N 2021/556 (2013.01); G01N 2021/557 (2013.01)] | 13 Claims |
1. A method for extracting spectral information of a substance under test, comprising the following steps:
S1: identifying a pixel region A(x, y) occupied by an object under test from an acquired hyperspectral image;
S2: extracting a specular reflection region Aq and a diffuse reflection region Ar from the pixel region A(x, y), and calculating a representative spectrum Iq(ω) of the specular reflection region Aq and a representative spectrum Ir(ω) of the diffuse reflection region Ar, respectively; and S3: by comparing each element in the representative spectrum Iq(ω) of the specular reflection region Aq with each element in the representative spectrum Ir(ω) of the diffuse reflection region Ar, separating information of a light source from spectral information of the object under test to obtain a first spectral invariant C(ω).
|