Chip123 科技應用創新平台

 找回密碼
 申請會員

QQ登錄

只需一步,快速開始

Login

用FB帳號登入

搜索
1 2 3 4
查看: 4543|回復: 2
打印 上一主題 下一主題

JPEG2000

[複製鏈接]
跳轉到指定樓層
1#
發表於 2007-1-13 18:49:54 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
JPEG2000是基於小波變換的圖像壓縮標準,由Joint Photographic Experts Group組織創建和維護。JPEG2000通常被認為是未來取代JPEG(基於離散餘弦變換)的下一代圖像壓縮標準。JPEG2000文件的擴展名通常為.jp2,MIME類型是image/jp2。( w9 d$ h$ s8 q$ c# r" m

# G1 y" V/ V0 U: }$ q+ v1 cJPEG2000的壓縮比更高,而且不會產生原先的基於離散餘弦變換的JPEG標準產生的'blocky and blurry'artifacts。JPEG2000同時支持破壞性資料壓縮和非破壞性資料壓縮。另外,JPEG2000也支持更複雜的漸進式顯示和下載。
9 z, P% D2 ]4 M/ m6 ?/ S
1 d7 z+ L" ^, [/ b& e* l3 gJPEG2000是國際標準化組織(ISO)發佈的標準,文檔代碼為ISO/IEC 15444-1:2000。雖然JPEG2000在技術上有一定的優勢,但是到目前為止(2006年),網際網路上採用JPEG2000技術製作的圖像文件數量仍然很少,並且大多數的瀏覽器仍然沒有預設支持JPEG2000圖像文件的顯示。但是,由於JPEG2000在非破壞性壓縮下仍然能有比較好的壓縮率,所以JPEG2000在圖像質量要求比較高的醫學圖像的分析和處理中已經有了一定程度的廣泛應用。
- C( ?3 i$ M0 g7 }- r! U8 U9 V( ^1 U. E% v0 C4 V
$ d0 s; J+ Y: M% |+ }0 W0 F
相關標準+ G' N6 j7 I) V9 m$ M5 @
已經發佈的JPEG2000標準包括ISO/IEC 15444-1:2000。另外,和JPEG2000相關的一些額外標準也正在制定和討論中,比如JPEG2000安全圖像傳輸(JPSEC)以及基於連接的JPEG2000圖像瀏覽(JPIP)等。  P1 x) Q0 a& u; @# K' p

7 T% \# C; P& ]: K$ k* }Several additional parts of the JPEG 2000 standard exist, some of them are not yet officially released. Amongst them are ISO/IEC 15444-2:2000, JPEG 2000 extensions, featuring for example trellis quantization, an extended file format and additional color transformations, ISO/IEC 15444-4:2000, the reference testing and ISO/IEC 15444-6:2000, the compound image file format, allowing compression of compound text/image graphics. Extensions for secure image transfer, JPSEC, and connection-based image browsing, called JPIP are currently under discussion by the ISO.' W: ?) q( d4 q' @9 p
+ S1 U4 [4 b( K! o8 n
技術探討
0 S& \6 n; o6 ?( g$ r6 ~Image:Jpeg 2000.jpg 9 H* z" Y7 D9 u$ A
Comparison of JPEG 2000 with the original JPEG format.JPEG 2000的目標不僅僅是性能要超越JPEG,而且增加和增強瞭如可縮放性和可編輯性這樣的特性。7 c' v% \' i  M: T
( b9 [, u5 u" ^) w/ I
In fact, JPEG 2000's improvement in compression performance relative to the original JPEG standard is actually rather modest and should not ordinarily be the primary consideration for evaluating the design. Moreover, very low and very high compression rates (including lossless compression) are also supported in JPEG 2000. In fact, the graceful ability of the design to handle a very large range of effective bit rates is one of the strengths of JPEG 2000. (For example, to reduce the number of bits for a picture below a certain amount, the advisable thing to do with the first JPEG standard is to reduce the resolution of the input image before encoding it — something that is ordinarily not necessary for that purpose when using JPEG 2000 because of its wavelet scalability properties.)
+ U0 m( w8 R& I, j1 E# M, G0 W4 Q3 y& C- ~) U  ^* s
JPEG 2000, as did the original JPEG 1992 standard, applies a form of transform coding to compress images. However, JPEG 2000 uses a wavelet transform, in contrast to JPEG 1992 which uses an 8x8 block-size discrete cosine transform.6 P1 {* d9 I  i% X7 L

1 u# Q$ k6 E3 V6 ~( RInitially, images have to be transformed (from the RGB color space) to the well known YCbCr color space or to the RCT space (reversible component transform) leading to three components. In lossless mode a very rough, but reversible, approximation of this color space conversion is used. The chrominance components can be, but not necessarily have to be, down-scaled in resolution; in fact, since the wavelet transformation already separates images into scales, downsampling is more effectively handled by dropping the finest wavelet scale. This step is called multiple component transformation in the JPEG 2000 language since its usage is not restricted to the RGB color model.3 J+ m/ x1 w1 d" n# b: _
8 D' `, M0 d6 N; C. Z9 g
After color transformation, the image is split into so-called tiles, rectangular regions of the image that are transformed and encoded separately. The purpose of tiles is to cope with memory limitations more easily. These tiles are then wavelet transformed to an arbitrary depth.+ l8 b9 D$ F6 h9 [+ b
0 [1 ?2 j  \0 `4 l  E" ~: Q+ \
The result is a collection of sub-bands which represent several approximation scales. A sub-band is a set of coefficients — real numbers which represent aspects of the image associated with a certain frequency range as well as a spatial area of the image. These coefficients are scalar-quantized, giving a set of integer numbers which have to be encoded bit-by-bit.
9 O4 _6 Z; N/ e& o# e
) i7 `8 I& x& ^5 lThe quantized sub-bands are split further into precincts, rectangular regions in the wavelet domain. They are typically selected in a way that the coefficients within them across the sub-bands form approximately spatial blocks in the (reconstructed) image domain, though this is not a requirement.' Z/ _9 H. L& r& f* v0 Q2 R

# [) {' Q  c' P" y" g& D, \Precincts are split further into code-blocks. Code-blocks are located in a single sub-band and have equal sizes — except those located at the edges of the image. The encoder has to encode the bits of all quantized coefficients of a code-block, starting with the most significant bits and progressing to less significant bits by a process called the EBCOT scheme. EBCOT here stands for Embedded Block Coding with Optimal Truncation. In this encoding process, each bit-plane of the codeblock gets encoded in three so called coding passes, first encoding bits (and signs) of insignificant coefficients with significant neighbors (i.e. with 1-bits in higher bit-planes), then refinement bits of significant coefficients and finally coefficients without significant neighbours. The three passes are called Significance Propagation, Magnitude Refinement and Cleanup Pass, respectively.
6 j$ v) q9 B- ]5 D/ d
7 B  F) `: ~) T6 c  _3 DThe bits selected by these coding passes then get encoded by a context-driven binary arithmetic coder, namely the binary MQ-coder. The context of a coefficient is formed by the state of its nine neighbours in the codeblock./ Q+ K6 x8 N: `4 j+ c! a

) W7 A! O7 d+ ~The result is a bit-stream that is split into packets where a packet groups selected passes of all codeblocks from a precinct into one indivisible unit. Packets are the key to quality scalability (i.e. packets containing less significant bits can be discarded to achieve lower bit-rates and higher distortion).
3 R* t; k7 d- k& c+ n' n. M5 P, O. N- k/ M( x8 x+ U# V
Packets from all sub-bands are then collected in so-called layers. The way the packets are built up from the code-block coding passes, and thus which packets a layer shall contain is not defined by the JPEG 2000 standard, but in general a codec will try to build layers in such a way that the image quality will increase monotonically with each layer, and the image distortion will shrink from layer to layer. Thus, layers define the progression by image quality within the codestream.
* A9 o' f. x! m; ?5 v
' K8 v- U, ?9 g  V, U: c0 P! IThe problem is now to find the optimal packet length for all code-blocks which minimizes the overall distortion in a way that the generated target bitrate equals the demanded bitrate. While the standard does not define a procedure as to how to perform this so-called rate-distortion optimization, the general outline is given in one of its many appendices: For each bit encoded by the EBCOT coder, the improvement in image quality, defined as mean square error, gets measured; this can be implemented by an easy table-lookup algorithm. Furthermore, the length of the resulting codestream gets measured. This forms for each codeblock a graph in the rate-distortion plane, giving image quality over bitstream length. The optimal selection for the truncation points, thus for the packet-build-up points is then given by defining critical slopes of these curves, and picking all those coding passes whose curve in the rate-distortion graph is steeper than the given critical slope. This method can be seen as a special application of the method of Lagrange multiplier which is used for optimization problems under constraints. The Lagrange multiplier, typically denoted by λ, turns out to be the critical slope, the constraint is the demanded target bitrate, and the value to optimize is the overall distortion.
( ]6 C" p$ O: A7 t! g& ?3 q- W7 K  T3 K0 a% X
Packets can be reordered almost arbitrarily in the JPEG 2000 bit-stream; this gives the encoder as well as image servers a high degree of freedom.
4 Q# ]; Y5 K" `$ Q2 K) x# F/ V
! ~3 {: O" h0 S6 p; b7 C7 VAlready encoded images can be sent over networks with arbitrary bit-rates by using a layer-progressive encoding order. On the other hand, color components can be moved back in the bit-stream; lower resolutions (corresponding to low-frequency sub-bands) could be sent first for image previewing. Finally, spatial browsing of large images is possible through appropriate tile- and/or partition selection. All these operations do not require any re-encoding but only byte-wise copy operations.
" L% [7 ]/ N& F# }! J( [* v0 d, L* b) I6 f7 w
JPEG 2000 gains up to about 20% compression performance for medium compression rates in comparison to the first JPEG standard. For lower or higher compression rates, the improvement can be somewhat greater (especially if altering the input resolution to the codec is not considered as a technique for effective use of the older JPEG standard). Good applications for JPEG 2000 are large images, images with low-contrast edges — e.g. medical images.
/ w! o7 B3 j4 X, ]) {
6 t& U/ g7 c1 _7 Q' i6 O9 G( D/ yIt has, however, notably higher computational and memory demands.
1 h" U8 |/ O+ e" o) d7 G" q9 Z9 K1 k, b1 O, Z: z
Lossless compression is achieved through the use of a special integer wavelet filter (biorthogonal 3/5 instead of Daubechies biorthogonal 7/9) and a quantization step size of 1. Clearly, in lossless mode all bitplanes have to be encoded by the EBCOT, and no bitplanes can be dropped.* O6 f* P/ N0 D; W) }+ L$ r& s8 i; r, k
8 f) E! i9 S+ u+ w, w" ?7 ?
[ 本帖最後由 masonchung 於 2007-1-20 02:42 PM 編輯 ]
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享分享 頂 踩 分享分享
2#
發表於 2008-7-22 15:16:16 | 只看該作者
不知道這個東西合不合適放在硬體裡面?目前的狀態是支援的軟體不多的樣子,在網路上瀏覽的照片還都不是JPEG2000,是軟體支援程度有差還是授權的問題呢?
3#
 樓主| 發表於 2008-7-22 16:19:52 | 只看該作者
有一些學校已經做出 jpeg2000的晶片嘞6 Z( {3 P( _; X0 d/ v
在網路上瀏覽的照片還都不是JPEG2000 主要是壓縮軟體支援不普及
您需要登錄後才可以回帖 登錄 | 申請會員

本版積分規則

首頁|手機版|Chip123 科技應用創新平台 |新契機國際商機整合股份有限公司

GMT+8, 2024-5-14 05:12 PM , Processed in 0.121015 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表