基于FPGA的JPEG壓縮編碼器的設(shè)計(jì)與實(shí)現(xiàn)
本文關(guān)鍵詞: 圖像壓縮 FPGA JPEG 出處:《中北大學(xué)》2017年碩士論文 論文類型:學(xué)位論文
【摘要】:隨著數(shù)碼相機(jī)等電子產(chǎn)品滲透在人類生活的方方面面,以及圖像技術(shù)在航天、通訊、生物醫(yī)學(xué)等領(lǐng)域的不斷應(yīng)用,這些廣大的需求刺激著圖像壓縮技術(shù)的發(fā)展。從JPEG壓縮到JPEG2000,再到JPEG XR,科研工作者對(duì)圖像壓縮的研究從未停止腳步。雖然JPEG2000和JPEG XR在某些性能方面優(yōu)于JPEG壓縮技術(shù),但事實(shí)上,JPEG壓縮仍然是事實(shí)上的主流技術(shù)。同時(shí),鑒于FPGA的快速發(fā)展與廣泛應(yīng)用,它豐富的資源優(yōu)勢(shì)及它強(qiáng)大的并行優(yōu)勢(shì)越來越受到人們的青睞,因此,在很多對(duì)速度和實(shí)時(shí)性要求較高的應(yīng)用中,科研人員更趨向用FPGA來實(shí)現(xiàn)圖像壓縮。鑒于JPEG壓縮在各領(lǐng)域的應(yīng)用多是灰度圖像,因此本文實(shí)現(xiàn)的JPEG壓縮器是針對(duì)灰度圖像進(jìn)行設(shè)計(jì)的。本文首先介紹了圖像壓縮的研究背景與意義以及目前JPEG壓縮的發(fā)展現(xiàn)狀,然后給出了JPEG編碼器在FPGA中實(shí)現(xiàn)的設(shè)計(jì)方案,并對(duì)本設(shè)計(jì)采用的JPEG壓縮基本系統(tǒng)的流程進(jìn)行了詳盡的介紹。其次,又針對(duì)JPEG壓縮中重要的算法DCT變換和量化給出了新的實(shí)現(xiàn)方式,并用MATLAB對(duì)其做了仿真驗(yàn)證。接著按模塊化的思想一一介紹了各個(gè)模塊在FPGA中的設(shè)計(jì)實(shí)現(xiàn),最后給出了各模塊的測(cè)試驗(yàn)證。本設(shè)計(jì)采用Altera公司Cyclone III系列的芯片,在QuartusII 13.0的開發(fā)環(huán)境下完成設(shè)計(jì)。對(duì)二維DCT變換模塊,采用了類陳氏算法,充分利用FPGA的并行性和乘法器資源,實(shí)現(xiàn)了快速、穩(wěn)定的DCT變換。量化模塊創(chuàng)新的實(shí)現(xiàn)了可在FPGA中進(jìn)行9級(jí)不同量化表的選擇,以查找表的方式實(shí)現(xiàn)了DC/AC系數(shù)的熵編碼。并先后對(duì)各個(gè)模塊進(jìn)行了功能測(cè)試,將圖像源數(shù)據(jù)做成MIF文件進(jìn)行測(cè)試,并用第三方軟件解碼,最后證明能夠顯示完整的圖片。測(cè)試結(jié)果表明,該JPEG編碼器實(shí)現(xiàn)了預(yù)期的功能,達(dá)到設(shè)計(jì)目標(biāo)。
[Abstract]:With the penetration of digital cameras and other electronic products in all aspects of human life, as well as image technology in aerospace, communications, biomedical and other fields of continuous application. These vast demands stimulate the development of image compression technology, from JPEG compression to JPEG2000 to JPEG XR. Researchers have never stopped studying image compression. Although JPEG2000 and JPEG XR are better than JPEG compression in some aspects, in fact. JPEG compression is still the mainstream technology in fact. At the same time, due to the rapid development and wide application of FPGA, its rich resource advantages and its powerful parallel advantages are more and more popular. In many applications which require high speed and real-time, researchers tend to use FPGA to achieve image compression. In view of the application of JPEG compression in various fields, most of them are gray images. Therefore, the JPEG compressor realized in this paper is designed for grayscale image. Firstly, this paper introduces the research background and significance of image compression and the current development of JPEG compression. Then the design scheme of JPEG encoder in FPGA is given, and the flow of the basic JPEG compression system used in this design is introduced in detail. Secondly. A new implementation method of DCT transform and quantization, which is an important algorithm in JPEG compression, is also presented. Then the design and implementation of each module in FPGA are introduced one by one according to the idea of modularization. Finally, the test verification of each module is given. This design adopts the Cyclone III series chip of Altera company. In the development environment of QuartusII 13.0, the design is completed. For the two-dimensional DCT transform module, Chen's algorithm is used to make full use of the parallelism of FPGA and multiplier resources. A fast and stable DCT transformation is realized. The quantization module innovates to select 9 different quantization tables in FPGA. The entropy encoding of DC/AC coefficient is realized by lookup table, and the function of each module is tested successively. The image source data is made into MIF file and decoded by the third party software. The test results show that the JPEG encoder achieves the desired function and achieves the design goal.
【學(xué)位授予單位】:中北大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2017
【分類號(hào)】:TP391.41
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 張雅媛;孔令罔;;一種基于改進(jìn)量化表的JPEG圖像壓縮算法[J];包裝工程;2016年13期
2 劉方明;潘曉中;楊曉元;蘇光偉;;數(shù)字圖像DCT變換的FPGA實(shí)現(xiàn)[J];計(jì)算機(jī)工程與應(yīng)用;2012年06期
3 何業(yè)軍;劉鵬;雷海軍;提干;李先義;;高精度二維DCT的結(jié)構(gòu)優(yōu)化算法研究及FPGA實(shí)現(xiàn)[J];電視技術(shù);2011年15期
4 馮彥輝;高潔;徐曄;陳海軍;;基于JPEG圖像文件格式的研究[J];山西電子技術(shù);2009年01期
5 余秋菊;;基于DCT變換的JPEG圖像壓縮及其MATLAB實(shí)現(xiàn)[J];科技信息(學(xué)術(shù)研究);2008年36期
6 陳超;王耀明;;使用改進(jìn)量化和不規(guī)則圖像編碼的JPEG算法[J];上海電機(jī)學(xué)院學(xué)報(bào);2007年04期
7 徐長(zhǎng)遠(yuǎn);魯順昌;;JPEG離散余弦變換的FPGA硬件實(shí)現(xiàn)[J];西華大學(xué)學(xué)報(bào)(自然科學(xué)版);2007年01期
8 覃鳳清;;數(shù)字圖像壓縮綜述[J];宜賓學(xué)院學(xué)報(bào);2006年06期
9 孫學(xué)巖,葉海建,韓玉坤;數(shù)字圖像壓縮原理及常用壓縮編碼方法[J];農(nóng)機(jī)化研究;2005年03期
10 司馬苗,周源華;基于FPGA的二維DCT變換的實(shí)現(xiàn)[J];紅外與激光工程;2003年04期
,本文編號(hào):1481431
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1481431.html