本發明是有關於一種裝置及方法,特別是指能達到一定程度銳利化又能消除振鈴的影像處理裝置及影像處理方法。The present invention relates to an apparatus and method, and more particularly to an image processing apparatus and an image processing method capable of achieving a certain degree of sharpening and eliminating ringing.
習知影像處理技術具有以下缺點:Conventional image processing techniques have the following disadvantages:
1.有嚴重的振鈴(Ringing)現象,習知影像處理技術實現影像銳利化的同時往往伴隨著嚴重的振鈴效果,因此,往往需要一次處理至少9個畫素值(3×3)以得到較平均的旋積值而優化新影像之振鈴現象。1. There is a serious ringing phenomenon. Conventional image processing technology is often accompanied by severe ringing effects while achieving image sharpening. Therefore, it is often necessary to process at least 9 pixel values (3×3) at a time to obtain a comparison. The average convolution value optimizes the ringing of new images.
2.需較大的硬體儲存面積:習知影像處理技術為了要消除振鈴,一次處理需處理至少9個畫素值,因此需預先儲存至少九個畫素值,再根據所儲存的該九個畫素值加以運算處理而得到新影像的複數個新畫素值的其中之一,因此,習知影像處理技術的硬體儲存空間須能儲存九個畫素值,導致硬體儲存面積過大。2. Larger hardware storage area is required: conventional image processing technology needs to process at least 9 pixel values in one process in order to eliminate ringing, so it is necessary to store at least nine pixel values in advance, and then according to the stored nine The pixel values are processed to obtain one of a plurality of new pixel values of the new image. Therefore, the hardware storage space of the conventional image processing technology must be able to store nine pixel values, resulting in an excessive storage area of the hardware. .
因此,本發明之第一目的,即在提供一種能改善振鈴現象,又能即時處理的影像處理方法。Accordingly, a first object of the present invention is to provide an image processing method which can improve the ringing phenomenon and can be processed immediately.
於是,本發明影像處理方法由一處理單元執行,該處理單元接收一影像,該影像包括M列畫素列,每一列畫素列包括N個畫素值,其中,1≦M,3≦N,且M、N為正整數,該影像處理方法包含下述步驟(A)、步驟(B)、步驟(C)及步驟(D)。Therefore, the image processing method of the present invention is executed by a processing unit that receives an image, the image includes M columns of pixel columns, and each column of pixels includes N pixel values, wherein, 1≦M, 3≦N And M and N are positive integers, and the image processing method includes the following steps (A), (B), (C), and (D).
步驟(A):該處理單元儲存該影像的第m列畫素列的第X個畫素值至第(Y-1)個畫素值,其中,1≦X,X<a≦Y≦N,1≦m,且a、Y、X、m為正整數。Step (A): the processing unit stores the Xth pixel value of the mth column of the image column to the (Y-1)th pixel value, where 1≦X, X<a≦Y≦N , 1≦m, and a, Y, X, and m are positive integers.
步驟(B):該處理單元即時接收該影像的該第m列畫素列的第Y個畫素值,並根據該第X個畫素值至該第Y個畫素值進行內插法擴展而產生一擴展畫素列。Step (B): the processing unit immediately receives the Yth pixel value of the mth column of pixels of the image, and performs interpolation according to the Xth pixel value to the Yth pixel value. And an extended pixel column is generated.
步驟(C):該處理單元根據該擴展畫素列和一遮罩進行旋積運算產生一旋積值。Step (C): The processing unit performs a convolution operation according to the expanded pixel sequence and a mask to generate a convolution value.
步驟(D):該處理單元根據所儲存的第b個畫素值和該旋積值進行加法運算產生一新影像的第m列畫素列的第b個畫素值,其中,X≦b≦Y,且b為正整數。Step (D): the processing unit adds the stored b-th pixel value and the convolution value to generate a b-th pixel value of the m-th column of the new image, where X≦b ≦Y, and b is a positive integer.
本發明之一第二目的,即在提供一種能改善振鈴現象,又能即時處理的影像處理裝置。A second object of the present invention is to provide an image processing apparatus which can improve the ringing phenomenon and can be processed immediately.
於是,本發明影像處理裝置包含一處理單元。Thus, the image processing apparatus of the present invention includes a processing unit.
該處理單元接收一影像,該影像包括M列畫素列,每一列畫素列包括N個畫素值,其中,1≦M,3≦N,且M、N為正整數。該處理單元包括一緩衝器、一運算器及一加法器。The processing unit receives an image, the image includes M columns of pixel columns, and each column of pixels includes N pixel values, wherein 1≦M, 3≦N, and M and N are positive integers. The processing unit includes a buffer, an arithmetic unit, and an adder.
該緩衝器用以依序接收並儲存該影像的第m列畫素列的第X個畫素值至第(Y-1)個畫素值,其中,1≦X,X<a≦Y≦N,1≦m≦M,且a、Y、X、m為正整數。The buffer is configured to sequentially receive and store the Xth pixel value of the mth column of the image to the (Y-1)th pixel value, where 1≦X, X<a≦Y≦N , 1≦m≦M, and a, Y, X, and m are positive integers.
該運算器電連接該緩衝器以接收該緩衝器所儲存的該第m列畫素列的第X個畫素值至第(Y-1)個畫素值,並接收該影像的第m列畫素列的第Y個畫素值,且根據該第X個畫素值至該第Y個畫素值進行內插法擴展而產生一擴展畫素列,再根據該擴展畫素列和一遮罩進行旋積運算產生一旋積值。The operator is electrically connected to the buffer to receive the Xth pixel value of the mth column of pixel columns stored in the buffer to the (Y-1)th pixel value, and receives the mth column of the image. Placing a Yth pixel value of the prime column, and performing interpolation interpolation according to the Xth pixel value to the Yth pixel value to generate an extended pixel column, and then according to the extended pixel column and the The mask performs a convolution operation to produce a convolution value.
該加法器電連接該運算器和該緩衝器以接收該旋積值和該緩衝器所儲存的第b個畫素值進行加法運算產生一新影像的第m列畫素列的第b個畫素值,其中,X≦b≦Y,且b為正整數。The adder is electrically connected to the operator and the buffer to receive the b-th pixel of the m-th column of the new pixel by adding the convolution value and the b-th pixel value stored in the buffer to generate a new image. A prime value, where X≦b≦Y, and b is a positive integer.
本發明之功效在於:藉由內插法擴展將接收到的Y個像素值擴展成多個像素值,藉此使相鄰的二畫素值彼此之間的邊界落差不會過大,進而使該新影像的振鈴現象降低,且能即時接收該第Y個畫素值以即時運算。The effect of the present invention is to expand the received Y pixel values into a plurality of pixel values by interpolation, thereby making the boundary difference between adjacent two pixel values not excessively large, thereby making the The ringing phenomenon of the new image is reduced, and the Yth pixel value can be received immediately for immediate operation.
1‧‧‧影像處理裝置1‧‧‧Image processing device
2‧‧‧色域轉換單元2‧‧‧Color gamut conversion unit
21‧‧‧原始影像21‧‧‧ original image
22‧‧‧影像22‧‧‧Image
3‧‧‧處理單元3‧‧‧Processing unit
31‧‧‧緩衝器31‧‧‧ buffer
32‧‧‧運算器32‧‧‧Operator
33‧‧‧加法器33‧‧‧Adder
4‧‧‧新影像4‧‧‧New imagery
A0‧‧‧步驟A0‧‧‧ steps
A~H‧‧‧步驟A~H‧‧ steps
Δ‧‧‧旋積值Δ‧‧‧ convolution
L1~L36‧‧‧畫素值L1~L36‧‧‧ pixel value
M2~M5‧‧‧新影像的畫素值M2~M5‧‧‧ pixel values of new images
M8~M11‧‧‧新影像的畫素值M8~M11‧‧‧ New image pixel values
M14~M17‧‧‧新影像的畫素值M14~M17‧‧‧ pixel values of new images
M20~M23‧‧‧新影像的畫素值M20~M23‧‧‧ pixel values of new images
M26~M29‧‧‧新影像的畫素值M26~M29‧‧‧ pixel values of new images
M32~M35‧‧‧新影像的畫素值M32~M35‧‧‧ New image pixel values
本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一方塊圖,說明本發明影像處理方法的一實施例;圖2是一示意圖,說明本發明影像處理方法的該實施例之影像轉換;圖3是一流程圖,說明本發明影像處理方法的該實施例之流程圖;圖4是一方塊圖,說明本發明影像處理方法的該實施例的一第一階段;圖5是一方塊圖,說明本發明影像處理方法的該實施例的一第二階段;圖6是一方塊圖,說明本發明影像處理方法的該實施例的一第三階段;圖7是一示意圖,說明本發明影像處理方法的該實施例的內插法擴展及旋積運算示意圖;圖8是一示意圖,說明本發明影像處理方法的該實施例的一新影像;及圖9是一示意圖,說明本發明影像處理方法的該實施例依據內插法擴展得到的一旋積運算示意圖。The other features and advantages of the present invention will be apparent from the embodiments of the present invention. FIG. 1 is a block diagram illustrating an embodiment of the image processing method of the present invention. FIG. 2 is a schematic diagram illustrating the present invention. FIG. 3 is a flowchart illustrating a flowchart of the embodiment of the image processing method of the present invention; FIG. 4 is a block diagram illustrating the embodiment of the image processing method of the present invention; a first stage; FIG. 5 is a block diagram illustrating a second stage of the embodiment of the image processing method of the present invention; and FIG. 6 is a block diagram showing a third embodiment of the image processing method of the present invention. 7 is a schematic diagram illustrating an interpolation expansion and a convolution operation of the embodiment of the image processing method of the present invention; FIG. 8 is a schematic diagram showing a new image of the embodiment of the image processing method of the present invention; FIG. 9 is a schematic diagram showing a convolution operation diagram obtained by extending the interpolation method according to the embodiment of the image processing method of the present invention.
參閱圖1,本發明影像處理方法是由一處理單元3所執行,該處理單元3電連接一儲存一影像22的色域轉換單元2,且該處理單元3和該色域轉換單元2共同組成一影像處理裝置1。Referring to FIG. 1, the image processing method of the present invention is executed by a processing unit 3, which is electrically connected to a color gamut converting unit 2 storing an image 22, and the processing unit 3 and the color gamut converting unit 2 are combined. An image processing device 1.
同時參閱圖2,該色域轉換單元2接收一原始影像21,並將該原始影像21的一RGB色域轉換成一HSL色域,所謂的RGB色域為以紅色(Red)、綠色(Green)與藍色(Blue)三原色為主的色彩像素,而HSL色域為色相(Hue)、飽和度(Saturation)和亮度(Lightness/Luminance)為主的色彩像素。Referring to FIG. 2, the color gamut converting unit 2 receives an original image 21 and converts an RGB color gamut of the original image 21 into an HSL color gamut. The so-called RGB color gamut is red (Red) and green (Green). The color pixels are mainly composed of three primary colors of blue, and the HSL color gamut is a color pixel mainly composed of Hue, Saturation, and Lightness/Luminance.
也就是說,該色域轉換單元2將該原始影像21的複數個畫素之RGB值分別轉換成複數個HSL值,並儲存該等HSL值的複數個L值而組成該影像22,該影像22包括M列畫素列,每一列畫素列包括N個畫素值,其中,該等L值(該M×N個畫素值)即為該M×N個畫素的亮度,1≦M,3≦N,且M、N為正整數,另外,需注意的是圖2的該原始影像21和該影像22的該等畫素值之數值僅為方便說明所標示,並非實際的該等畫素值之數值。That is, the color gamut converting unit 2 converts the RGB values of the plurality of pixels of the original image 21 into a plurality of HSL values, and stores a plurality of L values of the HSL values to form the image 22, the image 22 includes M columns of pixel columns, each column of pixels includes N pixel values, wherein the L values (the M×N pixel values) are the brightness of the M×N pixels, 1≦ M, 3≦N, and M, N are positive integers. In addition, it should be noted that the values of the pixel values of the original image 21 and the image 22 of FIG. 2 are only indicated for convenience of explanation, and are not actual. The value of the pixel value.
該處理單元3電連接該色域轉換單元2,並包括一緩衝器31、一運算器32,及一加法器33,用以依序接收並儲存該影像22的第X個畫素值至第Y-1個畫素值,再根據所儲存的該第X個畫素值至第Y-1個畫素值,及自該影像22接收到的第Y個畫素值進行影像處理而產生一新影像4,其中,該緩衝器31為先進先出緩衝器(FIFO buffer,First In First Out Buffer),且1≦X,X<a≦Y≦N,且a、Y、X為正整數。The processing unit 3 is electrically connected to the color gamut converting unit 2, and includes a buffer 31, an arithmetic unit 32, and an adder 33 for sequentially receiving and storing the Xth pixel value of the image 22 to the first Y-1 pixel values are further calculated according to the stored Xth pixel value to the Y-1th pixel value, and the Yth pixel value received from the image 22.The image processing generates a new image 4, wherein the buffer 31 is a FIFO buffer (First In First Out Buffer), and 1≦X, X<a≦Y≦N, and a, Y, X is a positive integer.
參閱圖3和圖4,為方便說明本實施例定義該緩衝器31具有儲存二畫素之儲存空間,因此定義a等於3,但不限於此,可依實際需求而設定。Referring to FIG. 3 and FIG. 4, for convenience of description, the buffer 31 has a storage space for storing two pixels. Therefore, the definition of a is equal to three, but is not limited thereto, and may be set according to actual needs.
該處理單元3執行該影像處理方法包含以下步驟:The processing unit 3 performs the image processing method and includes the following steps:
<第一階段><first stage>
步驟(A0)利用該處理單元3依序接收來自該色域轉換單元2的該影像22的第m列畫素列的第X個畫素值至第(Y-1)個畫素值,其中,1≦m,且m為正整數。Step (A0) uses the processing unit 3 to sequentially receive the Xth pixel value to the (Y-1)th pixel value of the mth column of the pixel column of the image 22 of the color gamut converting unit 2, wherein , 1≦m, and m is a positive integer.
步驟(A) 該處理單元3儲存來自該色域轉換單元2的該影像22的第m列畫素列的第X個畫素值至第(Y-1)個畫素值。Step (A) The processing unit 3 stores the Xth pixel value to the (Y-1)th pixel value of the mth column pixel column of the image 22 from the color gamut converting unit 2.
詳細來說,本實施例的該影像22以六列畫素列(M=6),且每一列畫素列以六個畫素值為例(N=6),該處理單元3的該緩衝器31依序接收該影像22的第一列畫素列(m=1)的第一個畫素值(L1)至第二個畫素值(L2),並依據先接收到的先儲存之概念將該第一個畫素值(L1)和第二個畫素值(L2)儲存於該緩衝器31內。In detail, the image 22 of the embodiment has six columns of pixels (M=6), and each column of pixels has six pixel values (N=6), and the buffer of the processing unit 3 The device 31 sequentially receives the first pixel value (L1) of the first column of pixels (m=1) of the image 22 to the second pixel value (L2), and stores the first pixel according to the first received value. The concept stores the first pixel value (L1) and the second pixel value (L2) in the buffer 31.
步驟(B) 當該處理單元3即時接收來自該色域轉換單元2的該影像22的該第m列畫素列的第Y個畫素值,則根據該第X個畫素值至該第Y個畫素值進行內插法擴展而產生一擴展畫素列。Step (B) when the processing unit 3 immediately receives the Yth pixel value of the mth column of the pixel column of the image 22 from the color gamut converting unit 2, according to the Xth pixel value to the first The Y pixel values are expanded by interpolation to produce an extended pixel column.
其中,該擴展畫素列是由該處理單元3的該運算器32所接收的該第X個畫素值至該第Y個畫素值與(Y-X)個擴展畫素值共同組成,且每一擴展畫素值為相鄰二畫素值的中值,該中值的運算法為,其中,I和J分別為相鄰二畫素之畫素值。The extended pixel sequence is composed of the Xth pixel value received by the operator 32 of the processing unit 3 to the Yth pixel value and (YX) extended pixel values, and each An extended pixel value is the median of adjacent two pixel values, and the median value is Where I and J are the pixel values of adjacent two pixels, respectively.
更詳細地說,本實施例的該運算器32接收該緩衝器31所儲存的該第一個畫素值(L1)和第二個畫素值(L2),同時也自該色域轉換單元2的該影像22接收該第三個畫素值(L3),此時,該運算器32則根據跟第一個畫素值(L1)至該第三個畫素值(L3)進行內插法擴展而產生該擴展畫素列(如圖7所示)。In more detail, the operator 32 of the embodiment receives the first pixel value (L1) and the second pixel value (L2) stored in the buffer 31, and also from the color gamut conversion unit. The image 22 of 2 receives the third pixel value (L3), and at this time, the operator 32 interpolates according to the first pixel value (L1) to the third pixel value (L3). The method expands to produce the expanded pixel column (as shown in Figure 7).
步驟(C) 利用該處理單元3根據該擴展畫素列和一遮罩進行旋積運算產生一旋積值Δ。Step (C) The processing unit 3 performs a convolution operation according to the expanded pixel sequence and a mask to generate a convolution value Δ.
需值得注意的是,該處理單元3的該運算器32係採用(公式1)的旋積運算公式得到該旋積值Δ。It should be noted that the operator 32 of the processing unit 3 obtains the convolution value Δ by the convolution operation formula of (Formula 1).
其中,參數I、J、K和L分別該擴展畫素列的該第X個畫素值、該第b個畫素值至該第Y個畫素值,而和為擴充畫素值,參數G為對應該第b個畫素值的該遮罩之係數權重,本發明的影像處理方法的該遮罩之係數個數等於該擴展畫素列的個數,且對應該第b個畫素值的該遮罩之係數權重會較高,另外,須注意的是該遮罩之係數權重之設計要點為所有係數之係數權重相加等於零,因此,G的係數權重為{-[(-1)+(-1)+…+(-1)+(-1)+(-1)]}。Wherein the parameters I, J, K, and L respectively represent the Xth pixel value of the extended pixel column, the bth pixel value to the Yth pixel value, and with In order to expand the pixel value, the parameter G is the coefficient weight of the mask corresponding to the bth pixel value, and the number of coefficients of the mask of the image processing method of the present invention is equal to the number of the extended pixel columns, and The coefficient weight of the mask corresponding to the bth pixel value is higher. In addition, it should be noted that the design weight of the coefficient of the mask is that the coefficient weights of all coefficients are added equal to zero, and therefore, the coefficient weight of G is It is {-[(-1)+(-1)+...+(-1)+(-1)+(-1)]}.
以本實施例來更清楚說明,本實施例的該第一階段是以第二個畫素值(b=2)為主要轉換畫素,因此對應該第二個畫素值(L2)的該遮罩之係數權重之值應該要較大,以本例來說,G以4為例(G={-[(-1)+(-1)+(-1)+(-1)]}=4),如圖7所示,因此,本實施例現階段的旋積值Δ如(公式2)所示。As is clearer from the embodiment, the first stage of the embodiment is that the second pixel value (b=2) is the main conversion pixel, so the second pixel value (L2) corresponds to the pixel value. The value of the coefficient weight of the mask should be large. In this case, G is 4 (G={-[(-1)+(-1)+(-1)+(-1)]} = 4), as shown in Fig. 7, therefore, the current value Δ of the present embodiment is as shown in (Formula 2).
步驟(D) 利用該處理單元3根據第b個畫素值和該旋積值Δ進行加法運算產生一新影像4的第m列畫素列的第b個畫素值,其中,X≦b≦Y,且b為正整數。Step (D) The processing unit 3 adds the b-th pixel value and the convolution value Δ to generate a b-th pixel value of the m-th column pixel column of a new image 4, where X≦b ≦Y, and b is a positive integer.
該處理單元3的該加法器33將該第二個畫素值(L2)和該旋積值Δ進行加法運算而得到該新影像4的第一列畫素列(m=1)的第二個畫素值(M2)。The adder 33 of the processing unit 3 adds the second pixel value (L2) and the convolution value Δ to obtain a second column of the first column of the new image 4 (m=1). The pixel value (M2).
步驟(E) 該處理單元3判斷Y的現有數值是否等於N,若是,則完成第m列的影像處理,若否,則進到步驟(F)。Step (E) The processing unit 3 determines whether the existing value of Y is equal to N, and if so, completes the image processing of the mth column, and if not, proceeds to step (F).
步驟(F) 該處理單元3將X的現有數值加1做為下一數值,Y的現有數值加1做為下一數值,回到步驟(A)。Step (F) The processing unit 3 adds 1 to the existing value of X as the next value, and increments the existing value of Y by 1 as the next value, and returns to step (A).
該處理單元3判斷該第一列畫素列的該六個畫素值還未運算完成,該處理單元3則開始第二階段而進到步驟(F)。The processing unit 3 determines that the six pixel values of the first column of pixels are not yet calculated, and the processing unit 3 starts the second phase and proceeds to step (F).
<第二階段><Second stage>
參閱圖5,該處理單元3將第一階段的X之現有數值和Y之現有數值各自加1分別做為第二階段的X值和Y值(X=2,Y=4)而回到步驟(A)執行儲存來自該色域轉換單元2的該影像22的該第一列畫素列(m=1)的該第二個畫素值(L2)至第四個畫素值(L4),並繼續步驟(B)至步驟(F),此動作說明類似於第一階段,故不再贅述,直到該處理單元3判斷Y的現有數值等於N(N=6),則進到步驟(G)。Referring to FIG. 5, the processing unit 3 adds 1 to the existing value of X in the first stage and the existing value of Y as the X value and the Y value (X=2, Y=4) of the second stage, respectively.Returning to step (A), the second pixel value (L2) to the fourth pixel value of the first column of pixels (m=1) storing the image 22 from the color gamut converting unit 2 is performed. (L4), and continue to step (B) to step (F), this action description is similar to the first stage, so it will not be described again until the processing unit 3 judges that the existing value of Y is equal to N (N=6), then Go to step (G).
步驟(G)該處理單元3判斷m的現有數值是否等於M,若是,則完成影像處理,若否,則進到步驟(H)。Step (G) The processing unit 3 determines whether the existing value of m is equal to M, and if so, completes the image processing, and if not, proceeds to step (H).
步驟(H)該處理單元3將m的現有數值加1做為下一數值,X的下一數值等於1,Y的下一數值等於a,回到步驟(A0)Step (H) The processing unit 3 adds 1 to the existing value of m as the next value, the next value of X is equal to 1, and the next value of Y is equal to a, returning to step (A0)
<第三階段><third stage>
參閱圖6,該處理單元3將第二階段的m之現有數值加1做為第三階段的數值(m=2),且於第三階段時的X之數值等於1(X=1),Y的數值等於a(Y=a=3),回到步驟(A0)依序接收該影像22的第二列畫素列的第一個畫素值(L7)至第三個畫素值(L9),並繼續步驟(A)至步驟(G),此動作說明類似於第一階段和第二階段,故不再贅述,直到該處理單元3判斷m的現有數值等於M(M=6),且Y的現有數值等於N(N=6),則完成影像處理,如圖8所示。Referring to FIG. 6, the processing unit 3 adds 1 to the existing value of m in the second stage as the value of the third stage (m=2), and the value of X in the third stage is equal to 1 (X=1). The value of Y is equal to a (Y=a=3), and returns to step (A0) to sequentially receive the first pixel value (L7) to the third pixel value of the second column of pixels of the image 22 ( L9), and continue to step (A) to step (G), this action description is similar to the first stage and the second stage, so it will not be described again until the processing unit 3 judges that the existing value of m is equal to M (M=6) And the existing value of Y is equal to N (N=6), then the image processing is completed, as shown in FIG.
另,需特別說明的是,本發明影像處理方法的主要轉換畫素為每一列畫素列(m=1~M)的第二個畫素值至第N-1個畫素值(b=2~(N-1)),以本實施例來說,本實施例的主要轉換畫素為第一列畫素列至第六列畫素列的第二個畫素值至第五個畫素值,而第一列畫素列至第六列畫素列的第一個畫素值(L1、L7、L13、L19、L25和L31)與第六個畫素值(L6、L12、L18、L24、L30和L36)則保持原狀不做處理。In addition, it should be particularly noted that the main conversion pixel of the image processing method of the present invention is the second pixel value to the N-1th pixel value of each column of pixel columns (m=1~M) (b= 2~(N-1)), in this embodiment, the main conversion pixel of the embodiment is the second pixel value of the first column pixel column to the sixth column pixel column to the fifth picture Prime value, andThe first pixel value (L1, L7, L13, L19, L25, and L31) and the sixth pixel value (L6, L12, L18, L24, L30, and L36) of a column of pixels to the sixth column of pixels. ) will remain untreated.
再者,本發明影像處理方法還可藉由本實施例的(公式2)所運算得到的旋積值Δ再加以簡化而得到如(公式3)所示的旋積值Δ。Furthermore, the image processing method of the present invention can be further simplified by the convolution value Δ calculated by (Equation 2) of the present embodiment to obtain a convolution value Δ as shown in (Equation 3).
旋積值Δ=(-1.5)×L1+3×L2+(-1.5)×L3 (公式3)The convolution value Δ=(-1.5)×L1+3×L2+(-1.5)×L3 (Equation 3)
參閱圖9,本發明的該運算器32亦可直接使用另一遮罩與該第一個畫素值(L1)至該第三個畫素值(L3)進行旋積運算,且該另一遮罩僅有三個係數個數,而該三個係數的三個係數權重分別經由(公式3)之運算設計而設定為(-1.5)、3和(-1.5),因此,該運算器32可直接將該第一個畫素值(L1)至該第三個畫素值(L3)與該另一遮罩進行旋積運算而得到與上述該第一階段的步驟(B)和步驟(C)相同的該旋積值,也就是說,本發明影像處理方法可藉由改變遮罩之係數個數與係數權重,而使步驟(B)和步驟(C)合為一個步驟而簡化該運算器32之處理過程。Referring to FIG. 9, the operator 32 of the present invention may also directly perform a convolution operation with the first pixel value (L1) to the third pixel value (L3) using another mask, and the other The mask has only three coefficient numbers, and the three coefficient weights of the three coefficients are respectively set to (-1.5), 3, and (-1.5) by the operation design of (Formula 3), and therefore, the operator 32 can Directly performing the convolution operation of the first pixel value (L1) to the third pixel value (L3) with the other mask to obtain the step (B) and the step (C) of the first stage described above. The same convolution value, that is, the image processing method of the present invention can simplify the operation by combining steps (B) and (C) into one step by changing the number of coefficients of the mask and the coefficient weight. The processing of the device 32.
綜上所述,由上述實施例可知本發明的影像處理裝置1具備以下優點:As described above, the image processing apparatus 1 of the present invention has the following advantages:
1.減少振鈴現象:該運算器32藉由內插法擴展將接收到的三個像素值擴展成五個像素值,藉此使相鄰的二畫素值彼此之間的邊界落差不會過大,進而使該新影像4的振鈴現象降低。1. Reducing the ringing phenomenon: the operator 32 expands the received three pixel values into five pixel values by interpolation, thereby making the boundary difference between adjacent two pixel values not too large In turn, the ringing phenomenon of the new image 4 is lowered.
2.減少硬體儲存面積:習知的影像處理技術至少儲存九個畫素值,並根據所儲存的該九個畫素值加以運算處理而得到新影像的複數個新畫素值的其中之一;而本發明影像處理裝置1,以上述實施例為例,僅需藉由該緩衝器31預先儲存二個畫素值(第X個畫素值至該第Y-1個畫素值),再藉由該運算器32根據儲存於該緩衝器31的該二個畫素值和即時自該影像22接收到的另一畫素值(第Y個畫素值),進行即時運算而產生該新影像4的複數個畫素值的其中之一,顯然,由於本發明可即時接收該另一畫素值(第Y個畫素值),所以緩衝器31的硬體儲存面積從儲存九個畫素值降至儲存二個畫素值,因此,本發明影像處理裝置1確實可以減少硬體儲存面積。2. Reduce the hardware storage area: the conventional image processing technology stores at least nine pixel values, and operates according to the stored nine pixel values to obtain a plurality of new pixel values of the new image. In the image processing apparatus 1 of the present invention, the above embodiment is taken as an example, and only two pixel values (the Xth pixel value to the Y-1th pixel value) need to be stored in advance by the buffer 31. And the operator 32 generates an instant operation based on the two pixel values stored in the buffer 31 and another pixel value (the Yth pixel value) received from the image 22. One of the plurality of pixel values of the new image 4, obviously, since the other pixel value (the Yth pixel value) can be received immediately by the present invention, the hardware storage area of the buffer 31 is stored from nine The pixel values are lowered to store two pixel values, and therefore, the image processing apparatus 1 of the present invention can surely reduce the hardware storage area.
顯然,本發明影像處理裝置1及其影像處理方法確實能達成本發明之目的。It is apparent that the image processing apparatus 1 of the present invention and its image processing method can achieve the object of the present invention.
惟以上所述者,僅為本發明之實施例而已,當不能以此限定本發明實施之範圍,凡是依本發明申請專利範圍及專利說明書內容所作之簡單的等效變化與修飾,皆仍屬本發明專利涵蓋之範圍內。However, the above is only the embodiment of the present invention, and the scope of the invention is not limited thereto, and all the equivalent equivalent changes and modifications according to the scope of the patent application and the patent specification of the present invention are still The scope of the invention is covered.
22‧‧‧影像22‧‧‧Image
3‧‧‧處理單元3‧‧‧Processing unit
31‧‧‧緩衝器31‧‧‧ buffer
32‧‧‧運算器32‧‧‧Operator
33‧‧‧加法器33‧‧‧Adder
L1~L36‧‧‧畫素值L1~L36‧‧‧ pixel value
M8‧‧‧新影像的畫素值M8‧‧‧ New image pixel values
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW105126168ATWI586168B (en) | 2016-08-17 | 2016-08-17 | Image processing apparatus and image processing method |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| TW105126168ATWI586168B (en) | 2016-08-17 | 2016-08-17 | Image processing apparatus and image processing method |
| Publication Number | Publication Date |
|---|---|
| TWI586168Btrue TWI586168B (en) | 2017-06-01 |
| TW201807996A TW201807996A (en) | 2018-03-01 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| TW105126168ATWI586168B (en) | 2016-08-17 | 2016-08-17 | Image processing apparatus and image processing method |
| Country | Link |
|---|---|
| TW (1) | TWI586168B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030071826A1 (en)* | 2000-02-02 | 2003-04-17 | Goertzen Kenbe D. | System and method for optimizing image resolution using pixelated imaging device |
| TWI299812B (en)* | 2004-08-11 | 2008-08-11 | Keh Tsong Li | |
| US20110134291A1 (en)* | 2006-08-17 | 2011-06-09 | Baumer Optronic Gmbh | Image-processing device for color image data and method for the image processing of color image data |
| US20110305393A1 (en)* | 2010-06-09 | 2011-12-15 | Microsoft Corporation | Techniques in optical character recognition |
| TW201437997A (en)* | 2013-03-28 | 2014-10-01 | Innolux Corp | Display method for use in a display device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030071826A1 (en)* | 2000-02-02 | 2003-04-17 | Goertzen Kenbe D. | System and method for optimizing image resolution using pixelated imaging device |
| TWI299812B (en)* | 2004-08-11 | 2008-08-11 | Keh Tsong Li | |
| US20110134291A1 (en)* | 2006-08-17 | 2011-06-09 | Baumer Optronic Gmbh | Image-processing device for color image data and method for the image processing of color image data |
| US20110305393A1 (en)* | 2010-06-09 | 2011-12-15 | Microsoft Corporation | Techniques in optical character recognition |
| TW201437997A (en)* | 2013-03-28 | 2014-10-01 | Innolux Corp | Display method for use in a display device |
| Publication number | Publication date |
|---|---|
| TW201807996A (en) | 2018-03-01 |
| Publication | Publication Date | Title |
|---|---|---|
| CN113454680A (en) | image processor | |
| US11468543B1 (en) | Neural-network for raw low-light image enhancement | |
| JP6974156B2 (en) | Image color conversion device, image color conversion program, image color conversion method | |
| JP2004312467A (en) | Imaging systems, image processing program | |
| WO2005081187A1 (en) | Image processor, image processing system, image processing method, image processing program and integrated circuit device | |
| JP2005167399A (en) | Image noise removal method | |
| JP2019518359A (en) | Low cost color extension module to extend image colors | |
| JP2002016939A (en) | Method and apparatus for processing image as well as recording medium | |
| JP4321064B2 (en) | Image processing apparatus and image processing program | |
| CN111292251A (en) | Image color cast correction method, device and computer storage medium | |
| JP6282123B2 (en) | Image processing apparatus, image processing method, and program | |
| Le et al. | Gamutnet: Restoring wide-gamut colors for camera-captured images | |
| CN106296614B (en) | Image processing apparatus and image processing method | |
| JP2001014454A (en) | Picture processor | |
| TWI586168B (en) | Image processing apparatus and image processing method | |
| JP4375580B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP4007964B2 (en) | Image processing apparatus, image processing method, and image processing program | |
| CN111010557B (en) | White point range determination method, white balance correction method and device, and storage medium | |
| CN101511032A (en) | Image signal processing device, image signal processing method and imaging device | |
| JP7022696B2 (en) | Image processing equipment, image processing methods and programs | |
| US12148133B2 (en) | Method and device for image processing, and storage medium | |
| TWI471848B (en) | Method for correcting colors and image processing device | |
| US20160048946A1 (en) | Image processing apparatus and image processing method | |
| JP2011043901A (en) | Image processor, image processing method, image processing program, and electronic equipment | |
| JP6318497B2 (en) | Image processing apparatus, imaging apparatus, and program |