TW390097B - Image compression system with selectable compression ratio - Google Patents

Image compression system with selectable compression ratio Download PDF

Info

Publication number
TW390097B
TW390097B TW87103685A TW87103685A TW390097B TW 390097 B TW390097 B TW 390097B TW 87103685 A TW87103685 A TW 87103685A TW 87103685 A TW87103685 A TW 87103685A TW 390097 B TW390097 B TW 390097B
Authority
TW
Taiwan
Prior art keywords
image
data
size
image compression
compression
Prior art date
Application number
TW87103685A
Other languages
Chinese (zh)
Inventor
Hau-Jie Li
Ching-Bin Wang
Shr-Jie Chen
Chiau-Dung Juang
Original Assignee
Holtek Semiconductor Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Holtek Semiconductor Inc filed Critical Holtek Semiconductor Inc
Priority to TW87103685A priority Critical patent/TW390097B/en
Application granted granted Critical
Publication of TW390097B publication Critical patent/TW390097B/en

Links

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

The present invention relates to an image compression system with selectable compression ratio, which uses a method for detecting the complexity of images to adjust the quantization pitch of a quantizer in JPEG thereby achieving the objective of balancing between the image quality and adjusting the compression ratio. The system, in its final step, uses a structure of a high frequency coefficient, that is not sharp to the human eyes in discarded discrete cosine transform (DCT) coefficients, to more accurately limit the compression ratio of the image. This image compression system with selectable compression ratio can be used in a device that has a constant storage space, such as a digital camera.

Description

經濟部中央標準局肩工消費合作社印掣 " A7 -------B7_ 五、發明説明(I ) 本案為一種可選擇壓縮率的影像壓縮系統,尤指應 用於數位相機之具有固定大小儲存空間的設備系統。 影像壓縮的目的,在於減少影像中冗餘的資料量, 以於有限的記憶體内,儲存更多的影像。 而近來頗受大眾喜好的JPEG(J〇int Ph〇t(^graphic Experts Gr〇up,JpEG)影像壓縮系統 中,若以相同的量化表格(quantization table)來壓 縮不同的影像,將產生不同的壓縮比。換句話説,對畫面 較複雜的影像,壓縮比較低,壓縮過後的影像資料,將需 要較大的儲存空間。反之,對畫面較為單調的影像,壓縮 比較高,壓縮過後的影像資料量也相對的較少。 而在數位相機系統中,由於記憶禮的大小是固定 的,例如,對於可拍攝32張全彩(true c〇1〇r)照片,儲 存記憶體大小為2M bytes的數位相機來説,平均每張照 片可用的儲存空間只有62.5K bytes。 因此,對於諸如數位相機這類系統而言,每張像片 通吊有固定大小的記憶體來加以儲存,並不容許上述因影 像複雜度不同而導致壓縮後輸出的影像資料過大而不可匹 配儲存空間的情況發生。因此,不同複雜度的影像,必需 有控制其壓縮比,以保證壓縮過後的影像資料,大小適 中。除此之外,更須權衡,影像資料還原後,影像的失眞 不可過於嚴重。 習用的技術中,為了解決上述問題,通常需花費大 量的计算在處理壓縮比的控制上,且其產生的影像格式並 不完全符合JPEG的標準,而導致相容性較差的問題。 __ 2 ( d^j A4W^ ( 210X297^ ) IΟ衣------IT------ό——I--- (誇先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局負工消費合作社印聚 A7 ____B7____ 五、發明説明(〉) 例如,Filmless Digital Camera With Selective Image Compression文中所提之方法,即將影像區分為多個區塊, 以DCT為基本的架構,先進行壓縮,當重建影像畫質太 差,該區塊再以差異编碼法來壓縮,最後再將其儲存於預 先配置好之記憶空間的一數位相機系統。 又 Quantization Step Size Adjusting Circuit Using Edge Detections所提的方法,則為一個類似以檢查影像内 Edge成份的多寡來調整量化間距的大小,加以控制壓縮 比例的一系統。但其量化間距大小的調整,是以區塊為單 位,且檢測的方法也和本案不同。 再者,Image Compression System by Setting Fixed Bit Rates文中所提的方法則也是一種以一個個的區塊為單 位,檢測其影像内容變化的程度,來調整量化間距的方 法,而檢測影像内容變化的程度所採用的技巧與本案亦不 相同。 上述三種方法,雖然皆各稱其畫質佳,但在實作上 較不易,造成成本較高,價格較貴,便為其一大缺點所 在。其次,三者皆非標準的JPEG,在使用上常會有相容 性較差的問題發生。 1974年 K.R.Rao在 IEEE Trans, on Computers, Vol· 23,pp. 90_93 發表了 ’’Discrete Cosine Transform”與其它相關的文獻,証實了一般影像的相關 係數P大都於〇·95附近,而當於0.95附近時,DCT係 趨近於最佳轉換 KLT(Karhunen-Loeve Transform, KLT)的。由於DCT具有快速運算的特性,所 3 本紙張财關“^ < eNS丨ί 2丨0X297公釐)~~' I-TIJ-----—— (誇先閲讀背面之注意事項再填寫本頁) ,1Τ -Γ A7 B7 經濟部中央梂準局員工消费合作社印装 五、發明説明(令) 以近來不論JPEG,H. 261與MPEG均採用了 DCT為其壓縮 系統的一部份。 1981 年 A.K. Jain 在 IEEE Trans. Commun· Vol. COM-29, no. 12. pp 1799-1808,Dec. ’’Displacement Measurement and Its Allpication in Interframe Image Coding”一文中提及, —般影像的自相關函數可被近似成: = .....(1) 其中,^與外分別表示單一張畫面中,水平與垂直 方向衫像資料間的相關係數,m與η分別為水平與垂直方 向的距離。 若A =外=ρ,則 因此,利用(1)與(2)式,即可臆測出空間域中,某 些鄰近像素資料間大致的關連性。 本案即利用像素間相關性的差異度來判別影像内容 複ΐ度,相關性愈小的代表影像愈複雜,影像的量化間 =必需加大,而相關性愈大,代表影像愈單調,影像的量 間距則可減小;藉此,即可控制影像的壓縮比。 >職是之故,本創作鑑於習知技術之缺失,乃經悉心 試驗與研究並一本鍥而不捨之精神,終創作出本案『町遽 擇壓縮率的影像壓縮系統』。以下為本案之簡要説明。 本案的目的即在於解決數位相機系統中,控制影像 f縮後資料的大小,與儲存空間的匹配問題。更進一步的 説本案是在維持可接受的重建影像畫質下,提出一實際 (請先閱讀背面之注意事項再填寫本頁)Printed by the Central Standards Bureau of the Ministry of Economic Affairs and Consumer Cooperatives " A7 ------- B7_ V. Description of the Invention (I) This case is an image compression system with selectable compression ratio, especially for digital cameras with fixed Equipment system with large storage space. The purpose of image compression is to reduce the amount of redundant data in the image so that more images can be stored in a limited memory. Recently, in the popular JPEG (Joint Phot (^ graphic Experts Grup, JpEG) image compression system, if different images are compressed with the same quantization table, different images will be generated. Compression ratio. In other words, for more complex images, the compression is lower, and compressed image data will require larger storage space. Conversely, for more monotonous images, the compression is higher, and the compressed image data The amount is relatively small. In digital camera systems, because the size of the memory ceremony is fixed, for example, for a digital camera that can take 32 full-color (true c〇1〇r) photos, the memory size is 2M bytes. For example, the average storage space available for each photo is only 62.5K bytes. Therefore, for a system such as a digital camera, each image is stored with a fixed size of memory for storage. Different complexity causes the image data output after compression is too large to match the storage space. Therefore, images of different complexity must be It is necessary to control its compression ratio to ensure that the compressed image data is of a suitable size. In addition, it must be weighed. After the image data is restored, the image loss should not be too serious. In conventional technology, in order to solve the above problems, usually It takes a lot of calculations to control the compression ratio, and the image format it produces does not fully comply with the JPEG standard, resulting in poor compatibility. __ 2 (d ^ j A4W ^ (210X297 ^) IIO clothing ------ IT ------ ό——I --- (Please read the precautions on the back before filling in this page) Printed by the Consumers ’Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs A7 ____B7____ 5. Description of the invention (〉) For example, the method mentioned in the Filmless Digital Camera With Selective Image Compression method is to divide the image into multiple blocks. With DCT as the basic structure, compression is performed first. When the quality of the reconstructed image is too poor, the block is then Compressed by differential coding method, and finally stored in a digital camera system with pre-configured memory space. The method proposed by Quantization Step Size Adjusting Circuit Using Edge Detections, It is a system similar to adjusting the size of the quantization interval by checking the amount of Edge components in the image, and controlling the compression ratio. However, the adjustment of the quantization interval is based on blocks, and the detection method is different from this case. In addition, the method mentioned in the Image Compression System by Setting Fixed Bit Rates is also a method of detecting the degree of change in the content of the image and adjusting the quantization interval in units of blocks, and detecting the change in the content of the image. The techniques used in the degree are also different from the present case. Although each of the three methods mentioned above has good picture quality, it is not easy to implement, which results in higher costs and higher prices, which are its major drawbacks. Secondly, all three are non-standard JPEGs, which often cause poor compatibility problems in use. In 1974, KRRao published "Discrete Cosine Transform" and other related literatures in IEEE Trans, on Computers, Vol. 23, pp. 90_93, and confirmed that the correlation coefficients P of general images are mostly around 0.95, and when At around 0.95, the DCT system is approaching the best conversion KLT (Karhunen-Loeve Transform, KLT). Due to the characteristics of DCT's fast calculation, the 3 papers are "^ < eNS 丨 ί 2 丨 0X297 mm) ~~ 'I-TIJ -----—— (Please read the notes on the back before filling in this page), 1Τ -Γ A7 B7 Printed by the Consumers' Cooperative of the Central Procurement Bureau of the Ministry of Economic Affairs 5. Instructions for Invention (Order) Regardless of recent JPEG, H.261 and MPEG have adopted DCT as part of their compression system. In 1981, AK Jain mentioned in IEEE Trans. Commun · Vol. COM-29, no. 12. pp 1799-1808, Dec. "Displacement Measurement and Its Allpication in Interframe Image Coding",-Autocorrelation of general image The function can be approximated as: = ..... (1) where ^ and outer represent the correlation coefficients between the horizontal and vertical shirt image data in a single picture, and m and η are the horizontal and vertical distances, respectively. If A = outer = ρ, therefore, using equations (1) and (2), we can predict the approximate correlation between some neighboring pixel data in the spatial domain. In this case, the degree of correlation between pixel correlations is used. To determine the complexity of the image content, the smaller the correlation, the more complex the image, and the larger the quantization interval of the image, the greater the correlation, the more monotonous the image, and the smaller the image spacing; The compression ratio of the image can be controlled. For this reason, in view of the lack of known technology, this creation has been carefully tested and researched, and has persevered in the spirit, and finally created the "Compression Selection of Compression in the Case" System ". Following This case is a brief description of the case. The purpose of this case is to solve the problem of controlling the size of the f image shrinkage data and the storage space in the digital camera system. Furthermore, this case is to maintain the acceptable quality of the reconstructed image. Propose an actual (please read the notes on the back before filling this page)

•IT• IT

A7 B7 經濟部中央標準局另工消费合作社印製 五、發明説明(y ) 可調整影像壓縮比的技術,以使壓縮過後的資料量 於可接受的儲存空間範固内。 .本案為一種可選擇壓縮率的影像壓縮系統,其 含·一複雜度判別器,其輸入為一影像資料及輸出為三 化表格,並根據該影像資料進行取樣分析以決定其複 及該量化表格;-編碼器,其輸人為―影像資料並 至該複雜度朗器,以㈣其量化表格壓肋影像 輸出一影像壓縮資料;以及-資料量檢定器,係電連接 該编碼器,用以箝制該編碼器輸出之該影像壓縮資料 小(Size)不超出預定範圍。 ’大 如所述之可選擇壓縮率的影像壓縮系統,其中 雜度判別器係包♦:-取樣減法器,係於該影像資料匕 隔固疋間隔取一像素,以計算該像素的取樣絕對差異 (Sampling Absoule Difference,SAD)正負數“ 別器,係電連接至該取樣減法器,以判別該像素的取= 對差異値之正負値;一累加器,係電連接至該正負數判 器,以累加該像素的取樣絕對差異値之正値;以及一減法 器,係電連接至該正負數判別器,以累加該像素的取樣絕 對差異値之負値之絕對値;以及一量化表格決定器,係電 連接至該減法器,以由所計算出的取樣絕對差異値的結 果’來做為量化表格選定的依據,而輸出一選出的量化表 格,供所述之编碼器使用。 如所述之可選擇壓縮率的影像壓縮系統,其中該資 料量檢定器係包含:一資料大小計算器,以計算該影^壓 縮資料的大小,於計算該影像壓縮資料的大小不超過一限 本紙張尺度適用中國國家標準(CNS ) A4规格(2丨0X297公釐) (請先聞讀背面之注意事項再填寫本頁」 、-β tl 經濟部中央標準局員工消費合作社印製 A7 _ _B7__ 五、發明説明(夕) 度時,輸出該像影壓縮資料;以及一高頻係數刪除器,係 電連接至該資料大小計算器,以於該影像壓縮資料的大小 超過該限度時,刪除該影像壓縮資料的某些高頻部份,使 該影像資料的大小不超過該限度。 如所述之可選擇壓縮率的影像壓縮系統,其中該编 碼器為一標準JPEG編碼器。 上述之標準JPEG編碼器、高頻係數刪除器、資料大 小計算器、減法器、正負數判別‘器、累加器等係習用之技 術,可由熟悉該項技術者據以實施,故本案不多加贅述。 而欲待詳加説明者係為可選擇壓縮率的影像壓縮系統之架 構及原理等。 本案得藉由下列圖式及詳細説明,俾得一更深入之 了解: 第一圖:本案可選擇壓縮率的影像壓縮系統應用於 數位相機系統之較佳實施例。 第二圖:本案可選擇壓縮率的影像壓縮系統編碼器 之方塊圖。 第三圖〜第八圖:各類複雜度之MAD與SMAD之比較。 第九圖〜第十二圖:驗證結果之一。 第十三圖〜第十六圖:驗證結果之二。 以上圖式之主要構件如下: 100 :透鏡。 200 :電耦合元件感測器。 300 :相關雙倍取樣/自動增益控制器。 400 :類比至數位轉換器。 6 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐) (請先閱讀背面之注意事項再填寫本頁) 訂A7 B7 Printed by the Central Standards Bureau of the Ministry of Economic Affairs and printed by a separate consumer cooperative. V. Invention Description (y) A technology that can adjust the image compression ratio so that the amount of compressed data is within the acceptable storage space. This case is an image compression system with a selectable compression ratio, which includes a complexity discriminator, whose input is an image data and the output is a three-dimensional table, and a sampling analysis is performed according to the image data to determine its repetition and the quantification. Form;-an encoder that inputs-image data to the complexity scaler, and outputs an image compression data based on the quantized form of the ribbed image; and-a data quantity checker, which is electrically connected to the encoder, and The size of the compressed data of the image output by clamping the encoder does not exceed a predetermined range. 'The image compression system with a selectable compression ratio as described above, wherein the heterogeneity discriminator is a package:-a sampling subtracter, which takes a pixel at a fixed interval of the image data to calculate the absolute sampling of the pixel Sampling Absoule Difference (SAD) positive and negative numbers are electrically connected to the sampling subtracter to determine the value of the pixel = the difference between positive and negative 値; an accumulator is electrically connected to the positive and negative discriminator To accumulate the positive absolute difference of the sampling absolute difference of the pixel; and a subtractor, which is electrically connected to the positive and negative discriminator to add the absolute absolute difference of the sampling absolute difference of the pixel to the absolute value of the negative; and a quantization table determines A quantizer that is electrically connected to the subtractor and uses the result of the calculated absolute difference 取样 as a basis for selecting a quantization table, and outputs a selected quantization table for use by the encoder. The image compression system with selectable compression ratio, wherein the data amount detector includes: a data size calculator to calculate the size of the image compression data, and to calculate the image compression The size of the material does not exceed a limit. This paper size is applicable to the Chinese National Standard (CNS) A4 specification (2 丨 0X297 mm) (please read the precautions on the back before filling in this page ", -β tl Staff of the Central Standards Bureau The consumer cooperative prints A7 _ _B7__ V. When the invention is explained, the image compression data is output; and a high-frequency coefficient deleter is electrically connected to the data size calculator for the size of the image compression data When the limit is exceeded, some high-frequency portions of the image compression data are deleted, so that the size of the image data does not exceed the limit. As described in the image compression system with a selectable compression rate, the encoder is a standard JPEG encoder. The above-mentioned standard JPEG encoder, high-frequency coefficient deleter, data size calculator, subtractor, positive-negative number discriminator, accumulator and other conventional techniques can be implemented by those familiar with the technology, so This case does not go into details. Those who want to elaborate are the architecture and principle of an image compression system with a selectable compression rate. This case can be illustrated by the following diagrams and detailed descriptions. Get a deeper understanding: First picture: The preferred embodiment of the image compression system with selectable compression rate applied to the digital camera system. Second picture: The block diagram of the image compression system encoder with selectable compression rate in this case. The third graph to the eighth graph: Comparison of MAD and SMAD of various complexity. The ninth graph to the twelfth graph: one of the verification results. The thirteenth graph to the sixteenth graph: the second verification result. The above graph The main components of the formula are as follows: 100: lens. 200: electrical coupling element sensor. 300: correlated double sampling / automatic gain controller. 400: analog to digital converter. 6 This paper standard applies to China National Standard (CNS) A4 specification (210X297 mm) (Please read the precautions on the back before filling this page) Order

經濟部中央標準局負工消费合作社印装 五、發明説明(厶) 500 :電轉合元件數位訊號處理器。 600 : JPEG编碼器。 610 :標準JPEG編碼器。 620 :複雜度判別器。 630 :資料量檢定器。 631 :資料大小計算器。 70 0:記憶體。 800 :電耦合元件時脈驅動“片。 本案主要係為一配合JPEG系統檢測輸入影像複雜度 的系統,該系統可控制JPEG壓縮编碼後輸出資料的大 小,以利數位相機這種儲存空間較為固定的系統儲存影像 資料。 請參見第一圖。第一圖係為一數位相機系統的基本 方塊圖。其中,透鏡100與電荷耦合元件(Charged Coupled Device, CCD)200係用以將光影像訊號轉換成 電荷訊.號_。相關雙倍取樣(Correlate Double sampling, CDS)電路與自動增益控制(Automatic Gain Control ,AGC)電路300則分別用以改善CCD輸出 的低頻雜訊與調整訊號位準。而類比數位轉換器4〇〇即使 自動增益控制電路300的輸出,轉換為方便於後續處理的 數位訊號,以輸入接下來的電荷耦合元件數位訊號處理器 (Charged Coupled Device Digital Signal Processor , CCDSP) 500 0 在CCDSP500中,則繼續將輸入訊號進行白平衡 (white balance),色彩校正(color correction), 7 (誇先閱讀背面之注意事項再填寫本頁) l 、-β 丁 本紙張尺度適用中國國家橾準(CNS ) Α4規格(210X297公釐) A7 ____B7_ 五、發明説明(^ ) 加瑪校正(gamma correction)等處理,以獲得一可準 確利用的色彩訊號;最後,置於CCDSP500之後的JPEG编 碼器600,則是用以使前述影像訊號壓縮後存放於記憶體 700的一裝置,稍後有詳細的説明。電荷_合元件時脈驅 動晶片800則用以提供系統時脈。 更進一步地説明,在第二圖中的jPEG编碼器6〇〇 内’包含了:標準的JPEG編碼器610、複雜度判別器620與 資料量檢定器630等三大部份。^其中標準的jpeg編碼器 610内的DCT611係將輸入的影像資料進行DCT運算,用以 將資料量壓往低頻,以便於接下來的量化器612進行量化 的動作,讓轉換域中保留較多資訊的低頻係數配予較多的 位元编碼。而熵编碼器(entropy encoder)613則將前 述之DCT與量化過後的資料再處理,也就是重新配予每一 資料新的代表符號,即出現機率較大的給予較短的碼,反 之’出現機率較少的則給予較長的碼,用以實際降低整體 的資料量,減少整個编碼後輸出的資料大小。 第二圖中的複雜度判別器62〇係用以檢測影像複雜 度,可根據不同複雜度的影像,提供量化器不同的量化表 格,控制影像壓縮比例。 經濟部中央棣準局負工消費合作社印製 (請先閲讀背面之注意事項再填寫本頁) 在先前的討論中,可知由像素與像素間相關性的差 異度可判別影像複雜度。但在實際運作上,計算相關係數 是一個頗為複雜的工作。為了減化運算,可利用計算平均 絕對差異(Mean Absolute Diiference,MAD)的方法 來判別影像的複雜度,其表示式如下: 8Printed by the Consumers' Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs. 5. Description of the Invention (厶) 500: Digital signal processor for electrical switching components. 600: JPEG encoder. 610: Standard JPEG encoder. 620: complexity discriminator. 630: Data quantity checker. 631: Data size calculator. 70 0: Memory. 800: Electrically-coupled component clock-driven "chip. This case is mainly a system that detects the complexity of the input image in conjunction with the JPEG system. This system can control the size of the output data after JPEG compression encoding to facilitate the storage space of digital cameras. The fixed system stores the image data. Please refer to the first figure. The first figure is a basic block diagram of a digital camera system. Among them, the lens 100 and the Charge Coupled Device (CCD) 200 are used to convert the optical image signal. Converted into a charge signal. Correlate Double sampling (CDS) circuit and Automatic Gain Control (AGC) circuit 300 are used to improve the low frequency noise output from the CCD and adjust the signal level. The analog digital converter 400, even if the output of the automatic gain control circuit 300, is converted into a digital signal that is convenient for subsequent processing, so as to input the next Charged Coupled Device Digital Signal Processor (CCDSP) 500 0 In CCDSP500, the input signal will continue to be white balanced and color corrected (col or correction), 7 (please read the precautions on the back before filling in this page) l, -β Dimensions of this paper are applicable to China National Standards (CNS) A4 specifications (210X297 mm) A7 ____B7_ V. Description of the invention (^) Gamma correction and other processing to obtain a color signal that can be accurately used. Finally, the JPEG encoder 600 placed after the CCDSP 500 is used to compress the image signal and store it in the memory 700. The device will be described in detail later. The charge_synchronous device clock drive chip 800 is used to provide the system clock. Further explanation, the jPEG encoder 600 in the second figure includes: standard JPEG encoder 610, complexity discriminator 620, and data volume checker 630. ^ Among them, DCT611 in the standard jpeg encoder 610 performs DCT calculation on the input image data to compress the data volume. To the low frequency so that the next quantizer 612 performs the quantization operation, so that the low frequency coefficients that retain more information in the conversion domain are assigned more bit coding. The entropy encoder 613 converts the aforementioned D CT and quantized data are reprocessed, that is, a new representative symbol is assigned to each data, that is, a shorter code is given a higher probability, and a longer code is given if there is a lower probability. Actually reduce the overall data volume and reduce the size of the output data after the entire encoding. The complexity discriminator 62 in the second figure is used to detect the complexity of the image. It can provide different quantizers of the quantizer to control the compression ratio of the image according to the images of different complexity. Printed by the Consumer Affairs Cooperative of the Central Bureau of Standards, Ministry of Economic Affairs (please read the notes on the back before filling out this page). In the previous discussion, we can know that the complexity of the image can be judged by the difference between the correlation between the pixels. However, in actual operation, calculating the correlation coefficient is a rather complicated task. In order to reduce the computation, the method of calculating the Mean Absolute Diiference (MAD) can be used to determine the complexity of the image. The expression is as follows: 8

五、發明説明(?) A7 B7 經濟部中央標準局貝工消費合作社印裝 Μ N 裂獅-你Η則你少)_F糾少嫩•伽_㈣㈣母少+叻 .......(3 ) 其中’ Μ、N分別表示影像的寬與高,ργ(χ,γ)則表 π影像的亮度訊號Y在位置x,y的數値。MAD的値愈大,表 示像素間的差異性愈大,影像内容愈複雜。 由第二圖到第八圖顯示出實驗的結果,可知由實際 MAD的計算即可將影像的複雜度’區分為第三圖到第八囷的 六類。這些影像的大小均為640x480。 更進一步地説明,因為一般影像像素間的相關性雖 有所差異,但其相關性仍然是極高的,如前述广=〇.95附 近,因此,若對每一個像素均做j}AD的結果,雖可得較精 確的判斷,但運算量也相對提高。如果為了要減少計算 量,加快執行速度,則可以下式(4)配合空間取樣,並假 設,只在水平方向進行MAD運算,稱為取樣平均絕 對差異 SMAD(Samplin.g Mean Absoule Difference, SMAD)如下式: SMAD = + {Sx'i),b + (^';,)) ~FAa + ^'0 'lb + ^j)) +\FY(a + (Sx ·i),b + (Sy ·;)) -FY(a + (Sx ·〇 + lb + (Sy ·y))| ..(4) 其中,a、b分別表示開始取樣點的水平和垂直位移 値,數値一般約可介於2到10之間° Sx、Sy分別表示水平 和垂直方向的取樣間隔,其數値一般約介於2到16之間。 而 m=integer〔(M-a-c)/Sx〕 , n=integer[(N-b-V. Description of the invention (?) A7 B7 Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs, MN Nishi-Lion-you can be less you) _F Qiao Shao Nen • Jia_Mom Shao + Lat ....... (3) where 'M and N represent the width and height of the image, respectively, and ργ (χ, γ) represents the number of the brightness signal Y of the π image at the positions x and y. The larger the MAD, the greater the difference between pixels and the more complex the image content. From the second graph to the eighth graph, the results of the experiment are shown. It can be known that the complexity of the image can be divided into six types from the third graph to the eighth by the calculation of the actual MAD. These images are all 640x480. To further explain, although the correlation between general image pixels is different, the correlation is still very high, as the aforementioned wide = 0.95, so if you do j} AD for each pixel As a result, although a more accurate judgment can be obtained, the amount of calculation is relatively increased. In order to reduce the amount of calculation and speed up the execution, you can use the following formula (4) with spatial sampling, and assume that MAD operations are performed only in the horizontal direction, which is called Samplin.g Mean Absoule Difference (SMAD) The following formula: SMAD = + {Sx'i), b + (^ ';,)) ~ FAa + ^' 0 'lb + ^ j)) + \ FY (a + (Sx · i), b + (Sy ·;)) -FY (a + (Sx · 〇 + lb + (Sy · y)) | .. (4) where a and b represent the horizontal and vertical displacements of the starting sampling point, respectively. Between 2 and 10 ° Sx and Sy represent the sampling interval in the horizontal and vertical directions, respectively, and their numbers are generally between 2 and 16. And m = integer 〔(Mac) / Sx], n = integer [ (Nb-

MxNx4i n- 先 閱 背 之 注MxNx4i n-

II

I 訂 r% 本紙張尺度適用中國國家樣準(CNS ) A4規格(210X297公釐) 經濟部中央標準局貝工消費合作社印装 A7 B7 五、發明説明(^ ) (Ο/Sy〕’ Μ、N為影像的寬與高,c、d分別表示結束取樣 點,水平和垂直位移値,數値一般介於2到10之間。運算 符號integer〔〕表示無條件捨去小數,只取整數。 而第三圖到第八圖也顯示,當Sx=Sy = 9,a = 6, b = 3 ’ c = 4 ’ d = 9時,也就是水平位置從第6個像素,垂直 位置從第3個像素開始,水平與垂直每隔9個像素取出1 •點’至水平第636像素,垂直第471個像素為止,做SMAD 運算與MAD運算後,二者比較的‘結果。由第三圖至第八圖 的實驗結果可得知,31^1)與醚1)獲得判別一般影像之複雜 度的準確性非常接近,但SMAD卻有大量減少計算量的優 點0 再者,為了更加減化實際運作的過程,可將上述 SMAD的計算修改為取樣絕對差異SAD(Sampling Absoule Difference,SAD),其運算如下式(5) SAD = Σ Σ (kr + (Sx · i),b + (Sy.;)) -FY(a + (Sx + (Sy · j))\I order r% This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210X297 mm) Printed on the A7 B7 by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs 5. Description of the invention (^) (〇 / Sy) 'Μ, N is the width and height of the image, c and d respectively indicate the end sampling point, the horizontal and vertical displacement 値, the number 値 is generally between 2 and 10. The operation symbol integer [] means that the decimal is rounded off unconditionally, and only integers are taken. The third to eighth pictures also show that when Sx = Sy = 9, a = 6, b = 3 'c = 4' d = 9, that is, the horizontal position is from the 6th pixel, and the vertical position is from the 3rd From the beginning of the pixel, take out 1 every 9 pixels horizontally and vertically. • Dots' to the 636th pixel horizontally and to the 471th pixel vertical. After doing SMAD and MAD operations, compare the two results. From the third figure to the first The experimental results of Figure 8 show that the accuracy of 31 ^ 1) and ether 1) for determining the complexity of general images is very close, but SMAD has the advantage of greatly reducing the amount of calculations. 0 Furthermore, in order to reduce the actual operation more Process, the above calculation of SMAD can be modified to sample absolute difference SAD (Sampling Absoule Difference (SAD), whose operation is as follows: (5) SAD = Σ Σ (kr + (Sx · i), b + (Sy .;)) -FY (a + (Sx + (Sy · j)) \

/-I ;=I +\FY{a + (Sx ·i),b + (Sy · j)) - Fr{a + (Sx -/) + 1,6 + (Sy y))|) =ΣΣ + + (Sy ·;)) -FY(a + (Sx i) - \,b + (Sy · j)) /«I y=i +Fr(a + (Sx i),b + (Sy · j)) -Fr(a + (Sx -/) + 1,6 + (Sy · j)))^ ~{FY(a + (Sx ·i),b + (Sy · j)) -FY{a + (Sx ·〇 - \,b + (Sy · j)) +FY(a + (Sx · i),b + (Sy · j)) -FY{a + {Sx i) + \,b + (Sy · j))}negative ( 5 ) 10 本紙張尺度適用中國國家標率(CNS)八4縣(2丨0X297公楚) --:---:------ 一 (請先閲讀背面之注意事項再填寫本頁)/ -I; = I + \ FY {a + (Sx · i), b + (Sy · j))-Fr {a + (Sx-/) + 1,6 + (Sy y)) |) = ΣΣ + + (Sy ·;)) -FY (a + (Sx i)-\, b + (Sy · j)) / «I y = i + Fr (a + (Sx i), b + (Sy · j )) -Fr (a + (Sx-/) + 1,6 + (Sy · j))) ^ ~ (FY (a + (Sx · i), b + (Sy · j)) -FY (a + (Sx · 〇- \, b + (Sy · j)) + FY (a + (Sx · i), b + (Sy · j)) -FY (a + (Sx i) + \, b + (Sy · J))} negative (5) 10 This paper scale is applicable to China National Standards (CNS) of 8 counties (2 丨 0X297).-: ---: ------ 1 (Please read the back first (Notes for filling in this page)

、1T, 1T

C 經濟部中央樣準局員工消費合作社印裝 A7 ----------B7 _ 五、發明説明([ο ) 由於(4)式中的^^為一常數,所以在(5)式將之 忽略,以減少除法的運算。同時,也將(4)式中 ΣΣ|. · .|的絕對値運算等效為(5)式中的正數部份 ΣΣ{..·}減去負數部份ΖΣ{...}„_„,以減化絕對値的運 算過程,其它的符號定義同(4)式。 由此,於第二圖的取樣減法器621,即在執行(5)式 中的被取樣像素和其相鄰像素的相減動作,並將結果送入 622的正負數判別器,正數的部份由累加器623累加,再 由減法器624減去負數的部份,以等效絕對値運算,得到 相等於(5)式的結果。同時取樣減法器中的取樣間隔大 小,可由欲減化的計算量大小與判別的準確度來權衡;取 樣間隔愈大,判別的準確度愈低,但計算量愈少;反之, 取樣間隔愈小,判別的準確度愈高,但計算量愈高。而 (5)式中a,b,c,d値是為了避免開始與結束的取樣點在影 像的邊緣,因為在一般影像邊緣部份的資訊較不重要,而 量化表格決定器625則包含有一些預先決定好為配合不同 影像複雜度的量化表格,這些表格是被依據以取樣減法器 621,累加器623與減法器624計算SAD的結果,來選擇出 供量化器612使用,而這些量化表格中的量化間距,必須 事先針對各種複雜度的影像,權衡壓縮比,與重建影像畫 質來加以考量製定。 此外,第二圖中的資料量檢定器630係用以確保壓縮 比控制在指定的範圍之内,其包含一資料大小計算器631 11 本紙張尺度適用中國國家標準(CNS ) A4規格(210X 297公釐) —;---τ----------訂.------'ηΊ 先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局貝工消費合作社印製 Α7 Β7 五、發明説明((/ ) 及一高頻係數刪除器632。資料大小計算器631係用以計 算摘編碼器編碼後的資料量,是否超出預定儲存空間的大 小,若低於預疋大小,則將資料直接存入記憶體7 〇 〇,否 則,則由高頻係數刪除器632將對人眼較不敏銳的某些高 頻非零係數直接删除,使熵編碼器613重新壓縮資料,2 到壓縮後的資料量大小可存放在預定的儲存空間為止。 第九圖至第十六囷再進一步以圖例證明SAD的可行 I1 生。其中,第九圏為原始影像,影像大小為,第 十一圖為其3D的亮度訊號的相對分佈圖,而第十圖的左 下方的小圖即經(5)式中,a = 6,b = 3,c = 4,d = 9,C. Printed by the Consumer Cooperative of the Central Bureau of Probability of the Ministry of Economic Affairs A7 ---------- B7 _ V. Description of the invention ([ο) Since ^^ in (4) is a constant, ) Is ignored to reduce the division operation. At the same time, the absolute 値 operation of ΣΣ |. ·. | In (4) is also equivalent to the positive part ΣΣ {.. ·} in (5) minus the negative part ΣΣ {...} „_ „, In order to reduce the absolute 値 calculation process, the other symbols are defined as in (4). Therefore, the sample subtractor 621 in the second figure performs the subtraction operation of the sampled pixel and its neighboring pixels in formula (5), and sends the result to the positive and negative number discriminator of 622. The parts are accumulated by the accumulator 623, and the negative part is subtracted by the subtractor 624. The equivalent absolute unitary operation is used to obtain a result equivalent to the expression (5). The size of the sampling interval in the simultaneous sampling subtracter can be weighed by the amount of calculation to be reduced and the accuracy of the discrimination; the larger the sampling interval, the lower the accuracy of the discrimination, but the smaller the amount of calculation; otherwise, the smaller the sampling interval , The higher the accuracy of the discrimination, but the higher the amount of calculation. In formula (5), a, b, c, and d 値 are to avoid the start and end sampling points on the edge of the image, because the information in the edge part of the general image is less important, and the quantization table determiner 625 contains Some quantization tables determined in advance to match different image complexity are based on the results of the SAD calculation by the sample subtracter 621, the accumulator 623, and the subtractor 624, and these quantization tables are selected for use by the quantizer 612. The quantization distance in the image must be determined in advance for the images of various complexity, weighing the compression ratio, and the quality of the reconstructed image. In addition, the data quantity checker 630 in the second figure is used to ensure that the compression ratio is controlled within a specified range, and it includes a data size calculator 631 11 This paper size applies to the Chinese National Standard (CNS) A4 specification (210X 297 Mm) —; --- τ ---------- Order .------ 'ηΊ Read the notes on the back before filling out this page) Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs System A7 B7 V. Description of the invention (/) and a high-frequency coefficient deleter 632. The data size calculator 631 is used to calculate whether the amount of data encoded by the encoder exceeds the size of the predetermined storage space.疋 size, the data is directly stored in the memory 700, otherwise, the high-frequency coefficient deleter 632 directly deletes some high-frequency non-zero coefficients that are less sensitive to the human eye, causing the entropy encoder 613 to recompress Data, 2 until the size of the compressed data can be stored in the predetermined storage space. The ninth to sixteenth images further illustrate the feasible I1 generation of SAD. Among them, the ninth image is the original image and the image size is , The eleventh figure is its 3D brightness signal Relative distribution diagram, and the small diagram at the bottom left of the tenth diagram is the formula (5), where a = 6, b = 3, c = 4, and d = 9,

Sx = 9 ’ sy = 9所取樣出的囷形,右方為該小圖放大的結 果,仍然和原第九圖有某些程度的接近。同時,第十二圖 乃為第十圖的3D亮度訊號的分佈圖,顯然,其仍然和第 十一圖的樣式接近。而第十三圖到第十六圖亦有類似的結 果’其取樣後的圖形如第十四圖所示,取樣的亮度訊號如 第十π圖所示,仍與原第十三圖和第十五圖類似。因此, 為了加快處理速度,以取樣的方法來減化處理的步驟是可 行的。 同時,與過去的方法相較,本案的架構完全符合目 則最受歡迎的baseline JPEG標準,且計算量也大為減 少,故壓縮處理的時間也將相對減低。而此處理時間的縮 短,對於利用數位相機在快速連續影像的拍攝,也是大有 助益的。 本案除了能應用於數位相機之外,也可利於其它儲 存影像的設備,而取樣間隔的大小亦可依需要而改變,當 _— ___ 12 本紙曝(210χ29·ϋ)Sx = 9 ′ sy = 9 The shape of the sampan sampled on the right is the enlarged result of the small image, which is still close to the original ninth image to some extent. At the same time, the twelfth picture is the distribution map of the 3D brightness signal of the tenth picture. Obviously, it is still close to the style of the eleventh picture. The thirteenth to sixteenth graphs also have similar results. 'The sampled graphs are shown in the fourteenth graph, and the sampled luminance signal is shown in the tenth π graph. Fifteen figures are similar. Therefore, in order to speed up the processing speed, it is feasible to reduce the processing steps by sampling. At the same time, compared with the previous methods, the architecture of this case fully complies with the most popular baseline JPEG standard, and the amount of calculation is greatly reduced, so the compression processing time will be relatively reduced. This reduction in processing time is also very helpful for the use of digital cameras to shoot fast and continuous images. In addition to being applicable to digital cameras, this case can also be beneficial to other equipment that stores images, and the size of the sampling interval can be changed as needed. When _— ___ 12 paper exposures (210χ29 · ϋ)

A7 B7 五、發明説明(f>) 然,也可於水平及垂直方向同時做複雜度的檢測,以提高 判斷的準確度。 本案得由熟悉本技藝之人士任施匠思而為諸般修 飾,然皆不脱如附申請專利範圍所欲保護者。 (請先閱讀背面之注意事項再填寫本頁} 經濟部中央標準局貝工消費合作社印製 13 本紙張尺度適用中國國家標準(CNS ) A4規格(2丨Ο X 297公釐)A7 B7 V. Description of the invention (f >) Of course, it is also possible to perform complexity detection in both horizontal and vertical directions to improve the accuracy of judgment. This case may be modified by anyone who is familiar with the art, but it is not as bad as the protection of the patent scope attached. (Please read the precautions on the back before filling out this page} Printed by Shellfish Consumer Cooperative, Central Bureau of Standards, Ministry of Economic Affairs 13 This paper size applies to Chinese National Standard (CNS) A4 (2 丨 〇 X 297 mm)

Claims (1)

A8 B8 CS D8 經濟部中央橾準局負工消费合作社印裝 六、申請專利範園 1·一種可選擇壓縮率的影像壓縮系統,其包含: 一毯ϋΑ判別器,其輸入一影像資料及輸出一量化表 格,並根據該影像资料進行取樣分析以決定其複雜度及該 量化表格; —編碼器’輸入為該影像資料並電連接至該複雜度判 剋莽,以根據量化表格壓縮該影像資料而輸出一影像壓縮 資料;以及, ~ — —資料量檢定器,係電連接至該编瑪器,用以箝制該 控一碼器輸出之該£彡像壓縮資料的大小(Size),使之不超 過一預定範圍。 2.如申請專利範園第1項所述之可選擇壓縮率的影像壓 縮系統,其中該複雜度判乳JI係包含: 一卞樣減法器,係於該穸像資料中水平與垂直方向分 別每隔Sx與Sy個像素取一像素,以計算該像素的取樣絕 對差異値(SAD); —正負數判別器,係電連接至該取樣減法器,以判別 該像素鈞取樣絕對差異値之正負値; 一累加器,係電連接至該正負數判別器,以累加該像 素的取樣絕對差異値之正値;以及 ' ~減法器,係電連接至該正負數判別器,以累加該像 素的取樣絕對差異値之負値之絕對値;以及 、 一量化表格決定器,係電連接至該減法器,以由所計 算出的取樣絕對差異値的結果,來做為¥花表格選定的依 據,而輸出一選出的量化表格,供所述之編碼器使用。 本紙張尺度適用中國國家榡丰(CNS > M規格(210X297公釐) (請先閲讀背面之注^一^項再填寫本頁) ;裝. 訂 ABCD 六、申請專利範圍 3·如申請專利範圍第2項所述之可選擇壓縮率的影像壓 縮系統,其中,水平與垂直的取樣間隔Sx與Sy介於2至16 之間。 一 . 4·如申請專利範圍第1項所述之可選擇壓縮率的影像壓 縮系統,其中該資料量檢定器係包含: 一資料大小計算器,以計篡該影傻壓縮資斜的女小, 於計算該影像壓縮資料的大小不超過一限度時,輸出該影 像壓縮資蚪;以及 丨 一高頻係數刪除器,係電連接至該資料大小計算器, 以於該影像壓縮資料的大小超過該限度時,刪除該影像壓 縮資料'的高頻部份,使該影像資料的大小不超過該限彦。 5·如申請專利範圍第1項所述之可選擇壓縮率的影像壓 縮系統,其中該編碼器為一標準JPEG編碼器。 (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局貝工消費合作社印裝 15 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公釐)A8 B8 CS D8 Printing by the Central Consumers' Bureau of the Ministry of Economic Affairs, Consumer Cooperatives 6. Application for a patent range 1. An image compression system with a selectable compression ratio, which includes: a blanket discriminator, which inputs an image data and outputs A quantization table, and sampling analysis based on the image data to determine its complexity and the quantization table;-the encoder 'input is the image data and is electrically connected to the complexity judgment to compress the image data according to the quantization table And output an image compression data; and, a data quantity detector, which is electrically connected to the encoder, for clamping the size of the compressed image data output by the encoder, so that Not more than a predetermined range. 2. The image compression system with a selectable compression ratio as described in item 1 of the patent application park, wherein the complexity determination JI system includes: a sample subtracter, which is respectively horizontal and vertical in the image data Take one pixel every Sx and Sy pixels to calculate the absolute difference 取样 (SAD) of the pixel; — a positive and negative discriminator, which is electrically connected to the sampling subtracter to determine the positive and negative of the absolute difference 取样 of the pixel.値; an accumulator, which is electrically connected to the positive and negative number discriminator, to accumulate the absolute difference between the sampling absolute value of the pixel; and '~ a subtractor, which is electrically connected to the positive and negative discriminator, to accumulate the pixel's The absolute difference between the absolute difference of the samples and the absolute value of the absolute difference; and, a quantization table determiner is electrically connected to the subtractor, and the result of the calculated absolute difference of the samples is used as the basis for the ¥ flower table selection. A selected quantization table is output for use by the encoder. This paper size applies to China National Fengfeng (CNS > M size (210X297mm) (please read the note on the back ^ a ^ item before filling out this page); Pack. Order ABCD VI. Patent Application Scope 3. If applying for a patent An image compression system with a selectable compression ratio as described in the second item of the scope, wherein the horizontal and vertical sampling intervals Sx and Sy are between 2 and 16. One. 4. The possible application as described in the first item of the patent application scope An image compression system that selects a compression ratio, wherein the data volume detector includes: a data size calculator to calculate the female student who compresses the shadow silly compression data. When calculating that the size of the image compression data does not exceed a limit, Output the image compression data; and a high frequency coefficient deleter, which is electrically connected to the data size calculator to delete the high frequency portion of the image compression data when the size of the image compression data exceeds the limit So that the size of the image data does not exceed the limit. 5. The image compression system with a selectable compression ratio as described in item 1 of the scope of patent application, where the encoder is a standard JPEG encoder. (Please read first Note on the back, please fill out this page again)) Printed by the Shell Standard Consumer Cooperative of the Central Bureau of Standards of the Ministry of Economic Affairs 15 The paper size applies to the Chinese National Standard (CNS) A4 (210X297 mm)
TW87103685A 1998-03-12 1998-03-12 Image compression system with selectable compression ratio TW390097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW87103685A TW390097B (en) 1998-03-12 1998-03-12 Image compression system with selectable compression ratio

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW87103685A TW390097B (en) 1998-03-12 1998-03-12 Image compression system with selectable compression ratio

Publications (1)

Publication Number Publication Date
TW390097B true TW390097B (en) 2000-05-11

Family

ID=21629674

Family Applications (1)

Application Number Title Priority Date Filing Date
TW87103685A TW390097B (en) 1998-03-12 1998-03-12 Image compression system with selectable compression ratio

Country Status (1)

Country Link
TW (1) TW390097B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856149B2 (en) 2002-07-29 2010-12-21 Qualcomm Incorporated Digital image encoding

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856149B2 (en) 2002-07-29 2010-12-21 Qualcomm Incorporated Digital image encoding
US8194987B2 (en) 2002-07-29 2012-06-05 Qualcomm Incorporated Digital image encoding

Similar Documents

Publication Publication Date Title
US8804832B2 (en) Image processing apparatus, image processing method, and program
US8374444B2 (en) Method and apparatus for providing higher resolution images in an embedded device
EP2161929B1 (en) Image processing device, image processing method, and program
CN105282548B (en) Ram ratio selects
JP4612845B2 (en) Image processing apparatus and method
CN101990095B (en) Method and apparatus for generating compressed file, camera module associated therewith, and terminal including the same
TW390097B (en) Image compression system with selectable compression ratio
CN113409203A (en) Image blurring degree determining method, data set constructing method and deblurring method
JP4407055B2 (en) Electronic camera
CN115278189A (en) Image tone mapping method and apparatus, computer readable medium and electronic device
US8571334B2 (en) Image compression device, image compression method, and image compression program
CN108200429A (en) A kind of Bayer method for compressing image and device
WO2022136065A1 (en) Compression of temporal data by using geometry-based point cloud compression
CN113409209A (en) Image deblurring method and device, electronic equipment and storage medium
JPH1023420A (en) Method and device for detecting movement
CN110740326A (en) Image coding method and device
JP2020123864A (en) Image encoder
KR102224321B1 (en) Coding Method and Device for Depth Video Plane Modeling
TW201007620A (en) Image data compressing system and method thereof
JP4269464B2 (en) Image recording apparatus and image recording method
KR101311143B1 (en) Encoding device and method for high speed processing image
CN116168068A (en) Image processing method, device, electronic equipment and storage medium
JP6280402B2 (en) Image recording apparatus, image recording method, program, and storage medium
KR20070070626A (en) Imaging device and image correcting method
JPH07212757A (en) Picture compression coder

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MK4A Expiration of patent term of an invention patent