TWI602422B - Image processing device and method thereof - Google Patents

Image processing device and method thereof Download PDF

Info

Publication number
TWI602422B
TWI602422B TW105126169A TW105126169A TWI602422B TW I602422 B TWI602422 B TW I602422B TW 105126169 A TW105126169 A TW 105126169A TW 105126169 A TW105126169 A TW 105126169A TW I602422 B TWI602422 B TW I602422B
Authority
TW
Taiwan
Prior art keywords
column
pixel value
parallel output
value
pixel
Prior art date
Application number
TW105126169A
Other languages
Chinese (zh)
Other versions
TW201808010A (en
Inventor
Ying-Yu Guo
cheng-xiang Yang
Original Assignee
Chipone Technology (Beijing)Co Ltd
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 Chipone Technology (Beijing)Co Ltd filed Critical Chipone Technology (Beijing)Co Ltd
Priority to TW105126169A priority Critical patent/TWI602422B/en
Application granted granted Critical
Publication of TWI602422B publication Critical patent/TWI602422B/en
Publication of TW201808010A publication Critical patent/TW201808010A/en

Links

Description

影像處理裝置及其方法 Image processing device and method thereof

本發明是有關於一種裝置及其方法,特別是指一種減少處理影像時所需的硬體容量的影像處理裝置及其方法。 The present invention relates to an apparatus and method thereof, and more particularly to an image processing apparatus and method thereof that reduce the amount of hardware required to process an image.

現有的影像處理模組具有硬體儲存面積過大之缺失,主要的原因如下述二點: The existing image processing module has a lack of large storage area, and the main reasons are as follows:

1.至少需要三個緩衝器:現有的影像處理模組為了偵測一具有複數個畫素值的影像之邊界,至少需使用3×3的遮罩才能同時偵測垂直邊界和水準邊界,如圖1和圖2所示,圖1為左右二排係數權重不為零之遮罩,用以偵測水準邊界,而圖2為上下二排係數權重不為零之遮罩,用以偵測垂直邊界,但不論是偵測水準邊界還是偵測垂直邊界,該影像處理模組都需要儲存該影像之三列畫素值才能使用該3×3之遮罩來做運算,因此,該影像處理模組至少需要三個緩衝器來儲存該三列畫素值,以致硬體儲存面積過大。 1. At least three buffers are needed: in order to detect the boundary of an image with a plurality of pixel values, the existing image processing module needs at least a 3×3 mask to simultaneously detect vertical and horizontal boundaries, such as As shown in Fig. 1 and Fig. 2, Fig. 1 is a mask for the left and right rows of coefficients with a non-zero weight to detect the level boundary, and Fig. 2 is a mask for the upper and lower rows of coefficients with a non-zero weight for detecting Vertical boundary, but whether it is detecting the horizontal boundary or detecting the vertical boundary, the image processing module needs to store the three columns of pixel values of the image to perform the operation using the 3×3 mask. Therefore, the image processing The module needs at least three buffers to store the three columns of pixel values, so that the hardware storage area is too large.

2.每一個緩衝器的儲存空間較大:現有的影像處理模組的每一個緩衝器需要儲存該影像的每一列之每一畫素的R值 (Red)、G值(Green)和B值(Blue),因此,每一個緩衝器需要具有較大的儲存空間。 2. Each buffer has a large storage space: each buffer of the existing image processing module needs to store the R value of each pixel of each column of the image. (Red), G value (Green) and B value (Blue), therefore, each buffer needs to have a large storage space.

因此,本發明之第一目的,即在提供一種能減少硬體儲存面積的影像處理方法。 Accordingly, a first object of the present invention is to provide an image processing method capable of reducing a storage area of a hard body.

於是,本發明影像處理方法,由一影像處理裝置執行,該影像處理裝置包含一影像處理模組,該影像處理模組包括一接收一影像的緩衝器、一接收該影像並電連接該緩衝器的串列轉平行輸出單元,及一電連接該串列轉平行輸出單元的處理單元,其中,該影像包括M列畫素列,每一列畫素列包括N個畫素值,且2≦M,3≦N,且M、N為正整數,該影像處理方法包含一步驟(A)、一步驟(B)、一步驟(C),及一步驟(D)。 Therefore, the image processing method of the present invention is executed by an image processing device. The image processing device includes an image processing module. The image processing module includes a buffer for receiving an image, and receives the image and electrically connects the buffer. a serial to parallel output unit, and a processing unit electrically connected to the serial to parallel output unit, wherein the image comprises M columns of pixel columns, each column of pixels includes N pixel values, and 2≦M 3≦N, and M and N are positive integers. The image processing method comprises a step (A), a step (B), a step (C), and a step (D).

步驟(A):該串列轉平行輸出單元接收一來自該緩衝器的暫存串列數據,該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元將該暫存串列數據轉換成一第一平行輸出,該第一平行輸出包括平行排列的該第m列畫素列的第n個畫素值至第p個畫素值,其中,2≦p-n,p≦N,1≦m≦M-1,1≦n≦N-2,且p、m、n為正整數。 Step (A): the serial-to-parallel output unit receives a temporary serial data from the buffer, the temporary serial data comprising an n-th pixel value of the m-th column of pixels arranged in a series Up to the pth pixel value, the serial to parallel output unit converts the temporary serial data into a first parallel output, the first parallel output comprising the nth picture of the mth column of pixels arranged in parallel The prime value is to the pth pixel value, where 2≦pn, p≦N, 1≦m≦M-1, 1≦n≦N-2, and p, m, n are positive integers.

步驟(B):該串列轉平行輸出單元接收一來自該影像的即時串列數據,該即時串列數據包括串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元將該即時串列數據轉換成一第二平行輸出,該第二平行輸出包括平行排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值。 Step (B): the serial-to-parallel output unit receives a live serial data from the image, the live serial data comprising the n-th pixel of the (m+1)th column of pixel columns arranged in series a value to a p-th pixel value, the serial-to-parallel output unit converting the instantaneous serial data into a second parallel output, the second parallel output comprising the (m+1)th column of pixels arranged in parallel The nth pixel value to the pth pixel value.

步驟(C):該處理單元接收來自該串列轉平行輸出單元的該第一平行輸出及該第二平行輸出,並將該第一平行輸出及該第二平行輸出與一遮罩進行旋積運算而產生一旋積值,其中,該遮罩包括二列係數列,每一列係數列具有(p-n+1)個係數權重,且該二列係數列的其中一列係數列的該(p-n+1)個係數權重分別對應該第一平行輸出的該第m列畫素列的第n個畫素值至第p個畫素值,而該二列係數列的其中另一列係數列的該(p-n+1)個係數權重分別對應該第二平行輸出的該第(m+1)列畫素列的第n個畫素值至第p個畫素值。 Step (C): the processing unit receives the first parallel output and the second parallel output from the serial-to-parallel output unit, and convolves the first parallel output and the second parallel output with a mask Calculating to generate a convolution value, wherein the mask comprises two columns of coefficient columns, each column coefficient column has (p-n+1) coefficient weights, and the column of one of the two column coefficient columns is (p -n+1) coefficient weights respectively corresponding to the nth pixel value of the mth column pixel column of the first parallel output to the pth pixel value, and another column coefficient column of the two column coefficient column The (p-n+1) coefficient weights respectively correspond to the nth pixel value to the pth pixel value of the (m+1)th column pixel column of the second parallel output.

步驟(D):該處理單元根據該第二平行輸出的第b個畫素值和該旋積值進行加法運算產生該新影像的第(m+1)列畫素列的第b個畫素值,其中,n≦b≦p,且b為正整數。 Step (D): the processing unit adds the b-th pixel value of the second parallel output and the convolution value to generate a b-th pixel of the (m+1)th column of the new image. Value, where n ≦ b ≦ p, and b is a positive integer.

因此,本發明之第二目的,即在提供一種能減少硬體儲存面積的影像處理裝置。 Accordingly, a second object of the present invention is to provide an image processing apparatus capable of reducing a storage area of a hard body.

於是,本發明影像處理裝置包含一影像處理模組,該影像處理模組接收一影像,該影像包括M列畫素列,每一列畫素列包括N個畫素值,其中,2≦M,3≦N,且M、N為正整數,該影像處理模組包含一個緩衝器、一串列轉平行輸出單元,及一處理單元。 Therefore, the image processing apparatus of the present invention comprises an image processing module, the image processing module receives an image, the image includes M columns of pixel columns, and each column of pixels includes N pixel values, wherein 2 ≦M, 3≦N, and M and N are positive integers. The image processing module includes a buffer, a serial to parallel output unit, and a processing unit.

該緩衝器用以依序接收並儲存來自該影像的一即時串列數據而轉換成一暫存串列數據,該即時串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,及串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,而該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,其中,2≦p-n,p≦N,1≦m≦M-1,1≦n≦N-2,且p、m、n為正整數。 The buffer is configured to sequentially receive and store a real serial data from the image and convert it into a temporary serial data, where the real serial data comprises the nth pixel of the mth column of pixels arranged in series a value to a pth pixel value, and an nth pixel value of the (m+1)th column pixel column arranged in series to a pth pixel value, wherein the temporary string data includes a string Arranging the nth pixel value of the mth column of pixels to the pth pixel value, where 2≦pn, p≦N, 1≦m≦M-1, 1≦n≦N-2, And p, m, and n are positive integers.

該串列轉平行輸出單元電連接該緩衝器以接收該緩衝器的該暫存串列數據,該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,還接收來自該影像的該即時串列數據,該即時串列數據包括串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元將該暫存串列數據和該即時串列數據分別轉換成一第一平行輸出和一第二平行輸出。 The serial to parallel output unit is electrically connected to the buffer to receive the temporary serial data of the buffer, the temporary serial data comprising the nth pixel value of the mth column pixel column arranged in series Up to the pth pixel value, the live serial data from the image is further received, the live serial data comprising the nth pixel value of the (m+1)th column pixel column arranged in series The p-pixel values, the serial-to-parallel output unit converts the temporary serial data and the instantaneous serial data into a first parallel output and a second parallel output, respectively.

該處理單元電連接該串列轉平行輸出單元以接收該第一平行輸出及該第二平行輸出,並將該第一平行輸出及該第二平行 輸出與一遮罩進行旋積運算而產生一旋積值,再根據該第二平行輸出的第b個畫素值和該旋積值進行加法運算產生該新影像的第(m+1)列畫素列的第b個畫素值,其中,該遮罩包括二列係數列,每一列係數列具有(p-n+1)個係數權重,且該二列係數列的其中一列係數列的該(p-n+1)個係數權重分別對應該第一平行輸出的該第m列畫素列的第n個畫素值至第p個畫素值,而該二列係數列的其中另一列係數列的該(p-n+1)個係數權重分別對應該第二平行輸出的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,其中,n≦b≦p,b為正整數。 The processing unit is electrically connected to the serial-to-parallel output unit to receive the first parallel output and the second parallel output, and the first parallel output and the second parallel The output is subjected to a convolution operation with a mask to generate a convolution value, and then added according to the b-th pixel value of the second parallel output and the convolution value to generate the (m+1)th column of the new image. a b-th pixel value of the prime column, wherein the mask includes two columns of coefficient columns, each column coefficient column has (p-n+1) coefficient weights, and one of the column coefficient columns of the two column coefficient columns The (p-n+1) coefficient weights respectively correspond to the nth pixel value of the mth column pixel column of the first parallel output to the pth pixel value, and the other of the two column coefficient columns The (p-n+1) coefficient weights of a column of coefficient columns respectively correspond to the nth pixel value to the pth pixel value of the (m+1)th column pixel column of the second parallel output, wherein , n≦b≦p, b is a positive integer.

1‧‧‧影像處理裝置 1‧‧‧Image processing device

11‧‧‧影像 11‧‧‧Image

L1~L36‧‧‧影像的畫素之L值 L1~L36‧‧‧ L value of the pixel of the image

2‧‧‧色域轉換單元 2‧‧‧Color gamut conversion unit

21‧‧‧原始影像 21‧‧‧ original image

O1~O36‧‧‧原始影像的畫素 O1~O36‧‧‧ primitive imagery

R1~R36‧‧‧原始影像的畫素的R值 R1~R36‧‧‧ R value of the pixel of the original image

G1~G36‧‧‧原始影像的畫素的G值 G1~G36‧‧‧G value of the pixel of the original image

B1~B36‧‧‧原始影像的畫素的B值 B1~B36‧‧‧ B value of the pixel of the original image

3‧‧‧影像處理模組 3‧‧‧Image Processing Module

31‧‧‧緩衝器 31‧‧‧ buffer

32‧‧‧串列轉平行輸出單元 32‧‧‧Sequence to parallel output unit

33‧‧‧第一正反器 33‧‧‧First positive and negative

34‧‧‧第二正反器 34‧‧‧second flip-flop

35‧‧‧第三正反器 35‧‧‧ third positive and negative

36‧‧‧第四正反器 36‧‧‧fourth flip-flop

37‧‧‧處理單元 37‧‧‧Processing unit

38‧‧‧運算器 38‧‧‧Operator

39‧‧‧加法器 39‧‧‧Adder

4‧‧‧新影像 4‧‧‧New imagery

△‧‧‧旋積值 △‧‧‧ convolution value

△1‧‧‧另一旋積值 △1‧‧‧ another convolution value

T1‧‧‧第一階段 The first phase of T1‧‧

T2‧‧‧第二階段 Second phase of T2‧‧

T3‧‧‧第三階段 T3‧‧‧ third stage

T4‧‧‧第四階段 T4‧‧‧ fourth stage

A~P‧‧‧步驟 A~P‧‧‧ steps

A0~A6‧‧‧步驟 A0~A6‧‧‧ steps

Ck1‧‧‧第一頻率信號 Ck1‧‧‧first frequency signal

Ck2‧‧‧第二頻率信號 Ck2‧‧‧second frequency signal

本發明之其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中:圖1是一示意圖,說明現有影像處理模組的偵測水準邊界之3×3遮罩;圖2是一示意圖,說明現有影像處理模組的偵測垂直邊界之3×3遮罩;圖3是一方塊圖,說明本發明影像處理方法之一第一實施例;圖4是一示意圖,說明本發明影像處理方法之該第一實施例的一影像處理模組; 圖5是一流程圖,說明本發明影像處理方法之該第一實施例的流程圖;圖6是一示意圖,說明本發明影像處理方法之該第一實施例之影像轉換;圖7是一示意圖,說明本發明影像處理方法之該第一實施例的緩衝器所儲存的暫存串列數據;圖8是一示意圖,說明本發明影像處理方法之該第一實施例的一第一階段;圖9是一示意圖,說明本發明影像處理方法之該第一實施例的一第二階段;圖10是一示意圖,說明本發明影像處理方法之該第一實施例將m的現有數值加1做為下一數值,並執行該第一階段;圖11是一示意圖,說明本發明影像處理方法之該第一實施例的新影像;圖12是一流程圖,說明本發明影像處理方法之一第二實施例的步驟(A)之前的步驟(A1)至(A6)的流程圖;圖13是一示意圖,說明本發明影像處理方法之該第二實施例的一第三階段;圖14是一示意圖,說明本發明影像處理方法之該第二實施例的一第四階段;及 圖15是一示意圖,說明本發明影像處理方法之該第二實施例的新影像。 Other features and effects of the present invention will be apparent from the following description of the drawings, wherein: FIG. 1 is a schematic diagram illustrating a 3×3 mask of a detection level boundary of a conventional image processing module; Is a schematic diagram illustrating a 3×3 mask for detecting vertical boundaries of an existing image processing module; FIG. 3 is a block diagram illustrating a first embodiment of the image processing method of the present invention; FIG. 4 is a schematic diagram illustrating An image processing module of the first embodiment of the image processing method; FIG. 5 is a flow chart illustrating a first embodiment of the image processing method of the present invention; FIG. 6 is a schematic diagram showing image conversion of the first embodiment of the image processing method of the present invention; FIG. The temporary storage serial data stored in the buffer of the first embodiment of the image processing method of the present invention is illustrated; FIG. 8 is a schematic diagram showing a first stage of the first embodiment of the image processing method of the present invention; 9 is a schematic diagram illustrating a second stage of the first embodiment of the image processing method of the present invention; FIG. 10 is a schematic diagram showing the first embodiment of the image processing method of the present invention adding 1 to the existing value of m as The next value, and the first stage is executed; FIG. 11 is a schematic diagram illustrating a new image of the first embodiment of the image processing method of the present invention; and FIG. 12 is a flowchart illustrating one of the image processing methods of the present invention. Steps (A1) to (A6) before the step (A) of the embodiment; FIG. 13 is a schematic view showing a third stage of the second embodiment of the image processing method of the present invention; FIG. 14 is a schematic view , explain this A fourth stage of the second embodiment of the image processing method of the invention; and Figure 15 is a schematic view showing a new image of the second embodiment of the image processing method of the present invention.

參閱圖3,本發明影像處理裝置1的一第一實施例,該影像處理裝置1包含一色域轉換單元2,及一電連接色域轉換單元2的影像處理模組3。 Referring to FIG. 3, a first embodiment of the image processing apparatus 1 of the present invention includes a color gamut converting unit 2 and an image processing module 3 electrically connected to the color gamut converting unit 2.

該影像處理模組3電連接該色域轉換單元2,並包含一個緩衝器31、一串列轉平行輸出單元32,及一處理單元37。 The image processing module 3 is electrically connected to the color gamut converting unit 2 and includes a buffer 31, a serial to parallel output unit 32, and a processing unit 37.

該緩衝器31電連接於該色域轉換單元2和該串列轉平行輸出單元32之間。 The buffer 31 is electrically connected between the color gamut converting unit 2 and the tandem to parallel output unit 32.

同時參閱圖4,該串列轉平行輸出單元32電連接該緩衝器31、該色域轉換單元2和該處理單元37之間,並接收一第一頻率信號Ck1和一第二頻率信號Ck2,該串列轉平行輸出單元32包括一第一正反器33、一第二正反器34、一第三正反器35,及一第四正反器36,其中,該第一正反器33、該第二正反器34、該第三正反器35和該第四正反器36為D型正反器(Flip-flop,FF)。 Referring to FIG. 4, the serial-to-parallel output unit 32 is electrically connected between the buffer 31, the color gamut converting unit 2, and the processing unit 37, and receives a first frequency signal Ck1 and a second frequency signal Ck2. The serial-to-parallel output unit 32 includes a first flip-flop 33, a second flip-flop 34, a third flip-flop 35, and a fourth flip-flop 36, wherein the first flip-flop 33. The second flip-flop 34, the third flip-flop 35 and the fourth flip-flop 36 are D-type flip-flops (FF).

該第一正反器33具有一電連接該色域轉換單元2以接收一即時串列數據的輸入端、一輸出端,及一接收該第一頻率信號 Ck1的頻率輸入端,當該第一頻率信號Ck1轉為上升緣時,該第一正反器33對其輸入端所接收到的畫素值取樣,並傳送到其輸出端。 The first flip-flop 33 has an input end electrically connected to the color gamut converting unit 2 for receiving an instant serial data, an output end, and a receiving the first frequency signal. At the frequency input end of Ck1, when the first frequency signal Ck1 is turned into a rising edge, the first flip-flop 33 samples the pixel value received at its input terminal and transmits it to its output terminal.

該第二正反器34具有一電連接該緩衝器31以接收一暫存串列數據的輸入端、一輸出端,及一接收該第二頻率信號Ck2的頻率輸入端,當該第二頻率信號Ck2轉為上升緣時,該第二正反器34對其輸入端所接收到的畫素值取樣,並傳送到其輸出端。 The second flip-flop 34 has an input terminal electrically connected to the buffer 31 for receiving a temporary serial data, an output terminal, and a frequency input terminal for receiving the second frequency signal Ck2, when the second frequency When the signal Ck2 is turned to the rising edge, the second flip-flop 34 samples the pixel value received at its input and transmits it to its output.

該第三正反器35具有一電連接該第二正反器34的該輸出端的輸入端、一電連接該處理單元37的輸出端,及一接收該第二頻率信號Ck2的頻率輸入端,當該第二頻率信號Ck2轉為上升緣時,該第三正反器35對其輸入端所接收到的畫素值取樣,並傳送到其輸出端。 The third flip-flop 35 has an input terminal electrically connected to the output end of the second flip-flop 34, an output terminal electrically connected to the processing unit 37, and a frequency input terminal for receiving the second frequency signal Ck2. When the second frequency signal Ck2 is turned to the rising edge, the third flip-flop 35 samples the pixel value received at its input and transmits it to its output.

該第四正反器36具有一電連接該第一正反器33的該輸出端的輸入端、一電連接該處理單元37的輸出端,及一接收該第一頻率信號Ck1的頻率輸入端,當該第一頻率信號Ck1轉為上升緣時,該第四正反器36對其輸入端所接收到的畫素值取樣,並傳送到其輸出端。 The fourth flip-flop 36 has an input terminal electrically connected to the output end of the first flip-flop 33, an output terminal electrically connected to the processing unit 37, and a frequency input end receiving the first frequency signal Ck1. When the first frequency signal Ck1 is turned to the rising edge, the fourth flip-flop 36 samples the pixel value received at its input and transmits it to its output.

該處理單元37電連接該串列轉平行輸出單元32,並包括一運算器38,及一加法器39。 The processing unit 37 is electrically coupled to the serial to parallel output unit 32 and includes an operator 38 and an adder 39.

該運算器38儲存一遮罩,並電連接該第一正反器33至該第四正反器36的該等輸入端和該第三正反器35和該第四正反器36的該等輸出端。 The operator 38 stores a mask and electrically connects the first flip-flop 33 to the input of the fourth flip-flop 36 and the third flip-flop 35 and the fourth flip-flop 36 Wait for the output.

該加法器39電連接該運算器38和該第一正反器33的該輸出端。 The adder 39 is electrically coupled to the operator 38 and the output of the first flip-flop 33.

參閱圖5,該影像處理裝置1執行一影像處理方法,該影像處理方法包含以下步驟:同時參閱圖3和圖6,步驟(A0):該色域轉換單元2接收一原始影像21,並將該原始影像21的複數個畫素O1~O36之RGB值R1~R36、G1~G36、B1~B36分別轉換成複數個畫素值L1~L36,其中,該等畫素值L1~L36共同組成該影像11。 Referring to FIG. 5, the image processing apparatus 1 performs an image processing method. The image processing method includes the following steps: Referring to FIG. 3 and FIG. 6 simultaneously, the step (A0): the color gamut converting unit 2 receives an original image 21, and The RGB values R1~R36, G1~G36, and B1~B36 of the plurality of pixels O1~O36 of the original image 21 are respectively converted into a plurality of pixel values L1~L36, wherein the pixel values L1~L36 are combined This image is 11.

更細部說明,該色域轉換單元2接收該原始影像21的一RGB色域,並將該RGB色域轉換成一HSL色域,所謂的RGB色域為以紅色(Red)、綠色(Green)與藍色(Blue)三原色為主的色彩圖元,而HSL色域為色相(Hue)、飽和度(Saturation)和亮度(Lightness/Luminance)為主的色彩圖元。 More specifically, the color gamut conversion unit 2 receives an RGB color gamut of the original image 21 and converts the RGB color gamut into an HSL color gamut. The so-called RGB color gamut is in red, green, and The blue color is the main color element of the three primary colors, and the HSL color gamut is the color element mainly composed of Hue, Saturation and Lightness/Luminance.

也就是說,該色域轉換單元2將該原始影像21的複數個畫素O1~O36之RGB值R1~R36、G1~G36、B1~B36分別轉換成複數個HSL值,並儲存該等HSL值的複數個L值(亮度)L1~L36而組成該影像11,該影像11包括M列畫素列,每一列畫素列包括N個 畫素,而每一畫素具有一個畫素值(亮度),亦即,該影像包括M×N個畫素值,其中,該M×N個畫素值L1~L36即為該M×N個畫素的亮度,其中,2≦M,3≦N,且M、N為正整數。 That is, the color gamut converting unit 2 converts the RGB values R1 R R36, G1 G G36, and B1 B B36 of the plurality of pixels O1 to O36 of the original image 21 into a plurality of HSL values, and stores the HSLs. The image has a plurality of L values (brightness) L1~L36, and the image 11 includes M columns of pixels, and each column of pixels includes N pixels. a pixel, and each pixel has a pixel value (brightness), that is, the image includes M×N pixel values, wherein the M×N pixel values L1 to L36 are the M×N The brightness of the pixels, where 2 ≦ M, 3 ≦ N, and M and N are positive integers.

另外,需注意的是,圖6的該原始影像21和該影像11的該等畫素值R1~R36、G1~G36、B1~B36、L1~L36之數值僅為方便說明所標示,並非實際的該等畫素之數值,且在本實施例,該影像11以六列畫素列(M=6),且每一列畫素列以六個畫素值(N=6)為例。 In addition, it should be noted that the values of the pixel values R1 R R36, G1 G G36, B1 B B36, and L1 L L36 of the original image 21 and the image 11 of FIG. 6 are only for convenience of description, and are not actual. The values of the pixels are, and in the embodiment, the image 11 is in six columns of pixels (M=6), and each column of pixels is exemplified by six pixel values (N=6).

步驟(A1):該緩衝器31依序接收並儲存來自該影像11的該即時串列數據,並將該即時串列數據轉換成該暫存串列數據,其中,該即時串列數據包括串列排列的該第m列畫素列的該第n個畫素值至該第p個畫素值,其中,2≦p-n,p≦N,1≦m≦M-1,1≦n≦N-2,且p、m、n為正整數。 Step (A1): the buffer 31 sequentially receives and stores the instant serial data from the image 11 and converts the instantaneous serial data into the temporary serial data, wherein the instant serial data includes a string The nth pixel value of the mth column of pixels arranged in the column to the pth pixel value, wherein 2≦pn, p≦N, 1≦m≦M-1, 1≦n≦N -2, and p, m, and n are positive integers.

在此定義本實施例的該緩衝器31具有儲存七個畫素值之儲存空間,且該遮罩具有六個(2×3)係數個數,但不限於此,可依實際需求而設定。在步驟(A1),該緩衝器31依序接收包括畫素值L1~L3的即時串列數據,並將該即時串列數據的畫素值L1~L3暫存於該緩衝器31,而作為該暫存串列數據。 The buffer 31 of the present embodiment is defined herein to have a storage space for storing seven pixel values, and the mask has six (2×3) coefficient numbers, but is not limited thereto, and can be set according to actual needs. In step (A1), the buffer 31 sequentially receives the real-time serial data including the pixel values L1 L L3, and temporarily stores the pixel values L1 L L3 of the real-time serial data in the buffer 31 as The temporary serial data.

需補充說明的是,該影像處理裝置1在執行步驟(A1)時,在緩衝器未填滿畫素前,該第一頻率信號Ck1維持於低准位 元,該串列轉平行輸出單元32的該第一正反器33不會對包含畫素值L1~L3的即時串列數據進行取樣,又該第二頻率信號Ck2維持於低准位元,該串列轉平行輸出單元32的該第二正反器34不會對來自緩衝器31的暫時串列進行取樣,該運算器38在沒有完全接收到六個畫素值L1~L6前,也不會與遮罩進行旋積運算。 It should be noted that, when performing the step (A1), the image processing apparatus 1 maintains the first frequency signal Ck1 at a low level before the buffer is filled with pixels. The first flip-flop 33 of the serial-to-parallel output unit 32 does not sample the instantaneous serial data including the pixel values L1 L L3, and the second frequency signal Ck2 is maintained at the low level. The second flip-flop 34 of the serial-to-parallel output unit 32 does not sample the temporary string from the buffer 31, and the operator 38 does not completely receive the six pixel values L1 to L6 before There is no convolution operation with the mask.

參閱圖7,為該影像處理裝置1重複執行步驟(A1)時,該緩衝器31依序接收並儲存來自該影像11的該即時串列數據,並將該即時串列數據轉換成該暫存串列數據的圖示說明,直至該影像處理裝置1的該緩衝器31完成該影像11的該即時串列數據的第一列畫素列之所有畫素值L1~L6,則進到步驟(A)。 Referring to FIG. 7 , when the image processing apparatus 1 repeatedly performs the step (A1), the buffer 31 sequentially receives and stores the instant serial data from the image 11 and converts the real serial data into the temporary storage. The illustration of the serial data indicates that until the buffer 31 of the image processing apparatus 1 completes all the pixel values L1 L L6 of the first column of the real string data of the image 11 , the process proceeds to the step ( A).

步驟(A):該串列轉平行輸出單元32接收來自該緩衝器31的暫存串列數據,該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元32將該暫存串列數據轉換成一第一平行輸出,該第一平行輸出包括平行排列的該第m列畫素列的第n個畫素值至第p個畫素值。 Step (A): the serial-to-parallel output unit 32 receives the temporary serial data from the buffer 31, the temporary serial data including the n-th pixel of the m-th column of pixels arranged in series a value to a pth pixel value, the serial to parallel output unit 32 converting the temporary serial data into a first parallel output, the first parallel output comprising nth of the mth column of pixels arranged in parallel The pixel value to the pth pixel value.

步驟(B):該串列轉平行輸出單元32接收來自該影像11的該即時串列數據,該即時串列數據包括串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元32將該即時串列數據轉換成一第二平行輸出,該第二平行輸出包括平行排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值。如 該暫存串列數據包括畫素值L1~L3,該即時串列數據包括畫素值L7~L9,則該第一平行輸出即包括畫素值L1~L3,該第二平行輸出即包括畫素值L7~L9。 Step (B): the serial-to-parallel output unit 32 receives the live serial data from the image 11, the live serial data comprising the nth of the (m+1)th column of pixel columns arranged in series The pixel value to the pth pixel value, the serial to parallel output unit 32 converts the immediate serial data into a second parallel output, the second parallel output including the (m+1)th column in parallel The nth pixel value of the prime column to the pth pixel value. Such as The temporary serial data includes pixel values L1~L3, and the real serial data includes pixel values L7~L9, and the first parallel output includes pixel values L1~L3, and the second parallel output includes drawing Prime value L7~L9.

步驟(I):該緩衝器31依序接收並儲存該即時串列數據的該第m+1列畫素列的第n個畫素值至第p個畫素值。例如,該即時串列數據為畫素值L7~L9,則該緩衝器31儲存的則是該即時串列數據的畫素值L7~L9。 Step (I): The buffer 31 sequentially receives and stores the nth pixel value of the m+1th column of the real string data to the pth pixel value. For example, if the real-time serial data is a pixel value L7~L9, the buffer 31 stores the pixel values L7~L9 of the real-time serial data.

步驟(C):該處理單元37接收來自該串列轉平行輸出單元32的該第一平行輸出及該第二平行輸出,並將該第一平行輸出及該第二平行輸出與該遮罩進行旋積運算而產生該旋積值△。 Step (C): the processing unit 37 receives the first parallel output and the second parallel output from the serial-to-parallel output unit 32, and performs the first parallel output and the second parallel output with the mask The convolution operation produces the convolution value Δ.

在針對步驟(A)至步驟(C)更細部的說明之前,須注意的是,步驟(A)和步驟(B)所述的該串列轉平行輸出單元32之作動為同時依序接收該暫存串列數據的該第m列畫素列的第n個畫素值至第p個畫素值和該即時串列數據的該第(m+1)列畫素列的第n個畫素值至第p個畫素值。 Before the description of the more detailed steps (A) to (C), it should be noted that the operation of the serial-to-parallel output unit 32 described in the steps (A) and (B) is to simultaneously receive the sequence. The nth pixel value of the mth column pixel column of the temporary string data to the pth pixel value and the nth picture of the (m+1)th column pixel column of the instant string data Prime value to p-th pixel value.

在此更以第一階段T1和第二階段T2來更細部的說明步驟(A)至步驟(C)之作動: Here, in the first stage T1 and the second stage T2, the steps (A) to (C) of the steps are explained in more detail:

<第一階段T1> <First stage T1>

參閱圖8,當該第一頻率信號Ck1轉為上升緣時,該第一正反器33對即時串列數據的畫素值L7取樣且傳送到第四正反器 36的輸入端,當該第一頻率信號Ck2轉為上升緣時,該第二正反器34對來自該緩衝器的暫存串列數據的畫素值L1取樣且傳送到該第三正反器35的輸入端,該緩衝器31接收並儲存該即時串列數據的畫素值L7。 Referring to FIG. 8, when the first frequency signal Ck1 is turned into a rising edge, the first flip-flop 33 samples the pixel value L7 of the instantaneous serial data and transmits it to the fourth flip-flop. At the input end of 36, when the first frequency signal Ck2 is turned into a rising edge, the second flip-flop 34 samples the pixel value L1 of the temporary serial data from the buffer and transmits to the third positive and negative At the input of the processor 35, the buffer 31 receives and stores the pixel value L7 of the instantaneous serial data.

在此同時,該即時串列數據的畫素值L8傳送到該第一正反器33的輸入端,來自緩衝器的畫素值L2傳送到該第二正反器34的輸入端,以預備於該第一頻率信號Ck1及第二頻率信號CK2的下一個上升緣被取樣。 At the same time, the pixel value L8 of the instant serial data is transmitted to the input end of the first flip-flop 33, and the pixel value L2 from the buffer is transmitted to the input end of the second flip-flop 34 to prepare The next rising edge of the first frequency signal Ck1 and the second frequency signal CK2 is sampled.

因此,在第一階段T1,該運算器38所接收到的該第一平行輸出和該第二平行輸出只包括該二個該第一個畫素值L1、L7和該二個第二個畫素值L2、L8,因此,該運算器38無法與該遮罩進行旋積運算,使得該加法器39僅能接收到來自該第一正反器33的該輸出端的該第一個畫素值L7(b等於1),所以,該加法器39輸出的該新影像4的該第二列畫素列之第一個畫素值會等同於該第一個畫素值L7(參閱圖11)。 Therefore, in the first phase T1, the first parallel output and the second parallel output received by the operator 38 include only the two first pixel values L1, L7 and the two second paintings. The prime values L2, L8, therefore, the operator 38 is unable to perform a convolution operation with the mask such that the adder 39 can only receive the first pixel value from the output of the first flip-flop 33 L7 (b is equal to 1), so the first pixel value of the second column of pixels of the new image 4 output by the adder 39 is equivalent to the first pixel value L7 (see FIG. 11). .

<第二階段T2> <Second stage T2>

參閱圖9,當該第一頻率信號Ck1轉為上升緣時,該第四正反器36對該畫素值L7取樣且傳送到該運算器38,該第一正反器33對該即時串列數據的畫素值L8取樣且傳送到該第四正反器36的輸入端,該第二頻率信號Ck2轉為上升緣時,該第三正反器35對 該暫存串列數據的畫素值L1取樣且傳送到該運算器38,該第二正反器34的對來自該緩衝器的該暫存串列數據的畫素值L2取樣且傳送到該第三正反器35的該輸入端,該緩衝器31接收並儲存該即時串列數據的畫素值L8。 Referring to FIG. 9, when the first frequency signal Ck1 is turned into a rising edge, the fourth flip-flop 36 samples the pixel value L7 and transmits it to the operator 38, and the first flip-flop 33 pairs the real-time string. The pixel value L8 of the column data is sampled and transmitted to the input end of the fourth flip-flop 36. When the second frequency signal Ck2 is turned to the rising edge, the third flip-flop 35 is paired. The pixel value L1 of the temporary serial data is sampled and transmitted to the operator 38, and the second flip-flop 34 samples the pixel value L2 of the temporary serial data from the buffer and transmits to the pixel value L2. The input end of the third flip-flop 35 receives and stores the pixel value L8 of the instantaneous serial data.

在此同時,即時串列數據的畫素值L9傳送到該第一正反器33的輸入端,來自緩衝器的畫素值L3傳送到該第二正反器34的輸入端,以預備於該第一頻率信號Ck1及第二頻率信號CK2的下一個上升緣被取樣。 At the same time, the pixel value L9 of the instantaneous serial data is transmitted to the input end of the first flip-flop 33, and the pixel value L3 from the buffer is transmitted to the input end of the second flip-flop 34 to prepare for The next rising edge of the first frequency signal Ck1 and the second frequency signal CK2 is sampled.

因此,在此第二階段T2,該運算器38接收的該第一平行輸出和該第二平行輸出分別包括畫素值L1、L2、L3和畫素值L7、L8、L9,也就是說,該運算器38接收的該等畫素值之總個數等於該遮罩的係數個數(a等於6),因此,可以進到步驟(C)。 Therefore, in this second phase T2, the first parallel output and the second parallel output received by the operator 38 include pixel values L1, L2, L3 and pixel values L7, L8, L9, that is, The total number of the pixel values received by the operator 38 is equal to the number of coefficients of the mask (a is equal to 6), and therefore, it is possible to proceed to step (C).

該處理單元37的該運算器38根據該六個畫素值L1~L3、L7~L9與該遮罩進行旋積運算而產生該旋積值△。 The arithmetic unit 38 of the processing unit 37 generates a convolution value Δ by performing a convolution operation on the mask based on the six pixel values L1 to L3 and L7 to L9.

需值得注意的是,該處理單元37的該運算器38系採用(公式1)的旋積運算公式得到該旋積值△。 It should be noted that the operator 38 of the processing unit 37 obtains the convolution value Δ by the convolution operation formula of (Formula 1).

其中,以參數X1至X6代表該運算器38所接收到的該等畫素值,而參數G為對應該第b個畫素值的該遮罩之係數權重,該遮罩之係數個數等於該運算器38所接收到的該等畫素值的個數,且對應該第b個畫素值的該遮罩之係數權重會較高,另外,須注意的是該遮罩之係數權重之設計要點為所有係數之係數權重相加等於零,因此,G的係數權重為{-[(-1)+(-1)+…+(-1)+(-1)+(-1)]}。 Wherein, the parameters X1 to X6 represent the pixel values received by the operator 38, and the parameter G is the coefficient weight of the mask corresponding to the bth pixel value, and the number of coefficients of the mask is equal to The number of the pixel values received by the operator 38, and the coefficient weight of the mask corresponding to the bth pixel value is higher. In addition, it should be noted that the coefficient weight of the mask is The design point is that the coefficient weights of all coefficients are added equal to zero. Therefore, the coefficient weight of G is {-[(-1)+(-1)+...+(-1)+(-1)+(-1)]} .

參閱圖9,在該第二階段T2,該第一正反器33的該輸出端輸出該第二平行輸出的該第二個畫素值L8,因此以該第二個畫素值L8為主要轉換畫素,也就是說,對應該第二個畫素值L8的該遮罩之係數權重之值應該要較大,以本例來說,G以5為例(G={-[(-1)+(-1)+(-1)+(-1)+(-1)]}=5),因此,本第一實施例現階段的旋積值△如(公式2)所示。 Referring to FIG. 9, in the second stage T2, the output end of the first flip-flop 33 outputs the second pixel value L8 of the second parallel output, so the second pixel value L8 is mainly Convert the pixel, that is, the value of the coefficient weight of the mask corresponding to the second pixel value L8 should be larger, in this case, G is 5 as an example (G={-[(- 1) + (-1) + (-1) + (-1) + (-1)]} = 5), therefore, the current value Δ of the present embodiment is as shown in (Formula 2).

另外說明的是,該遮罩包括二列係數列,每一列係數列具有三(p-n+1=3-1+1=3)個係數權重,且該二列係數列的其中一列係數列的該三個係數權重([-1,-1,-1])分別對應該第一平行輸出的該第一列畫素列的第一個畫素值(n=1)至第三個畫素值(p=3),而該二列係數列的其中另一列係數列([-1,5,-1])的該三個 係數權重分別對應該第二平行輸出的該第二列畫素列的第一個畫素值(n=1)至第三個畫素值(p=3)。 In addition, the mask includes two columns of coefficient columns, each column coefficient column has three (p-n+1=3-1+1=3) coefficient weights, and one of the column coefficient columns of the two column coefficient columns The three coefficient weights ([-1, -1, -1]) respectively correspond to the first pixel value (n = 1) to the third picture of the first column of the first column of parallel output Prime value (p=3), and the three columns of the two column coefficient columns ([-1,5,-1]) The coefficient weights respectively correspond to the first pixel value (n=1) to the third pixel value (p=3) of the second column of pixel columns of the second parallel output.

步驟(D):該處理單元37根據該第二平行輸出的第b個畫素值和該旋積值△進行加法運算產生該新影像4的第(m+1)列畫素列的第b個畫素值,其中,n≦b≦p,b為正整數。 Step (D): the processing unit 37 adds the b-th pixel value of the second parallel output and the convolution value Δ to generate the bth of the (m+1)th column of the new image 4 The pixel value, where n≦b≦p, b is a positive integer.

該處理單元37的該加法器39根據該第二平行輸出的該第二個畫素值L8(b等於2)和該旋積值△進行加法運算產生該新影像4的第二列畫素列的第二個畫素值M8(參閱圖11)。 The adder 39 of the processing unit 37 adds the second pixel value L8 (b equal to 2) and the convolution value Δ of the second parallel output to generate a second column of pixels of the new image 4. The second pixel value is M8 (see Figure 11).

步驟(E):該處理單元37判斷p的現有數值是否等於N,若是,則完成該新影像4的第(m+1)列畫素列的影像處理,若否,則進到步驟(F)。 Step (E): The processing unit 37 determines whether the existing value of p is equal to N, and if so, completes the image processing of the (m+1)th column of the new image 4, and if not, proceeds to step (F) ).

該處理單元37的該處理器判斷僅接收到該第一列畫素列和該第二列畫素列的該第一個畫素值至該第三個畫素值,因此,該處理單元37判斷p的現有數值(p=3)不等於N(N=6),而還未完成該第二列畫素列之該六個畫素值,進到步驟(F)。 The processor of the processing unit 37 determines that only the first pixel value of the first column of pixels column and the second column of pixel columns is received to the third pixel value, and therefore, the processing unit 37 It is judged that the existing value of p (p=3) is not equal to N (N=6), and the six pixel values of the second column of pixels are not yet completed, and the process proceeds to step (F).

步驟(F):該處理單元37將n的現有數值加1做為下一數值,p的現有數值加1做為下一數值,回到步驟(A)。 Step (F): The processing unit 37 adds 1 to the existing value of n as the next value, and increments the existing value of p by 1 as the next value, and returns to step (A).

該處理單元37將n的現有數值加1(n=1+1),且p的現有數值加1(P=3+1),並重複執行步驟(A)至步驟(E),後續作動與上述相同,在此不再贅述,直到步驟(E)的該處理單元37判斷p的現有 數值等於N(N=6),則完成該新影像4的第二列畫素列的影像處理,而進到步驟(G)。 The processing unit 37 adds 1 (n=1+1) to the existing value of n, and adds 1 (P=3+1) to the existing value of p, and repeats steps (A) to (E) repeatedly, followed by actuation and The same as above, and will not be described again here, until the processing unit 37 of the step (E) judges the existing p When the value is equal to N (N=6), the image processing of the second column of pixels of the new image 4 is completed, and the process proceeds to step (G).

步驟(G):該處理單元37判斷m的現有數值是否等於(M-1),若是,則完成新影像4的影像處理,若否,則進到步驟(H)。 Step (G): The processing unit 37 determines whether the existing value of m is equal to (M-1), and if so, completes the image processing of the new image 4, and if not, proceeds to step (H).

步驟(H):該處理單元37將m現有數值加1做為下一數值,且n的下一數值等於1,回到步驟(A)。 Step (H): The processing unit 37 adds 1 to the existing value of m as the next value, and the next value of n is equal to 1, and returns to step (A).

該處理單元37的該處理器判斷m的現有數值僅等於2,還未等於(M-1)(M=6),即表示該處理單元37僅完成新影像4的第三列畫素列的影像處理,還未完成該六列畫素列的影像處理,進到步驟(H)將m的現有數值加1(m=2+1)做為下一數值,且n的下一數值等於1,而回到步驟(A)該串列轉平行輸出單元32繼續接收來自該緩衝器31的暫存串列數據(參閱圖10),其中,該暫存串列數據為該第二列畫素列的第一個畫素值(n=1)至第三個畫素值(p=3)L7~L9,後續作動與上述相同,在此不再贅述,直到步驟(G)的該處理器判斷m的現有數值等於M-1(M=6),則完成該新影像4的影像處理。 The processor of the processing unit 37 determines that the existing value of m is only equal to 2, and is not equal to (M-1) (M=6), that is, the processing unit 37 only completes the third column of pixels of the new image 4. Image processing, the image processing of the six columns of pixels has not been completed, and the step (H) is added to the existing value of m by 1 (m=2+1) as the next value, and the next value of n is equal to 1 And returning to step (A), the serial-to-parallel output unit 32 continues to receive the temporary serial data from the buffer 31 (see FIG. 10), wherein the temporary serial data is the second column of pixels The first pixel value of the column (n=1) to the third pixel value (p=3) L7~L9, the subsequent actuation is the same as above, and will not be described here until the processor of step (G) If it is judged that the existing value of m is equal to M-1 (M=6), the image processing of the new image 4 is completed.

另外說明是,上述實施例之遮罩之係數權重亦可以 此型態呈現,此時的G之係數權重為 3(G={-[(-1)+(-1)+(-1)]}),但不以此為限,可依實際狀況自行設計。 In addition, the coefficient weight of the mask of the above embodiment may also be This type is presented. At this time, the coefficient weight of G is 3 (G={-[(-1)+(-1)+(-1)]})), but it is not limited to this. design.

參閱圖12,本發明影像處理裝置的一第二實施例類似於該第一實施例,不同之處在於,該第二實施例所執行的影像處理方法的步驟(A)之前還包含步驟(A1)至步驟(A6),並以步驟(A1)至步驟(A6)取代該第一實施例的步驟(A1),且該處理單元37的該運算器38還儲存另一遮罩,該另一遮罩具有三個(1×3)係數個數,並用來處理該影像11的第一列畫素列(m等於1)之影像處理。 Referring to FIG. 12, a second embodiment of the image processing apparatus of the present invention is similar to the first embodiment, except that the step (A) of the image processing method performed by the second embodiment further includes a step (A1). Go to step (A6) and replace step (A1) of the first embodiment with steps (A1) through (A6), and the operator 38 of the processing unit 37 also stores another mask, the other The mask has three (1 x 3) coefficient numbers and is used to process the image processing of the first column of pixels (m equal to 1) of the image 11.

步驟(A1):該串列轉平行輸出單元32接收來自該影像11的該即時串列數據,該即時串列數據包括串列排列的該第m列畫素列的第n個畫素值至第q個畫素值,該串列轉平行輸出單元32將該即時串列數據轉換成一第三平行輸出,該第三平行輸出包括平行排列的該第m列畫素列的第n個畫素值至第q個畫素值,其中,2+n≦q≦N,且q為正整數。 Step (A1): the serial-to-parallel output unit 32 receives the live serial data from the image 11, the live serial data including the n-th pixel value of the m-th column of pixels arranged in series to a qth pixel value, the serial to parallel output unit 32 converts the immediate serial data into a third parallel output, the third parallel output comprising nth pixels of the mth column of pixel columns arranged in parallel The value is to the qth pixel value, where 2+n≦q≦N, and q is a positive integer.

步驟(A6):該緩衝器31依序接收並儲存該即時串列數據的該第m列畫素列的第n個畫素值至第q個畫素值。 Step (A6): The buffer 31 sequentially receives and stores the nth pixel value of the mth column pixel column of the instant string data to the qth pixel value.

步驟(A2):該處理單元37接收來自該串列轉平行輸出單元32的該第三平行輸出,並將該第三平行輸出與另一遮罩進行旋積運算而產生另一旋積值△1,其中,該另一遮罩包括一列係數列,每一列係數列具有(q-n+1)個係數權重,且該列係數列的該 (q-n+1)個係數權重分別對應該第三平行輸出的該第m列畫素列的第n個畫素值至第q個畫素值。 Step (A2): the processing unit 37 receives the third parallel output from the serial-to-parallel output unit 32, and performs a convolution operation on the third parallel output with another mask to generate another convolution value Δ 1, wherein the another mask comprises a column of coefficient columns, each column coefficient column has (q-n+1) coefficient weights, and the column coefficient column (q-n+1) coefficient weights respectively correspond to the nth pixel value to the qth pixel value of the mth column pixel column of the third parallel output.

步驟(A3):該處理單元37根據該第三平行輸出的第b個畫素值和該另一旋積值△1進行加法運算產生該新影像4的第m列畫素列的第b個畫素值。 Step (A3): the processing unit 37 adds the b-th pixel value of the third parallel output and the another convolution value Δ1 to generate the bth pixel of the m-th column of the new image 4. Pixel value.

在此針對步驟(A1)、步驟(A6)、步驟(A2)和步驟(A3)以第三階段T3和第四階段T4加以說明。 Here, the third stage T3 and the fourth stage T4 are explained for the step (A1), the step (A6), the step (A2), and the step (A3).

<第三階段T3> <third stage T3>

參閱圖13,當該第一頻率信號Ck1轉為上升緣時,該第一正反器33對該即時串列數據所包括的第一列畫素列(m等於1)的第一個畫素值L1(n等於1)取樣且傳送到該第四正反器36的該輸入端,此時的該第二頻率信號Ck2仍維持低准位而未變化,因此,該第二正反器34並不會對來自緩衝器31的暫存串列數據進行取樣,而該緩衝器31接收並儲存該即時串列數據的該第一列畫素列的該第一個畫素值L1。 Referring to FIG. 13, when the first frequency signal Ck1 is turned into a rising edge, the first flip-flop 33 includes the first pixel of the first column of pixels (m is equal to 1) included in the instantaneous serial data. The value L1 (n is equal to 1) is sampled and transmitted to the input terminal of the fourth flip-flop 36. At this time, the second frequency signal Ck2 remains at a low level without change, and therefore, the second flip-flop 34 The temporary serial data from the buffer 31 is not sampled, and the buffer 31 receives and stores the first pixel value L1 of the first column of pixels of the immediate serial data.

在此同時,該即時串列數據的畫素值L2傳送到該第一正反器33的該輸入端,以預備於該第一頻率信號Ck1的下一個上升緣被取樣。 At the same time, the pixel value L2 of the instantaneous serial data is transmitted to the input terminal of the first flip-flop 33 to be sampled at the next rising edge of the first frequency signal Ck1.

因此,在此第三階段T3,該運算器38接收到該第三平行輸出只包括該第一個畫素值L1和該即時串列數據的該第一列畫 素列的第二個畫素值L2,因此該運算器38無法與該另一遮罩進行旋積運算,使得該加法器39僅能接收到來自該第一正反器33的該輸出端的該第一個畫素值L1(b等於1),所以,該加法器39輸出的該新影像4的該第一列畫素列之第一個畫素值會等同於該影像11的該第一個畫素值L1(參閱圖15)。 Therefore, in this third stage T3, the operator 38 receives the third parallel output including only the first pixel value L1 and the first column of the instant string data. The second pixel value L2 of the prime column, so the operator 38 cannot perform a convolution operation with the other mask, such that the adder 39 can only receive the output from the output of the first flip-flop 33 The first pixel value L1 (b is equal to 1), so the first pixel value of the first column of pixels of the new image 4 output by the adder 39 is equivalent to the first of the image 11 The pixel value L1 (see Figure 15).

<第四階段T4> <Fourth stage T4>

參閱圖14,當該第一頻率信號Ck1轉為上升緣時,該第四正反器36對該即時串列數據的該第一個畫素值L1取樣且傳送到該運算器38,該第一正反器33對即時串列數據的該第一列畫素列的第二個畫素值L2取樣且傳送到該第四正反器36的該輸入端,此時的該第二頻率信號Ck2仍維持低准位而未變化,因此,該第二正反器34並不會對來自緩衝器31的暫存串列數據進行取樣,而該緩衝器31接收並儲存該即時串列數據的該第一列畫素列的該第二個畫素值L2。 Referring to FIG. 14, when the first frequency signal Ck1 is turned into a rising edge, the fourth flip-flop 36 samples the first pixel value L1 of the instantaneous serial data and transmits the result to the operator 38. A flip-flop 33 samples the second pixel value L2 of the first column of pixel columns of the instantaneous serial data and transmits the same to the input end of the fourth flip-flop 36, the second frequency signal at this time Ck2 still maintains a low level without change. Therefore, the second flip-flop 34 does not sample the temporary serial data from the buffer 31, and the buffer 31 receives and stores the instantaneous serial data. The second column of the first column is the second pixel value L2.

在此同時,即時串列數據的該第一列畫素列的第三個畫素值L3(p等於3)傳送到該第一正反器33的輸入端,以預備於該第一頻率信號Ck1的下一個上升緣被取樣。 At the same time, the third pixel value L3 (p is equal to 3) of the first column of pixel columns of the instant string data is transmitted to the input end of the first flip-flop 33 to prepare for the first frequency signal. The next rising edge of Ck1 is sampled.

因此,在此第四階段T4,該運算器38接收的該第三平行輸出是由該第一個畫素值L1、該第二個畫素值L2和該第三個畫素值L3所組成,也就是說,該運算器38接收的該等畫素值之總個 數(該第一個畫素值L1、該第二個畫素值L2和該第三個畫素值L3)等於該另一遮罩的係數個數(a等於3),因此,該處理單元37的該運算器38即可根據該第三平行輸出(該第一個畫素值至該第三個畫素值L1~L3)和該另一遮罩進行旋積運算而產生該另一旋積值△1。 Therefore, in the fourth stage T4, the third parallel output received by the operator 38 is composed of the first pixel value L1, the second pixel value L2, and the third pixel value L3. That is, the total number of such pixel values received by the operator 38 The number (the first pixel value L1, the second pixel value L2, and the third pixel value L3) is equal to the number of coefficients of the other mask (a is equal to 3), and therefore, the processing unit The operator 38 of 37 can generate the other rotation according to the third parallel output (the first pixel value to the third pixel value L1~L3) and the other mask. The product value is △1.

需注意的是,本第二實施例的該另一遮罩的係數權重分別為[-1 G -1],因此,G的係數權重為2(G={-[(-1)+(-1)]}),所以該步驟(A2)的另一旋積值△1如(公式3)所示。 It should be noted that the coefficient weight of the other mask of the second embodiment is [-1 G -1], respectively, and therefore, the coefficient weight of G is 2 (G={-[(-1)+(- 1)]}), so another convolution value Δ1 of this step (A2) is as shown in (Equation 3).

步驟(A3):該處理單元37根據該第三平行輸出的第b個畫素值和該另一旋積值△1進行加法運算產生該新影像4的第m列畫素列的第b個畫素值。 Step (A3): the processing unit 37 adds the b-th pixel value of the third parallel output and the another convolution value Δ1 to generate the bth pixel of the m-th column of the new image 4. Pixel value.

該處理單元37的該加法器39根據該第三平行輸出的第二個畫素值L2(b=2)和該另一旋積值△1進行加法運算產生該新影像4的第一列畫素列的第二個畫素值M2(參閱圖34)。 The adder 39 of the processing unit 37 adds the second pixel value L2 (b=2) of the third parallel output and the other convolution value Δ1 to generate the first column of the new image 4. The second pixel value of the prime M2 (see Figure 34).

步驟(A4):該處理單元37判斷q的現有數值是否等於N,若是,則完成該新影像4的第m列畫素列的影像處理並進到步驟(A),若否,則進到步驟(A5)。 Step (A4): the processing unit 37 determines whether the existing value of q is equal to N, and if so, completes the image processing of the mth column of the new image 4 and proceeds to step (A), and if not, proceeds to the step (A5).

該處理單元37判斷q的現有數值(q=3)不等於N(N=6),而還未完成該第一列畫素列之該六個畫素值,進到步驟(A5)。 The processing unit 37 judges that the existing value (q=3) of q is not equal to N (N=6), and has not completed the six pixel values of the first column of pixels, and proceeds to step (A5).

步驟(A5):該處理單元37將n的現有數值加1做為下一數值,q的現有數值加1做為下一數值,回到步驟(A1)。 Step (A5): The processing unit 37 adds 1 to the existing value of n as the next value, and increments the existing value of q by 1 as the next value, and returns to step (A1).

該處理單元37將n的現有數值加1(n=1+1),且q的現有數值加1(q=3+1),並回到步驟(A1)重複執行,後續作動與上述相同,在此不再贅述,直到步驟(A4)的該處理單元37判斷q的現有數值等於N(N=6),則完該新影像4的第一列畫素列的影像處理,而進到步驟(A)繼續重複執行該第一實施例之動作。 The processing unit 37 adds 1 (n=1+1) to the existing value of n, and adds 1 (q=3+1) to the existing value of q, and returns to step (A1) to repeat the execution, and the subsequent operation is the same as above. Therefore, the processing unit 37 of the step (A4) determines that the existing value of q is equal to N (N=6), and the image processing of the first column of the new image 4 is completed, and the processing proceeds to the step. (A) The action of the first embodiment is continuously repeated.

綜上所述,上述實施例具有以下二優點: In summary, the above embodiment has the following two advantages:

1.僅需一個緩衝器31:該影像處理模組3僅需要一個緩衝器31儲存該影像11的第m列畫素列之第n個畫素值至第p個畫素值,再利用該串列轉平行輸出單元32依序接收儲存於該緩衝器31的該第m列畫素列的該N個畫素值,並同時依序即時接收該影像11的第(m+1)列畫素列之第n個畫素值至第p個畫素值,且根據所接收到的第m列畫素列之第n個畫素值至第p個畫素值、第(m+1)列畫素列之第n個畫素值至第p個畫素值與該遮罩進行旋積運算而產生該新影像4,藉此達到同時偵測水準邊界和垂直邊界之功效,又能使 該新影像4達到一定水準之銳利化效果而適用於驅動器(driver)或是觸控晶片(touch IC)。 1. Only one buffer 31 is needed: the image processing module 3 only needs one buffer 31 to store the nth pixel value of the mth column pixel column of the image 11 to the pth pixel value, and then use the The serial-to-parallel output unit 32 sequentially receives the N pixel values of the m-th column of pixel columns stored in the buffer 31, and simultaneously receives the (m+1)th column of the image 11 in sequence. The nth pixel value of the prime column to the pth pixel value, and according to the received nth pixel value of the mth column of pixels, to the pth pixel value, (m+1) The nth pixel value to the pth pixel value of the column of the column is subjected to a convolution operation with the mask to generate the new image 4, thereby achieving the effect of simultaneously detecting the level boundary and the vertical boundary, and The new image 4 achieves a certain level of sharpening effect and is suitable for a driver or a touch IC.

2.每一個緩衝器31的儲存空間減少:由於色域轉換的技術手段,該影像處理裝置1之該緩衝器31僅儲存每一畫素的L值(亮度),而現有的影像處理模組3的每一個緩衝器31大多儲存每一畫素的R值(紅色)、G值(綠色)和B值(藍色),顯然,本發明影像處理裝置1的該緩衝器31所需要的儲存空間較現有的影像處理模組的該緩衝器減少了約三分之二的空間。 2. The storage space of each buffer 31 is reduced: due to the technical means of color gamut conversion, the buffer 31 of the image processing apparatus 1 stores only the L value (brightness) of each pixel, and the existing image processing module Each of the buffers 31 of 3 stores R values (red), G values (green), and B values (blue) for each pixel. Obviously, the storage required for the buffer 31 of the image processing apparatus 1 of the present invention is required. The space is reduced by about two-thirds of the space of the existing image processing module.

因此,本發明影像處理方法能以減少硬體儲存面積的方式實現同時偵測水準邊界和垂直邊界,又能達到一定水準之銳利化之功效,而確實達成本發明之目的。 Therefore, the image processing method of the present invention can realize the simultaneous detection of the level boundary and the vertical boundary in a manner of reducing the hardware storage area, and can achieve a certain level of sharpening effect, and indeed 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.

1‧‧‧影像處理裝置 1‧‧‧Image processing device

2‧‧‧色域轉換單元 2‧‧‧Color gamut conversion unit

3‧‧‧影像處理模組 3‧‧‧Image Processing Module

31‧‧‧緩衝器 31‧‧‧ buffer

32‧‧‧串列轉平行輸出單元 32‧‧‧Sequence to parallel output unit

37‧‧‧處理單元 37‧‧‧Processing unit

Ck1‧‧‧第一頻率信號 Ck1‧‧‧first frequency signal

Ck2‧‧‧第二頻率信號 Ck2‧‧‧second frequency signal

Claims (8)

一種影像處理方法,由一影像處理裝置執行,該影像處理裝置包含一影像處理模組,該影像處理模組包括一接收一影像的緩衝器、一接收該影像並電連接該緩衝器的串列轉平行輸出單元,及一電連接該串列轉平行輸出單元的處理單元,其中,該影像包括M列畫素列,每一列畫素列包括N個畫素值,且2≦M,3≦N,且M、N為正整數,該影像處理方法包含:(A)該串列轉平行輸出單元接收一來自該緩衝器的暫存串列數據,該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元將該暫存串列數據轉換成一第一平行輸出,該第一平行輸出包括平行排列的該第m列畫素列的第n個畫素值至第p個畫素值,其中,2≦p-n,p≦N,1≦m≦M-1,1≦n≦N-2,且p、m、n為正整數;(B)該串列轉平行輸出單元接收一來自該影像的即時串列數據,該即時串列數據包括串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元將該即時串列數據轉換成一第二平行輸出,該第二平行輸出包括平行排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值;(C)該處理單元接收來自該串列轉平行輸出單元的該第一平行輸出及該第二平行輸出,並將該第一平行輸出及該第二平行輸出與一遮罩進行旋積運算而產生一旋積 值,其中,該遮罩包括二列係數列,每一列係數列具有(p-n+1)個係數權重,且該二列係數列的其中一列係數列的該(p-n+1)個係數權重分別對應該第一平行輸出的該第m列畫素列的第n個畫素值至第p個畫素值,而該二列係數列的其中另一列係數列的該(p-n+1)個係數權重分別對應該第二平行輸出的該第(m+1)列畫素列的第n個畫素值至第p個畫素值;(D)該處理單元根據該第二平行輸出的第b個畫素值和該旋積值進行加法運算產生該新影像的第(m+1)列畫素列的第b個畫素值,其中,n≦b≦p;(E)該處理單元判斷p的現有數值是否等於N,若是,則完成該新影像的第(m+1)列畫素列的影像處理,若否,則進到步驟(F);及(F)該處理單元將n的現有數值加1做為下一數值,p的現有數值加1做為下一數值,回到步驟(A)。 An image processing method is executed by an image processing device. The image processing device includes an image processing module. The image processing module includes a buffer for receiving an image, and a serial array for receiving the image and electrically connecting the buffer. a parallel output unit, and a processing unit electrically connected to the serial to parallel output unit, wherein the image comprises M columns of pixel columns, each column of pixels includes N pixel values, and 2≦M, 3≦ N, and M and N are positive integers. The image processing method includes: (A) the serial-to-parallel output unit receives a temporary serial data from the buffer, the temporary serial data comprising a tandem array The mth column of the nth pixel value to the pth pixel value, the serial to parallel output unit converts the temporary serial data into a first parallel output, the first parallel output including parallel Arranging the nth pixel value of the mth column of pixels to the pth pixel value, where 2≦pn, p≦N, 1≦m≦M-1, 1≦n≦N-2, And p, m, n are positive integers; (B) the serial to parallel output unit receives a live serial data from the image, The instant serial data includes the nth pixel value to the pth pixel value of the (m+1)th column pixel column arranged in series, and the serial to parallel output unit converts the real serial data into one a second parallel output, the second parallel output comprising the nth pixel value of the (m+1)th column pixel column arranged in parallel to the pth pixel value; (C) the processing unit receives the string from the string And rotating the first parallel output and the second parallel output of the parallel output unit, and performing a convolution operation on the first parallel output and the second parallel output and a mask to generate a convolution a value, wherein the mask includes two columns of coefficient columns, each column coefficient column has (p-n+1) coefficient weights, and the (p-n+1) of one of the column coefficient columns of the two column coefficient columns The coefficient weights respectively correspond to the nth pixel value of the mth column pixel column of the first parallel output to the pth pixel value, and the other column coefficient column of the two column coefficient column (p-n +1) coefficient weights respectively corresponding to the nth pixel value of the (m+1)th column pixel column of the second parallel output to the pth pixel value; (D) the processing unit according to the second The b-th pixel value of the parallel output and the convolution value are added to generate a b-th pixel value of the (m+1)th column of the new image, where n≦b≦p; The processing unit determines whether the existing value of p is equal to N, and if so, completes image processing of the (m+1)th column of the new image, and if not, proceeds to step (F); and (F) The processing unit adds 1 to the existing value of n as the next value, and increments the existing value of p by 1 as the next value, and returns to step (A). 如請求項1所述的影像處理方法,其中,當步驟(E)判斷p的現有數值等於N時,步驟(E)之後還包含(G)該處理單元判斷m的現有數值是否等於(M-1),若是,則完成新影像的影像處理,若否,則進到步驟(H),及(H)該處理單元將m現有數值加1做為下一數值,且n的下一數值等於1,回到步驟(A)。 The image processing method according to claim 1, wherein when the step (E) determines that the existing value of p is equal to N, the step (E) further comprises (G) the processing unit determining whether the existing value of m is equal to (M- 1), if yes, complete the image processing of the new image, if not, proceed to step (H), and (H) the processing unit increments the existing value of m as the next value, and the next value of n is equal to 1. Return to step (A). 如請求項1所述的影像處理方法,其中,該步驟(B)和步驟(C)之間還包含 (I)該緩衝器依序接收並儲存該即時串列數據的該第m+1列畫素列的第n個畫素值至第p個畫素值。 The image processing method of claim 1, wherein the step (B) and the step (C) further comprise (I) The buffer sequentially receives and stores the nth pixel value of the m+1th column of the real string data to the pth pixel value. 如請求項1所述的影像處理方法,其中,該步驟(A)之前還包含(A1)該緩衝器依序接收並儲存該影像的該即時串列數據,並將該即時串列數據轉換成該暫存串列數據,其中,該即時串列數據包括串列排列的該第m列畫素列的該第n個畫素值至該第p個畫素值。 The image processing method of claim 1, wherein the step (A) further comprises (A1) the buffer sequentially receiving and storing the instant serial data of the image, and converting the instant serial data into The temporary serial data includes the nth pixel value of the mth column pixel column of the tandem array to the pth pixel value. 如請求項1所述的影像處理方法,其中,該步驟(A)之前還包含(A1)該串列轉平行輸出單元接收來自該影像的該即時串列數據,該即時串列數據包括串列排列的該第m列畫素列的第n個畫素值至第q個畫素值,該串列轉平行輸出單元將該即時串列數據轉換成該第三平行輸出,該第三平行輸出包括平行排列的該第m列畫素列的第n個畫素值至第q個畫素值,其中,2+n≦q≦N,且q為正整數,(A2)該處理單元接收來自該串列轉平行輸出單元的該第三平行輸出,並將該第三平行輸出與另一遮罩進行旋積運算而產生另一旋積值,其中,該另一遮罩用來對該影像做銳利化之處理且能同時偵測水準邊界,並包括一列係數列,每一列係數列具有(q-n+1)個係數權重,且該列係數列的該(q-n+1)個係數權重分別對應該第三平行輸出的該第m列畫素列的第n個畫素值至第q個畫素值, (A3)該處理單元根據該第三平行輸出的第b個畫素值和該另一旋積值進行加法運算產生該新影像的第m列畫素列的第b個畫素值,(A4)該處理單元判斷q的現有數值是否等於N,若是,則完成該新影像的第m列畫素列的影像處理並進到步驟(A),若否,則進到步驟(A5),及(A5)該處理單元將n的現有數值加1做為下一數值,q的現有數值加1做為下一數值,回到步驟(A1)。 The image processing method of claim 1, wherein the step (A) further comprises (A1) the serial-to-parallel output unit receiving the live serial data from the image, the live serial data comprising a serial Arranging the nth pixel value of the mth column of pixels to the qth pixel value, the serial to parallel output unit converting the instantaneous serial data into the third parallel output, the third parallel output The nth pixel value of the mth column of pixel columns arranged in parallel to the qth pixel value, wherein 2+n≦q≦N, and q is a positive integer, (A2) the processing unit receives the The series is rotated to the third parallel output of the parallel output unit, and the third parallel output is subjected to a convolution operation with another mask to generate another convolution value, wherein the other mask is used for the image Performing sharpening processing and simultaneously detecting the level boundary, and including a column of coefficient columns, each column coefficient column has (q-n+1) coefficient weights, and the (q-n+1) of the column coefficient columns The coefficient weights respectively correspond to the nth pixel value to the qth pixel value of the mth column pixel column of the third parallel output. (A3) the processing unit adds the b-th pixel value of the third parallel output and the another convolution value to generate a b-th pixel value of the m-th column of the new image, (A4) The processing unit determines whether the existing value of q is equal to N, and if so, completes the image processing of the mth column of the new image and proceeds to step (A), and if not, proceeds to step (A5), and A5) The processing unit adds 1 to the existing value of n as the next value, and increments the existing value of q by 1 as the next value, and returns to step (A1). 如請求項5所述的影像處理方法,其中,該步驟(A1)和步驟(A2)之間還包含(A6)該緩衝器依序接收並儲存該即時串列數據的該第m列畫素列的第n個畫素值至第q個畫素值。 The image processing method of claim 5, wherein the step (A1) and the step (A2) further comprise (A6) the buffer sequentially receiving and storing the mth column of pixels of the instant serial data. The nth pixel value of the column to the qth pixel value. 一種影像處理裝置,包含一影像處理模組,該影像處理模組接收一影像,該影像包括M列畫素列,每一列畫素列包括N個畫素值,其中,2≦M,3≦N,且M、N為正整數,該影像處理模組包含一個緩衝器,用以依序接收並儲存來自該影像的一即時串列數據而轉換成一暫存串列數據,該即時串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,及串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,而該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,其中,2≦p-n,p≦N,1≦m≦M-1,1≦n≦N-2,且p、m、n為正整數; 一串列轉平行輸出單元,電連接該緩衝器以接收該緩衝器的該暫存串列數據,該暫存串列數據包括串列排列的該第m列畫素列的第n個畫素值至第p個畫素值,還接收來自該影像的該即時串列數據,該即時串列數據包括串列排列的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,該串列轉平行輸出單元將該暫存串列數據和該即時串列數據分別轉換成一第一平行輸出和一第二平行輸出;及一處理單元,電連接該串列轉平行輸出單元以接收該第一平行輸出及該第二平行輸出,並將該第一平行輸出及該第二平行輸出與一遮罩進行旋積運算而產生一旋積值,再根據該第二平行輸出的第b個畫素值和該旋積值進行加法運算產生該新影像的第(m+1)列畫素列的第b個畫素值,其中,該遮罩包括二列係數列,每一列係數列具有(p-n+1)個係數權重,且該二列係數列的其中一列係數列的該(p-n+1)個係數權重分別對應該第一平行輸出的該第m列畫素列的第n個畫素值至第p個畫素值,而該二列係數列的其中另一列係數列的該(p-n+1)個係數權重分別對應該第二平行輸出的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,其中,n≦b≦p,b為正整數;其中,該串列轉平行輸出單元包括一第一正反器,具有一輸入端、一輸出端,及一頻率輸入端,該第一正反器的該輸入端用來依序接收來自該影像的該即時串列數據,且該第一正反器的該頻率輸入端用來接收一第一頻率信號,當該第一頻率信號轉為上升緣 時,該第一正反器對其輸入端所接收到的畫素值取樣,並傳送到其輸出端,一第二正反器,具有一輸入端、一輸出端,及一頻率輸入端,該第二正反器的該輸入端電連接該緩衝器以用來接收該暫存串列數據,且該第二正反器的該頻率輸入端用來接收一第二頻率信號,當該第二頻率信號轉為上升緣時,該第二正反器對其輸入端所接收到的畫素值取樣,並傳送到其輸出端,一第三正反器,具有一輸入端、一輸出端,及一頻率輸入端,該第三正反器的該輸入端電連接該第二正反器的該輸出端,該第三正反器的該輸出端電連接該處理單元,而該第三正反器的該頻率輸入端電連接該第二正反器的該頻率輸入端以用來接收該第二頻率信號,當該第二頻率信號轉為上升緣時,該第三正反器對其輸入端所接收到的畫素值取樣,並傳送到其輸出端,及一第四正反器,具有一輸入端、一輸出端,及一頻率輸入端,該第三正反器的該輸出端電連接該處理單元,該第四正反器的該輸入端電連接該第一正反器的該輸出端,而該第四正反器的該頻率輸入端電連接該第一正反器的該頻率輸入端以用來接收該第一頻率信號,當該第一頻率信號轉為上升緣時,該第四正反器對其輸入端所接收到的畫素值取樣,並傳送到其輸出端。 An image processing device includes an image processing module, the image processing module receives an image, the image includes M columns of pixels, and each column of pixels includes N pixel values, wherein 2≦M, 3≦ N, and M and N are positive integers. The image processing module includes a buffer for sequentially receiving and storing a real serial data from the image and converting it into a temporary serial data, the real serial data. The nth pixel value of the mth column pixel column arranged in a series arrangement to the pth pixel value, and the nth pixel value of the (m+1)th column pixel column arranged in the string arrangement Up to the pth pixel value, and the temporary string data includes the nth pixel value to the pth pixel value of the mth column pixel column arranged in series, wherein 2≦pn,p≦ N,1≦m≦M-1,1≦n≦N-2, and p, m, n are positive integers; a serial to parallel output unit electrically connected to the buffer to receive the temporary serial data of the buffer, the temporary serial data comprising the nth pixel of the mth column of pixels arranged in series Receiving, to the p-th pixel value, the live serial data from the image, the live serial data comprising the nth pixel value of the (m+1)th column of pixel columns arranged in series to a p-th pixel value, the serial-to-parallel output unit converts the temporary serial data and the instantaneous serial data into a first parallel output and a second parallel output, respectively; and a processing unit electrically connecting the string And rotating the parallel output unit to receive the first parallel output and the second parallel output, and performing a convolution operation on the first parallel output and the second parallel output and a mask to generate a convolution value, according to the Adding the bth pixel value of the second parallel output and the convolution value to generate a bth pixel value of the (m+1)th column of the new image, wherein the mask includes two columns Coefficient column, each column coefficient column has (p-n+1) coefficient weights, and one of the two column coefficient columns The (p-n+1) coefficient weights of the column respectively correspond to the nth pixel value to the pth pixel value of the mth column pixel column of the first parallel output, and the two column coefficient columns The (p-n+1) coefficient weights of the other column coefficient column respectively correspond to the nth pixel value to the pth pixel value of the (m+1)th column pixel column of the second parallel output. Wherein, n≦b≦p, b is a positive integer; wherein the serial to parallel output unit comprises a first flip-flop having an input end, an output end, and a frequency input end, the first positive The input end of the counter is configured to sequentially receive the instantaneous serial data from the image, and the frequency input end of the first flip-flop is configured to receive a first frequency signal, when the first frequency signal is converted to Rising edge The first flip-flop samples a pixel value received at its input end and transmits it to its output terminal. A second flip-flop has an input terminal, an output terminal, and a frequency input terminal. The input end of the second flip-flop is electrically connected to the buffer for receiving the temporary serial data, and the frequency input of the second flip-flop is configured to receive a second frequency signal, when the first When the two frequency signals are turned to the rising edge, the second flip-flop samples the pixel values received at the input end thereof and transmits them to the output end thereof, and a third flip-flop has an input end and an output end. And a frequency input end, the input end of the third flip-flop is electrically connected to the output end of the second flip-flop, the output end of the third flip-flop is electrically connected to the processing unit, and the third The frequency input end of the flip-flop is electrically connected to the frequency input end of the second flip-flop to receive the second frequency signal, and when the second frequency signal turns to a rising edge, the third flip-flop pair The pixel value received at the input is sampled and transmitted to its output, and a fourth flip-flop, An input end, an output end, and a frequency input end, the output end of the third flip-flop is electrically connected to the processing unit, the input end of the fourth flip-flop is electrically connected to the first flip-flop An output end, wherein the frequency input end of the fourth flip-flop is electrically connected to the frequency input end of the first flip-flop to receive the first frequency signal, when the first frequency signal is turned into a rising edge, The fourth flip-flop samples a pixel value received at its input and transmits it to its output. 如請求項7所述的影像處理裝置,其中,該處理單元包括 一運算器,儲存一遮罩,並電連接該串列轉平行輸出單元以接收該第一平行輸出及該第二平行輸出,並根據該第一平行輸出、該第二平行輸出和該遮罩進行旋積運算而產生一旋積值,其中,該遮罩用來對該影像做銳利化之處理且能同時偵測水準邊界和垂直邊界,並包括二列係數列,每一列係數列具有(p-n+1)個係數權重,且該二列係數列的其中一列係數列的該(p-n+1)個係數權重分別對應該第一平行輸出的該第m列畫素列的第n個畫素值至第p個畫素值,而該二列係數列的其中另一列係數列的該(p-n+1)個係數權重分別對應該第二平行輸出的該第(m+1)列畫素列的第n個畫素值至第p個畫素值,及一加法器,電連接該串列轉平行輸出單元和該運算器以分別接收該第二平行輸出的第b個畫素值和該旋積值,並根據該第b個畫素值和該旋積值進行加法運算以產生該新影像的複數列畫素列的其中一列之複數個畫素值的其中一個畫素值,其中,n≦b≦p。 The image processing device of claim 7, wherein the processing unit comprises An operator storing a mask and electrically connecting the serial to parallel output unit to receive the first parallel output and the second parallel output, and according to the first parallel output, the second parallel output, and the mask Performing a convolution operation to generate a convolution value, wherein the mask is used to sharpen the image and simultaneously detect the level boundary and the vertical boundary, and includes two columns of coefficient columns, each column coefficient column having ( P-n+1) coefficient weights, and the (p-n+1) coefficient weights of one of the column coefficient columns of the two column coefficient columns respectively correspond to the first m-th column pixel sequence of the first parallel output n pixel values to the pth pixel value, and the (p-n+1) coefficient weights of the other column coefficient column of the two column coefficient columns respectively correspond to the first (m+) of the second parallel output 1) arranging the nth pixel value of the prime column to the pth pixel value, and an adder electrically connecting the serial to parallel output unit and the operator to respectively receive the bth of the second parallel output a pixel value and the convolution value, and adding according to the bth pixel value and the convolution value to generate a complex image of the new image Wherein the row pixel column wherein a plurality of pixel value of the pixel values of a, wherein, n ≦ b ≦ p.
TW105126169A 2016-08-17 2016-08-17 Image processing device and method thereof TWI602422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105126169A TWI602422B (en) 2016-08-17 2016-08-17 Image processing device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105126169A TWI602422B (en) 2016-08-17 2016-08-17 Image processing device and method thereof

Publications (2)

Publication Number Publication Date
TWI602422B true TWI602422B (en) 2017-10-11
TW201808010A TW201808010A (en) 2018-03-01

Family

ID=61011221

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105126169A TWI602422B (en) 2016-08-17 2016-08-17 Image processing device and method thereof

Country Status (1)

Country Link
TW (1) TWI602422B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200701801A (en) * 2005-01-13 2007-01-01 Samsung Electronics Co Ltd Digital video signal processing apparatus and method for field-based adaptive spatio-temporal y/c separation
TW200931947A (en) * 2008-01-14 2009-07-16 Wintek Corp Image processing apparatus and image processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200701801A (en) * 2005-01-13 2007-01-01 Samsung Electronics Co Ltd Digital video signal processing apparatus and method for field-based adaptive spatio-temporal y/c separation
TW200931947A (en) * 2008-01-14 2009-07-16 Wintek Corp Image processing apparatus and image processing method

Also Published As

Publication number Publication date
TW201808010A (en) 2018-03-01

Similar Documents

Publication Publication Date Title
US10038909B2 (en) Compression of light field images
US11625815B2 (en) Image processor and method
US20220036523A1 (en) Image processor
KR101845476B1 (en) Image conversion apparatus and image conversion method thereof
JP4395789B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
US9947258B2 (en) Image processing method and image processing apparatus
WO2018166152A1 (en) Scanning card, led display screen control system and image data processing method
US8913135B2 (en) Method and apparatus for measuring response curve of an image sensor
JP2021179833A (en) Information processor, method for processing information, and program
JP6362098B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program
TWI602422B (en) Image processing device and method thereof
Hanumantharaju et al. A novel FPGA implementation of adaptive color image enhancement based on HSV color space
CN111010557B (en) White point range determining method, white balance correcting method and device, and storage medium
CN113068011A (en) Image sensor, image processing method and system
US11302035B2 (en) Processing images using hybrid infinite impulse response (TTR) and finite impulse response (FIR) convolution block
CN114820581B (en) Axisymmetric optical imaging parallel simulation method and device
CN106296614B (en) Image processing apparatus and image processing method
CN106447594B (en) Image processing apparatus and method thereof
JP2004145615A (en) Image processor and image processing method
US11516449B2 (en) Pixel value calibration method and pixel value calibration device
CN109076142B (en) High precision gamut mapping
JP2012119968A (en) Image processing device and image processing program
CN104301584B (en) Image processing system
RU2625523C1 (en) Method for determining protectability of designations as trademarks
CN108335274B (en) Rapid video defogging method