TWI514321B - Video image process device with function of preventing shake and the method thereof - Google Patents

Video image process device with function of preventing shake and the method thereof Download PDF

Info

Publication number
TWI514321B
TWI514321B TW098104899A TW98104899A TWI514321B TW I514321 B TWI514321 B TW I514321B TW 098104899 A TW098104899 A TW 098104899A TW 98104899 A TW98104899 A TW 98104899A TW I514321 B TWI514321 B TW I514321B
Authority
TW
Taiwan
Prior art keywords
frame
image
primary color
image processing
color data
Prior art date
Application number
TW098104899A
Other languages
Chinese (zh)
Other versions
TW201032177A (en
Inventor
ming hui Peng
Han Min Chang
Chih Shih Yu
Original Assignee
Alpha Imaging Technology Corp
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 Alpha Imaging Technology Corp filed Critical Alpha Imaging Technology Corp
Priority to TW098104899A priority Critical patent/TWI514321B/en
Publication of TW201032177A publication Critical patent/TW201032177A/en
Application granted granted Critical
Publication of TWI514321B publication Critical patent/TWI514321B/en

Links

Landscapes

  • Studio Devices (AREA)

Description

一種防手震之影像處理裝置及方法Anti-shake image processing device and method

本發明係關於一種防手震之影像處理裝置,特別是關於一種利用不同存取架構使得移動向量能直接對貝爾圖樣影像做修正之影像處理裝置與方法。The present invention relates to an anti-shake image processing apparatus, and more particularly to an image processing apparatus and method for using a different access architecture to enable a motion vector to directly correct a Bell pattern image.

隨著手持式攝影裝置的普及,一般人在日常生活中常常有機會使用這些裝置來紀錄影像,令人困擾的是一般人並沒受過專業的攝影訓練,常常在需要較長時間的拍攝時因為手的晃動造成拍攝影像的失焦、模糊,使得所拍攝影像品質不佳。With the popularity of handheld photographic devices, most people often have the opportunity to use these devices to record images in their daily lives. What is disturbing is that most people do not have professional photography training, often because of the need for long-time shooting. The shaking causes the out-of-focus and blur of the captured image, which makes the captured image quality poor.

習知技術中有許多方式來改善此現象,大致可分為機械式補償以及電子式補償,後者大多是比較兩拍攝影像間的差異或者是某塊特定影像區域與週遭背景的變化來判斷兩影像間是不是有因手震而造成的晃動,其所比較的對象是實際物體經感光元件擷取影像後經由影像處理元件處理過的影像,換句話說,其所比對的影像是實際輸出至顯示器(例如LCD)之影像,或者說是已經轉換成YUV域(YUV domain)之影像,此種影像資料非常精確詳細,但是也因此而資料量非常龐大。There are many ways to improve this phenomenon in the prior art, which can be roughly divided into mechanical compensation and electronic compensation. The latter mostly compares the difference between two captured images or the change of a specific image area and the surrounding background to judge the two images. Is there any sway caused by the shaking of the hand, and the object to be compared is the image processed by the actual object through the image processing element after the image is captured by the photosensitive element, in other words, the image that is compared is actually output to The image of a display (such as an LCD), or an image that has been converted to a YUV domain, is very accurate and detailed, but the amount of data is therefore very large.

舉例來說,請參考第1圖,第1圖為習知技術之影像處理裝置輸出端電路100的方塊圖,YUV域影像信號輸入輸出端電路100後會先儲存在影像緩衝器110中,影像緩衝器110再將信號傳送至輸出圖框緩衝器120,以Full HD規格來說,一個輸出圖框的像素數目是1920x1080,在實際應用時,輸出圖框緩衝器120的擷取像素數目會稍大於實際的輸出圖框像素數目,以作為偵測到手震情形時補償移動向量之用,例如第1圖所示,輸出圖框緩衝器120擷取的像素數目為(1920+64)x(1080+64),輸出圖框緩衝器120的虛線部份為實際的輸出圖框121,而在實際的輸出圖框121周圍各取32個像素作為補償移動向量之用。輸出圖框緩衝器120接著將輸出圖框的影像資料傳送至輸出介面130,移動判斷單元140亦將該圖框之移動向量資訊傳送至輸出介面130,最後輸出介面130再將修正後之圖框畫面信號輸出。For example, please refer to FIG. 1 . FIG. 1 is a block diagram of an output circuit 100 of an image processing device of the prior art. The YUV domain image signal input/output circuit 100 is first stored in the image buffer 110. The buffer 110 then transmits the signal to the output frame buffer 120. In the Full HD specification, the number of pixels of one output frame is 1920×1080. In actual application, the number of pixels captured by the output frame buffer 120 is slightly lower. It is larger than the actual number of output frame pixels to compensate for the motion vector when the jitter condition is detected. For example, as shown in FIG. 1, the number of pixels captured by the output frame buffer 120 is (1920+64) x (1080). +64), the dotted line portion of the output frame buffer 120 is the actual output frame 121, and 32 pixels are taken around the actual output frame 121 as compensation motion vectors. The output frame buffer 120 then transmits the image data of the output frame to the output interface 130. The movement determining unit 140 also transmits the motion vector information of the frame to the output interface 130, and finally outputs the corrected interface frame 130. Screen signal output.

請參考第2a及2b圖,第2a圖為輸出圖框緩衝器120在未發生手震情形時之輸出圖框像素擷取範圍示意圖,第2b圖為輸出圖框緩衝器120在發生手震情形時之輸出圖框像素擷取範圍示意圖,若未發生手震情形,攝影裝置鏡頭對準的畫面自然是所欲拍攝的畫面,如第2a圖所示,輸出圖框像素擷取範圍位於輸出圖框緩衝器120總像素範圍的中央,若此時發生手震情形,例如第2b圖所示,手震後整個攝影裝置鏡頭往右下方移動,因此輸出圖框緩衝器120接收到的圖框影像資料是從原圖框影像往右下方移動,亦即從第2b圖虛線所示之原輸出圖框緩衝器120圖框範圍移至輸出圖框緩衝器120’圖框範圍,此時若是仍擷取輸出圖框緩衝器120’總像素範圍的中央,則會擷取到因手震而偏移的畫面,事實上,正確的擷取畫面仍應是手震前的輸出圖框121,因此移動判斷單元140偵測出因手震造成之移動向量(dX、dY)後,會將輸出圖框從輸出圖框緩衝器120’總像素範圍的中央往左上移動,亦即修正(-dX、-dY),使得輸出圖框像素擷取範圍仍是手震前之輸出圖框121,於是便抵銷了手震造成的影像晃動。Please refer to the 2a and 2b diagrams. The 2a is a schematic diagram of the output frame pixel capture range of the output frame buffer 120 when no jitter occurs, and the 2b is the output frame buffer 120 in the case of a jitter. At the time of the output frame pixel capture range diagram, if there is no jitter, the camera lens alignment image is naturally the desired picture, as shown in Figure 2a, the output frame pixel capture range is in the output map In the center of the total pixel range of the frame buffer 120, if a jitter occurs at this time, for example, as shown in FIG. 2b, after the camera shake, the entire camera lens moves to the lower right, and thus the frame image received by the frame buffer 120 is output. The data is moved from the original frame image to the lower right, that is, from the frame of the original output frame buffer 120 indicated by the broken line in FIG. 2b to the frame of the output frame buffer 120', and if so, Taking the center of the total pixel range of the output frame buffer 120', the picture shifted by the jitter is captured. In fact, the correct captured picture should still be the output frame 121 before the shaking, so the movement The determining unit 140 detects the cause After the motion vector (dX, dY) is caused, the output frame is moved from the center of the total pixel range of the output frame buffer 120' to the upper left, that is, the correction (-dX, -dY), so that the output frame pixel 撷The range is still the output frame 121 before the shaking, so the image shake caused by the hand shake is cancelled.

然而,輸出圖框緩衝器120所處理的圖框影像資料是以YUV域影像信號格式儲存,以Full HD規格來說,一個圖框就須儲存(1920+64)x(1080+64)個像素之YUV域影像信號資料,再加上作移動向量補償時,需儲存前後數個連續圖框影像資料,所需的記憶體空間非常大,造成成本及攝影裝置體積縮小時的限制。因此,如何提供一種判斷手震以及補償該手震造成影響的影像處理裝置使得所需處理的資料量減少,是本發明主要的目的,所需處理的資料量愈少,處理的速度便愈快,所需的記憶體也愈少,對手持式攝影裝置的成本、尺寸等都有正面助益。However, the frame image data processed by the output frame buffer 120 is stored in the YUV domain image signal format. In the Full HD specification, one frame must be stored (1920+64) x (1080+64) pixels. The YUV domain image signal data, together with the motion vector compensation, needs to store several consecutive frame image data before and after, and the required memory space is very large, which causes the cost and the limitation of the size of the photographic device to be reduced. Therefore, how to provide an image processing apparatus for judging jitter and compensating for the impact of the jitter causes the amount of data to be processed to be reduced, which is the main object of the present invention, and the less the amount of data to be processed, the faster the processing speed. The less memory required, the positive impact on the cost and size of the handheld camera.

針對上述問題,本發明之目的在提供一種利用不同於習知技術之影像存取架構使得移動向量能直接對貝爾圖樣影像做修正之影像處理裝置與處理方法。In view of the above problems, an object of the present invention is to provide an image processing apparatus and a processing method that enable a motion vector to directly correct a Bell pattern image by using an image access architecture different from the prior art.

為達成上述目的,本發明揭露一種防手震影像處理裝置,包含:一取樣單元,用來取樣一貝爾圖樣影像(Bayer Pattern image)中一原色並將該原色轉換為一原色資料;一移動判斷單元,耦接於該取樣單元,用來根據該原色資料比較前後圖框(Frame)並產生一移動向量;一圖框解析度(Resolution)儲存單元,耦接於該取樣單元,用來儲存一圖框之該貝爾圖樣影像;以及一影像處理單元,耦接於該圖框解析度儲存單元與該移動判斷單元,用來根據該移動向量修正該貝爾圖樣影像。In order to achieve the above object, the present invention discloses an anti-shake image processing apparatus, comprising: a sampling unit for sampling a primary color in a Bayer Pattern image and converting the primary color into a primary color data; The unit is coupled to the sampling unit for comparing the front and rear frames according to the primary color data and generating a motion vector; a resolution storage unit coupled to the sampling unit for storing a And the image processing unit is coupled to the frame resolution storage unit and the movement determining unit for correcting the Bell pattern image according to the motion vector.

本發明另提出一種可防手震之影像處理方法,包含:取樣一貝爾圖樣影像中一原色並將該原色轉換為一原色資料;根據該原色資料比較前後圖框並產生一移動向量;比較前後兩圖框(frame)之該原色資料並產生一移動向量;儲存一圖框之該貝爾圖樣影像;以及根據該移動向量修正該貝爾圖樣影像。The invention further provides an anti-shake image processing method, which comprises: sampling a primary color in a Bell pattern image and converting the primary color into a primary color data; comparing the front and rear frames according to the primary color data and generating a motion vector; The primary color data of the two frames generates a motion vector; stores the Bell pattern image of a frame; and corrects the Bell pattern image according to the motion vector.

藉由直接在影像處理流程前端的貝爾圖樣影像中取樣三原色中的一種原色資料作為偵測連續兩圖框中之影像是否移動的依據,移動判斷單元所需處理的資料量大大減少,另外以另一記憶單元儲存連續兩圖框的貝爾圖樣影像,利用移動向量直接修正貝爾圖樣影像後再轉換成一般顯示裝置使用的YUV域影像信號,可省下在YUV域執行移動向量修正影像所需的記憶體,以Full HD規格來說,約可省下(1920+64)x(1080+64)x2個像素的記憶空間。By sampling one of the three primary colors directly in the Bell pattern image at the front end of the image processing flow as a basis for detecting whether the image in the two consecutive frames moves, the amount of data to be processed by the movement determination unit is greatly reduced, and another A memory unit stores the Bell pattern image of two consecutive frames, and directly corrects the Bell pattern image by using the motion vector and then converts it into a YUV domain image signal used by a general display device, thereby saving the memory required to perform the motion vector correction image in the YUV domain. In terms of Full HD, it can save about (1920+64) x (1080+64) x 2 pixels of memory space.

請參考第3圖,第3圖是本發明可防手震之影像處理裝置300一第一實施例方塊圖,本實施例包含有感測單元310、取樣單元320、移動判斷單元330、圖框解析度儲存單元340以及影像處理單元350,感測單元310包含有CCD元件及濾光片等元件,擷取外界影像後形成一貝爾圖樣影像(Bayer Pattern image),亦即將擷取到的外界影像分解成若干個像素,而每一像素包含有紅、綠、藍(RGB)三種原色資料,此原色資料經取樣單元320轉換後,其中一種原色被取樣並經Gamma轉換過程成為一原色資料。請注意,原則上取樣紅、綠、藍三種原色任一種皆可達到本發明之目的,但是由於肉眼對綠色的感受最強烈,綠色的亮度對比分佈也最符合實際上真實影像的亮度對比,因此以取樣綠色效果為最佳,但實施範圍卻不以綠色為限。接下來,此像素與轉換後綠原色亮度的對應資料會被傳送至移動判斷單元330,移動判斷單元330會將前一個圖框的原色資料先儲存下來,等到接收到下一個圖框的原色資料時,移動判斷單元330比對這兩個連續圖框中相對應像素的原色資料以得出一移動向量,例如一圖框之某區塊中像素的原色資料值皆與前一圖框該區塊左邊另一區塊中像素的原色資料值相同,則可推論在此二圖框取像時間中攝影鏡頭向右晃動,此種移動向量的估算方式有很多種,在此不再贅述,另外,取樣單元320會將從感測單元310接收到的該貝爾圖樣影像儲存在圖框解析度儲存單元340,圖框解析度儲存單元340將一圖框之貝爾圖樣影像傳送至影像處理單元350時移動判斷單元330亦會將對應於該圖框之移動向量資料傳送至影像處理單元350,影像處理單元350利用移動向量值直接修正該貝爾圖樣影像,再將修正後的貝爾圖樣影像RGB域信號轉換成YUV域之影像信號,以及作影像像素值放大成後端顯示器所須之像素值、色彩調整、影像亮度、對比度、色彩飽和度等等的影像處理,由於圖框的貝爾圖樣影像RGB域信號所需的像素資料數目遠小於同一圖框轉換成YUV域影像信號後所需的像素資料數目,因此本發明提出再將貝爾圖樣影像轉換成YUV域影像信號前將移動向量偵測及補償的機制完成,其所需儲存的資料量會遠小於習知對YUV域影像信號作移動向量偵測及補償所需之資料量,因此速度更快,所需記憶體容量也更小。Please refer to FIG. 3 , which is a block diagram of a first embodiment of the image processing apparatus 300 for preventing jitter in the present invention. The embodiment includes a sensing unit 310 , a sampling unit 320 , a movement determining unit 330 , and a frame . The resolution storage unit 340 and the image processing unit 350, the sensing unit 310 includes components such as a CCD element and a filter, and captures an external image to form a Bayer Pattern image, which is also an external image to be captured. It is decomposed into a plurality of pixels, and each pixel contains three primary color data of red, green and blue (RGB). After the primary color data is converted by the sampling unit 320, one of the primary colors is sampled and converted into a primary color data by a Gamma conversion process. Please note that in principle, any of the three primary colors of red, green and blue can be sampled to achieve the object of the present invention, but since the naked eye has the strongest feeling of green, the contrast distribution of green brightness is also the most consistent with the brightness contrast of the actual image. The sampling green effect is the best, but the implementation range is not limited to green. Next, the corresponding data of the pixel and the converted green primary color brightness is transmitted to the movement determining unit 330, and the movement determining unit 330 stores the primary color data of the previous frame first, and waits until the primary color data of the next frame is received. When the motion determining unit 330 compares the primary color data of the corresponding pixels in the two consecutive frames to obtain a motion vector, for example, the primary color data values of the pixels in a certain block of a frame are the same as the previous frame. If the primary color data values of the pixels in the other block on the left side of the block are the same, it can be inferred that the photographic lens is swaying to the right during the image capturing time of the two frames. There are many ways to estimate the motion vector, and will not be described here. The sampling unit 320 stores the Bell pattern image received from the sensing unit 310 in the frame resolution storage unit 340, and the frame resolution storage unit 340 transmits the Bell pattern image of a frame to the image processing unit 350. The motion determining unit 330 also transmits the motion vector data corresponding to the frame to the image processing unit 350, and the image processing unit 350 directly corrects the Bell pattern by using the motion vector value. For example, the modified BB domain image of the Bell pattern image is converted into the image signal of the YUV domain, and the pixel value, color adjustment, image brightness, contrast, color saturation, etc. required for the image pixel value to be enlarged into the back end display. Image processing, since the number of pixel data required for the RGB domain signal of the Bell pattern image of the frame is much smaller than the number of pixel data required after the same frame is converted into the YUV domain image signal, the present invention proposes to convert the Bell pattern image into The YUV domain image signal is completed by the motion vector detection and compensation mechanism. The amount of data to be stored is much smaller than that required by the conventional YUV domain image signal for motion vector detection and compensation, so the speed is faster. The required memory capacity is also smaller.

請參考第4圖,第4圖是本發明可防手震之影像處理裝置400一第二實施例方塊圖,其中感測單元310、取樣單元320及影像處理單元350與第一實施例中的同名元件功能相同,不再贅述,移動判斷單元430包含有三個圖框緩衝器,圖框解析度儲存單元440則包含有兩個儲存單元,其實際操作情形為;取樣單元320將第一圖框的貝爾圖樣影像資料存入圖框解析度儲存單元440中的第一儲存單元442,同時將該貝爾圖樣影像取樣成一原色資料後將該原色資料存入移動判斷單元430中的第一圖框緩衝器432;接著取樣單元320再將一連續的第二圖框貝爾圖樣影像資料存入圖框解析度儲存單元440中的第二儲存單元444,同時將該貝爾圖樣影像取樣成一原色資料後將該原色資料存入移動判斷單元430中的第二圖框緩衝器434;此時移動判斷單元430根據第一圖框緩衝器432儲存的第一圖框原色資料與第二圖框緩衝器434中儲存的第二圖框原色資料作比對產生一第一移動向量;該第一移動向量與第一儲存單元442儲存的第一圖框貝爾圖樣影像一起傳送至影像處理單元350來修正第一圖框的手震現象,同時一連續的第三圖框貝爾圖樣影像被取樣成一原色資料後將該原色資料存入移動判斷單元430中的第三圖框緩衝器436;移動判斷單元430根據第二圖框緩衝器434儲存的第二圖框原色資料與第三圖框緩衝器436中儲存的第二圖框原色資料作比對產生一第二移動向量,該第二移動向量與第二儲存單元444儲存的第二圖框貝爾圖樣影像一起傳送至影像處理單元350來修正第二圖框的手震現象,同時第三圖框貝爾圖樣影像資料存入圖框解析度儲存單元440中的第一儲存單元442,第四圖框貝爾圖樣影像被取樣成一原色資料後將該原色資料存入移動判斷單元430中的第一圖框緩衝器434。如此週而復始,用連續前後兩圖框的原色資料來修正前圖框的貝爾圖樣影像資料,請注意,本實施例雖舉三個圖框緩衝器與二個儲存單元為例,但實際應用時可依據本發明原理視設計需要予以調整,仍屬本發明之揭露範圍。Please refer to FIG. 4 , which is a block diagram of a second embodiment of the anti-shake image processing apparatus 400 of the present invention, wherein the sensing unit 310, the sampling unit 320 and the image processing unit 350 are the same as those in the first embodiment. The function of the same name is the same, and is not described again. The movement determining unit 430 includes three frame buffers, and the frame resolution storage unit 440 includes two storage units, and the actual operation situation is; the sampling unit 320 will be the first frame. The Bell pattern image data is stored in the first storage unit 442 in the frame resolution storage unit 440, and the Bell pattern image is sampled into a primary color data, and the primary color data is stored in the first frame buffer in the movement determining unit 430. The sampling unit 320 then stores a continuous second frame of the Bell pattern image data into the second storage unit 444 in the frame resolution storage unit 440, and samples the Bell pattern image into a primary color data. The primary color data is stored in the second frame buffer 434 in the movement determining unit 430; at this time, the movement determining unit 430 is configured according to the first frame original color stored in the first frame buffer 432. Comparing with the second frame primary color data stored in the second frame buffer 434 to generate a first motion vector; the first motion vector is transmitted to the first frame Bell pattern image stored by the first storage unit 442 to The image processing unit 350 corrects the jitter phenomenon of the first frame, and a continuous third frame of the Bell pattern image is sampled into a primary color data and then stored in the third frame buffer in the movement determining unit 430. The motion determining unit 430 generates a second motion vector according to the second frame primary color data stored in the second frame buffer 434 and the second frame primary color data stored in the third frame buffer 436. The second motion vector is transmitted to the image processing unit 350 along with the second frame Bell pattern image stored by the second storage unit 444 to correct the jitter phenomenon of the second frame, and the third frame of the Bell pattern image data is stored in the frame. The first storage unit 442 in the resolution storage unit 440, the fourth frame of the Bell pattern image is sampled into a primary color data, and the primary color data is stored in the first frame buffer in the movement determining unit 430. 434. In this way, the original color data of the front and rear frames are used to correct the Bell pattern image data of the front frame. Please note that although the three frame buffers and two storage units are taken as an example, the actual application may be The need for adjustments in accordance with the principles of the present invention is still within the scope of the present disclosure.

請參考第5圖,第5圖是本發明可防手震之影像處理裝置500一第三實施例方塊圖,其中感測單元310、取樣單元320、圖框解析度儲存單元440以及其分別所包含之功能元件已於前述,移動判斷單元530除了包含有上述之圖框緩衝器組532外,另包含有一移動判斷器534、一移動向量產生器536以及一移動向量緩衝器538,移動判斷器534比較儲存在圖框緩衝器組中之連續圖框原色資料後產生比較值並輸入移動向量產生器536,移動向量產生器536內含一移動向量表,可由查表得知不同比較值所對應的移動向量大小與方向,此初始移動向量可經由影像穩定分析器調整並得出一圖框之總合移動向量並輸入移動向量緩衝器538,最後,影像處理單元550要輸出該圖框影像時會從移動向量緩衝器538讀出該圖框之總和移動向量並藉此修正最後輸出之影像,而影像處理單元550則包含有一影像信號處理器551、一縮放器(Scaler)552、一輸出緩衝器554、一輸出緩衝控制器553以及一輸出端電路555,圖框解析度儲存單元440將儲存圖框之貝爾圖樣資料輸入至影像處理單元550後影像信號處理器551會將此貝爾圖樣影像轉換成一般顯示裝置能辨識的YUV域影像信號,一般來說,YUV域影像信號的資料量會遠大於貝爾圖樣影像,而影像信號處理器551也另外會執行一些與色彩、飽和度、對比度等影像效果,為了滿足不同解析度的需求,影像信號處理器551將YUV域影像信號輸入縮放器552,縮放器552會利用諸如內插法等將影像解析度調整至適當大小,並根據移動向量的指示適當擷取某一區域範圍像素作為輸出圖框,以補償手震造成的畫面偏移。處理好的影像圖框信號不會直接輸出,而會先儲存在輸出緩衝器554,輸出緩衝器554由輸出緩衝控制器553控制,當緩衝控制器553控制輸出緩衝器554輸出一影像圖框信號至輸出端電路555後,影像信號便經由輸出端電路555輸出至顯示裝置或其他多媒體處理裝置。Please refer to FIG. 5 , which is a block diagram of a third embodiment of the image processing apparatus 500 for preventing shaking in the present invention, wherein the sensing unit 310, the sampling unit 320, the frame resolution storage unit 440, and the respective portions thereof The included functional components are as described above, and the movement determining unit 530 includes a movement determiner 534, a motion vector generator 536, and a motion vector buffer 538, in addition to the above-described frame buffer group 532, and a motion determiner. 534 compares the continuous frame primary color data stored in the frame buffer group to generate a comparison value and inputs the motion vector generator 536. The motion vector generator 536 includes a motion vector table, which can be obtained by looking up the table to obtain different comparison values. The moving vector size and direction, the initial motion vector can be adjusted by the image stabilization analyzer and the combined motion vector of a frame is input and input into the motion vector buffer 538. Finally, the image processing unit 550 outputs the frame image. The sum vector motion vector of the frame is read from the motion vector buffer 538 and the final output image is corrected, and the image processing unit 550 includes a shadow. The signal processor 551, a scaler 552, an output buffer 554, an output buffer controller 553, and an output circuit 555, the frame resolution storage unit 440 inputs the Bell pattern data of the storage frame to the image. After the processing unit 550, the image signal processor 551 converts the Bell pattern image into a YUV domain image signal that can be recognized by a general display device. Generally, the data amount of the YUV domain image signal is much larger than that of the Bell pattern image, and the image signal processing is performed. The 551 also performs some image effects such as color, saturation, contrast, etc. In order to meet the requirements of different resolutions, the image signal processor 551 inputs the YUV domain image signal into the scaler 552, and the scaler 552 utilizes such as interpolation. Wait for the image resolution to be adjusted to an appropriate size, and appropriately capture a certain range of pixels as an output frame according to the indication of the motion vector to compensate for the screen offset caused by the jitter. The processed image frame signal is not directly output, but is first stored in the output buffer 554. The output buffer 554 is controlled by the output buffer controller 553. When the buffer controller 553 controls the output buffer 554 to output an image frame signal. After the output circuit 555, the image signal is output to the display device or other multimedia processing device via the output circuit 555.

惟以上所述者,僅為本發明之較佳實施例而已,當不能以此限定本發明實施之範圍,即依本發明申請專利範圍及發明說明內容所作之等效變化與修飾,皆屬本發明專利可能涵蓋之範圍。The above is only the preferred embodiment of the present invention, and the equivalent variations and modifications of the scope of the invention and the description of the invention are not intended to limit the scope of the invention. The scope of the invention patent may cover.

100...輸出端電路100. . . Output circuit

110...影像緩衝器110. . . Image buffer

120、120’...輸出圖框緩衝器120, 120’. . . Output frame buffer

121...輸出圖框121. . . Output frame

130...輸出介面130. . . Output interface

140...移動判斷單元140. . . Mobile judgment unit

300、400、500...影像處理裝置300, 400, 500. . . Image processing device

310...感測單元310. . . Sensing unit

320...取樣單元320. . . Sampling unit

330、430、530...移動判斷單元330, 430, 530. . . Mobile judgment unit

340、440...圖框解析度儲存單元340, 440. . . Frame resolution storage unit

350、550...影像處理單元350, 550. . . Image processing unit

432、434、436...圖框緩衝器432, 434, 436. . . Frame buffer

442、444...儲存單元442, 444. . . Storage unit

532...圖框緩衝器組532. . . Frame buffer group

534...移動判斷器534. . . Mobile judger

536...移動向量產生器536. . . Motion vector generator

538...移動向量緩衝器538. . . Moving vector buffer

551...影像信號處理器551. . . Image signal processor

552...縮放器552. . . Scaler

553...輸出緩衝控制器553. . . Output buffer controller

554...輸出緩衝器554. . . Output buffer

555...輸出端電路555. . . Output circuit

第1圖為習知技術之影像處理裝置輸出端電路的方塊圖。Figure 1 is a block diagram of an output circuit of a conventional image processing device.

第2a圖為輸出圖框緩衝器在未發生手震情形時之輸出圖框像素擷取範圍示意圖。Figure 2a is a schematic diagram of the pixel capture range of the output frame of the output frame buffer when no jitter occurs.

第2b圖為輸出圖框緩衝器在發生手震情形時之輸出圖框像素擷取範圍示意圖。Figure 2b is a schematic diagram of the pixel capture range of the output frame of the output frame buffer in the event of a jitter.

第3圖為本發明可防手震之影像處理裝置一第一實施例方塊圖。FIG. 3 is a block diagram showing a first embodiment of an image processing apparatus capable of preventing shaking in the present invention.

第4圖為本發明可防手震之影像處理裝置一第二實施例方塊圖。Fig. 4 is a block diagram showing a second embodiment of an image processing apparatus capable of preventing shaking in the present invention.

第5圖為本發明可防手震之影像處理裝置一第三實施例方塊圖。FIG. 5 is a block diagram showing a third embodiment of the image processing apparatus capable of preventing shaking in the present invention.

310...感測單元310. . . Sensing unit

320...取樣單元320. . . Sampling unit

440...圖框解析度儲存單元440. . . Frame resolution storage unit

500...可防手震之影像處理裝置500. . . Anti-shake image processing device

530...移動判斷單元530. . . Mobile judgment unit

532...圖框緩衝器組532. . . Frame buffer group

534...移動判斷器534. . . Mobile judger

536...移動向量產生器536. . . Motion vector generator

538...移動向量緩衝器538. . . Moving vector buffer

550...影像處理單元550. . . Image processing unit

551...影像信號處理器551. . . Image signal processor

552...縮放器552. . . Scaler

553...輸出緩衝控制器553. . . Output buffer controller

554...輸出緩衝器554. . . Output buffer

555...輸出端電路555. . . Output circuit

Claims (10)

一種可防手震之影像處理裝置,包含有:一取樣單元,用來取樣一貝爾圖樣影像(Bayer Pattern image)中一原色並將該原色轉換為一原色資料;一移動判斷單元,耦接於該取樣單元,儲存該原色資料,用來根據該原色資料比較前後圖框(Frame)並產生一移動向量;一圖框解析度(Resolution)儲存單元,耦接於該取樣單元,用來儲存一圖框之該貝爾圖樣影像的多個像素,且每一像素包含多個原色;以及一影像處理單元,耦接於該圖框解析度儲存單元與該移動判斷單元,用來根據由該原色資料所產生的該移動向量修正該貝爾圖樣影像的該些像素的該些原色。 An anti-shake image processing device includes: a sampling unit for sampling a primary color in a Bayer Pattern image and converting the primary color into a primary color data; a movement determining unit coupled to the The sampling unit stores the primary color data for comparing the front and rear frames according to the primary color data and generating a motion vector; a resolution storage unit coupled to the sampling unit for storing one a plurality of pixels of the image of the Bell pattern, and each pixel includes a plurality of primary colors; and an image processing unit coupled to the frame resolution storage unit and the movement determining unit for using the primary color data The generated motion vector corrects the primary colors of the pixels of the Bell pattern image. 如申請專利範圍第1項所述之可防手震之影像處理裝置,另包含有一感測單元,用來產生一貝爾圖樣影像。 The anti-shake image processing device of claim 1, further comprising a sensing unit for generating a Bell pattern image. 如申請專利範圍第1項所述之可防手震之影像處理裝置,其中該取樣單元包含有一轉換單元,用來利用Gamma轉換將該貝爾圖樣中該原色轉換為一原色資料。 The anti-shake image processing device of claim 1, wherein the sampling unit comprises a conversion unit for converting the primary color in the Bell pattern into a primary color data by using a gamma conversion. 如申請專利範圍第1項所述之可防手震之影像處理裝置,其中該移動判斷單元包含有:一組圖框緩衝器,用來儲存複數個圖框之該原色資料; 一移動向量產生器,耦接於該組圖框緩衝器,用來比較該組圖框緩衝器中一第一圖框與一第二圖框之該原色資料,並產生該移動向量。 The anti-shake image processing device of claim 1, wherein the movement judging unit comprises: a set of frame buffers for storing the primary color data of the plurality of frames; A motion vector generator is coupled to the set of frame buffers for comparing the primary color data of a first frame and a second frame in the set of frame buffers, and generating the motion vector. 如申請專利範圍第1項所述之可防手震之影像處理裝置,其中該圖框解析度儲存單元係儲存一第一圖框之一預設解析度像素數目加上一預留空間像素數目與一第二圖框之一預設解析度像素數目加上一預留空間像素數目之像素資料。 The anti-shake image processing device of claim 1, wherein the frame resolution storage unit stores a preset resolution pixel number and a reserved space pixel number of a first frame. And one of the second frames, the preset resolution pixel number plus the pixel number of the reserved space pixel number. 如申請專利範圍第4及5項任一項所述之可防手震之影像處理裝置,其中該影像處理單元係根據由該原色資料所產生的該移動向量修正該第一圖框之該貝爾圖樣的該些像素的該些原色。 The anti-shake image processing apparatus according to any one of claims 4 to 5, wherein the image processing unit corrects the first frame of the bell according to the motion vector generated by the primary color data. The primary colors of the pixels of the pattern. 如申請專利範圍第4及5項任一項所述之可防手震之影像處理裝置,其中該組圖框緩衝器以及該圖框解析度儲存單元係為暫存器。 The anti-shake image processing apparatus according to any one of claims 4 to 5, wherein the set of frame buffers and the frame resolution storage unit are temporary registers. 如申請專利範圍第1項所述之可防手震之影像處理裝置,其中該影像處理單元包含有:一影像信號處理器,用來將該貝爾圖樣影像轉換成YUV域之一影像信號;一縮放器(Scaler),耦接於該影像信號處理器,用來將該影像信號轉換成所需之像素比例及根據該修正向量擷取該圖框 中適當之像素區域,並輸出一影像圖框信號;以及一輸出介面控制器,耦接於該縮放器,用來輸出該影像圖框信號。 The anti-shake image processing device of claim 1, wherein the image processing unit comprises: an image signal processor for converting the Bell pattern image into one image signal of the YUV domain; a scaler coupled to the image signal processor for converting the image signal into a desired pixel ratio and capturing the frame according to the correction vector a suitable pixel area and outputting an image frame signal; and an output interface controller coupled to the scaler for outputting the image frame signal. 一種可防手震之影像處理方法,包含有:取樣一貝爾圖樣影像(Bayer Pattern image)中一原色並將該原色轉換為一原色資料;儲存該原色資料,根據該原色資料比較前後圖框(Frame)並產生一移動向量;儲存一圖框之該貝爾圖樣影像;以及根據由該原色資料所產生的該移動向量修正該貝爾圖樣影像的多個像素的多個原色。 An anti-shake image processing method includes: sampling a primary color in a Bayer Pattern image and converting the primary color into a primary color data; storing the primary color data, and comparing the front and rear frames according to the primary color data ( And generating a motion vector; storing the Bell pattern image of a frame; and correcting a plurality of primary colors of the plurality of pixels of the Bell pattern image according to the motion vector generated by the primary color data. 如申請專利範圍第9項所述之可防手震之影像處理方法,其中儲存一圖框之該貝爾圖樣影像之步驟係儲存一第一圖框與之一預設解析度像素數目加上一預留空間像素數目與一第二圖框之一預設解析度像素數目加上該預留空間像素數目之像素資料。 The anti-shake image processing method of claim 9, wherein the step of storing the image of the bell pattern of the frame stores a first frame and a preset resolution pixel number plus one The number of reserved space pixels and the number of preset resolution pixels of one of the second frames plus the pixel data of the number of reserved space pixels.
TW098104899A 2009-02-17 2009-02-17 Video image process device with function of preventing shake and the method thereof TWI514321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW098104899A TWI514321B (en) 2009-02-17 2009-02-17 Video image process device with function of preventing shake and the method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW098104899A TWI514321B (en) 2009-02-17 2009-02-17 Video image process device with function of preventing shake and the method thereof

Publications (2)

Publication Number Publication Date
TW201032177A TW201032177A (en) 2010-09-01
TWI514321B true TWI514321B (en) 2015-12-21

Family

ID=44854810

Family Applications (1)

Application Number Title Priority Date Filing Date
TW098104899A TWI514321B (en) 2009-02-17 2009-02-17 Video image process device with function of preventing shake and the method thereof

Country Status (1)

Country Link
TW (1) TWI514321B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001147A1 (en) * 2002-06-19 2004-01-01 Stmicroelectronics S.R.L. Method of stabilizing an image sequence
TW200729938A (en) * 2006-01-27 2007-08-01 Liteo On It Corp Digital image capture device and method of anti-shake

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040001147A1 (en) * 2002-06-19 2004-01-01 Stmicroelectronics S.R.L. Method of stabilizing an image sequence
TW200729938A (en) * 2006-01-27 2007-08-01 Liteo On It Corp Digital image capture device and method of anti-shake

Also Published As

Publication number Publication date
TW201032177A (en) 2010-09-01

Similar Documents

Publication Publication Date Title
US7825969B2 (en) Image stabilization using multi-exposure pattern
JP3980782B2 (en) Imaging control apparatus and imaging control method
JP5347707B2 (en) Imaging apparatus and imaging method
US20060087702A1 (en) Image capturing apparatus
KR101661574B1 (en) Camera module for reducing sutter-delay
US9589339B2 (en) Image processing apparatus and control method therefor
JP2008109336A (en) Image processor and imaging apparatus
US20080212888A1 (en) Frame Region Filters
JPWO2011083555A1 (en) Image processing apparatus, image generation system, method, and program
JP2005269373A (en) Video signal processing system, and electronic video apparatus
US9007479B2 (en) Imaging apparatus and evaluation value generation apparatus
JP6541501B2 (en) IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, AND IMAGE PROCESSING METHOD
JP4739998B2 (en) Imaging device
US8908060B2 (en) Imaging apparatus generating evaluation values at a high frame rate and having a live view function of displaying a video smoothly at a low frame rate
JP3937924B2 (en) Imaging apparatus and control method thereof
JP2006148550A (en) Image processor and imaging device
TWI514321B (en) Video image process device with function of preventing shake and the method thereof
US11206344B2 (en) Image pickup apparatus and storage medium
JP6157274B2 (en) Imaging apparatus, information processing method, and program
CN115037915B (en) Video processing method and processing device
JP2015126416A (en) Image processing apparatus, control method, and program
US9013606B2 (en) Image processing apparatus and control method thereof
JP2009159404A (en) Image processing method, image processing device, and image formation device
JP2006109046A (en) Imaging device
TW201027982A (en) A video image process device with function of preventing shake and the method thereof