The invention discloses a
hyperspectral image compression network and
compression method based on multi-scale spectrum and spatial feature enhancement, and mainly solves the problems of insufficient hyperspectral image spectrum modeling, insufficient spatial
feature extraction and high
network complexity in the prior art. The network comprises a main
encoder, a main decoder, a super-prior
encoder, a super-prior decoder and an
entropy model. The main
encoder comprises a spectral attention gating data unit, a
convolution unit and a multi-scale spatial adaptive feature attention enhancement unit, and is used for converting an input image into potential representation and removing spatial and spectral redundancy; the main decoder and the main encoder are symmetrical in structure; the super-prior encoder comprises a
convolution layer and an activation layer and is used for extracting auxiliary information from the output of the main encoder; the super-prior decoder and the super-prior encoder are symmetrical in structure; the
entropy model is
Gaussian distribution based on output parameters of a super-prior decoder. After the network is trained,
lossy compression of a hyperspectral image can be realized. The method reduces the
network complexity and
spectral distortion, improves the reconstruction quality of complex ground feature details, and is suitable for
earth observation, meteorological monitoring and the like.