[go: up one dir, main page]

TWI501652B - An image process method having a function of determining the suitable properties of the directional filter - Google Patents

An image process method having a function of determining the suitable properties of the directional filter Download PDF

Info

Publication number
TWI501652B
TWI501652B TW101100463A TW101100463A TWI501652B TW I501652 B TWI501652 B TW I501652B TW 101100463 A TW101100463 A TW 101100463A TW 101100463 A TW101100463 A TW 101100463A TW I501652 B TWI501652 B TW I501652B
Authority
TW
Taiwan
Prior art keywords
band
sub
low
energy spectrum
value
Prior art date
Application number
TW101100463A
Other languages
Chinese (zh)
Other versions
TW201330636A (en
Inventor
Chao Hsiung Hung
Hsueh Ming Hang
Ti Hao Chiang
Original Assignee
Ambarella Taiwan Ltd
Univ Nat Chiao Tung
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 Ambarella Taiwan Ltd, Univ Nat Chiao Tung filed Critical Ambarella Taiwan Ltd
Priority to TW101100463A priority Critical patent/TWI501652B/en
Publication of TW201330636A publication Critical patent/TW201330636A/en
Application granted granted Critical
Publication of TWI501652B publication Critical patent/TWI501652B/en

Links

Landscapes

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

Description

具有判斷方向性濾波器適用性功能之影像處理方法Image processing method with function for judging directional filter applicability

本發明係有關於一種影像處理方法,尤指一種具有判斷方向性濾波器適用性功能之影像處理方法,藉由使用移動平均(mean shift)演算法來判斷影像在頻域(frequency domain)的小波轉換(wavelet transform)次頻帶(subband)是否適用方向性濾波器(directional filter)作拆解,可以減少其編碼時所需之運算量。The present invention relates to an image processing method, and more particularly to an image processing method having the function of determining the applicability of a directional filter, by using a mean shift algorithm to determine a wavelet of a frequency domain in a frequency domain. Whether the wavelet transform subband is disassembled by a directional filter can reduce the amount of computation required for encoding.

在現今網路資訊量蓬勃發展的社會中,對於資料量的處理的需求越來越大,尤其是視訊影像方面的資訊,其資料量更是大為驚人。在伺服器端,為了能有效儲存這些多媒體資料,以及能在網際網路以更有效率的方式進行傳輸,以期望能在網路上的多樣應用,遂必須對視訊影像資料作更有效率的壓縮,期能達成客戶端使用者之多樣性的需求。In today's society where the amount of information on the Internet is booming, there is a growing demand for the processing of data volumes, especially for video and video information. The amount of data is even more alarming. On the server side, in order to efficiently store these multimedia materials and transmit them in the Internet in a more efficient manner, in order to be able to use a variety of applications on the network, it is necessary to compress the video image data more efficiently. , can meet the needs of the diversity of client users.

小波轉換(wavelet transform)因為具有良好的非線性近似(nonlinear approximation)特性,而被JPEG2000規範採用並使用在影像壓縮及處裡中。典型的二維(2-dimensional,2-D)小波轉換是把影像分成兩個一維(2-dimensional,1-D),亦即是將影像分成垂直跟水平來處理,因此會忽略掉二維訊號的連續性。由於自然影像中的線條並非都是垂直或水平的分佈,典型的二維小波轉換在處理這些非水平或垂直的影像線條時,會產生許多絕對值很小的小波係數(wavelet coefficient),該些係數對壓縮上會有不良的影響。Wavelet transform is adopted by JPEG2000 specification and used in image compression and circumstance because of its good nonlinear approximation. A typical two-dimensional (2-dimensional, 2-D) wavelet transform divides the image into two one-dimensional (2-dimensional, 1-D), which is to divide the image into vertical and horizontal, so it ignores two. The continuity of the news signal. Since the lines in natural images are not all vertical or horizontal, a typical two-dimensional wavelet transform produces many wavelet coefficients with very small absolute values when processing these non-horizontal or vertical image lines. The coefficient has a negative effect on compression.

為解決小波轉換方向性不佳的問題,輪廓轉換(contourlet transform)影像處理方法亦被提出,亦即是先使用第一層(first level)拉式金字塔(Laplacian pyramid)把影像作高低次頻帶的拆解。在所拆解的高低頻帶的訊號中,高通(high-pass)次頻帶採用方向性濾波器(directional filter bank)作拆解,而低通(low-pass)次頻帶可以再送到第二層(second level)的拉式金字塔繼續作第二層高低次頻帶的拆解。在所拆解的高低頻帶的訊號中,其高通次頻帶可以再用方向性濾波器作拆解,而低通次頻帶可以再送往第三層(third level)的拉式金字塔作第三層高低次頻帶的拆解。該步驟如此一直重複,直到想要的精確度為止。雖然輪廓轉換法在方向上具有較佳的表示特性,但所使用的拉式金字塔會造成轉換後資料量的增加,因此對壓縮處理甚為不利。In order to solve the problem of poor directionality of wavelet transform, a contour transform image processing method has also been proposed, that is, the first level Laplacian pyramid is used to make the image high and low frequency bands. Dismantle. In the disassembled high and low frequency band signals, the high-pass sub-band uses a directional filter bank for disassembly, and the low-pass sub-band can be sent to the second layer ( The second level of the pull pyramid continues to disassemble the second layer of high and low subbands. In the disassembled high and low frequency band signals, the high pass subband can be disassembled by the directional filter, and the low pass subband can be sent to the third level of the pull pyramid as the third layer. Disassembly of high and low sub-bands. This step is repeated until the desired accuracy. Although the contour conversion method has better representation characteristics in the direction, the pull pyramid used causes an increase in the amount of data after conversion, and thus is disadvantageous to the compression processing.

為了可以在轉換前後維持資料量的架構,結合小波轉換法與輪廓轉換法的優點的方法被提出,亦即是以小波轉換為基礎的輪廓轉換(wavelet-based contourlet transform)法。第2圖所示係為以小波轉換為基礎的輪廓轉換的架構,其中所表示的方向性濾波器為四個方向的拆解。其主要架構就是在小波轉換後的高通次頻帶上使用方向性濾波器來達成更精確的方向性拆解。第2圖特別介紹第一層小波轉換的結果,其3個高通次頻帶(定義為低高(LH),高低(HL)和高高(HH))係經由方向性濾波器作拆解以期達成更精確的方向性分析。而1個低通次頻帶(LL)可以再給第二層的小波轉換作進一步拆解。相似於第一層的小波轉換後的處理流程,第二層的小波轉換後的三個高通次頻帶同樣也可以給方向性濾波器作拆解,其一個低通次頻帶也可以再給第三層的小波轉換繼續拆解,如此不斷地拆解,直到得到設定的解析度為止。In order to maintain the data volume architecture before and after the conversion, a method combining the advantages of the wavelet transform method and the contour transform method is proposed, that is, a wavelet-based contourlet transform method. Figure 2 shows the architecture of contour transformation based on wavelet transform, where the directional filter is represented in four directions. The main architecture is to use directional filters on the high-pass sub-band after wavelet transform to achieve more accurate directional disassembly. Figure 2 specifically shows the results of the first layer of wavelet transform. The three high-pass sub-bands (defined as low-high (LH), high-low (HL) and high-height (HH)) are disassembled via directional filters in order to achieve More accurate directional analysis. A low pass sub-band (LL) can further disassemble the second layer of wavelet transform. Similar to the wavelet processing process of the first layer, the three high-pass sub-bands after the wavelet transform of the second layer can also be disassembled for the directional filter, and a low-pass sub-band can also be given to the third. The layer's wavelet transform continues to be disassembled, so it is continuously disassembled until the set resolution is obtained.

然而,並不是所有的小波轉換後的次頻帶都適合作方向性的拆解,大部分的次頻帶在使用方向性濾波器後,對壓縮結果沒有幫助,或是變得更差。而JPEG2000所使用的位元平面編碼(bit-plane coding)的相鄰表(context table,又稱狀態表)都是基於小波轉換為基礎而設計的,並沒有考慮到其它的方向性。此外,小波轉換法中所採用的位元平面編碼為EBCOT和3-D EBCOT規範,前者主要是用在影像,後者主要是用在視訊,但它們的相鄰表在處理位元平面的訊號時只有考慮水平和垂直的方向,因此並不適用於方向性拆解後的訊號上,故以小波轉換為基礎的輪廓轉換仍舊無法達成較佳的壓縮效果。However, not all sub-bands after wavelet transform are suitable for directional disassembly. Most of the sub-bands do not help the compression result or become worse after using the directional filter. The context table of the bit-plane coding used by JPEG2000 is also based on wavelet transform, and does not consider other directionality. In addition, the bit plane coding used in the wavelet transform method is EBCOT and 3-D EBCOT specifications. The former is mainly used for video, the latter is mainly used for video, but their adjacent tables are used to process signals in the bit plane. Only considering the horizontal and vertical directions, it is not suitable for the signal after the directional disassembly, so the contour conversion based on wavelet transform still can not achieve better compression effect.

鑒於先前技術之缺點,有必要提出一種可調整性影像處理方法,藉由判斷影像在頻域的小波轉換次頻帶是否適用方向性濾波器作拆解,可以減少其編碼時所需之運算量。In view of the shortcomings of the prior art, it is necessary to propose an adjustable image processing method, which can reduce the amount of computation required for encoding by determining whether the wavelet transform sub-band in the frequency domain is disassembled by the directional filter.

鑒於上述先前技術之缺點,本發明之主要目的即在於提供一種具有判斷方向性濾波器適用性功能之影像處理方法,可以判斷小波轉換的次頻帶是否適合方向性拆解的方法,再根據所有方向次頻帶上的訊號特性,提出新的相鄰表,來達成更佳的壓縮效果。In view of the above disadvantages of the prior art, the main object of the present invention is to provide an image processing method having the function of determining the directional filter applicability, which can determine whether the sub-band of the wavelet transform is suitable for directional disassembly, and then according to all directions. Signal characteristics on the sub-band, propose a new adjacent table to achieve better compression.

為達上述目的,本發明提供一種具有判斷方向性濾波器適用性功能之影像處理方法,用於一影像訊號之壓縮與編碼,該方法至少包含下列步驟:步驟(1):將該影像訊號作二維富利葉轉換以取得該影像訊號於頻域的一能量頻譜;步驟(2):修正所得到的該能量頻譜,消去該能量頻譜的小波峰;步驟(3):在修正的該能量頻譜,找出用以判斷該頻域能量頻譜中每一個次頻帶波峰的界限值;步驟(4):藉由比較該能量頻譜中每一個次頻帶波峰的界限值與波峰,以移動平均法計算每一個次頻帶的一質心座標的收斂位置;以及步驟(5):藉由找到每一個次頻帶的該質心座標最後收斂的位置,判斷該能量頻譜中的每一個次頻帶是否需要使用一方向性濾波器作拆解。To achieve the above objective, the present invention provides an image processing method for determining the applicability of a directional filter for compressing and encoding an image signal. The method includes at least the following steps: Step (1): making the image signal Two-dimensional Fourier transform to obtain an energy spectrum of the image signal in the frequency domain; step (2): correcting the obtained energy spectrum, eliminating the small peak of the energy spectrum; and step (3): correcting the energy Spectrum, find the threshold value for judging the peak of each sub-band in the energy spectrum of the frequency domain; Step (4): Calculating by using the moving average method by comparing the threshold value and the peak of each sub-band peak in the energy spectrum a convergence position of a centroid of each sub-band; and step (5): determining whether each sub-band in the energy spectrum needs to be used by finding a final convergence position of the centroid of each sub-band The directional filter is disassembled.

綜上所述,本發明之一種具有判斷方向性濾波器適用性功能之影像處理方法將具有以下之功效:In summary, the image processing method of the present invention having the function of determining the directional filter applicability will have the following effects:

1.藉由判斷頻域所對應的小波轉換次頻帶是否適用方向性濾波器作拆解,並結合所提出的使用於位元平面編碼的相鄰表,使得整體的壓縮效果提升。1. By determining whether the wavelet transform sub-band corresponding to the frequency domain is suitable for disassembly by using a directional filter, and combining the proposed adjacent table for bit-plane coding, the overall compression effect is improved.

2.並可因避免拆解不適用方向性濾波器的次頻帶,而節省大量的運算,進一步節省裝置的成本與壓縮進行的時間。2. It can save a lot of calculations by avoiding disassembling the sub-band which does not apply to the directional filter, further saving the cost of the device and the time of compression.

為讓本發明之上述和其他目的、特徵、和優點能更明顯易懂,下文特舉數個較佳實施例,並配合所附圖式,作詳細說明如下。The above and other objects, features, and advantages of the present invention will become more apparent and understood.

雖然本發明可表現為不同形式之實施例,但附圖所示者及於下文中說明者係為本發明可之較佳實施例,並請了解本文所揭示者係考量為本發明之一範例,且並非意圖用以將本發明限制於圖示及/或所描述之特定實施例中。While the invention may be embodied in various forms, the embodiments illustrated in the drawings It is not intended to limit the invention to the particular embodiments illustrated and/or described.

現請參考第1圖,其顯示本發明之具有判斷方向性濾波器適用性功能之影像處理方法之步驟流程圖,其主要包含五個步驟。Referring now to FIG. 1, there is shown a flow chart of the steps of the image processing method of the present invention having the function of determining the directional filter applicability, which mainly comprises five steps.

首先於步驟S1中,將影像訊號作二維富利葉轉換(2-D fourier transform)到頻域,會得到許多富利葉轉換係數,將每個係數都取絕對值並平方,可得到代表影像訊號的能量頻譜(energy spectrum),能量頻譜上的每個係數即稱為能量係數g(x,y),其中(x,y)表示該能量係數的座標值,而g則是此能量係數的值。參考第3圖,其係為影像經過以小波轉換為基礎的輪廓轉換後,各方向的次頻帶在頻域上的分佈。假設影像訊號作了a×b二維富利葉轉換,則可以得到a×b大小的能量頻譜,即如如第3圖所示。First, in step S1, the image signal is subjected to a 2-D fourier transform to the frequency domain, and a plurality of Fourier transform coefficients are obtained, and each coefficient is taken as an absolute value and squared to obtain a representative. The energy spectrum of an image signal, each coefficient of the energy spectrum is called the energy coefficient g(x, y), where (x, y) represents the coordinate value of the energy coefficient, and g is the energy coefficient. Value. Referring to FIG. 3, it is a distribution of sub-bands in each direction in the frequency domain after the image is subjected to contour conversion based on wavelet transform. Assuming that the image signal is a × b two-dimensional Fourier transform, an energy spectrum of a × b size can be obtained, as shown in Fig. 3.

在步驟S2中,將步驟S1所得到之能量頻譜作修正,亦即修正該能量頻譜為一指數型能量頻譜。修正的動作包含:S2-1:首先是先把零頻(zero frequency)的能量係數放在整個能量頻譜中間,令整個頻譜是點對稱的;S2-2:使用平滑運算子(smoothing operator)來使能量頻譜的波峰(peak)更為明顯,並消去大部分的小波峰;S2-3:將能量係數g(x,y)取指數值得到一指數型能量頻譜h(x,y)=log10 (g(x,y)),修正過後的該指數型能量頻譜大小仍為a×b。In step S2, the energy spectrum obtained in step S1 is corrected, that is, the energy spectrum is corrected to be an exponential energy spectrum. The modified action includes: S2-1: First, the zero frequency energy coefficient is placed in the middle of the entire energy spectrum, so that the entire spectrum is point-symmetric; S2-2: using a smoothing operator Make the peak of the energy spectrum more obvious and eliminate most of the small peaks; S2-3: take the energy coefficient g(x, y) as an exponential value to get an exponential energy spectrum h(x, y)=log 10 (g(x, y)), the corrected energy spectrum of the exponential type is still a × b.

在步驟S3中,找出用以判斷每一個次頻帶的波峰的界限值(threshold)。一般自然影像都有很強大的低頻訊號,如第3圖的灰色部位所示。找出用以判斷波峰的界限值的步驟更進一步包括:In step S3, a threshold value for determining the peak of each sub-band is found. Generally, natural images have very powerful low frequency signals, as shown in the gray part of Figure 3. The steps to find the threshold value for judging the peak further include:

S3-1:先算出在該指數型能量頻譜中低頻訊號在高通次頻帶LH及HL內的平均值,也就是LH和HL內的灰色區域的h(x,y)的平均值。LH的灰色區域大小為c×b/4,c值為根據影像的特性和所採用富利葉轉換點數來決定;HL的灰色區域大小為d×a/4,d相似於c,亦即是根據影像的特性和所採用富利葉轉換點數來決定。其中,要決定低頻訊號的區間,也就是決定c和d,的方法是:在這個區間內未取指數值之前,能量係數g(x,y)是其它的區域的g(x,y)的W1 倍以上,就可以決定c和d,之後得到LH和HL內的灰色區域的指數型能量頻譜h(x,y)的平均值,分別定為LH_low和HL_low。其中,在一較佳實施例中,決定低頻訊號和其他訊號的參數W1 ,較佳係設為0到10之間。S3-1: First, the average value of the low frequency signal in the high-pass sub-bands LH and HL in the exponential energy spectrum, that is, the average value of h(x, y) in the gray region in LH and HL is calculated. The gray area of LH is c×b/4, and the c value is determined according to the characteristics of the image and the number of Fourier transform points used; the gray area of HL is d×a/4, and d is similar to c, that is, It is determined by the characteristics of the image and the number of Fourier transform points used. Among them, to determine the interval of the low-frequency signal, that is, to determine c and d, the energy coefficient g(x, y) is the g(x, y) of other regions before the index value is taken in this interval. W 1 times or more, you can determine c and d, and then get the average of the exponential energy spectrum h(x, y) of the gray regions in LH and HL, which are set to LH_low and HL_low, respectively. In a preferred embodiment, the parameter W 1 for determining the low frequency signal and other signals is preferably between 0 and 10.

S3-2:藉由判斷高通次頻帶LH及HL內的平均值,找出高通次頻帶的波峰的界限值。其詳細實施方法為:如果LH_low和HL_low中,有一個比另一個大W2 倍,則把小的平均值取代成大的平均值,如果大的平均值並沒有比小的大W2 倍,則兩個平均值都保留不動。接下來再算出每個方向次頻帶中,該指數型能量頻譜能量係數h(x,y)的平均值(mean)和標準差。舉例來說,在LH_4-0區中,該指數型能量頻譜的能量係數h(x,y)的平均值為LH_4-0_μ,且其標準差為LH_4-0_σ,將LH_4-0_μ+W3 ×LH_4-0_σ和LH_low作比較,較大者做為該方向次頻帶LH_4-0的界限值LH_4-0_T;同理,在HL_4-0區中,該指數型能量頻譜的能量係數h(x,y)的平均值(mean)HL_4-0_μ和標準差(variance)HL_4-0_σ,將HL_4-0_μ+W3 ×HL_4-0_σ和HL_low作比較,較大者做為該方向次頻帶HL_4-0的界限值HL_4-0_T;其他的方向次頻帶的界限值都是一樣算法。其中,在一較佳實施例中,決定該保留何者低頻訊號的參數W2 ,較佳係設為0到6之間,而最後決定各方向次頻帶的參數W3 ,較佳係設為0到1之間。S3-2: Find the limit value of the peak of the high-pass sub-band by judging the average value in the high-pass sub-bands LH and HL. The detailed implementation method is as follows: if one of LH_low and HL_low is 2 times larger than the other W, the small average value is replaced by a large average value, and if the large average value is not 2 times larger than the small one, Then both averages remain intact. Next, the mean and standard deviation of the energy spectrum h(x, y) of the exponential energy spectrum in each sub-band are calculated. For example, in the LH_4-0 region, the average value of the energy coefficient h(x, y) of the exponential energy spectrum is LH_4-0_μ, and the standard deviation is LH_4-0_σ, and LH_4-0_μ+W 3 × LH_4-0_σ is compared with LH_low, and the larger one is the limit value LH_4-0_T of the sub-band LH_4-0 in the direction; similarly, in the HL_4-0 region, the energy coefficient h(x, y) of the exponential energy spectrum The mean (mean) HL_4-0_μ and the standard deviation (variance) HL_4-0_σ are compared with HL_4-0_μ+W 3 ×HL_4-0_σ and HL_low, and the larger one is the boundary of the sub-band HL_4-0 in the direction. The value HL_4-0_T; the threshold values of the other direction sub-bands are the same algorithm. In a preferred embodiment, the parameter W 2 for determining which low frequency signal is reserved is preferably set between 0 and 6, and finally the parameter W 3 of each sub-band is determined, preferably set to 0. Between 1 and 1.

由上揭可知,在步驟S3中,其適用的方向拆解數目為兩個方向次頻帶以上。As can be seen from the above, in step S3, the number of direction splits to which it applies is two or more sub-bands.

在步驟S4中,藉由比較該能量頻譜中每一個次頻帶波峰的界限值與波峰,以移動平均法為基礎,計算出找出每一個次頻帶的一質心座標的收斂位置。該步驟更進一步包括:S4-1:在每一個方向次頻帶,如LH_4-0內,我們保留比相對應的界限值LH_4-0_T大且取過指數值的能量係數h(x,y),將該能量係數h(x,y)轉回未取指數值前的能量係數g(x,y);S4-2:以g(x,y)作是一個第一個搜索視窗的中心,該搜索視窗大小為(2×γ+1)×(2×γ+1),用式(1)計算出該搜索視窗的第一質心座標位置(xmass ,ymass );其中,參數γ較佳係設為1到10之間;S4-3:重覆式(1)直到質心座標不再變動。亦即是將該第一質心座標當作第二個搜索視窗的座標,並用式(1)進一步算出該第二個搜索視窗的質心座標,重覆式(1)直到質心座標不再變動。In step S4, by comparing the threshold value and the peak of each sub-band peak in the energy spectrum, based on the moving average method, the convergence position of finding a centroid coordinate of each sub-band is calculated. The step further includes: S4-1: in each direction sub-band, such as LH_4-0, we retain the energy coefficient h(x, y) larger than the corresponding limit value LH_4-0_T and take the exponential value, Converting the energy coefficient h(x, y) back to the energy coefficient g(x, y) before the index value is not taken; S4-2: taking g(x, y) as the center of a first search window, The search window size is (2×γ+1)×(2×γ+1), and the first centroid coordinate position (x mass , y mass ) of the search window is calculated by the formula (1); wherein, the parameter γ is compared The best is set between 1 and 10; S4-3: repeated (1) until the centroid coordinates no longer change. That is, the first centroid coordinate is regarded as the coordinate of the second search window, and the centroid coordinate of the second search window is further calculated by the formula (1), and the repeated (1) until the centroid coordinates are no longer change.

需注意的是,我們用來找方向次頻帶LH_4-0的範圍就是頻域上小波轉換次頻帶LH所在的位置,然後把LH往外延申γ個能量係數g(x,y)。作延伸時要注意頻域訊號的周期性,如第3圖所示的頻域共有b個列(row)且每個列有a個能量係數g(x,y),則第b+1列的值就是第1列的值,又因為頻域的點對稱性(symmetric),方向次頻帶LH 4-0在第3圖中雖然有上下兩部份,我們只需要分析上半部及可,其他的方向次頻帶亦是如此分析以找出最後質心座標的收斂位置。It should be noted that the range we use to find the sub-band LH_4-0 is the position of the wavelet transform sub-band LH in the frequency domain, and then the LH is extended to the γ energy coefficient g(x, y). Pay attention to the periodicity of the frequency domain signal when extending. If there are b columns in the frequency domain as shown in Figure 3 and each column has a energy coefficient g(x, y), then the b+1th column The value of the value is the value of the first column, and because of the point symmetry in the frequency domain, the direction sub-band LH 4-0 has the upper and lower parts in the third picture, we only need to analyze the upper part and can, The other direction sub-bands are also analyzed to find the convergence position of the final centroid coordinates.

於步驟S5中,找到一個質心座標最後收斂的位置,判斷每一個次頻帶是否需要使用方向性濾波器作拆解,且若需要拆解,則後拆解後之次頻帶的訊號可用第4圖的相鄰表作編碼並壓縮。該步驟更進一步包括:In step S5, a position where the centroid coordinate finally converges is found, and it is determined whether each sub-band needs to be disassembled by using a directional filter, and if disassembly is required, the signal of the sub-band after the disassembly can be used for the fourth time. The adjacent tables of the graph are encoded and compressed. This step further includes:

S5-1:使用一個跟步驟S1一樣大小,同為a×b的計分表(count table)。在步驟S4中,只要每找到一個質心座標最後收斂的位置,就在計分表上相對應的位置累加1,直到步驟S4中全部的方向次頻帶內,界限值以上的能量係數h(x,y)都處理完畢。S5-1: Use a size table of the same size as step S1, which is also a × b. In step S4, as long as the position at which the centroid coordinates finally converge is found, 1 is added to the corresponding position on the score table until the energy coefficient h above the threshold value in all sub-bands in step S4. , y) are all processed.

S5-2:如果在計分表上的某個τ×τ的範圍內,中心是該範圍內最大的值且其值λ,則把該範圍內全部λ的值都加起來,並把其和放在τ×τ的中心並把其他值都設成0,我們稱此為收斂點。在一較佳實施例中,在計分表上需要處理的大小τ,較佳係設在3到5之間,而界限值λ較佳係設為5以上。S5-2: If within a range of τ × τ on the score table, the center is the largest value in the range and its value λ, then put all in the range The values of λ are added together, and the sum is placed at the center of τ × τ and the other values are set to 0. We call this a convergence point. In a preferred embodiment, the size τ to be processed on the score table is preferably between 3 and 5, and the threshold λ is preferably set to 5.

S5-3:若在某一個小波轉換的次頻帶中,有包含收斂點且其值λ,且收斂點不位於低頻訊號的收斂區間內,則該次頻帶可使用方向性濾波器作拆解。S5-3: If in a sub-band of a wavelet transform, there is a convergence point and its value λ, and the convergence point is not within the convergence interval of the low frequency signal, then the subband can be disassembled using a directional filter.

S5-4:拆解後之次頻帶可用第4圖的相鄰表作編碼並壓縮。S5-4: The sub-band after disassembly can be encoded and compressed by the adjacent table of FIG.

在一實施例中,例如LH次頻帶的低頻訊號的收斂區為第3圖的LH次頻帶內的灰階斜線區域,其大小為e×b/4的區間,而HL次頻帶的低頻訊號的收斂區間為第3圖的HL次頻帶內的灰階斜線區域,大小則為f×a/4的區間內。若有步驟四所得到的收斂點不位此區間內,則此次頻帶可使用方向性濾波器作拆解,拆解後可用第4圖的相鄰表作編碼並壓縮,可以提升整體的壓縮效果。第4圖的相鄰表中的符號係表示每一個次頻帶的位置。在一較佳實施例中,第3圖所示的LH次頻帶的灰階斜線區域為LH次頻帶的低頻訊號的收斂區,其大小為e×b/4,其中e的大小建議設定至少為c,而第3圖所示的HL次頻帶的灰階斜線區域為HL次頻帶的低頻訊號的收斂區,其大小為f×a/4,其中f的大小建議設定至少為d。In an embodiment, for example, the convergence region of the low frequency signal of the LH sub-band is a gray-scale oblique line region in the LH sub-band of FIG. 3, the size of which is an interval of e×b/4, and the low-frequency signal of the HL sub-band The convergence interval is the gray-scale oblique line region in the HL sub-band of Fig. 3, and the size is in the interval of f × a / 4. If the convergence point obtained in step 4 is not within the interval, the frequency band can be disassembled using the directional filter. After the disassembly, the adjacent table in Fig. 4 can be used for encoding and compression, which can improve the overall compression. effect. The symbols in the adjacent table of Fig. 4 indicate the position of each sub-band. In a preferred embodiment, the gray-scale oblique line region of the LH sub-band shown in FIG. 3 is a convergence region of the low-frequency signal of the LH sub-band, and the size thereof is e×b/4, wherein the size of e is recommended to be at least c, and the gray-scale oblique line region of the HL sub-band shown in FIG. 3 is a convergence region of the low-frequency signal of the HL sub-band, and its size is f×a/4, and the size of f is recommended to be at least d.

綜上所述,本發明之一種具有判斷方向性濾波器適用性功能之影像處理方法將具有以下之功效:In summary, the image processing method of the present invention having the function of determining the directional filter applicability will have the following effects:

1. 藉由判斷頻域所對應的小波轉換次頻帶是否適用方向性濾波器作拆解,並結合所提出的使用於位元平面編碼的相鄰表,使得整體的壓縮效果提升。1. By determining whether the wavelet transform sub-band corresponding to the frequency domain is suitable for disassembly by using a directional filter, and combining the proposed adjacent table for bit-plane coding, the overall compression effect is improved.

2. 並可因避免拆解不適用方向性濾波器的次頻帶,而節省大量的運算,進一步節省裝置的成本與壓縮進行的時間。2. It can save a lot of calculations by avoiding disassembling the sub-band that does not apply to the directional filter, further saving the cost of the device and the time of compression.

雖然本發明已以前述較佳實施例揭示,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與修改。如上述的解釋,都可以作各型式的修正與變化,而不會破壞此創作的精神。因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the present invention has been described in its preferred embodiments, it is not intended to limit the scope of the invention, and various modifications and changes can be made without departing from the spirit and scope of the invention. As explained above, all types of corrections and changes can be made without destroying the spirit of this creation. Therefore, the scope of the invention is defined by the scope of the appended claims.

第1圖用以顯示本發明之影像處理方法之步驟流程圖;Figure 1 is a flow chart showing the steps of the image processing method of the present invention;

第2圖係為以小波轉換為基礎的輪廓轉換的架構,其中所表示的方向性濾波器為四個方向的拆解;Figure 2 is an architecture of contour transformation based on wavelet transform, wherein the directional filter represented is disassembled in four directions;

第3圖係為影像經過第2圖的架構轉換後,各方向的次頻帶在頻域上的分佈;以及Figure 3 is a distribution of the sub-bands in each direction in the frequency domain after the image is transformed by the architecture of Figure 2;

第4圖係為本發明經過方向拆解後的訊號用於編碼的相鄰表。Figure 4 is an adjacent table of signals for which the direction of the invention has been disassembled for encoding.

Claims (14)

一種具有判斷方向性濾波器適用性功能之影像處理方法,用於一影像訊號之壓縮與編碼,該方法至少包含下列步驟:步驟(1):將該影像訊號作二維富利葉轉換以取得該影像訊號於頻域的一能量頻譜;步驟(2):修正所得到的該能量頻譜,消去該能量頻譜的小波峰;步驟(3):在修正的該能量頻譜,找出用以判斷該頻域能量頻譜中每一個次頻帶波峰的界限值;步驟(4):藉由比較該能量頻譜中每一個次頻帶波峰的界限值與波峰,以移動平均法計算每一個次頻帶的一質心座標的收斂位置;以及步驟(5):藉由找到每一個次頻帶的該質心座標最後收斂的位置,判斷該能量頻譜中的每一個次頻帶是否需要使用一方向性濾波器作拆解。An image processing method for determining the applicability function of a directional filter for compressing and encoding an image signal, the method comprising at least the following steps: Step (1): performing a two-dimensional Fourier transform on the image signal to obtain The image signal is in an energy spectrum of the frequency domain; step (2): correcting the obtained energy spectrum, eliminating the small peak of the energy spectrum; and step (3): finding the used energy spectrum in the correction to determine the a threshold value of each sub-band peak in the frequency domain energy spectrum; step (4): calculating a centroid of each sub-band by a moving average method by comparing a threshold value and a peak of each sub-band peak in the energy spectrum Convergence position of coordinates; and step (5): determining whether each sub-band in the energy spectrum needs to be disassembled using a directional filter by finding the final convergence position of the centroid coordinate of each sub-band. 如申請專利範圍第1項之影像處理方法,其中步驟(2)更包含:步驟(2-1):將零頻(zero frequency)的能量係數放在該能量頻譜中間,令該能量頻譜點對稱;步驟(2-2):使用一平滑運算子來消去該能量頻譜的小波峰;以及步驟(2-3):將該能量頻譜之能量係數g(x,y)取指數值得到一指數型能量頻譜h(x,y)=log10 (g(x,y)),修正過後的該指數型能量頻譜大小仍為a×b。The image processing method of claim 1, wherein the step (2) further comprises: step (2-1): placing a zero frequency energy coefficient in the middle of the energy spectrum to make the energy spectrum point symmetric Step (2-2): using a smoothing operator to cancel the wavelet of the energy spectrum; and step (2-3): taking the energy coefficient g(x, y) of the energy spectrum as an exponential value to obtain an exponential type The energy spectrum h(x, y) = log 10 (g(x, y)), and the corrected energy spectrum of the exponential type is still a × b. 如申請專利範圍第2項之影像處理方法,其中步驟(3)更包含:步驟(3-1):計算出該指數型能量頻譜之低頻訊號在高通次頻帶的平均值,其中高通次頻帶包含一低高次頻帶(LH)與一高低次頻帶(HL),低高次頻帶的區域大小為c×b/4,高低次頻帶的區域大小為d×a/4,c值與d值係根據該影像的特性和所採用富利葉轉換點數來決定;步驟(3-2):藉由判斷高通次頻帶中該低高次頻帶與該高低次頻帶的平均值,找出高通次頻帶的波峰的界限值。The image processing method of claim 2, wherein the step (3) further comprises: step (3-1): calculating an average value of the low-frequency signal of the exponential energy spectrum in a high-pass sub-band, wherein the high-pass sub-band includes A low high frequency band (LH) and a high and low frequency band (HL), the area of the low high frequency band is c×b/4, and the size of the high and low frequency bands is d×a/4, c value and d value Determining according to the characteristics of the image and the number of Fourier transform points used; Step (3-2): finding the high-pass sub-band by judging the average of the low-high frequency band and the high-low frequency band in the high-pass sub-band The threshold value of the peak. 如申請專利範圍第3項之影像處理方法,其中在步驟(3-1)中,決定c值和d值的方法:在該低高次頻帶與該高低次頻帶區間內未取指數值之前,其能量係數g(x,y)是其它的區域的g(x,y)的W1 倍以上,決定c和d,且所得到該低高次頻帶與該高低次頻帶的平均值分別定為LH_low和HL_low。The image processing method of claim 3, wherein in the step (3-1), the method of determining the c value and the d value: before the index value is not taken in the low high frequency band and the high and low frequency band intervals, The energy coefficient g(x, y) is W 1 times or more of g(x, y) of other regions, and c and d are determined, and the average values of the low-high frequency band and the high-low frequency band obtained are respectively determined as LH_low and HL_low. 如申請專利範圍第4項之影像處理方法,其中參數W1 係設為0到10之間。The image processing method of claim 4, wherein the parameter W 1 is set to be between 0 and 10. 如申請專利範圍第4項之影像處理方法,其中在步驟(3-2)中,如果LH_low和HL_low中,有一個比另一個大W2 倍,則把小的平均值取代成大的平均值,如果大的平均值並沒有比小的大W2 倍,則兩個平均值都保留不動。The image processing method of claim 4, wherein in step (3-2), if one of LH_low and HL_low is 2 times larger than the other, the small average value is replaced by a large average value. If the large average is not 2 times larger than the small one, the two averages remain. 如申請專利範圍第6項之影像處理方法,其中該參數W2 係設為0到6之間。The image processing method of claim 6, wherein the parameter W 2 is set to be between 0 and 6. 如申請專利範圍第4項之影像處理方法,其中把LH_low和HL_low中小的值保留不動,再算出每個方向次頻帶中,該指數型能量頻譜的能量係數h(x,y)的平均值和標準差,並將平均值以及標準差乘上W3 的和(sum)與該指數型能量頻譜的平均值作比較,較大數值者做為該方向次頻帶的界限值。For example, in the image processing method of claim 4, wherein the small values of LH_low and HL_low are left untouched, and the average value of the energy coefficient h(x, y) of the exponential energy spectrum in each sub-band is calculated. The standard deviation, and the sum of the mean and the standard deviation multiplied by W 3 is compared with the average of the exponential energy spectrum, with the larger value being the threshold of the sub-band in that direction. 如申請專利範圍第8項之影像處理方法,其中該參數W3 係設為0到1之間。The image processing method of claim 8, wherein the parameter W 3 is set to be between 0 and 1. 如申請專利範圍第1項之影像處理方法,其中步驟(4)更包含:步驟(4-1):在每一個方向次頻帶,保留比相對應的界限值大且取過指數值的該指數型能量頻譜的能量係數h(x,y),將該能量係數h(x,y)轉回未取指數值前的能量係數g(x,y);步驟(4-2):以g(x,y)作是一個第一個搜索視窗的中心,該搜索視窗大小為(2×γ+1)×(2×γ+1),其中參數γ較佳係設為1到10之間;步驟(4-3):重覆式步驟(4-2),直到質心座標不再變動。For example, in the image processing method of claim 1, wherein the step (4) further comprises: step (4-1): retaining the index larger than the corresponding threshold value and taking the index value in each direction sub-band The energy coefficient h(x, y) of the energy spectrum of the type, the energy coefficient h(x, y) is converted back to the energy coefficient g(x, y) before the index value is not taken; step (4-2): g ( x, y) is the center of a first search window, the size of the search window is (2 × γ + 1) × (2 × γ + 1), wherein the parameter γ is preferably set between 1 and 10; Step (4-3): Repeat step (4-2) until the centroid coordinates no longer change. 如申請專利範圍第1項之影像處理方法,其中步驟(5)更包含:步驟(5-1):使用一大小同為a×b的計分表,只要每找到一個質心最後收斂的位置,就在計分表上相對應的位置累加1,直到步驟(4)中全部的方向次頻帶內,界限值以上的能量係數h(x,y)都處理完畢;步驟(5-2):在計分表上的一τ×τ的範圍內,中心是該範圍內最大的值且其值大於等於λ,則將該範圍內全部大於等於λ的值都加起來得到和,並把其和放在τ×τ的中心作為一收斂點,並把其他值都設成0,其中該λ值係設為5以上;步驟(5-3):若在某一個小波轉換的次頻帶中,有包含收斂點且其值λ,且收斂點不位於低頻訊號的收斂區間內,則該次頻帶可使用方向性濾波器作拆解;以及步驟(5-4):拆解後之次頻帶可用一相鄰表作編碼並壓縮。For example, in the image processing method of claim 1, wherein the step (5) further comprises: step (5-1): using a score table of the same size as a×b, as long as each centroid is finally converged. , adding 1 to the corresponding position on the score table until the energy coefficient h(x, y) above the threshold value is processed in all the sub-bands in step (4); step (5-2): In the range of τ × τ on the score table, the center is the largest value in the range and its value is greater than or equal to λ, then all the values in the range greater than or equal to λ are added up to obtain the sum, and the sum is Place it at the center of τ × τ as a convergence point, and set all other values to 0, where the λ value is set to 5 or more; Step (5-3): If in a sub-band of a wavelet transform, there is Contains convergence points and their values λ, and the convergence point is not located in the convergence interval of the low frequency signal, then the subband can be disassembled using a directional filter; and step (5-4): the subband after disassembly can be encoded by an adjacent table and compression. 如申請專利範圍第10項之影像處理方法,其中計分表上需要處理的大小τ係設在3到5之間。For example, the image processing method of claim 10, wherein the size τ to be processed on the score table is set between 3 and 5. 如申請專利範圍第3項之影像處理方法,其中在步驟(3)找出用以判斷該能量頻譜中每一個次頻帶波峰的界限值,其適用的方向拆解數目為兩個方向次頻帶以上。The image processing method of claim 3, wherein in step (3), a threshold value for determining a peak of each sub-band in the energy spectrum is found, and the number of direction splits applicable is two or more sub-bands. . 如申請專利範圍第1項之影像處理方法,其中該低高次頻帶的低頻訊號的收斂區大小為e×b/4,其中e的大小係設定至少為c,且該高低次頻帶的低頻訊號的收斂區大小為f×a/4,其中f的大小係設定至少為d。The image processing method of claim 1, wherein a convergence region of the low-frequency band of the low-high frequency band has a size of e×b/4, wherein the size of e is set to be at least c, and the low-frequency signal of the high-low frequency band is The size of the convergence region is f × a / 4, where the size of f is set to at least d.
TW101100463A 2012-01-05 2012-01-05 An image process method having a function of determining the suitable properties of the directional filter TWI501652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW101100463A TWI501652B (en) 2012-01-05 2012-01-05 An image process method having a function of determining the suitable properties of the directional filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW101100463A TWI501652B (en) 2012-01-05 2012-01-05 An image process method having a function of determining the suitable properties of the directional filter

Publications (2)

Publication Number Publication Date
TW201330636A TW201330636A (en) 2013-07-16
TWI501652B true TWI501652B (en) 2015-09-21

Family

ID=49225918

Family Applications (1)

Application Number Title Priority Date Filing Date
TW101100463A TWI501652B (en) 2012-01-05 2012-01-05 An image process method having a function of determining the suitable properties of the directional filter

Country Status (1)

Country Link
TW (1) TWI501652B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI318073B (en) * 2006-04-18 2009-12-01 Univ Nat Chunghsing
TW200952461A (en) * 2008-06-09 2009-12-16 Univ Kun Shan Wavelet codec with a function of adjustable image quality
US20100008424A1 (en) * 2005-03-31 2010-01-14 Pace Charles P Computer method and apparatus for processing image data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100008424A1 (en) * 2005-03-31 2010-01-14 Pace Charles P Computer method and apparatus for processing image data
TWI318073B (en) * 2006-04-18 2009-12-01 Univ Nat Chunghsing
TW200952461A (en) * 2008-06-09 2009-12-16 Univ Kun Shan Wavelet codec with a function of adjustable image quality

Also Published As

Publication number Publication date
TW201330636A (en) 2013-07-16

Similar Documents

Publication Publication Date Title
CN102509269B (en) Image denoising method combined with curvelet and based on image sub-block similarity
CN103093441B (en) Based on the non-local mean of transform domain and the image de-noising method of two-varaible model
CN101950414A (en) Non-local mean de-noising method for natural image
CN102332155A (en) A method of image enhancement
CN103247028A (en) Multi-hypothesis prediction block compressed sensing image processing method
Sidhik Comparative study of Birge–Massart strategy and unimodal thresholding for image compression using wavelet transform
CN101916433A (en) Denoising method of strong noise pollution image based on partial differential equation
CN106612435A (en) Joint image compression method based on SVD-DWT-DCT
CN103903228A (en) Non-local image denoising method based on HWD conversion
CN113962882A (en) JPEG image compression artifact eliminating method based on controllable pyramid wavelet network
CN110322404B (en) Image enhancement method and system
CN104182939A (en) Medical image detail enhancement method
CN105550998B (en) Image enhancement method and image enhancement system based on second-generation wavelet integer transform
CN110060220A (en) Based on the image de-noising method and system for improving BM3D algorithm
CN104240208A (en) Uncooled infrared focal plane detector image detail enhancement method
CN108269246A (en) A kind of image equalization Enhancement Method of low-frequency wavelet coefficients interpolation
CN102547363A (en) No-reference image quality evaluating method on basis of contourlet transform domain image energy features
CN102196155B (en) Coefficient self-adaptive shrinkage video denoising method based on Surfacelet transformation
CN104754183B (en) A kind of real-time monitor video adaptive filter method and its system
CN101527036B (en) Lifting wavelet image de-noising method based on neighborhood windowing
TWI501652B (en) An image process method having a function of determining the suitable properties of the directional filter
CN109447952B (en) Semi-reference image quality evaluation method based on Gabor differential box weighting dimension
CN108718409A (en) The remote sensing image compression method encoded based on Block direction Lifting Wavelet and adative quadtree
CN104182944A (en) Optical image denoising method based on serial connection of curvelet transform and wavelet transform
CN101246591A (en) Restoration Image Reconstruction Method Based on Image Edge Features