Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
I. INTRODUCTION
2761
c
978-1-4244-1821-3/08/$25.002008
IEEE
1 c2 c6 c6 c2
(1)
C
2 c4 c4 c4 c4
c6 c2 c2 c6
Now we consider the expressions: c4
4S
cos
16
1
,
2
2S
cos
16
2 2
6S
2 2
, and c6 cos
.
c2
2
16
2
c
Then we compute: 2 1 2 . If we choose z 1 2
c6
as an algebraic integer [10], the transform matrix, shown in
eqn. (1), can be expressed exactly in terms of z with integer
coefficients as shown in eqn. (2) [where (O) is the Hadamard
or Schur product].
1 1 1 1
z 1 1 z
(2)
C AIQ ( z ) S x
1 1 1 1
1 z z 1
The scaling factor, S as given in eqn.(3), will be incorporated in the next stage (scaling and quantization). Thus,
the implementation is simplified with a final reconstruction
(where the value of z is substituted back) using 8-bit
precision, as given by eqn. (4).
c4 2
c4c6
c4 2
c4c6
c4 c6
c6 2
c4c6
c6 2
c4 2
c4 c6
c4 2
c4 c6
c4 c6
c6 2
c4 c6
c6 2
z 1 2 | 10.10 1010
(3)
1
3
22 2 2
5
(4)
s0
x1
2762
s2
w2
x4
x2
s1
w1
Z
x5
x8
x3
s3
w3
x7
s7
w7
x11
s11
x6
x9
x12
x10
x13
w11
x14
Z
x15
s15
w15
(a)
(b)
Fig. 3. Signal flow graph for 4x4 1-D DCT: (a) conventional FP
approach; (b) proposed AIQ approach
w0
19
29
64
98
58
87
109
121
61
80
113
120
32
64
128
512
(a)
64
128 512
64
256 1024
256 512 1024
1024 1024 2048
(c)
64
128
128
512
64
128
128 256
256 512
1024 1024
(b)
128 128
256 256
256 512
1024 1024
(d)
512
1024
1024
2048
512
1024
1024
2048
In order to achieve the JPEG-defined compression, the Qtables for the proposed AIQ-based DCT (incorporating the
post-scaling parameters) have been developed for all three
AIQ-based DCT
Equivalent
Hardware
FT
FT
Dividers (D)
14
Adders (A)
112
88
Total
112 A + 14 D
are performed, the data are sent to the quantization unit all at
once (12-bits per coefficient). The quantization unit is
composed with three modified quantizer tables (Fig. 5(b)(d)) that involves shift operations only. The quantized
coefficients (6-bits per coefficients) are then fed to the
encoder that finally outputs the encoded bit streams.
0
88 A + 0 D
C. Coefficients Encoding
The quantized coefficients are encoded using Lempel-Ziv
(LZ) coding [13]. The advantage of using the LZ algorithm
is that it avoids look-up tables and complex computations,
which eventually results in more power savings compared to
other entropy encoders (such as the Huffman coding and the
Arithmetic coding). In order to achieve our target
compression ratio (which is 85% at a minimum), the
window size and the maximum matching length of the LZ
algorithm are determined to be (64, 16) [8].
III. HARDWARE IMPLEMENTATION
The architecture is organized as a linear multistage
pipeline in order to achieve high throughput. It is based on
2s complement arithmetic in order to naturally handle
signed numbers. The block diagram (Fig. 6) shows the
functional units of the compressor. The image, captured by
the CMOS sensor, is the input to the architecture in a rowwise order at a rate of one pixel (8-bits per pixel) per clock
cycle. It is then stored in a buffer which allows the
synchronization of serial data generation and parallel data
production, enabling pipelined implementation.
The 2-D encoding scheme, shown in Fig. 4, is
implemented onto the architecture. Once the intermediate
additions, mapping, and the FRS (final reconstruction stage)
2763
100
80
60
40
20
0
Image 1
Image 2
JPEG-FP CR (%)
Image 3
Image 4
Image 5
Image 6
JPEG-AIQ CR (%)
Image 7
Image 8
Fig. 8. Comparisons of compression ratio (%) and PSNR (dB) between FP and AIQ schemes: Image 1 = Rectal Tubulovillous Adenoma; Image 2 =
Oesophageal Stricture reflex Disease; Image 3 = Duodenal Ulcer; Image 4 = Surgical Anastomose; Image 5 = Sigmoid Diverticular Colon Disease;
Image 6 = Caecal Cancer; Image 7 = Oesophageal Squamocellular Cancer; Image 8 = Radiation Proctitis
no. of zeros
CR
u100%
256 u 256
(5)
i, j x
i, j
x
1 1 1
V. CONCLUSION
In this paper, we have presented the first prototype with a
detailed algorithm of an image compressor to be used for a
wireless capsule endoscopy application. A direct mapping of
the 2-D DCT and the modified JPEG quantization tables are
provided. The use of algebraic integer quantization
eliminates the matrix transpose operation and results in
implementation-friendly quantization parameters. Our tests
show that the processor runs at a very high frequency and
consumes low hardware and power. Moreover, the
reconstructed images are of better quality and highly
comparable with conventional JPEG compressors. Future
research will be concerned on the standard cell VLSI
implementation of the video compressor, along with suitable
transmission protocol and efficient error correction
encoding.
TABLE II
COMPARISON OF IMPLEMENTATION RESULTS
M. Lin et al.
[8]
X. Xie et al.
[6]*
Proposed
REFERENCES
Area, P m 2
Frequency,
MHz
Power, mW
Supply
Voltage, V
390 k
12.58
14.92
1.8
12600k
40.0
6.2
1.8
325 k
150
10
1.8
[1]
[2]
[3]
[4]
[5]
2764
[6]
[7]
[8]
[9]
F. Gong, P. Swain, and T. Mills, Wireless Endoscopy, Gastrointestinal Endoscopy, vol. 51, no. 6, pp. 725-729, 2000.
PillCam, Given Imaging Ltd., www.givenimaging.com/en-us/
Sayaka, RF System Lab, www.rfamerica.com/sayaka
G. Iddan, G. meron, A. Glukhovsky, and P. Swain, Wireless Capsule
Endoscopy, Nature, vol. 405, pp. 417, May 25, 2000.
H. Park, et al., Design of Bi-directional and Multi-channel
Miniaturized telemetry Module for Wireless Endoscopy, Proc. of the
IEEE-EMBS Special Topic Conference on Microtechnologies in
Medicine and Biology, pp. 273-276, 2002.
X. Xie, G. Li, X. Chen, X. Li, and Z. Wang, A Low Power Digital IC
Design Inside the Wireless Endoscopic Capsule, IEEE Journal of
Solid-State Circuits, vol. 41, no. 11, pp. 2390-2400, November 2006.
P. Turcza and M. Duplaga, Low-Power Image Compression for
Wireless Capsule Endoscopy, Proc. of the IEEE Int. Workshop on
Imaging Systems and Technology, pp. 1-4, 2007.
M. Lin, L. Dung, and P. Weng, An Ultra Low Power Image Compressor for Capsule Endoscope, BioMedical Engineering Online
2006, vol. 5:14.
K. Rao and P. Yip, Discrete Cosine Transform: Algorithms, Advantages, and Applications, NY: Academic, 1990.
(a)
Image 1
Image 5
Image 2
Image 6
Image 3
Image 7
Image 4
Image 8
(b)
(a)
(b)
Fig. 9. Reconstructed JPEG images: (a) using conventional FP algorithm; (b) using proposed AIQ algorithm
2765