Adaptive Sparse Image Sampling and Recovery
Adaptive Sparse Image Sampling and Recovery
Abstract—This paper presents an adaptive and intelligent specific domain can be recovered at a rate less than the tra-
sparse model for digital image sampling and recovery. In the pro- ditional Shannon-Nyquist rate theorem [4]–[7]. DCT, wavelet,
posed sampler, we adaptively determine the number of required and gradient spaces represent paradigms in which natural im-
samples for retrieving image based on space-frequency-gradient
information content of image patches. By leveraging texture ages are sparse or at least compressible. The later is not fully
in space, sparsity locations in DCT domain, and directional invertible.
decomposition of gradients, the sampler structure consists of
a combination of uniform, random, and nonuniform sampling
strategies. For reconstruction, we model the recovery problem as A. Considered Scenario and Related Arts
a two-state cellular automaton to iteratively restore image with In the literature, significant attempts have been done to com-
scalable windows from generation to generation. We demonstrate
the recovery algorithm quickly converges after a few generations
pressively sample data at a very low sampling rate [8]–[12]. Con-
for an image with arbitrary degree of texture. For a given number ventional CS-based sampling/recovery strategies only exploit
of measurements, extensive experiments on standard image-sets, the sparsity-prior of signals in an appropriate domain [13]–[15].
infra-red, and mega-pixel range imaging devices show that the On the other hand, theoretical compressive sampling analyses
proposed measurement matrix considerably increases the overall rely on using Gaussian or random sampling matrices to measure
recovery performance, or equivalently decreases the number
of sampled pixels for a specific recovery quality compared to
signals [16]. However, to design sensing matrix, recent scien-
random sampling matrix and Gaussian linear combinations tific studies discover considering signal model-prior in sampling
employed by the state-of-the-art compressive sensing methods. In phase can significantly improve recovery quality [9], [10], [12].
practice, the proposed measurement-adaptive sampling/recovery In this regard, the present paper concentrates on finding a way
framework includes various applications from intelligent com- to adaptively and sparsely sense image scene in order to simply
pressive imaging-based acquisition devices to computer vision and
graphics, and image processing technology. Simulation codes are
and efficiently retrieve the image.
available online for reproduction purposes. Ji et al. in [8] introduced an adaptive Bayesian CS (BCS) with
abilities such as determining sufficient number of measurements
Index Terms—Cellular automaton, compressive sensing, direc- and confidence of recovery. The researchers in [9] proposed
tional gradients, measurement-adaptive sampling, sparse recovery, a nonuniform CS-based image sampling/recovery method in
sparsity location, texture. which a Hidden Markov Tree (HMT) is utilized to consider the
I. INTRODUCTION correlation among sparse wavelet coefficients in both sampling
and reconstructing phases, so-called uHMT-NCS. In [10], a vari-
URRENT digital imaging devices at first acquire images
C and then separately compress them leading to big data-
related problems. Contrarily, the aim of emerging Compressive
able density sampling strategy was designed in the frequency
domain which exploits priori statistical distributions of images
in the wavelet space. Malloy and Nowak in [11] suggested an
Sensing (CS) theory is to merge sampling and compressing into adaptive compressed sensing algorithm that in comparison to
one step by introducing the concept of “compressing during standard random nonadaptive design matrices requires nearly
sensing” for reducing data-rate, acquisition time, power con- the same number of measurements but succeeds at lower SNR
sumption, and device manufacturing cost with demanding ap- levels. Yang et al. in [12] designed an efficient Mixed Adaptive-
plications to next-generation Infra-Red (IR), remote sensing and Random (MAR) sensing matrix which employs image edge
Magnetic Resonance Imaging (MRI) systems [1]–[3]. The the- information with a sensor array 16 times less than the ulti-
ory of CS states that signals with a sparse representation in a mate length of recovered image. The Iterative Method with
Adaptive Thresholding (IMAT) [15] and its modified version
Manuscript received June 27, 2017; revised November 19, 2017, February equipped with interpolation, IMATI [17], are extensions of the
25, 2018, and April 21, 2018; accepted April 22, 2018. Date of publication May Iterative Hard Thresholding (IHT) family for sparse recovery
7, 2018; date of current version August 13, 2018. This work was supported
by Iran National Science Foundation (INSF) and ACRI of Sharif University of [14]. Instead of a fixed thresholding, they adaptively thresh-
Technology under agreements 95/SAD/47585 and 7000/6642, respectively. The old coefficients in a transform domain such as Discrete Cosine
associate editor coordinating the review of this manuscript and approving it for Transform (DCT) during iterations. To recover sparse signals
publication was Prof. Jong Chul Ye. (Corresponding author: Ali Taimori.)
The authors are with the Department of Electrical Engineering, Sharif Univer- from Gaussian measurements, the authors in [18] presented a
sity of Technology, Tehran 14588-89694, Iran (e-mail:,[email protected]; general iterative framework based on proximal methods called
[email protected]). Iterative Sparsification-Projection (ISP). ISP family contains
This paper has supplementary downloadable material available at http://
ieeexplore.ieee.org. the well-known SL0 algorithm [19] as a special case. In [20], a
Digital Object Identifier 10.1109/TCI.2018.2833625 learning-based approach by jointly optimizing the sensing and
2333-9403 © 2018 IEEE. Personal use is permitted, but republication/redistribution requires IEEE permission.
See http://www.ieee.org/publications standards/publications/rights/index.html for more information.
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
312 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
TAIMORI AND MARVASTI: ADAPTIVE SPARSE IMAGE SAMPLING AND RECOVERY 313
C. Random Sampler
Fig. 2. From left to right, patterns of the uniform sampler defined by matrices The intermediate layer of Fig. 1 depicts the proposed random
P UVL , P ULT , P UBT , P UHT , and P UVH .
sampler. Here, we first convert the data matrix R from the
spatial domain to the frequency space, Rf ∈ Rb×b , by using 2-D
where the gray-level co-occurrence matrix P = [p̂i,j ] DCT transform as Rf = TRTT , where the matrix T represents
B ×B is the
joint Probability Mass Function (PMF) which is obtained by the the transformation kernel of DCT. In DCT domain, samples
quantized are decorrelated and sparse. After an adaptive quantization of
s or
scaled version of the input image patch, namely
Gs = gi,j . The joint probabilities can be defined in the DCT coefficients, we estimate the rate of random sampling.
b×b
horizontal, vertical, main diagonal, and off-diagonal directions. Accordingly, a uniformly distributed random mask is finally
We used the horizontal neighbor as defined in MATLAB by generated. In the following sections, we discuss about creating
s
p̂i,j = P gr,c s
= i, gr,c+1 = j , where 1 ≤ i, j ≤ B, 1 ≤ r ≤ this mask.
b, and 1 ≤ c ≤ b − 1. The variables r and c represent row and 1) Random Sampling Rate Measure: To measure sparsity,
column, respectively. We considered the number of distinct gray one way is to threshold insignificant coefficients in a transform
levels in Gs as B = 8, hence gi,j s
∈ [1, B], 1 ≤ i, j ≤ b. The domain [15]. However, such thresholding may be inaccurate due
to varying information of the signal under process/acquisition.
normalizer Hm ax in (1) denotes the maximum entropy of P,
To overcome this problem, we suggest adaptive quantization of
which obtains from the uniform distribution, i.e. p̂i,j = B 2 , ∀
1
DCT coefficients inspired from the following observation.
1 ≤ i, j ≤ B. Thus, Hm ax = B i=1
B 1 2
j =1 B 2 log2 (B ), which Observation 1 (Adaptive quantization): In JPEG compres-
B = 8 ⇒ Hm ax = 6. sion standard where DCT transform is utilized, the results in
[24] reveal that the number of zero entries of quantized DCT
B. Uniform Sampler coefficients is inversely proportional to both compression qual-
In the proposed uniform sampling strategy, we punch local ity level, l, and the image block texture, η. Now, let the matrix
patches at certain regular locations based on their local texture R f = [r̃f ] ∈ Zb×b be the quantized DCT matrix for a b × b
i,j
content in space domain. In fact, the punch operation makes image patch, then R f = b2 − Z(R f ), where · de-
0 p
appropriate regular patterns for a stable recovery. As shown in notes the p -norm and the operator Z(·) counts the number
Fig. 1, the uniform sampler at first gets the image patch R = of zero entries of a matrix/vector. From the above results, we
[ri,j ]b×b . Afterwards, the textureness of the signal is estimated. have both R f ∝ 1 and R f ∝ 1 . By assuming their
0 l 0 η
The number of punched points is proportional to the calculated equivalence, we have η ∝ l. This shows the texture percentage
texture percentage. By this intuition, whenever the textureness defined in (1) can be a good criterion for adaptive quantization of
is high, we decorate the image with denser regular points and information in the frequency domain to measure the necessary
vice versa. Therefore, the binary mask of uniform pattern is random sampling rate.
determined by the following fuzzy rule Details: Based on Observation 1, we calculate the quantized
⎧
⎪ PUVL , 0 ≤ η < 10 DCT matrix as
⎪
⎪
⎪
⎪
⎪
⎪ PULT , 10 ≤ η < 25 f = Rf ÷ Qη ,
⎪
⎨ R (3)
Pu = PUBT , 25 ≤ η < 45 , (2)
⎪
⎪ where the symbols ÷ and · denote the entry-by-entry division
⎪
⎪ η
⎪
⎪ PUHT , 45 ≤ η < 70 and the nearest integer, respectively. The matrix Qη = qi,j ,
⎪
⎪ b×b
⎩ η
∀qi,j ∈ N, also represents the quantization table related to the
PUVH , 70 ≤ η ≤ 100
texture η. For determining Qη , we exploited the Quantization
in which the matrices PUVL , PULT , PUBT , PUHT , and PUVH are
Tables (QTs) introduced by Independent JPEG Group (IJG)
assigned for very-low, low, bandpass, high, and very-high tex-
[27]. Based on the value of η, the corresponding quantization
tures, respectively. Fig. 2 shows the regular lattices employed
matrix is chosen and applied (See Appendix.). Therefore, we
in the proposed uniform sampler. The number of live cells
adaptively derive sparsity number from the number of nonzero
(punched points) in the matrices PUVL , PULT , PUBT , PUHT , f . Now,
entries of quantized DCT coefficients by k = R
and PUVH are 20 , 21 , 22 , 23 , and 24 , respectively. This reveals 0
we suggest measuring the rate of random sampling as the fol-
the relation between the texture and the number of live cells is
lowing formula, which is consistent with the theory of CS, i.e.
nonlinear with an increasing exponential form. The configura-
c · k · log10 ( nk ),
tion of punched points affects the recovery performance. Sub-
optimal lattices should have minimum number of sample points
c · k · log10 (d · nk ) , k=0
and maximum number of live cells in a predefined neighboring Rrs = , (4)
of missing samples. They should also consider patch boundaries 0, otherwise
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
314 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
pri,j ← 1. 0, otherwise
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
TAIMORI AND MARVASTI: ADAPTIVE SPARSE IMAGE SAMPLING AND RECOVERY 315
Afterwards, we apply a threshold to the magnitude of two di- chaotic behavior. For selecting the threshold τ in the nonuniform
rections with stronger gradients to suppress redundant uninfor- sampler, a trade-off between subjective quality enhancement and
mative samples. Fig. 4 illustrates the directional decomposition increased redundancy exists. If τ → 1, then M → Pu Pr .
of the gradient vector g into two adjacent directions. For this ex- Therefore, we empirically set τ = 0.9 to maintain sampling
d1 d2 d3 d4 d5
ample, we have fi,j = α1 , fi,j = 0, fi,j = 0, fi,j = 0, fi,j = 0, near an optimal sub-Shannon-Nyquist rate. The downsampled
d6 d7 d8 image patch is constructed from
fi,j = 0, fi,j = 0, and fi,j = α2 based on the specified rules.
The steps of nonuniform sampling algorithm are implemented S = M R, (9)
as follows.
r Initialize D-directional gradient matrices, i.e. Fd = O, in which the symbol denotes Hadamard product. Algorithm 1
γ
∀γ ∈ [1, D]. summarizes the proposed adaptive intelligent image sampling
r Extract D-directional gradient features as explained above strategy. For the previously captured image I of the dimension
for the vector g. h × w, the proposed block-wise algorithm can be repeated on all
r Obtain the normalized versions of Fd , ∀γ ∈ [1, D], be- nonoverlapping image patches to get the overall sampling mask
γ
tween 0 and 1. Ms = [msi,j ]h×w and the subsampled image Is = [isi,j ]h×w .
r Define the matrix of nonuniform pattern, Pn = [pn ] ,
i,j b×b
and initialize it as Pn = O. III. CELLULAR AUTOMATON-BASED IMAGE RECOVERY
r For determining the structure of edges, initialize a binary
As mentioned in the literature, different approaches exist for
string with the length of the number of AC frequency
image recovery [8]–[11], [13]–[15], [18]–[21]. Here, we tailor a
regions, Nfr = 5, such as a = “a1 a2 a3 a4 a5 ” = “00000”.
r For s = 1 to Nfr , obtain the set Bs {r̃f |(i, j) ∈ Ss }. If novel technique to recover scattered samples obtained from the
i,j intelligent sampling stage. We model the reconstruction mecha-
Bs 0 = 0, set as ← “1”.
r If the string a = “11000” ∨ “10100” ∨ “10010” ∨ nism by a dynamic CA. Cellular automata are simple intelligent
agents with fundamental characteristics of locality, uniformity,
“11010” ∨ “10110”, which respectively represent vertical,
and synchronicity [32]. They are composed of discrete cells
horizontal, diagonal, vertical-diagonal, or horizontal-
d equipped with special rules to be able to solve sophisticated
diagonal edges, at first, sort the set { bi=1 bj =1 fi,jγ }D γ =1 . problems. Various applications have been found for CA in im-
Afterwards, for the two directions having stronger gra- age processing tasks such as noise removal, edge detection, and
dients, calculate its gradient magnitude, and then forgery localization [33].
renormalize it between 0 and 1. Finally, for i = 1 to b and
j = 1 to b, if the resulting magnitude of gradient exceeds A. Cellular Automaton Modeling for Recovery
the predefined threshold 0 ≤ τ ≤ 1, set pni,j ← 1.
In modeling, we consider a 2-state CA machine, in which the
E. Measurement-Adaptive Sampling Algorithm states of dead and live cells represent the zero and one values in
the sampling mask Ms , respectively. Contrary to conventional
As shown in Fig. 1, the ultimate binary mask is generated by fixed-neighbor CA models, the proposed CA-based recoverer
the union of uniform, random, and nonuniform patterns as performs as an iterative method which applies variable-scale
windows to the sampled image Is . The size of square win-
M= Pi . (8)
dow, Ω, increases at each generation of CA. In summary, we
i∈{u ,r,n }
define the elements of model as M(Ms , Is , Ω, σ, ζ, I, Mg ), in
The regularity, randomness, and structure of patterns in the which σ represents the standard deviation of a Gaussian kernel,
above combined form create naturally a sampling mask with ζ ≥ 1 is a coefficient for increasing σ during generations, and
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
316 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
Mg and I denote the matrix at next generation of Ms and the Algorithm 2: The proposed CA-based recovery algorithm.
recovered image, respectively. The rule behind the suggested 1: Inputs: The mask Ms and the subsampled image Is .
recovery algorithm is simple yet efficient as follows. By con- 2: Initialize Ω = 3, σ = 1, ζ = 1.05, I = Is , Mg = Ms ,
sidering the correlation among adjacent samples, missing pixels (0)
and Ms = Ms .
are reconstructed via a Gaussian-weighted averaging. We find
3: Calculate the number of dead cells by Nd = Z(Mg ).
live cells of Is around the central dead cell msi,j and extract
4: while Nd = 0 do
their corresponding weights in (Ω − 1)-Moore neighborhood
5: ωh Ω2
[32], namely the dynamic-length vectors x = [x1 , . . . , xk ]T and
6: Obtain the Gaussian kernel Wσ = [wi,j σ
]Ω×Ω .
ω = [ω1 , . . . , ωk ]T , respectively. If at least one live cell exists,
7: for r ← 1, h do
then, the dead cell msi,j is replaced with the weighted mean of
8: for c ← 1, w do
live cells in the subsampled image and that dead cell will re-
9: if msr,c = 0 then
vive at next generation. At each generation of CA-based recov-
erer, the model elements are updated. Algorithm 2 presents the 10: ϑflag 0
pseudo-code of CA-based image recovery algorithm, in which 11: t1
the symbols · and · represent the floor and ceiling func- 12: for p ← −ωh , ωh do
tions, respectively. We utilized the replication rule to cope with 13: for q ← −ωh , ωh do
boundary conditions of border cells. 14: if msr +p,c+q = 1 then
After the last generation, we utilize a post processing stage 15: xt isr +p,c+q
to alleviate possible blockiness artifacts due to the patch-based 16: ωt wp+σ
Ω Ω
2 ,q + 2
nature of recovery. This phenomenon may be observed in plain 17: ϑflag = 1
regions. Based on the coding style of measurement-adaptive 18: t←t+1
sampler, the number of live cells within a window can be an 19: end if
appropriate criterion to discriminate plain regions from textured 20: end for
ones in the recovery phase. Therefore, we apply a conditional 21: end for
smoothing filter only for flat regions. To this intent, at first, 22: if ϑflag = 1 then
we initialize the post-processed result Ip = [ipi,j ]h×w as Ip = I.
îr,c = Σxk ωωk
T
23:
Afterwards, for all i ∈ [1, h] and j ∈ [1, w], we scan the im-
24: mgr,c = 1
age I = [ii,j ]h×w with a square window of the length Ωf = 3. 25: end if
(0)
If the number of live cells in the initial sampling mask Ms 26: Release the vectors x and ω.
inside the window are less than the threshold ρ · Ωf , the cor-
2
27: end if
responding pixel values of I in the window are smoothed via 28: end for
σ
the Gaussian kernel Wσ f = [wi,jf ]Ω f ×Ω f , for which 0 ≤ ρ ≤ 1. 29: end for
Then, the result is placed into ipi,j . In experiments, we set 30: Ω←Ω+2
the coefficient ρ = 0.3 and the standard deviation of smoother 31: σ ←ζ ·σ
σf = 1.5. 32: Is = I
33: Ms = Mg
34: Nd = Z(Mg )
B. Convergence Analysis 35: end while
36: Apply the post processing on I via Ms to obtain Ip .
(0)
As illustrated in Fig. 6, the CA-based recoverer first starts
with exposing high-textured dense missing samples at a fine 37: Output: The recovered post-processed image Ip .
scale. Then, by updating model parameters, this process con-
tinues and finally terminates by retrieving lowpass sparse sam-
ples at a coarse scale. The advised variable-scale windowing
in comparison to fixed window speeds up the convergence rate for all hb × wb patches, we have η = 0 which results in
of Algorithm 2 without sacrificing recovery quality. Also, this Pu = PUVL , and the random and nonuniform patterns equal
mechanism controls better error propagation during recursion. Pr = Pn = O. Hence, M = Pu for all patches. Let the live
In Lemma 1, we prove the algorithm quickly converges after a and dead cells be represented by white- and black- colored cells,
few generations for an image with arbitrary degree of texture. respectively. For visualization, Fig. 5 illustrates generations of
Lemma 1 (Convergence guarantee): Let patches of the im- the sampling mask matrix Ms for a given flat DC image of the
age I = [ii,j ]h×w be square of the length b = 8. If Ng denotes dimension 32 × 32. It is important to note that, if h and w are
(κ)
the number of CA generations, then, Algorithm 2 for recovering not multiples of b, we can use zero padding. If the matrix Ms
the image I guarantees to converge at most at three iterations, denotes the sampling mask at generation κth, then it is shown
i.e. Ng 3. in Fig. 5 that the number of dead cells at the 3rd generation is
(3)
Proof: To prove, we consider the worst case, i.e. the im- Nd = Z(Ms ) = 0. This implies that N g = 3 for a completely
age under reconstruction is a fully DC image as the possible DC image because the distance between two live cells is 7 pixels
sparsest signal to determine the upper bound. In such a case, in both horizontal and vertical directions. For a given image with
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
TAIMORI AND MARVASTI: ADAPTIVE SPARSE IMAGE SAMPLING AND RECOVERY 317
C. Practical Considerations
In order to implement the proposed sampling and recovery
algorithms in practice, we can consider a mechanism similar
to the structure of image acquisition using Rice single-pixel
camera [22]. However, one of the main differences is to uti-
lize a small array of sensors but not a single photo-diode. This
allows us to measure adaptively the local image content, sam-
ple in 2-D space, and recover the scene by the suggested CA-
based recovery approach. The solution is to focus the physical
scene on a Digital Micro-mirror Device (DMD) via a primary
lens. The DMD itself is partitioned into non-overlapping b × b
patches such as 8 × 8 blocks. In a sequential line-scan manner
and at each time, only one of the analog image patches is re-
flected to another lens by configuring mirror positions. Other
mirrors reflect the scene on a black absorbent surface. This sec-
ondary lens focuses the light of that single patch on an 8 × 8
CCD or CMOS sensor. After amplifying the signal and passing
through an Analog to Digital Converter (ADC), the digitized
sub-image, R, is obtained. Afterwards, the texture of the patch
is measured. Then, based on the proposed sampler, the sampling
mask, M, and the sub-sampled image, S, are determined. This
process is repeated until the generation of the binary mask as Fig. 6. From top to down, different images respectively show the original
images, sampling masks, subsampled images, recovered results after 1st, 2nd
well as the sub-sampled image pertaining to the last patch. The and 3rd generations, and the results of applying conditional smoother.
overall sampling mask, Ms , and corresponding sampled image,
Is , can be stored in a memory card. In the decoding phase, A. Experimental Settings
the proposed CA recoverer gets Ms and Is and simply restores
the image scene, Ip , whereas the single-pixel camera utilizes In order to evaluate the performance of our sampling/recovery
the sophisticated Basis Pursuit (BP) algorithm for recovery. framework and comparing it with other related approaches, we
utilized various databases having different statistical character-
istics. Image sets include the standard databases of NCID [34],
IV. EXPERIMENTS CCID [35], UCID [36], Microsoft Research Cambridge Object
This section provides extensive experiments to support our Recognition Image Database,2 and a collection of well-known
findings. Algorithms were implemented in MATLAB and run
on an Intel Core i7 2.2 GHz laptop with 8 GB RAM. 2 https://www.microsoft.com/en-us/download/details.aspx?id=52644
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
318 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
TAIMORI AND MARVASTI: ADAPTIVE SPARSE IMAGE SAMPLING AND RECOVERY 319
Fig. 10. The run-time (s) of different methods in terms of sampling rate (%)
Fig. 8. The influence of the coefficient ρ on recovery performance for images on the image of Fig. 9.
listed in Table I.
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
320 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
TABLE II
PERFORMANCE OF THE PROPOSED IMAGE SAMPLING/RECOVERY FRAMEWORK ON FOUR STANDARD DATABASES
E. Recovery Performance under Fixed Sampling Structures Fig. 11. From left to right and top to down, the reconstruction of Walkbridge,
Livingroom, Jetplane, and Lake images without and with nonuniform sampler,
This section compares the performance of different recovery respectively.
approaches under fixed sampling structures. To this intent, we
considered two sampling scenarios including conventional pure [15], [17], [18], [21], we applied the prominent scattered spline
random and our measurement-adaptive samplers. For recover- interpolator of spline to separately investigate the efficiency of
ing scattered samples obtained from the proposed intelligent our CA-based recoverer under the considered scenarios.
sampling stage as well as random sampling structure, various In this experiment, we address the problem of image re-
approaches such as scattered data interpolators can be employed. construction of different scales. To do this, we selected 4
Therefore, in addition to modern sparse recovery techniques [8], mega-pixel images from RCID database with the original size
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
TAIMORI AND MARVASTI: ADAPTIVE SPARSE IMAGE SAMPLING AND RECOVERY 321
TABLE III
ANALYZING THE PERFORMANCE OF DIFFERENT RECOVERY TECHNIQUES IN THE CASE OF TWO DISTINCT SAMPLING SCENARIOS ON IMAGES SHOWN IN THE
SECOND ROW OF FIG. 12
For each scenario, the values in bold type show the best performance.
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
322 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
Fig. 13. The comparison of recovery performance for different sampling ap-
proaches. 2
Fig. 14. Average PSNR (dB) vs the noise variance, σ AW G N , for the case of
noisy measurements.
TABLE IV
A QUALITATIVE PERFORMANCE COMPARISON OF THE PROPOSED SAMPLING/RECOVERY FRAMEWORK TO BASELINE JPEG SCHEME
Fig. 16. Normalized Recovery Error (NRE) of different approaches for the Fig. 17. The robustness analysis of the proposed method under various sam-
images labeled in Fig. 15. pling patch sizes.
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
324 IEEE TRANSACTIONS ON COMPUTATIONAL IMAGING, VOL. 4, NO. 3, SEPTEMBER 2018
V. CONCLUSION ACKNOWLEDGMENT
This paper suggested a measurement-adaptive sparse image The authors would like to thank Dr Z. Sadeghigol who pro-
sampling and recovery framework called MASCAR. The pro- vided TSCW-GDP-HMT codes for comparisonand also thank
posed sampler adaptively measures the required sampling rate Prof A. Amini, A. Esmaeili, and other researchers in Signal
and accordingly determines sample positions by a combined Processing and Multimedia Lab for their priceless comments.
uniform, random, and nonuniform sampling mechanism. Our
idea originated from the fact that natural images may have low-
pass, bandpass, highpass, or sparse components depending on REFERENCES
the scene under view. Therefore, a measurement-adaptive mech- [1] Y. C. Eldar and G. Kutyniok, Compressed Sensing: Theory and Applica-
anism was advised to trap informative samples. Unlike Gaussian tions. Cambridge, U.K.: Cambridge Univ. Press, 2012.
measurement sensing scenario, the proposed sparse coding style [2] F. Marvasti, Nonuniform Sampling: Theory and Practice. Berlin,
Germany: Springer, 2012.
does not need all samples in advance. [3] J. Romberg, “Imaging via compressive sampling,” IEEE Signal Process.
In the recovery phase, we modeled the problem by a cellular Mag., vol. 25, no. 2, pp. 14–20, Mar. 2008.
automaton machine. The suggested algorithm converges always [4] D. L. Donoho, “Compressed sensing,” IEEE Trans. Inf. Theory, vol. 52,
no. 4, pp. 1289–1306, Apr. 2006.
at a few generations. Low computational burden and memory [5] E. J. Candès, J. Romberg, and T. Tao, “Robust uncertainty principles: Ex-
usage are two main advantages of this algorithm in compari- act signal reconstruction from highly incomplete frequency information,”
son to sophisticated techniques of ISP [18], TSCW-GDP-HMT IEEE Trans. Inf. Theory, vol. 52, no. 2, pp. 489–509, Feb. 2006.
[6] E. J. Candès, “Compressive sampling,” in Proc. Int. Congr. Mathemati-
[21], and BCS [8], especially in reconstruction of mega-pixel cians, 2006, vol. 3, pp. 1433–1452.
range imaging such as remote sensing. In CA-based recovery [7] F. Marvast et al., “A unified approach to sparse signal processing,”
algorithm, updating rule for reviving dead cells is done based EURASIP J. Adv. Signal Process., vol. 2012, no. 1, pp. 1–45, 2012.
[8] S. Ji, Y. Xue, and L. Carin, “Bayesian compressive sensing,” IEEE Trans.
on a simple weighted averaging. As a future work, more precise Signal Process., vol. 56, no. 6, pp. 2346–2356, Jun. 2008.
predictors can be utilized for this purpose. Also, the suggested [9] B. Shahrasbi and N. Rahnavard, “Model-based nonuniform compressive
sampling/recovery pipeline can be generalized to other sparsify- sampling and recovery of natural images utilizing a wavelet-domain uni-
versal hidden Markov model,” IEEE Trans. Signal Process., vol. 65,
ing transform domains like wavelets. Extensive tests on standard no. 1, pp. 95–104, Jan. 2017.
image data-sets, infra-red, and mega-pixel imaging show the ca- [10] Z. Wang and G. R. Arce, “Variable density compressed image sampling,”
pabilities of proposed technique for practical implementations IEEE Trans. Image Process., vol. 19, no. 1, pp. 264–270, Jan. 2010.
[11] M. L. Malloy and R. D. Nowak, “Near-optimal adaptive compressed sens-
of compressively sampled imaging systems. ing,” IEEE Trans. Inf. Theory, vol. 60, no. 7, pp. 4001–4012, Jul. 2014.
[12] J. Yang, W. E. I. Sha, H. Chao, and Z. Jin, “High-quality image restoration
from partial mixed adaptive-random measurements,” Multimedia Tools
APPENDIX Appl., vol. 75, no. 11, pp. 6189–6205, 2016.
[13] J. A. Tropp and A. C. Gilbert, “Signal recovery from random measure-
Based on JPEG standard [27], the quantization matrix corre- ments via orthogonal matching pursuit,” IEEE Trans. Inf. Theory, vol. 53,
sponding to the texture η can be formulated as no. 12, pp. 4655–4666, Dec. 2007.
[14] T. Blumensath and M. E. Davies, “Normalized iterative hard threshold-
ing: Guaranteed stability and performance,” IEEE J. Sel. Topics Signal
sη 1 Process., vol. 4, no. 2, pp. 298–309, Apr. 2010.
Qη = max Qr + J, J , (11) [15] F. Marvasti et al., “Sparse signal processing using iterative method with
1≤i,j ≤b 100 2
adaptive thresholding (IMAT),” in Proc. IEEE 19th Int. Conf. Telecom-
mun., 2012, pp. 1–6.
in which the matrix J denotes a b × b all-one matrix. Also, the [16] E. J. Candès and T. Tao, “Near-optimal signal recovery from random
projections: Universal encoding strategies?” IEEE Trans. Inf. Theory, vol.
scaling factor, sη , and the reference quantization table, Qr , are 52, no. 12, pp. 5406–5425, Dec. 2006.
determined by [17] A. I. Zayed and G. Schmeisser, New Perspectives on Approximation and
Sampling Theory. Berlin, Germany: Springer, 2014.
5000 [18] M. Sadeghi and M. Babaie-Zadeh, “Iterative sparsification-projection:
η , 0+ ≤ η < 50 Fast and robust sparse signal approximation,” IEEE Trans. Signal Process.,
sη = , (12) vol. 64, no. 21, pp. 5536–5548, Nov. 2016.
2(100 − η), 50 ≤ η ≤ 100 [19] H. Mohimani, M. Babaie-Zadeh, and C. Jutten, “A fast approach for
overcomplete sparse decomposition based on smoothed 0 norm,” IEEE
Trans. Signal Process., vol. 57, no. 1, pp. 289–301, Jan. 2009.
and ⎛ ⎞ [20] J. M. Duarte-Carvajalino and G. Sapiro, “Learning to sense sparse signals:
16 11 10 16 24 40 51 61 Simultaneous sensing matrix and sparsifying dictionary optimization,”
⎜ ⎟
⎜ 12 12 14 19 26 58 60 55 ⎟ IEEE Trans. Image Process., vol. 18, no. 7, pp. 1395–1408, Jul. 2009.
⎜ ⎟ [21] Z. Sadeghigol, M. H. Kahaei, and F. Haddadi, “Model based variational
⎜ ⎟
⎜ 14 13 16 24 40 57 69 56 ⎟ Bayesian compressive sensing using heavy tailed sparse prior,” Signal
⎜ ⎟ Process., Image Commun., vol. 41, pp. 158–167, 2016.
⎜ ⎟
⎜ 14 17 22 29 51 87 80 62 ⎟ [22] M. F. Duarte et al., “Single-pixel imaging via compressive sampling,”
⎜ ⎟ IEEE Signal Process. Mag., vol. 25, no. 2, pp. 83–91, Mar. 2008.
Qr = ⎜
⎜ 18
⎟.
⎟ [23] X. Li, “Anisotropic mesh adaptation for image representation,” EURASIP
⎜ 22 37 56 68 109 103 77 ⎟ J. Image Video Process., vol. 2016, no. 1, pp. 1–16, 2016.
⎜ ⎟
⎜ 24 35 55 64 81 104 113 92 ⎟ [24] A. Taimori, F. Razzazi, A. Behrad, A. Ahmadi, and M. Babaie-Zadeh,
⎜ ⎟ “Quantization-unaware double JPEG compression detection,” J. Math.
⎜ ⎟
⎜ 49 64 78 87 103 121 120 101 ⎟ Imag. Vis., vol. 54, no. 3, pp. 269–286, 2016.
⎜ ⎟ [25] R. M. Haralick, K. Shanmugam, and I. H. Dinstein, “Textural features
⎝ ⎠ for image classification,” IEEE Trans. Syst., Man, Cybern., vol. SMC-3,
72 92 95 98 112 100 103 99 no. 6, pp. 610–621, Nov. 1973.
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.
TAIMORI AND MARVASTI: ADAPTIVE SPARSE IMAGE SAMPLING AND RECOVERY 325
[26] R. Jain, R. Kasturi, and B. G. Schunck, Machine Vision. New York, NY, Farokh Marvasti (SM’83) received the B.Sc., the
USA: McGraw-Hill, 1995. M.Sc., and the Ph.D. degrees all from Rensselaer
[27] W. Luo, J. Huang, and G. Qiu, “JPEG error analysis and its applications Polytechnic Institute, Troy, NY, USA, in 1970, 1971,
to digital image forensics,” IEEE Trans. Inf. Forensics Security, vol. 5, and 1973, respectively. He has worked, consulted and
no. 3, pp. 480–491, Sep. 2010. taught in various industries and academic institutions
[28] M. Lustig, D. L. Donoho, J. M. Santos, and J. M. Pauly, “Compressed since 1972. Among which are Bell Labs, Univer-
sensing MRI,” IEEE Signal Process. Mag., vol. 25, no. 2, pp. 72–82, Mar. sity of California Davis, Illinois Institute of Technol-
2008. ogy, University of London, and King’s College Lon-
[29] R. Hasimoto-Beltrán, S. Baqai, and A. Khokhar, “Transform domain inter- don. He is currently a Professor with Sharif Univer-
block interleaving schemes for robust image and video transmission in sity of Technology, Tehran, Iran and the Director of
ATM networks,” J. Visual Commun. Image Representation, vol. 15, no. 4, Advanced Communications Research Institute and a
pp. 522–547, 2004. former Head of The Center of Excellence in Multiaccess Communication Sys-
[30] Z.-L. Bai and Q. Huo, “A study on the use of 8-directional features for tems. He spent his sabbatical leave at The Communications and Information
online handwritten chinese character recognition,” in Proc. IEEE 8th Int. Systems Group of University College London in 2013. He has about 100 jour-
Conf. Document Anal. Recognit., 2005, pp. 262–266. nal publications and has written several reference books; he has also several
[31] L.-L. Huang, A. Shimizu, Y. Hagihara, and H. Kobatake, “Gradient fea- international patents. His main research interests are signal and image process-
ture extraction for classification-based face detection,” Pattern Recognit., ing and multimedia systems. He was one of the Editors and Associate Editors of
vol. 36, no. 11, pp. 2501–2511, 2003. the IEEE TRANSACTIONS ON COMMUNICATIONS AND SIGNAL PROCESSING from
[32] J. L. Schiff, Cellular Automata: A Discrete View of the World, vol. 45, 1990–1997. His last book is on Nonuniform Sampling: Theory and Practice by
Hoboken, NJ, USA: Wiley, 2011. Springer in 2001. He was also a Guest Editor on Special Issue on Nonuniform
[33] P. Rosin, A. Adamatzky, and X. Sun, Cellular Automata in Image Pro- Sampling for the Sampling Theory and Signal and Image Processing journal,
cessing and Geometry, vol. 10, Berlin, Germany: Springer, 2014. May 2008. Besides being the co-founders of two international conferences (ICT
[34] Q. Liu, A. H. Sung, and M. Qiao, “Neighboring joint density-based JPEG and SampTA), he has been the organizer and special session Chairs of many
steganalysis,” ACM Trans. Intell. Syst. Technol., vol. 2, no. 2, 2011, Art IEEE conferences including International Conference on Acoustics, Speech,
no. 16. and Signal Processing. Recently, he was the Lead Editor on “Sparse Signal
[35] A. Olmos and F. A. A. Kingdom, “A biologically inspired algorithm Processing” for the Special Issue of EURASIP Journal on Advanced in Signal
for the recovery of shading and reflectance images,” Perception, vol. 33, Processing.
no. 12, pp. 1463–1473, 2004. He is the recipient of distinguished Award from the Academy of Sciences
[36] G. Schaefer and M. Stich, “UCID: An uncompressed color image of Iran, in 2014, and a five year term Chair position from Iran National Science
database,” in Proc.SPIE Storage Retrieval Methods Appl. Multimedia, foundation, in 2015.
vol. 5307, pp. 472–480, 2004.
[37] A. Taimori, F. Razzazi, A. Behrad, A. Ahmadi, and M. Babaie-Zadeh,
“A novel forensic image analysis tool for discovering double JPEG com-
pression clues,” Multimedia Tools Appl., vol. 76, no. 6, pp. 7749–7783,
2017.
[38] Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli, “Image quality
assessment: From error visibility to structural similarity,” IEEE Trans.
Image Process., vol. 13, no. 4, pp. 600–612, Apr. 2004.
[39] H. Chen et al., “Infrared camera using a single nano-photodetector,” IEEE
Sensors J., vol. 13, no. 3, pp. 949–958, Mar. 2013.
[40] M. Budagavi, High Efficiency Video Coding (HEVC): Algorithms and
Architectures. Berlin, Germany: Springer, 2016.
[41] P. T. Chiou, Y. Sun, and G. S. Young, “A complexity analysis of the JPEG
image compression algorithm,” in Proc. IEEE 9th Comput. Sci. Electron.
Eng., 2017, pp. 65–70.
Authorized licensed use limited to: Universitatea Tehnica din Cluj-Napoca. Downloaded on September 27,2023 at 09:33:40 UTC from IEEE Xplore. Restrictions apply.