535400 880twf.doc/009 A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明說明(/ ) 本發明是有關於一種光學掃描裝置記憶體資料之排 列方法,且特別是有關於一種光學掃描裝置之記憶體中影 像資料排列方法。 / 目靑梦照桌1圖’其繪不了一般光學掃描裝置的架構 圖。在此光學掃描裝置中,包括電荷耦合元件(Charge Coupled Device,CCD)ll〇,多工器 120,放大器 130,類 比數位轉換器14G以及緩衝記憶體150。在掃描時,由電 荷耦合元件11〇掃描被掃描物所得到的亮度會被轉換爲類 比電壓訊號,而此類比電壓訊號會由多工器120依照顏色 順序而輸出到放大器130。經由放大器130的放大操作之 後,被放大的類比電壓訊號會經由類比數位轉換器140的 轉換而成爲數位電壓訊號,此數位電壓訊號則會被儲存於 緩衝記憶體150之中。 而如上述的資料輸出及轉換操作,在當電荷耦合元件 110中每一個顏色之感測列的線差爲k條,像素有η個的 時候,被儲存於緩衝記憶體150中的數位電壓訊號的排列 方式會如第2圖所示。其中,Rij表示的是第i行中的第j 個像素(pixel)的紅色亮度,Gij表示的是第i行中的第j個 像素(pixel)的綠色亮度,Βυ表示的是第i行中的第j個像 素(pixel)的藍色亮度。 而在傳統的掃描程序中,當數位電壓訊號已被儲存於 緩衝記憶體150之內後,所可能的操作會有兩種。第一種 方法是,將緩衝記憶體150內的資料直接輸出到主機中; 而第二種方法則是將緩衝記憶體150內的資料經過處理, 3 本紙張尺度適用中國國家標準(CNS)A4規烙(210 X 297公釐) (請先閱讀背面之注意事項再本頁) m. 訂_ --線· 535400 7880twf.doc/009 A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明說明(>) 將各像素的顏色排列在一起之後再做輸出。在第一種方法 中,雖然由緩衝記憶體15〇中輸出資料的速度較快,但是 在主機中所必須進行的影像資料排列程序就較爲繁雜。而 在第二種方法中,雖然後續在主機中所需進行的影像資料 排列程序比第一種方式來得簡易,但是在資料輸出的速度 上卻遠不及第一種方式。 綜上所述,以習知在記憶體中所使用的影像資料排列 方法若不是在後續處理的程序上顯得繁雜,就是影像資料 在從記憶體輸出到主機的速度上顯得緩慢。 有鑒於此,本發明提出一種光學掃描裝置之記憶體中 影像資料排列方法。使用本發明所提出的影像資料排列方 法,在後續影像的處理程序上可以比前述習知所使用的第 一種方法更爲簡易,而在影像資料輸出的速度上’則可以 比前述習知所使用的第二種方法更爲快速。 本發明提出一種光學掃描裝置之記憶體中影像資料 排列方法,其適用於以數個像素組成一條線,且每一個像 素是由數個原色所組成的影像資料上。此光學掃描裝置之 記憶體中影像資料排列方法首先取得掃描一條線時所得 之一種原色,之後,再將此線中所包括的像素分成數個群 組。而在儲存其中一個群組到記憶體的時候,就於儲存所 取得之原色的位址前後保持一個儲存空間,以使組成同一 個像素的數個原色可以以同樣的順序相鄰排列於@憶體 中。最後,每當一個群組所包含的像素的原色齊備時’就 將此群組所包含之資料送出。 4 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公t ) (請先閱讀背面之注意事項再碑寫本頁) .¾ 訂: 535400 五、發明說明) 本發明另提出一種光學掃描裝®之記憶體中影像資 料排列方法。此記憶體中影像資料排列方法首先將掃描一 條線所得之數個像素分成數個群組以儲存於記憶體中。之 後,當某一群組中所包含的像素的資料齊備,且這些像素 所包含的原色以固定序列排列好時’就送出此群組所包含 之像素的資料。 本發明還提出一種光學掃描裝置之記憶體中影像資 料排列方法,,其適用於以數個像素組成一條線’且每一 個像素是由數個原色所組成的影像資料上。此光學掃描裝 置之記憶體中影像資料排列方法首先取得掃描一條線時 所得之一種原色,之後則將此線中所包括的像素中的奇像 素分爲第一群組’偶像素分爲第一群組。而在將弟一群組 或第二群組儲存至記憶體時,於儲存所取得之原色的位址 前後保持適當的儲存空間,以使組成同一像素的原色可以 以固定順序相鄰排列於記憶體中。最後,當第一群組或第 二群組所包含的像素的原色齊備時,就送出此群組所包含 之資料。 綜上所述,本發明係在取得組成像素的資料(即各原色 的亮度)之後,將這些資料以特定的順序儲存於記憶體中, 再將這些資料直接輸出。如此,由於在資料自記憶體中輸 出的時候不需要做額外的處理,因此輸出速度不會變慢, 而且由於輸出的資料順序上已經經過處理,所以在後續的 影像處理程序上也可以較爲簡易快速。 爲讓本發明之上述和其他目的、特徵、和優點能更明 5 本紙張尺度適用中國國家標準(CNS)A4規格(210χ 297公t ) (請先閱讀背面之沒意事頊 I I · I I 再本頁) --線- 經濟部智慧財產局員工消費合作社印製 535400 五、發明說明(γ ) 顯易懂,下文特舉較佳實施例,並配合所附圖式,作胃羊糸田 說明如下: 圖式之簡單說明: 第1圖繪示的是一般常用光學掃描裝置的架構方土鬼 圖; 第2圖繪不的是習知在光學掃描裝置的記憶體中所^吏 用的影像資料排列方式;以及 第3 A-3 C圖繪不的是根據本發明之影像資料排列方式 之一較佳實施例。 標號說明 110 :電荷耦合元件 120 :多工器 130 :放大器 140 :類比數位轉換器 15〇 :緩衝記憶體 較佳實施例 經濟部智慧財產局員工消費合作社印製 (請先閱讀背面之注意事項再^本頁) •-線· 請參照第3A-3C圖,其繪示的是依照本發明之影像資 料排列方式之一較佳實施例。必須注意的是,雖然在本實 施例中是以紅、綠、藍三原色(代號分別爲R、G、B)爲掃 描時所取得之影像資料,但熟知此技藝者當可以下述揭露 之方法應用於各種不同原色組合之狀況。此外,在本實施 例中尙假設在掃描的過程中,光感測器中各原色的感測列 掃描到文件的順序是以紅色爲最先,接下來是綠色,而監 色則最後,且不同原色之感測列間的距離爲k條線的線 差。再者,在本實施例中雖係將各種原色的影像資料分爲 奇像素與偶像素,但熟悉此技藝者當知本發明並非只能適 _ 6 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 535400 S8〇twf.doc/009 A7 B7 五、發明說明(f ) 用於分爲兩區的狀況。 請參照第3A圖,其顯示的是根據本發明之一較佳實 施例中,當紅色感測列掃描到待掃插文件,而後續的綠色 及藍色之感測列尙未掃描到待掃描文件時的記憶體中影 像資料排列示意圖。由圖中可以得知,當紅色感測列掃描 到待掃描文件時,代表紅色原色的影像資料Rn,R12,R13 等等,直到Rk(2n)會先被放置到記憶體中。其中,R的下標 k與2n係代表第k行的第2n個點的影像資料。舉例來說, Rn代表的是第1行第1個點的紅色原色的影像資料,而 Ru則代表第1行第2個點的紅色原色的影像資料。 當開始掃描之後,第一行之奇像素中的紅色影像資料 會先被存入記憶體中,如第3A圖所示之Rn,Rn,Ri5直 到1(2η_υ。接下來,第二行之奇像素中的紅色影像資料與 第一行之偶像素中的紅色影像資料就會分別被掃描並存 入記憶體中,其中,這些影像資料分別是如第3Α圖中的 R21 ’ R23 ’ R25 直到 R2(2n-1),以及 Ri2,Rl4,Rl6 直到 Rl(2n)。 根據本發明的技術,於本實施例中的每一個紅色影像資料 之後會預留儲存另兩種顏色資料的記憶體空間,如:Nn 與M i 1等,其中’ N與Μ分別表示預定儲存綠色原色與監 色原色之顏色資料的儲存空間。因此,由第3Α圖可知’ 由於不同原色之感測列間的距離有著k條線的線差,所以 當紅色原色第k條線的顏色資料儲存到記憶體中的時候’ 綠色原色與藍色原色的顏色資料都還不會塡入在記憶體 中。 7 本紙張尺度適用中國國家標準(CNS)A4規格(210 x 297公爱) ' " (請先閱讀背面之注意事項再^^本頁) ·. _線- 經濟部智慧財產局員工消費合作社印製 535400 ^880twf.doc/009 A7 B7 五、發明說明(b ) 接下來請參照第3B圖,其繪示的是緊接著第3A圖而 來,當綠色感測列掃描到待掃描文件,而藍色感測列尙未 掃描到待掃描文件時的記憶體中影像資料排列示意圖。同 樣的,Gn代表的是第1行第1個點的綠色原色的影像資 料,而G12則代表第1行第2個點的綠色原色的影像資料。 由此圖可以得知,本發明係將對應第二種原色(在本實施例 中爲綠色)的影像資料依序存放於對應第一種原色(在本實 施例中爲紅色)的影像資料之後。亦即,綠色原色的影像資 料係根據在待掃描文件上之位置,而被依序存放於原本第 3A圖中由Nu,Ni2,N丨3,直到Nk(2n)所表示,在記憶體中 所預留的記憶空間。 再者,在第3B圖中還顯示了除第3A圖所示之記憶體 儲存空間之外的另一段儲存空間,也就是第3B圖中用以 儲存紅色原色的影像資料的 R(k+l)l ’ R(k+lK2n-l) ’ 直到 R(2k)(2n),以及預留的儲存空間N(k+1)i到N(2kK2n)與M(k+1)丨 到 M(2k)(2n) ° 在這一段記憶體儲存空間中,與第3A圖相同 的,由於不同原色之感測列間的距離有著k條線的線差, 所以當紅色原色第2k條線的顏色資料儲存到記憶體中的 時候,綠色原色與藍色原色的顏色資料都還不會塡入在儲 存第k條線至第2k條線的記憶體儲存空間中。 接下來請參照第3C圖,其顯示了緊接著第3B圖而 來,當第三種原色(在本實施例中爲藍色)的感測列開始掃 描到待掃描文件之後的記憶體中影像資料排列方式的示 意圖。在第3C圖中,當藍色原色的感測列掃描到待掃描 8 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公t ) (請先閱讀背面之注意事項再 I 本頁) 線_ 經濟部智慧財產局員工消費合作社印製 535400 7880twf.doc/009 A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明說明(q ) 文件上的第一條線時,由感測列所得的藍色原色的影像資 料會根據其在線上的位置而被儲存到記憶體內相對應預 留的儲存空間中。換句話說,掃描待掃描文件第一條線時 所得的藍色原色的影像資料,會被儲存在如第3C圖中所 繪示的Βπ,B12直到B1(2n)的位置上。而當第一條線上的 藍色原色的影像資料儲存到記憶體內之後,組成第一條線 所需的影像資料就已齊備’此時這些組成第一條線所需的 影像資料就會被傳送到主機中以進行下一步的影像處理 操作。 由於在本實施例中使用的是線性光感測器,亦即相對 於每一種原色只有一條感測列,所以奇像素與偶像素兩部 分的影像資料可說是幾乎同時取得。而若使用的是交錯式 (staggered)光感測器,則以〜般奇像素與偶像素分離掃描 的交錯式光感測器而言,若假設在掃描順序上是先奇像素 而後偶像素,則在第3C圖中會先得到Βπ,B13到 1 2 η -1) 等奇像素中有關藍色原色的影像資料,此時由於奇像素的 影像貪料已經齊備’於是奇像素的影像資料就會先被傳送 到主機中,而偶像素的部分則會等到偶像素中的影像資料 齊備之後再傳送到主機中。 綜上所述,現將本發明的優點略述如下。本發明將每 條線的影像資料在記憶體中分成數個部分,如此當每一個 部分的影像資料齊備後,就可以將此部分的影像資料按照 順序傳送到主機中而不用等到全部的影像資料齊備才能 送到主機,因此可節省掃描器中一部份的記憶體空間。而 9 本紙張又度適用中國國家標準(CNS)A4規格(210 x 297公f ) (請先閱讀背面之注意事項再1^本頁) 太 535400 7880twf.d〇c/0〇9 A7 五、發明說明(% ) 若再配合本發明所提出的記憶體中影像資料的排列順 序’則在主機中僅需要將不同部分組合即可’不需另外花 費時間去排列各像素中各種原色的順序,如此就可以節省 主機花在影像處理上的時間。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此技藝者,在不脫離本發明之精神 和範圍內,當可作各種之更動與潤飾,因此本發明之保護 範圍當視後附之申請專利範圍所界定者爲準。 (請先閱讀背面之注意事項再本頁) · ;線- 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS)A4規烙(210 X 297公釐)535400 880twf.doc / 009 A7 B7 Printed by the Consumer Cooperative of Intellectual Property Bureau of the Ministry of Economic Affairs 5. Description of the invention (/) The present invention relates to a method for arranging the memory data of an optical scanning device, and more particularly to an optical scanning device Method of arranging image data in memory. / Picture 1 of Mengmeng Mengzhao Table ’It cannot draw the architecture diagram of a general optical scanning device. The optical scanning device includes a charge coupled device (CCD) 110, a multiplexer 120, an amplifier 130, an analog-to-digital converter 14G, and a buffer memory 150. During scanning, the brightness obtained by scanning the scanned object by the charge coupling element 110 is converted into an analog voltage signal, and the analog voltage signal is output to the amplifier 130 by the multiplexer 120 according to the color sequence. After the amplification operation by the amplifier 130, the amplified analog voltage signal is converted into a digital voltage signal by the analog-to-digital converter 140, and the digital voltage signal is stored in the buffer memory 150. As for the data output and conversion operations described above, when the line difference of each color sensing row in the charge-coupled device 110 is k and there are n pixels, the digital voltage signal is stored in the buffer memory 150. Will be arranged as shown in Figure 2. Among them, Rij represents the red brightness of the j-th pixel (pixel) in the i-th row, Gij represents the green brightness of the j-th pixel (pixel) in the i-th row, and Βυ represents the i-th row The blue brightness of the j-th pixel (pixel). In the conventional scanning procedure, when the digital voltage signal has been stored in the buffer memory 150, there are two possible operations. The first method is to directly output the data in the buffer memory 150 to the host; the second method is to process the data in the buffer memory 150. 3 This paper size applies the Chinese National Standard (CNS) A4 Regulations (210 X 297 mm) (Please read the notes on the back first, then this page) m. Order_-line · 535400 7880twf.doc / 009 A7 B7 Printed by the Consumers ’Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs Explanation (>) The colors of the pixels are arranged together before output. In the first method, although the speed of outputting data from the buffer memory 15 is fast, the image data arranging procedure that must be performed in the host is more complicated. In the second method, although the subsequent arrangement of the image data required in the host computer is simpler than the first method, the speed of data output is far lower than the first method. In summary, the conventional method of arranging image data in memory is either complicated in the subsequent processing procedures or the image data is slow in outputting from the memory to the host. In view of this, the present invention provides a method for arranging image data in a memory of an optical scanning device. Using the image data arrangement method proposed by the present invention, the subsequent image processing procedure can be more simple than the first method used in the previous practice, and the speed of image data output can be higher than that in the previous practice. The second method used is faster. The invention provides a method for arranging image data in the memory of an optical scanning device, which is suitable for image data composed of a plurality of pixels, and each pixel is composed of a plurality of primary colors. The method for arranging image data in the memory of the optical scanning device first obtains a primary color obtained when scanning a line, and then divides the pixels included in the line into several groups. When storing one of the groups in the memory, a storage space is maintained before and after the address of the obtained primary color is stored, so that several primary colors that make up the same pixel can be arranged next to each other in the same order. @ 忆Body. Finally, whenever the primary colors of the pixels contained in a group are complete ’, the data contained in the group is sent out. 4 This paper size applies to China National Standard (CNS) A4 (210 x 297 g) (please read the precautions on the back before writing this page). ¾ Order: 535400 V. Description of the invention Another optical method is provided by the present invention. How to arrange the image data in the memory of Scanner®. In this memory image data arrangement method, a plurality of pixels obtained by scanning a line are first divided into several groups to be stored in the memory. After that, when the data of the pixels contained in a group is complete, and the primary colors contained in these pixels are arranged in a fixed sequence ', the data of the pixels contained in this group will be sent. The present invention also provides a method for arranging image data in the memory of an optical scanning device, which is suitable for image data composed of a plurality of pixels in a line 'and each pixel is composed of a plurality of primary colors. The method for arranging image data in the memory of the optical scanning device first obtains a primary color obtained when scanning a line, and then divides odd pixels among the pixels included in the line into a first group, and even pixels into a first group. Group. When storing the first group or the second group in the memory, maintain an appropriate storage space before and after storing the addresses of the obtained primary colors, so that the primary colors that make up the same pixel can be arranged next to each other in memory in a fixed order. Body. Finally, when the primary colors of the pixels contained in the first group or the second group are complete, the data contained in this group is sent. In summary, the present invention obtains the data (i.e., the brightness of each primary color) that composes the pixels, stores the data in the memory in a specific order, and outputs the data directly. In this way, since no additional processing is required when the data is output from the memory, the output speed will not slow down, and because the output data has been processed in order, it can also be compared in subsequent image processing programs. Easy and fast. In order to make the above and other objects, features, and advantages of the present invention clearer 5 The paper size is applicable to the Chinese National Standard (CNS) A4 specification (210χ 297 g t) (Please read the unintentional matter on the back 顼 II · II before (This page) --Line-Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 535400 5. The description of the invention (γ) is easy to understand. The following is a description of the preferred embodiment and the accompanying drawings. : Brief description of the drawings: Figure 1 shows the structure of a common optical scanning device. Figure 2 does not show the image data used in the memory of an optical scanning device. Arrangement; and Figures 3A-3C cannot depict a preferred embodiment of the arrangement of image data according to the present invention. Reference sign 110: charge-coupled element 120: multiplexer 130: amplifier 140: analog-to-digital converter 15: buffer memory. A preferred embodiment is printed by the consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs (please read the precautions on the back first) ^ This page) • -line · Please refer to Figures 3A-3C, which shows a preferred embodiment of the arrangement of image data according to the present invention. It must be noted that although the three primary colors of red, green, and blue (codes R, G, and B, respectively) are used as the image data obtained during scanning in this embodiment, those skilled in the art can disclose the following methods Applicable to the situation of different combinations of primary colors. In addition, in this embodiment, it is assumed that during the scanning process, the order in which the sensing columns of each primary color in the light sensor scan the document is red first, followed by green, and monitoring color is last, and The distance between sensing columns of different primary colors is the line difference of k lines. Moreover, in this embodiment, although the image data of various primary colors are divided into odd pixels and even pixels, those skilled in the art should know that the present invention is not only applicable. 6 This paper standard applies to China National Standard (CNS) A4 Specifications (210 X 297 mm) 535400 S8twf.doc / 009 A7 B7 5. Description of the invention (f) It is used for the situation divided into two areas. Please refer to FIG. 3A, which shows that according to a preferred embodiment of the present invention, when a red sensing row scans a document to be scanned and a subsequent green and blue sensing row 尙 does not scan to a document to be scanned Schematic diagram of image data arrangement in memory at the time of document. It can be seen from the figure that when the red sensing column scans the document to be scanned, the image data Rn, R12, R13, etc. representing the red primary colors, until Rk (2n) is first placed in the memory. Among them, the subscripts k and 2n of R represent the image data of the 2nth point of the kth row. For example, Rn represents the image data of the red primary color of the first point in the first line, and Ru represents the image data of the red primary color of the second point in the first line. When scanning is started, the red image data in the odd pixels in the first row will be stored in the memory first, as shown in Figure 3A, Rn, Rn, Ri5 until 1 (2η_υ. Next, the odd in the second row The red image data in the pixels and the red image data in the even pixels of the first row will be scanned and stored in the memory, respectively, where these image data are R21 'R23' R25 up to R2 as shown in Figure 3A. (2n-1), and Ri2, Rl4, Rl6 through Rl (2n). According to the technology of the present invention, after each red image data in this embodiment, a memory space for storing the other two color data is reserved, For example: Nn and M i 1, etc., where 'N and M respectively indicate the storage space for storing the color data of the green primary color and the monitor primary color. Therefore, it can be seen from Figure 3A that the distance between the sensing columns of different primary colors is different. The line difference of k lines, so when the color data of the k-th line of the red primary color is stored in the memory, neither the color data of the green primary color nor the blue primary color will be stored in the memory. 7 Paper Size Applicable Chinese national standards CNS) A4 specification (210 x 297 public love) '" (Please read the precautions on the back before ^^ this page) ·. _ Line-Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 535400 ^ 880twf.doc / 009 A7 B7 V. Description of the Invention (b) Please refer to FIG. 3B, which is shown immediately after FIG. 3A. When the green sensing column scans the document to be scanned, and the blue sensing column 尙 is not scanned. Schematic diagram of the arrangement of image data in the memory when the file is to be scanned. Similarly, Gn represents the image data of the green primary color of the first point of the first line, and G12 represents the green color of the first primary line of the first point. Image data. As can be seen from the figure, the present invention sequentially stores image data corresponding to the second primary color (in this embodiment, green) in the order corresponding to the first primary color (red in this embodiment). After the image data, that is, the image data of the green primary colors are sequentially stored in the original 3A image by Nu, Ni2, N 丨 3 according to the position on the document to be scanned, until Nk (2n), The reserved memory space in the memory. Furthermore, in FIG. 3B Shows another storage space in addition to the memory storage space shown in Figure 3A, which is R (k + l) l 'R (k + lK2n- l) 'Until R (2k) (2n), and reserved storage space N (k + 1) i to N (2kK2n) and M (k + 1) 丨 to M (2k) (2n) ° In this paragraph In the storage space of the memory, as in FIG. 3A, because the distance between the sensing lines of different primary colors has a line difference of k lines, when the color data of the 2k lines of the red primary color are stored in the memory, The color data of the green primary color and the blue primary color are not yet stored in the memory storage space storing the kth line to the 2kth line. Next, please refer to FIG. 3C, which shows the image in the memory after the sensing column of the third primary color (blue in this embodiment) starts to scan to the file to be scanned. Schematic representation of data arrangement. In Figure 3C, when the sensing line of the blue primary colors is scanned to be scanned, the paper size is applicable to the Chinese National Standard (CNS) A4 specification (210 X 297 mm t) (Please read the precautions on the back before I page this. ) Line _ Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 535400 7880twf.doc / 009 A7 B7 Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 5. When the first line on the description of the invention (q) file is detected by The image data of the blue primary colors obtained in the row will be stored in the corresponding reserved storage space in the memory according to its online position. In other words, the image data of the blue primary colors obtained when scanning the first line of the document to be scanned will be stored at positions Bπ, B12 and B1 (2n) as shown in Figure 3C. After the image data of the blue primary color on the first line is stored in the memory, the image data required to form the first line is ready. 'At this time, the image data required to form the first line will be transmitted. Go to the host computer for the next image processing operation. Since a linear light sensor is used in this embodiment, that is, there is only one sensing row for each primary color, the image data of the odd and even pixels can be said to be obtained almost simultaneously. If a staggered light sensor is used, the staggered light sensor that scans with ~~ odd pixels and even pixels separately, if it is assumed that the scanning order is odd pixels first and then even pixels, Then in Figure 3C, the image data of the blue primary colors in odd pixels such as Bπ, B13 to 1 2 η -1) will be obtained first. At this time, the image data of the odd pixels is ready. Will be transmitted to the host first, and the part of the even pixel will be transmitted to the host after the image data in the even pixel is ready. In summary, the advantages of the present invention are briefly described below. The invention divides the image data of each line into several parts in the memory, so that after the image data of each part is available, the image data of this part can be transmitted to the host in order without waiting for all the image data All can be delivered to the host, so a part of the memory space in the scanner can be saved. And 9 papers are again applicable to China National Standard (CNS) A4 specifications (210 x 297 male f) (Please read the precautions on the back before 1 ^ this page) too 535400 7880twf.d〇c / 0〇9 A7 V. Description of the invention (%) If the sequence of the image data in the memory proposed by the present invention is further matched ', then only the different parts need to be combined in the host' without the need to spend time to arrange the order of the various primary colors in each pixel, This can save the host time spent on image processing. Although the present invention has been disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art can make various modifications and retouches without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be determined by the scope of the attached patent application. (Please read the precautions on the back first, then this page) ·;-Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs This paper size applies the Chinese National Standard (CNS) A4 (210 X 297 mm)