Background technology
Compressed sensing is take the compressibility of signal or sparse property as condition, it is a brand-new signal processing theory that breaks through traditional nyquist sampling theorem, it makes us can in signal sampling, complete compression coding, and the development of signal processing is had great significance.Compressed sensing theory reaches its maturity, and scholars have launched application study widely in various fields to it.Multi-optical spectrum imaging technology is one of them important branch.Light spectrum image-forming is as a kind of emerging technology, and it can produce the spatial distribution map of spectrum change, makes it in many application, become very powerful and exceedingly arrogant instrument.The signal that traditional sampling pattern gathers is redundancy, so hits can compress, and compressed sensing requires to provide the sensing matrix (sampling matrix) of incoherent sampling, the incoherence of sampling is exactly that the data that collect with sensing matrix of requirement should not be present in sparse base, and the sampled value of compressing like this could be preserved more information as much as possible.But correspondingly, also redundancy no longer of the final measured value signal that sensing matrix obtains, and be not easy to compression.But in multi-optical spectrum imaging system, researchers still wish further to compress the sampled measurement after compressed sensing, so that its real-time Transmission when the application of the aspect such as environmental remote sensing, astrophysics and military target detection.
Through the literature search of prior art is found, recognize that the measured value data sum of most of light spectrum image-forming technology generations is more than or equal to the sum of measured value in reconstruction of three-dimensional data block, D.J.Brady in 2006 and M.E.Gehm have introduced compressible light spectrum image-forming thought on " the Compressive imaging spectrometers using coded apertures " of International Society for Optics and Photonics meeting, and the measured value that the method is intended to light spectrum image-forming is produced is less than the elements are contained value in reconstructed data block.Its theoretical foundation depends on compressive sensing theory, and the fact that can rarefaction representation on some base according to natural scene solves that data stereo block rebuilds owes to determine problem.They have carried out CAI design according to compressed sensing thought, studies have shown that and utilize this pseudorandom building method design code aperture can make observation model meet constraint equidistant characteristics (RIP) character.Subsequently, it (is CASSI that the people such as M.E.Gehm have delivered a kind of binary distributing code aperture snapshot spectrum imaging system in 2007 on " the Single-shot compressive spectral imaging with a dual-disperser architecture " at Optics Express periodical, the Coded Aperture Snapshot Spectral Imager), utilize the light field of code aperture and dispersive medium modulation scene, and utilize a detector to obtain two-dimensional representation and the multiplex projection of 3D data volume.The people such as A.Wagadarikar have reported a compressible CASSI system at " the Single disperser design for coded aperture snapshot spectral imaging " of Applied Optics periodical in 2008, are referred to as monochromatic loose CASSI instrument.Because the loose CASSI system of monochrome has been used frequency multiplexing technique, and optics is less, and this system is easy to registration, is applicable to the application demand of low spatial resolution and high spectral resolution.H.Arguello and G.R.Arce have proposed a broad sense and effective mathematical framework and corresponding coding aperture optimal method in 2013 " Rank minimization code aperture design for spectrally selective compressive imaging " at IEEE Trans.Image Process periodical is upper based on the monochromatic loose CASSI system of many bats (multi-shot), the method allows the reconstruction of any band subset, reduces to greatest extent required shooting number (shots) simultaneously.Because the recovery of sparse signal in compressed sensing is very responsive to compressible data and compression projection, different shooting used the Y-PSNR (PSNR) of the reconstruction image that different coding aperture obtains all lower under ways, although also rise gradually along with umber of beats increases PSNR, corresponding compression efficiency is also declining gradually.For limited samples size of data and guarantee the quality of data reconstruction, a solution is to provide the further Lossless Compression to sampled measurement, thereby under similar memory space, can utilize more shooting ways to improve PSNR.Relevance and redundancy in the measured value obtaining due to compressed sensing light spectrum image-forming are weakened greatly, and the compression duty of sampled measurement is for the beyond doubt individual new challenge of existing Lossless Compression research.
Summary of the invention
The present invention is directed to the not squeezable present situation of crude sampling measured value, proposed a kind of transform coding method based on mean filter conversion, by the effective utilization to Given information and system configuration, improved the compression efficiency of method.The method is by utilizing known code aperture information, process one by one the element in compressible measurement matrix, finally be converted into one and distribute and be similar to and be easier to the matrix that compresses with original image, and the sparse matrix of Bit-Plane Encoding (bit plane coding) is carried out in available code aperture as supplementary.
The present invention is achieved by the following technical solutions:
Original three-dimensional data is after the code aperture of CASSI system, dispersion element, detector, the compressible sampled measurement obtaining be actually different spectrum channels be encoded and translation after pixel sum, for the synthetic matrix of this random groups within the specific limits, it is two matrixes by former sampled measurement matrix conversion that the present invention utilizes transition coding thought, then two matrixes is compressed separately to processing; By two megastages, it carried out to splitting and reorganizing and choose the algorithm adapting and compress.In first stage, utilize the mean filter conversion based on code aperture information to convert former sampled measurement to an image array being more similar to the distribution of former spectrum channel image, and a random and sparse remainder matrix.In second stage, by code aperture information, determine that in remainder matrix, element bit is that zero-sum bit plane is zero position, and utilize Bit-Plane Encoding Efficient Compression remainder matrix.
Preferably, in the described first stage, in the mean filter conversion based on code aperture information, make full use of known code aperture information, be specially: according to the individual random coded aperture matrix that uses in system generation sampled measurement process, the addend number of each element in computation and measurement value matrix, the transformation idea of utilization based on mean filter by each element in measured value divided by its addend number, obtain an image array approximate with the distribution of former spectrum channel image, and a random and sparse remainder matrix.
Preferably, the image array that the described first stage changes out, the distribution of this matrix image and statistical nature and former spectrum channel image are similar, adopt Lossless Image Compression algorithm JPEG-LS and Calic directly to compress it.
Preferably, in described second stage, describedly by code aperture information, determine that in remainder matrix, element bit is that zero-sum bit plane is zero position, be specially: the each element in remainder matrix has some bits to be defined as zero according to code aperture information, these are defined as zero bit and need not list in the sequence of compression and go, and directly from decoding end, by code aperture information, recover; And uncertain be that zero bit will be processed successively by the Bit-Plane Encoding of bit-by-bit plane piecemeal portions.
Preferably, in described second stage, the described Bit-Plane Encoding Efficient Compression remainder matrix that utilizes, be specially: the method that adopts the Bit-Plane Encoding based on code aperture information for the remainder matrix after conversion, according to similar positional structure and statistical property piecemeal by stages adopt Bit-Plane Encoding and variable-length encoding to compress, block-by-block coding, each bit plane from the most remarkable bit plane to gradual ground of least remarkable bit plane code coefficient amplitude, on each bit plane, from part 1, to part 3, progressively encode, it is one group that each part is once only got four positions, because some position has been defined as zero according to code aperture information, therefore four bits are at most only contained in each group, finally these bit groups are compressed with variable-length encoding.
Compared with traditional Lossless Image Compression method, the CASSI systematic survey value compression method based on code aperture and embedded transition coding proposed by the invention, has improved further possibility and the practicality of compression of compressed sensing sampled measurement.The invention has the beneficial effects as follows: utilize the conversion of mean filter formula to be converted to the image array that is easy to compression after denoising the measured value that lacks redundancy and be difficult to compression, the new approaches of compressed sensing sampled measurement compression are provided; Make full use of the Given information of code aperture, associative transformation coding, saves compression bit; Utilize being closely connected of remainder matrix after transition coding and code aperture, introduce the Bit-Plane Encoding based on code aperture, further improved compression efficiency.
Embodiment
Below in conjunction with specific embodiment, the present invention is described in detail.Following examples will contribute to those skilled in the art further to understand the present invention, but not limit in any form the present invention.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, can also make some distortion and improvement.These all belong to protection scope of the present invention.
Shown in Fig. 1-2, it is two matrixes by former sampled measurement matrix conversion that the present invention utilizes transition coding thought, then two matrixes is compressed separately to processing, by two megastages, it carried out to splitting and reorganizing and choose the algorithm adapting and compress, specifically:
First stage: conversion will be carried out as follows:
The discrete 3-D data set of
step 1, L spectrum channel of definition is
n × M is the dimension of each spectrum channel image, and the dimension that makes Y represent that CASSI system obtains is the sampled measurement of N × (M+L-1), F
trepresent the image of selected reference spectra passage, random coded aperture matrix when R represents that CASSI system is used for producing Y;
Step 2, the element Y (i, j) measuring in matrix Y can be regarded as
f
l(x, y) represents the gray value of the pixel of l spectrum channel image, F
lrefer to respectively l the selecteed set of pixels of spectrum channel image and selecteed spectrum channel set with F.The addend number that forms each element in matrix Y can be obtained by code aperture matrix R:
Step 3, according to mean filter thought, the measurement matrix after being converted is
it should be noted that the conversion obtaining like this
in each element in the scope of $ [0,255] $, or integer or decimal.Because the matrix that contains decimal can not be regarded image as, and directly compress decimal matrix and will cause information loss, the present invention will
be divided into two parts, i.e. business's part
with remainder part
Step 4, can prove
distribution and the distribution of original spectrum image very approaching, directly utilize Lossless Image Compression algorithm, as JPEG-LS and CALIC compress it.
Second stage: for remainder matrix
bit-Plane Encoding will carry out as follows:
Step 1, first will
in coefficient to be divided into 64 coefficients be that a rectangular block is processed.Each is divided into again three parts (section), and division principle is to make the coefficient of same section have similar positional structure and statistical property.
Step 2, use BitDepth_BloCk
mrepresent to describe the needed maximal bit figure place of amplitude of each coefficient y in m piece:
Step 3, in principle, all coefficients in m piece can be used BitDepth_Block
mindividual bit shows, but known according to the described transition coding based on code aperture of first stage, for the measured value after conversion
remainder part
the value of its capable j row of i must be in scope
in, therefore this value has again ZeroPlane
ijbit on individual remarkable bit plane can correspondingly be defined as zero when given code aperture.Wherein:
Step 4, note bit plane b consist of b bit of all coefficient amplitude binary representations, and wherein, least significantly bit plane is designated as b=0.From the most remarkable bit plane b=BitDepth_Block
mto b=0, each bit plane of the m piece coefficient amplitude of encoding gradually.On each bit plane, by part, encode, it is one group that each part is once only got four positions, because some position is transformed encoding scheme and code aperture is constrained to zero, four bits are at most only contained in therefore each group, finally these bit groups are compressed with variable-length encoding.
Specific embodiment is below provided:
As shown in Figure 1, the transition coding process of the present embodiment comprises the steps:
Step 1, the dimension that CASSI system is obtained is that the sampled measurement Y of N × (M+L-1) is modeled as the pixel sum after the translation of different spectrum channels coding,
Step 2, according to code aperture matrix R, ask the addend number that forms each element in matrix Y:
Step 3, according to mean filter thought, the measurement matrix after being converted is
be divided into business's part
with remainder part
two parts, right
directly utilize Lossless Image Compression algorithm (JPEG-LS or CALIC) to compress.
As shown in Figure 2, right in the present embodiment compression process
the Bit-Plane Encoding stage concrete implement to comprise following details:
Step 1, first will
in coefficient to be divided into 64 coefficients be a rectangular block (in figure, example is divided into four).Each has principle three parts (section) such as
part 1, part 2, part 3 again of similar positional structure and statistical property according to coefficient;
Step 2, according to code aperture information R, determines
in the value of the capable j of i row
value on individual remarkable bit plane is all zero, therefore need not compress these bits.
Step 3, to m piece, from the most remarkable bit plane b=BitDepth_Block
mto each bit plane of gradual ground of b=0 code coefficient amplitude.On each bit plane, from part 1, to part 3, progressively encode, it is one group that each part is once only got four positions, because some position is defined as zero in step 2, therefore four bits are at most only contained in each group, finally these bit groups are compressed with variable-length encoding.
implementation result
According to above-mentioned steps, the present invention is that 24(is L=24 at a series of spectrum channels) the measured value of data set after via CASSI system on test, situation when respectively umber of beats (shots) being equaled to 4 and 6 has carried out analyzing experiment, transition coding based on mean filter and the Bit-Plane Encoding effect based on code aperture are assessed respectively, and compared with conventional efficient lossless compression method JPEG-LS and Calic.
The transition coding scheme based on mean filter that the present invention proposes is to have obtained the compression efficiency that is better than JPEG-LS approximately 4.6%, is better than Calic8 approximately 4.9% at 4 o'clock at umber of beats.Along with umber of beats increases, the advantage of transition coding is more obvious., introduce after the Bit-Plane Encoding based on code aperture, compression ratio has been got back and has been greater than 1% lifting meanwhile.Experiment shows, the method for utilizing code aperture information to carry out transition coding and Bit-Plane Encoding that the present invention proposes has effectively improved the Lossless Compression efficiency of CASSI systematic survey value.
Above specific embodiments of the invention are described.It will be appreciated that, the present invention is not limited to above-mentioned specific implementations, and those skilled in the art can make various distortion or modification within the scope of the claims, and this does not affect flesh and blood of the present invention.