TWI388219B - Image processing device and method thereof - Google Patents
Image processing device and method thereof Download PDFInfo
- Publication number
- TWI388219B TWI388219B TW97137760A TW97137760A TWI388219B TW I388219 B TWI388219 B TW I388219B TW 97137760 A TW97137760 A TW 97137760A TW 97137760 A TW97137760 A TW 97137760A TW I388219 B TWI388219 B TW I388219B
- Authority
- TW
- Taiwan
- Prior art keywords
- pixel
- image
- adjustment value
- current image
- value
- Prior art date
Links
Landscapes
- Image Processing (AREA)
Description
本發明是有關於一種影像處理技術,且特別是有關於一種可動態適應性調整影像的影像處理技術。The present invention relates to an image processing technique, and more particularly to an image processing technique that can dynamically adjust an image.
隨著多媒體技術的發展,人們對於高畫質影像的要求愈益提高。然而,液晶顯示器在快速的動態畫面下,由於液晶(Liquid Crystal, LC)的反應速度不夠快(一般為1ms~16ms),且背光源系統方面又採用了穩態(Holding Type)的驅動方式,如此便會因為人眼視覺暫留的關係而產生畫面殘影的問題,而這也就是所謂的動態模糊(Motion Blur)現象。With the development of multimedia technology, people's requirements for high-quality images have increased. However, in the fast dynamic picture of the liquid crystal display, the reaction speed of the liquid crystal (Liquid Crystal, LC) is not fast enough (generally 1ms~16ms), and the backlight system adopts the holding mode of the holding type. In this way, the problem of residual image will be caused by the persistence of the human eye, and this is the so-called Motion Blur phenomenon.
有鑑於此,習知技術常會使用銳化處理技術來改善畫面模糊的問題。習知的銳化處理技術是對整體影像進行銳化處理,因此會使得不需要進行銳化處理的影像區域也一併被迫進行銳化處理。In view of this, conventional techniques often use sharpening processing techniques to improve the problem of picture blur. The conventional sharpening processing technique sharpens the entire image, so that the image area that does not need to be sharpened is also forced to be sharpened.
以移動中的車輛之影像為例,利用習知的銳化處理技術對整體影像進行銳化處理,車輛的模糊問題雖可獲得改善,但整體影像的雜訊也會更趨嚴重。值得一提的是,若車輛的背景原先就已經是清晰的畫面,銳化處理會使車輛的背景過度銳化,造成畫面相當不協調,並產生人眼所無法忍受的雜訊。Taking the image of a moving vehicle as an example, the overall image is sharpened by a conventional sharpening processing technique, and the blurring problem of the vehicle can be improved, but the noise of the overall image is also more serious. It is worth mentioning that if the background of the vehicle is already a clear picture, the sharpening process will over-sharp the background of the vehicle, causing the picture to be quite uncoordinated and producing noise that the human eye can't bear.
本發明提供一種影像處理方法,可提升輸出影像的品質。The invention provides an image processing method, which can improve the quality of an output image.
本發明提供一種影像處理裝置,可動態適應性地調整影像,藉以提高輸出影像的品質。The invention provides an image processing device, which can dynamically adjust an image to improve the quality of an output image.
本發明提出一種影像處理方法,其包括依據目前影像的第一畫素及其附近的多個第一參考畫素計算第一調整值。此外,依據目前影像的第一畫素與先前影像的第一畫素之灰階值差異,計算第一權重係數。另外,依據第一調整值與第一權重係數計算第一加權調整值。再者,依據第一加權調整值調整目前影像的第一畫素,藉以產生輸出影像的第一畫素。The invention provides an image processing method, which comprises calculating a first adjustment value according to a first pixel of a current image and a plurality of first reference pixels in the vicinity thereof. In addition, the first weight coefficient is calculated according to the difference between the gray level value of the first pixel of the current image and the first pixel of the previous image. In addition, the first weight adjustment value is calculated according to the first adjustment value and the first weight coefficient. Furthermore, the first pixel of the current image is adjusted according to the first weight adjustment value, thereby generating a first pixel of the output image.
在本發明的一實施例中,影像處理方法更包括依據目前影像的第二畫素及其附近的多個第二參考畫素計算第二調整值。此外,依據目前影像的第二畫素與先前影像的第二畫素之灰階值差異,計算一第二權重係數。另外,依據第二調整值與第二權重係數計算第二加權調整值。再者,依據第二加權調整值調整目前影像的第二畫素,藉以產生輸出影像的第二畫素。In an embodiment of the invention, the image processing method further includes calculating a second adjustment value according to the second pixel of the current image and the plurality of second reference pixels in the vicinity thereof. In addition, a second weighting coefficient is calculated according to a grayscale value difference between the second pixel of the current image and the second pixel of the previous image. In addition, the second weight adjustment value is calculated according to the second adjustment value and the second weight coefficient. Furthermore, the second pixel of the current image is adjusted according to the second weighting adjustment value, thereby generating a second pixel of the output image.
在本發明的一實施例中,目前影像的第一畫素及其附近的第一參考畫素組成M×N的畫素陣列,其中M與N為大於等於2的正整數。在另一實施例中,目前影像的第一畫素可位於上述畫素陣列的右下角。在又一實施例中,第一調整值為目前影像的第一畫素的灰階值減去目前影像的 第一畫素及其附近的第一參考畫素的平均灰階值。In an embodiment of the invention, the first pixel of the current image and the first reference pixel in the vicinity thereof constitute an M×N pixel array, wherein M and N are positive integers greater than or equal to 2. In another embodiment, the first pixel of the current image may be located in the lower right corner of the pixel array. In still another embodiment, the first adjustment value is a grayscale value of the first pixel of the current image minus the current image. The average grayscale value of the first pixel and its first reference pixel.
在本發明的一實施例中,計算第一權重係數的步驟包括將目前影像的第一畫素與先前影像的第一畫素之灰階值差異除以基準值藉以得到第一權重係數。在另一實施例中,第一加權調整值等於第一調整值乘以第一權重係數。在又一實施例中,輸出影像的第一畫素之灰階值等於目前影像的第一畫素之灰階值加上第一加權調整值。In an embodiment of the invention, the step of calculating the first weight coefficient comprises dividing the difference between the first pixel of the current image and the gray level value of the first pixel of the previous image by the reference value to obtain the first weight coefficient. In another embodiment, the first weighted adjustment value is equal to the first adjustment value multiplied by the first weighting factor. In still another embodiment, the gray level value of the first pixel of the output image is equal to the gray level value of the first pixel of the current image plus the first weight adjustment value.
從另一觀點來看,本發明提供一種影像處理裝置,其包括儲存單元與計算單元。儲存單元可儲存先前影像。計算單元耦接儲存單元,可依據目前影像的畫素及其附近的多個參考畫素計算調整值,並依據目前影像的畫素與先前影像的畫素之灰階值差異,計算權重係數。另外,計算單元還可依據調整值與權重係數計算加權調整值,並依據加權調整值調整目前影像的畫素,藉以產生輸出影像的畫素,其中目前影像的畫素、先前影像的畫素與輸出影像的畫素彼此對應。From another point of view, the present invention provides an image processing apparatus including a storage unit and a computing unit. The storage unit can store previous images. The computing unit is coupled to the storage unit, and the adjustment value is calculated according to the pixel of the current image and a plurality of reference pixels in the vicinity thereof, and the weight coefficient is calculated according to the difference between the gray level value of the pixel of the current image and the pixel of the previous image. In addition, the calculation unit may further calculate a weight adjustment value according to the adjustment value and the weight coefficient, and adjust a pixel of the current image according to the weight adjustment value, thereby generating a pixel of the output image, wherein the pixel of the current image, the pixel of the previous image, and The pixels of the output image correspond to each other.
本發明因依據目前影像的畫素及其附近的多個參考畫素計算調整值。此外,依據目前影像的畫素與先前影像的畫素之灰階值差異,計算權重係數。另外,再依據調整值與權重係數調整目前影像。如此一來,便可適應性地調整目前影像,以提升輸出影像的品質。The present invention calculates an adjustment value based on the pixels of the current image and a plurality of reference pixels in the vicinity thereof. In addition, the weight coefficient is calculated according to the difference between the gray level value of the pixel of the current image and the pixel of the previous image. In addition, the current image is adjusted according to the adjustment value and the weight coefficient. In this way, the current image can be adaptively adjusted to improve the quality of the output image.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉幾個實施例,並配合所附圖式,作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.
習知技術的銳化處理技術是對整體影像進行銳化處理,無須進行銳化處理的影像區塊也會被迫進行銳化處理,因此容易產生人眼所無法忍受的雜訊。The sharpening processing technique of the prior art sharpens the entire image, and the image block that does not need to be sharpened is also forced to be sharpened, so that it is easy to generate noise that cannot be tolerated by the human eye.
有鑒於此,本發明的實施例提供一種影像處理技術。可判斷目前影像的各區塊為動態影像或靜態影像。接著,針對影像中的動態影像部分加強銳化效果,藉以改善動態模糊的問題。另外,針對影像中靜態部分,則降低銳化效果(甚至於可以不進行銳化處理),因此能避免雜訊的產生。如此一來可動態適應性地調整目前影像,並據以提升輸出影像的品質。下面將參考附圖詳細闡述本發明的實施例,附圖舉例說明了本發明的示範實施例,其中相同標號指示同樣或相似的步驟。In view of this, embodiments of the present invention provide an image processing technique. It can be judged that each block of the current image is a moving image or a still image. Then, the sharpening effect is enhanced for the moving image portion of the image, thereby improving the problem of dynamic blurring. In addition, for the static part of the image, the sharpening effect is reduced (even without sharpening), so noise can be avoided. In this way, the current image can be dynamically and adaptively adjusted, and the quality of the output image can be improved accordingly. The embodiments of the present invention are explained in detail below with reference to the accompanying drawings, in which FIG.
圖1是依照本發明的第一實施例的一種影像處理裝置的方塊圖。請參照圖1,在本實施例中,影像處理裝置10可包括儲存單元20與計算單元30。儲存單元20耦接計算單元30。儲存單元20與計算單元30可接收視訊資料。值得注意的是,儲存單元20,例如可以是圖框儲存器(Frame Buffer),可用來儲存影像,並提供先前影像給計算單元30。計算單元30可接收目前影像,並依據儲存單元20所提供的先前影像對目前影像進行調整,藉以產生輸出影像。1 is a block diagram of an image processing apparatus in accordance with a first embodiment of the present invention. Referring to FIG. 1 , in the embodiment, the image processing apparatus 10 may include a storage unit 20 and a computing unit 30 . The storage unit 20 is coupled to the computing unit 30. The storage unit 20 and the computing unit 30 can receive video data. It should be noted that the storage unit 20, for example, may be a frame buffer, which can be used to store images and provide previous images to the computing unit 30. The computing unit 30 can receive the current image and adjust the current image according to the previous image provided by the storage unit 20 to generate an output image.
在本實施例中,計算單元30例如可包括平均值計算單元、加法電路、減法電路、乘法電路與除法電路,但本發明並不以此為限。在其他實施例中,熟習本領域技術者 亦可依其需求改變計算單元30的實施方式。舉例來說,計算單元30也可包括查表電路,如此即可有效地減少運算量。In this embodiment, the calculation unit 30 may include, for example, an average value calculation unit, an addition circuit, a subtraction circuit, a multiplication circuit, and a division circuit, but the invention is not limited thereto. In other embodiments, those skilled in the art are familiar with The implementation of computing unit 30 can also be changed as needed. For example, the calculation unit 30 may also include a look-up table circuit, so that the amount of calculation can be effectively reduced.
再從另一角度來看,儲存單元20在第N畫框期間可接收並儲存第N畫框,並在第N+1畫框期間提供第N畫框給計算單元30,其中N為自然數。在第N+1畫框期間,計算單元30可接收第N+1畫框,並依據儲存單元20所提供的第N畫框調整第N+1畫框,藉以產生輸出影像。以此類推,儲存單元20在第N+1畫框期間可接收並儲存第N+1畫框,並在第N+2畫框期間提供第N+1畫框給計算單元30。在第N+2畫框期間,計算單元30可接收第N+2畫框,並依據儲存單元20所提供的第N+1畫框調整第N+2畫框,藉以產生輸出影像。以下配合流程圖作更進一步地說明。From another perspective, the storage unit 20 can receive and store the Nth frame during the Nth frame, and provide the Nth frame to the computing unit 30 during the N+1 frame, where N is a natural number . During the (N+1)th frame, the calculating unit 30 can receive the N+1th frame and adjust the N+1th frame according to the Nth frame provided by the storage unit 20 to generate an output image. By analogy, the storage unit 20 can receive and store the N+1th frame during the N+1th frame and provide the N+1th frame to the calculation unit 30 during the N+2 frame. During the N+2 frame, the calculating unit 30 can receive the N+2 frame and adjust the N+2 frame according to the N+1 frame provided by the storage unit 20 to generate an output image. The following is further explained in conjunction with the flow chart.
圖2是依照本發明的第一實施例的一種影像處理方法的流程圖。圖3是依照本發明的第一實施例的一種影像的示意圖。圖4是圖3的影像區塊示意圖。在本實施例中假設影像的解析度為1280×1024(如圖3),但本發明並不以此為限,在其他實施例中影像也可以是其他的解析度,例如1024×768…等。另外,假設儲存單元20已經儲存了先前影像。以下則詳細說明計算單元30接收到目前影像時,如何依據儲存單元20所提供的先前影像調整目前影像,藉以產生輸出影像。2 is a flow chart of an image processing method in accordance with a first embodiment of the present invention. Figure 3 is a schematic illustration of an image in accordance with a first embodiment of the present invention. 4 is a schematic diagram of the image block of FIG. 3. In this embodiment, it is assumed that the resolution of the image is 1280×1024 (as shown in FIG. 3), but the present invention is not limited thereto. In other embodiments, the image may be other resolutions, for example, 1024×768...etc. . In addition, it is assumed that the storage unit 20 has stored the previous image. The following describes in detail how the computing unit 30 adjusts the current image according to the previous image provided by the storage unit 20 when the current image is received, thereby generating an output image.
在本實施例中,目前影像的畫素(1,1)、(1,2)、 (1,3)、(2,1)、(2,2)、(2,3)、(3,1)、(3,2)與(3,3)的灰階值例如為150、160、170、180、190、170、170、160與180。先前影像的畫素(3,3)的灰階值例如為148(如圖4所示)。以下先以獲得輸出影像的畫素(3,3)的灰階值為例子進行說明。In this embodiment, the pixels of the current image (1, 1), (1, 2), The grayscale values of (1,3), (2,1), (2,2), (2,3), (3,1), (3,2), and (3,3) are, for example, 150, 160 , 170, 180, 190, 170, 170, 160, and 180. The grayscale value of the pixel (3, 3) of the previous image is, for example, 148 (as shown in FIG. 4). The following is an example of obtaining the grayscale value of the pixel (3, 3) of the output image.
先由步驟S201,計算單元30可依據目前影像的一畫素及其附近的多個參考畫素計算一調整值。值得一提的是步驟S201的實施方式具有相當多種,以下則提供一種選擇實施方式供熟習本領域技術者參詳,本發明並不以此為限。在其他實施例中,熟習本領域技術者亦可依其需求改變步驟S201的實施方式。First, in step S201, the calculating unit 30 can calculate an adjustment value according to a pixel of the current image and a plurality of reference pixels in the vicinity thereof. It is to be noted that there are a plurality of implementations of the step S201. In the following, an alternative embodiment is provided for those skilled in the art, and the invention is not limited thereto. In other embodiments, those skilled in the art can also change the implementation of step S201 according to their needs.
在本實施例的步驟S201中,目前影像的一畫素以畫素(3,3)為例進行說明,其附近的多個參考畫素則以畫素(1,1)、(1,2)、(1,3)、(2,1)、(2,2)、(2,3)、(3,1)與(3,2)為例進行說明。調整值的計算方式可以是畫素(3,3)的灰階值減去畫素(1,1)、(1,2)、(1,3)、(2,1)、(2,2)、(2,3)、(3,1)、(3,2)與(3,3)的平均灰階值。由於畫素(1,1)、(1,2)、(1,3)、(2,1)、(2,2)、(2,3)、(3,1)、(3,2)與(3,3)的平均灰階值=(150+160+170+180+190+170+170+160+180)/9=170,因此在本實施例中,調整值=180-170=10。In step S201 of the present embodiment, a pixel of the current image is illustrated by taking a pixel (3, 3) as an example, and a plurality of reference pixels in the vicinity are pixels (1, 1), (1, 2). ), (1, 3), (2, 1), (2, 2), (2, 3), (3, 1), and (3, 2) are described as an example. The adjustment value can be calculated by subtracting the pixels of the pixel (3, 3) from the pixels (1, 1), (1, 2), (1, 3), (2, 1), (2, 2). Average grayscale values of ), (2, 3), (3, 1), (3, 2), and (3, 3). Due to pixels (1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2) The average grayscale value of (3, 3) = (150 + 160 + 170 + 180 + 190 + 170 + 170 + 160 + 180) / 9 = 170, so in this embodiment, the adjustment value = 180-170 = 10.
值得一提的是,步驟S201的用意在於依據目前影像的畫素(3,3)及其附近畫素的對比程度計算調整值,以便後續步驟進行影像處理。也就是說步驟S201所得到的調 整值愈大,代表目前影像的畫素(3,3)及其附近畫素愈趨近於高對比影像;反之,步驟S201所得到的調整值愈小,代表目前影像的畫素(3,3)及其附近畫素愈趨近於低對比影像。一般而言,在進行影像處理時,會加強高對比影像的銳化效果,並維持或減弱低對比影像的銳化效果。以人像的影像為例進行說明,上述作法可使人像的頭髮更加清晰,另外也可使人像的皮膚更加地柔美,並避免產生班點。It is worth mentioning that the purpose of step S201 is to calculate the adjustment value according to the contrast degree of the pixel (3, 3) of the current image and the pixels nearby, so as to perform image processing in the subsequent steps. That is to say, the adjustment obtained in step S201 The larger the whole value, the closer the pixel (3, 3) and the nearby pixels of the current image are to the high contrast image; otherwise, the smaller the adjustment value obtained in step S201, represents the pixel of the current image (3, 3) The pixels near and near it are getting closer to low contrast images. In general, when performing image processing, the sharpening effect of high contrast images is enhanced, and the sharpening effect of low contrast images is maintained or reduced. Taking the image of a portrait as an example, the above method can make the hair of the portrait more clear, and also make the skin of the portrait more feminine and avoid the occurrence of the class.
在步驟S201之後可接續步驟S202,依據目前影像的畫素與先前影像的畫素之灰階值差異計算,計算權重係數。在本實施例中,目前影像的畫素與先前影像的畫素之灰階值差異的計算方式,是將目前影像的畫素(3,3)之灰階值減去先前影像的畫素(3,3)之灰階值,亦即上述灰階值差異=180-148=32。接著可再將上述灰階值差異除以基準值即可得到權重係數。舉例來說,基準值例如可以是64,因此權重係數=32/64=0.5。熟習本領域技術者應當知道基準值為64僅是一種選擇實施例。在其他實施例中,熟習本領域技術者亦可依其需求改變基準值。After step S201, step S202 is followed, and the weight coefficient is calculated according to the difference between the pixel of the current image and the grayscale value of the pixel of the previous image. In this embodiment, the difference between the grayscale value of the pixel of the current image and the pixel of the previous image is calculated by subtracting the grayscale value of the pixel (3, 3) of the current image from the pixel of the previous image ( 3, 3) gray scale value, that is, the above gray scale value difference = 180-148 = 32. Then, the weight coefficient can be obtained by dividing the grayscale value difference by the reference value. For example, the reference value can be, for example, 64, so the weight coefficient = 32/64 = 0.5. Those skilled in the art will appreciate that the reference value of 64 is only an alternative embodiment. In other embodiments, those skilled in the art can also change the reference value according to their needs.
步驟S202所得到的權重係數即是代表目前影像的畫素(3,3)趨近於動態畫面的程度。權重係數愈大代表目前影像的畫素(3,3)趨近於動態畫面;反之,權重係數愈小代表目前影像的畫素(3,3)趨近於靜態畫面。一般來說,液晶顯示器在顯示動態畫面時,容易有動態模糊的問題。上述問題雖可透過影像銳化處理來解決,但卻也會隨之產生雜訊。步驟S202所得到的權重係數可便於後續影像處 理,藉以僅針對動態畫面進行銳化處理,對於靜態畫面可選擇不進行銳化處理或是降低銳化效果。The weight coefficient obtained in step S202 is the degree that the pixel (3, 3) representing the current image approaches the dynamic picture. The larger the weight coefficient, the closer the current image's pixels (3, 3) to the dynamic picture; conversely, the smaller the weight coefficient means that the current image's pixels (3, 3) approach the static picture. In general, when a liquid crystal display displays a dynamic picture, it is easy to have a problem of motion blur. Although the above problems can be solved by image sharpening, they will also generate noise. The weight coefficient obtained in step S202 can facilitate the subsequent image Therefore, it is only necessary to sharpen the dynamic picture, and the static picture can be selected without sharpening or sharpening effect.
從步驟S201、S202得到調整值與權重係數之後,可執行步驟S203,依據調整值與權重係數計算加權調整值。在本實施例中,加權調整值可以由調整值與權重係數彼此相乘而得到,亦即加權調整值=10×0.5=5。After obtaining the adjustment value and the weight coefficient from steps S201 and S202, step S203 may be performed to calculate the weight adjustment value according to the adjustment value and the weight coefficient. In this embodiment, the weighting adjustment value may be obtained by multiplying the adjustment value and the weighting coefficient with each other, that is, the weighting adjustment value=10×0.5=5.
值得一提的是,步驟S203是將調整值與權重係數相乘藉以得到加權調整值,因此調整值與權重係數兩者中若有其一為0,加權調整值則會是0。也就是說,若目前影像的畫素(3,3)為均勻的平滑畫面或是靜態畫面的話,加權調整值則會是0,如此可有效避免突兀的雜訊產生。It is worth mentioning that step S203 is to multiply the adjustment value by the weight coefficient to obtain a weight adjustment value. Therefore, if one of the adjustment value and the weight coefficient is 0, the weight adjustment value is 0. That is to say, if the current pixel (3, 3) is a uniform smooth picture or a static picture, the weight adjustment value will be 0, which can effectively avoid the abrupt noise.
接著可執行步驟S204,依據加權調整值調整目前影像的畫素,藉以產生輸出影像的畫素。舉例來說,可將目前影像的畫素(3,3)的灰階值加上加權調整值即可得到輸出影像的畫素(3,3)的灰階值,亦即輸出影像的畫素(3,3)的灰階值=180+5=185。Then, step S204 is performed to adjust the pixels of the current image according to the weight adjustment value, thereby generating a pixel of the output image. For example, the grayscale value of the pixel (3, 3) of the current image can be added to the weight adjustment value to obtain the grayscale value of the pixel (3, 3) of the output image, that is, the pixel of the output image. The grayscale value of (3, 3) = 180 + 5 = 185.
綜合上述,本實施例的步驟S201~S204,可依據目前影像之各區塊趨近於動態畫面的程度以及各區塊趨近於高對比影像的程度來決定影像處理的銳化程度。因此不但能有效加強影像細部紋路改善動態模糊問題,而且還可以避免產生突兀的雜訊。In summary, steps S201 to S204 of the present embodiment may determine the degree of sharpening of image processing according to the extent to which each block of the current image approaches the dynamic picture and the extent to which each block approaches a high contrast image. Therefore, not only can the image detail be improved to improve the dynamic blurring problem, but also the abrupt noise can be avoided.
經由上述步驟S201~S204之教示,熟習本領域技術者應可輕易求得輸出影像的其他畫素的灰階值。舉例來說,上述輸出影像的畫素(3,3)的灰階值是由目前影像的 畫素(1,1)、(1,2)、(1,3)、(2,1)、(2,2)、(2,3)、(3,1)、(3,2)與(3,3)以及先前影像的畫素(3,3)求得。同理可類推,重複執行步驟S201~S204,輸出影像的畫素(3,4)的灰階值亦可由目前影像的畫素(1,2)、(1,3)、(1,4)、(2,2)、(2,3)、(2,4)、(3,2)、(3,3)與(3,4)以及先前影像的畫素(3,4)求得。如此即可得到完整的輸出影像。Through the teachings of the above steps S201 to S204, those skilled in the art should be able to easily obtain the grayscale values of other pixels of the output image. For example, the grayscale value of the pixel (3, 3) of the above output image is determined by the current image. Pixels (1,1), (1,2), (1,3), (2,1), (2,2), (2,3), (3,1), (3,2) and (3,3) and the pixels of the previous image (3,3) are obtained. Similarly, the steps S201 to S204 may be repeatedly performed, and the grayscale values of the pixels (3, 4) of the output image may also be from the pixels (1, 2), (1, 3), (1, 4) of the current image. , (2, 2), (2, 3), (2, 4), (3, 2), (3, 3) and (3, 4) and the previous image of the pixel (3, 4). This will give you a complete output image.
值得一提的是,雖然上述實施例中已經對影像處理裝置及其方法描繪出了一個可能的型態,但所屬技術領域中具有通常知識者應當知道,各廠商對於影像處理裝置及其方法設計都不一樣,因此本發明的應用當不限制於此種可能的型態。換言之,只要是依據目前影像的畫素及其附近的多個參考畫素計算調整值。此外,依據目前影像的畫素與先前影像的畫素之灰階值差異,計算權重係數。另外,再依據調整值與權重係數調整目前影像,就已經是符合了本發明的精神所在。以下再舉幾個實施方式以便本領域具有通常知識者能夠更進一步的了解本發明的精神,並實施本發明。It is worth mentioning that although the image processing apparatus and the method thereof have been drawn out in a possible form in the above embodiments, those having ordinary knowledge in the art should know that each manufacturer designs the image processing apparatus and its method. They are different, so the application of the invention is not limited to this possible type. In other words, the adjustment value is calculated based on the pixels of the current image and the plurality of reference pixels in the vicinity thereof. In addition, the weight coefficient is calculated according to the difference between the gray level value of the pixel of the current image and the pixel of the previous image. In addition, adjusting the current image according to the adjustment value and the weight coefficient is in line with the spirit of the present invention. In the following, several embodiments will be described to enable those skilled in the art to further understand the spirit of the invention and to practice the invention.
請再參照圖2,上述實施例中雖依序執行步驟S201、S202,但本發明並不以此為限。在其他實施例中,也可以先執行步驟S202再執行步驟S201,如此亦可達成相類似的功效。Referring to FIG. 2 again, steps S201 and S202 are sequentially performed in the above embodiment, but the present invention is not limited thereto. In other embodiments, step S202 may be performed first and then step S201 may be performed, so that similar effects can be achieved.
請再合併參照圖2與圖4,在上述實施例中,步驟S201雖以目前影像的畫素(1,1)、(1,2)、(1,3)、(2,1)、 (2,2)、(2,3)、(3,1)、(3,2)與(3,3)以及先前影像的畫素(3,3)來計算關於輸出影像的畫素(3,3)之調整值,但本發明並不以此為限。舉例來說,圖5是另一實施例的影像區塊示意圖。在圖5的實施例中,步驟S201也可依據目前影像的畫素(1,1)、(1,2)、(1,3)、(2,1)、(2,2)、(2,3)、(3,1)、(3,2)與(3,3)以及先前影像的畫素(2,2)來計算關於輸出影像的畫素(2,2)之調整值。Referring to FIG. 2 and FIG. 4 again, in the above embodiment, step S201 uses the pixels (1, 1), (1, 2), (1, 3), (2, 1) of the current image. (2, 2), (2, 3), (3, 1), (3, 2) and (3, 3) and the pixels of the previous image (3, 3) to calculate the pixels on the output image (3 3) The adjustment value, but the invention is not limited thereto. For example, FIG. 5 is a schematic diagram of an image block of another embodiment. In the embodiment of FIG. 5, step S201 can also be based on the pixels (1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2) of the current image. , 3), (3, 1), (3, 2) and (3, 3) and the pixels (2, 2) of the previous image to calculate the adjustment values of the pixels (2, 2) of the output image.
又例如,圖6是又一實施例的影像區塊示意圖。在圖6的實施例中,步驟S201也可依據目前影像的畫素(1,1)、(1,2)、(1,3)、(1,4)、(2,1)、(2,2)、(2,3)、(2,4)、(3,1)、(3,2)、(3,3)、(3,4)、(4,1)、(4,2)、(4,3)與(4,4)以及先前影像的畫素(4,4)來計算關於輸出影像的畫素(4,4)之調整值。值得注意的是,在產生輸出影像的各畫素之過程中,建議可以採用相同的實施方式,否則可能會出現不必要的雜訊。For another example, FIG. 6 is a schematic diagram of an image block of still another embodiment. In the embodiment of FIG. 6, step S201 can also be based on the pixels (1, 1), (1, 2), (1, 3), (1, 4), (2, 1), (2) of the current image. , 2), (2, 3), (2, 4), (3, 1), (3, 2), (3, 3), (3, 4), (4, 1), (4, 2 ), (4, 3) and (4, 4) and the pixels (4, 4) of the previous image to calculate the adjustment values of the pixels (4, 4) of the output image. It is worth noting that in the process of generating each pixel of the output image, it is recommended to use the same implementation, otherwise unnecessary noise may occur.
綜上所述,本發明依據目前影像的畫素及其附近的多個參考畫素計算調整值。此外,依據目前影像的畫素與先前影像的畫素之灰階值差異,計算權重係數。另外,再依據調整值與權重係數調整目前影像。如此一來,便可適應性地調整目前影像,不但能有效加強影像細部紋路改善動態模糊問題,而且還可以避免產生突兀的雜訊。不僅如此,本發明的諸實施例更具有下列優點:1.配合查表電路可有效減少計算單元的運算量,並能加 速運算速度。In summary, the present invention calculates an adjustment value based on the pixels of the current image and a plurality of reference pixels in the vicinity thereof. In addition, the weight coefficient is calculated according to the difference between the gray level value of the pixel of the current image and the pixel of the previous image. In addition, the current image is adjusted according to the adjustment value and the weight coefficient. In this way, the current image can be adaptively adjusted, which not only can effectively enhance the image detailing to improve the dynamic blurring problem, but also avoid the abrupt noise. Moreover, the embodiments of the present invention have the following advantages: 1. The meter reading circuit can effectively reduce the calculation amount of the calculation unit, and can add Speed calculation speed.
2.透過步驟S201可加強高對比影像的銳化效果,並可維持或減弱低對比影像的銳化效果。2. The sharpening effect of the high contrast image can be enhanced through step S201, and the sharpening effect of the low contrast image can be maintained or reduced.
3.步驟S202所得到的權重係數可便於後續影像處理,藉以僅針對動態畫面進行銳化處理,對於靜態畫面可選擇不進行銳化處理或是降低銳化效果。3. The weight coefficient obtained in step S202 can facilitate subsequent image processing, so that only the dynamic image is sharpened, and the static image can be selected without sharpening or sharpening effect.
4.若目前影像的畫素(3,3)為均勻的平滑畫面或是靜態畫面的話,步驟S203所得到的加權調整值則會是0,如此可有效避免突兀的雜訊產生。4. If the pixel (3, 3) of the current image is a uniform smooth picture or a static picture, the weighted adjustment value obtained in step S203 will be 0, which can effectively avoid the abrupt noise generation.
雖然本發明已以幾個實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,因此本發明的保護範圍當視後附的申請專利範圍所界定者為準。The present invention has been disclosed in several embodiments, and is not intended to limit the scope of the present invention. Any one of ordinary skill in the art can make a few changes and refinements without departing from the spirit and scope of the invention. Therefore, the scope of the invention is defined by the scope of the appended claims.
10‧‧‧影像處理裝置10‧‧‧Image processing device
20‧‧‧儲存單元20‧‧‧ storage unit
30‧‧‧計算單元30‧‧‧Computation unit
S201~S204‧‧‧影像處理方法的各步驟S201~S204‧‧‧ steps of image processing method
(1,1)、(1,2)、(1,3)、(1,4)、(2,1)、(2,2)、(2,3)、(2,4)、(3,1)、(3,2)、(3,3)、(3,4)‧‧‧畫素(1,1), (1,2), (1,3), (1,4), (2,1), (2,2), (2,3), (2,4), (3 , 1), (3, 2), (3, 3), (3, 4) ‧ ‧ pixels
圖1是依照本發明的第一實施例的一種影像處理裝置的方塊圖。1 is a block diagram of an image processing apparatus in accordance with a first embodiment of the present invention.
圖2是依照本發明的第一實施例的一種影像處理方法的流程圖。2 is a flow chart of an image processing method in accordance with a first embodiment of the present invention.
圖3是依照本發明的第一實施例的一種影像的示意圖。Figure 3 is a schematic illustration of an image in accordance with a first embodiment of the present invention.
圖4是圖3的影像區塊示意圖。4 is a schematic diagram of the image block of FIG. 3.
圖5是另一實施例的影像區塊示意圖。FIG. 5 is a schematic diagram of an image block of another embodiment.
圖6是又一實施例的影像區塊示意圖。Figure 6 is a schematic diagram of an image block of still another embodiment.
S201~S204‧‧‧影像處理方法的各步驟S201~S204‧‧‧ steps of image processing method
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97137760A TWI388219B (en) | 2008-10-01 | 2008-10-01 | Image processing device and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW97137760A TWI388219B (en) | 2008-10-01 | 2008-10-01 | Image processing device and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201016023A TW201016023A (en) | 2010-04-16 |
TWI388219B true TWI388219B (en) | 2013-03-01 |
Family
ID=44830276
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW97137760A TWI388219B (en) | 2008-10-01 | 2008-10-01 | Image processing device and method thereof |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI388219B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10636124B2 (en) | 2017-11-22 | 2020-04-28 | Realtek Semiconductor Corp. | Image enhancement method utilizing pixels of an input image in a YUV color space |
-
2008
- 2008-10-01 TW TW97137760A patent/TWI388219B/en not_active IP Right Cessation
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10636124B2 (en) | 2017-11-22 | 2020-04-28 | Realtek Semiconductor Corp. | Image enhancement method utilizing pixels of an input image in a YUV color space |
Also Published As
Publication number | Publication date |
---|---|
TW201016023A (en) | 2010-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11120532B2 (en) | Methods for enhancing image contrast and related image processing systems thereof | |
CN105912290B (en) | A kind of display methods and its device for electronic ink screen | |
TWI361411B (en) | Motion detection apparatus and method applied to liquid crystal display device | |
US11200649B2 (en) | Image processing method and apparatus, display device, and computer readable storage medium | |
CN108702514B (en) | High dynamic range image processing method and device | |
US8369644B2 (en) | Apparatus and method for reducing motion blur in a video signal | |
JP2005217574A (en) | Video signal processor and method therefor | |
US8913876B2 (en) | Image processing apparatus, image processing method, and storage medium | |
CN103778614A (en) | Enhancing dynamic ranges of images | |
WO2021148057A1 (en) | Method and apparatus for generating low bit width hdr image, storage medium, and terminal | |
WO2019061654A1 (en) | Driving method and system for liquid crystal display, and computer-readable medium | |
US8472723B2 (en) | Image processing method and related apparatus | |
US20090079714A1 (en) | Apparatus for improving display quality of dynamic images on liquid crystal display and method thereof | |
US8265419B2 (en) | Image processing apparatus and image processing method | |
He et al. | A parallel alternating direction method with application to compound l1-regularized imaging inverse problems | |
TWI388219B (en) | Image processing device and method thereof | |
EP3675503B1 (en) | Display apparatus and image processing method thereof | |
CN101923706B (en) | Image processing device and method | |
US8285069B2 (en) | Image processing device and method thereof | |
US20210287338A1 (en) | Image-guided adjustment to super-resolution operations | |
JP2009282154A (en) | Liquid crystal drive device, liquid crystal display apparatus and drive method | |
JP2006208854A (en) | Image processor, program, recording medium, and image display device | |
CN110956587B (en) | Display picture adjusting method and device | |
CN114120931B (en) | Contrast adjustment method, contrast adjustment device, storage medium and electronic equipment | |
TWI322976B (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |