TW535400B - Image data arrangement method in the memory of optical scanning device - Google Patents

Image data arrangement method in the memory of optical scanning device Download PDF

Info

Publication number
TW535400B
TW535400B TW90129159A TW90129159A TW535400B TW 535400 B TW535400 B TW 535400B TW 90129159 A TW90129159 A TW 90129159A TW 90129159 A TW90129159 A TW 90129159A TW 535400 B TW535400 B TW 535400B
Authority
TW
Taiwan
Prior art keywords
pixels
memory
image data
primary colors
line
Prior art date
Application number
TW90129159A
Other languages
Chinese (zh)
Inventor
Tang-Shin Jang
Guo-Ren Wang
Original Assignee
Veutron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Veutron Corp filed Critical Veutron Corp
Priority to TW90129159A priority Critical patent/TW535400B/en
Application granted granted Critical
Publication of TW535400B publication Critical patent/TW535400B/en
Priority to US11/469,363 priority patent/US7751103B2/en
Priority to US12/770,615 priority patent/US8427723B2/en

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

There is provided an image data arrangement method in the memory of optical scanning device, which is suitable for image data in which one line is formed by plural pixels and each pixel is formed by plural primary colors. This image data arrangement method in the memory of optical scanning device comprises first determining one primary color obtained by scanning one line; then, dividing the pixels of the line into several groups; when one of the groups is stored in the memory, reserving one storage space before and after the address of the primary color obtained in storing, so that plural primary colors that form the same pixel can be adjacently arranged in the memory in the same order; and finally when the primary colors of the pixels in each group are ready, the data included in the group is sent out.

Description

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)

Claims (1)

535400 7880twf.doc/009 A8 B8 C8 D8 六 經濟部智慧財產局員工消費合作社印製 申請專利範圍 1. 一種光學掃描裝置之記憶體中影像資料排列方法, 適用於以複數個像素組成一線,且該些像素中的每一個由 複數個原色所組成的影像資料,該光學掃描裝置之記憶體 中影像資料排列方法包括: 取得掃描該線時所得之該些原色其中之一; 將該線中所包括的該些像素中的奇像素分爲一第一 群組,該些像素中的偶像素分爲一第二群組; 於儲存該第一群組與該第二群組二者擇一至該記憶 體時,於儲存所取得之該原色的位址前後保持一儲存空 間,以使組成該些像素中同一個的該些原色可以以固定順 序相鄰排列於該記憶體中;以及 當該第一群組與該第二群組二者擇一所包含的該些 像素的該些原色齊備時,送出該群組所包含之該些像素的 該些原色; 其中,該些原色爲紅、藍及綠三色。 2. —種光學掃描裝置之記憶體中影像資料排列方法, 包括: 將掃描一線所得之複數個像素分成複數個群組以儲 存於該記憶體中;以及 當該些群組中的一個所包含的該些像素的資料齊 備,且該些像素所包含的複數個原色以固定序列排列好 時,就送出該群組所包含之該些像素。 3. 如申請專利範圍第2項所述之光學掃描裝置之記憶 體中影像資料排列方法,其中分成該些群組的步驟更包 11 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) 535400 7880twf.doc/009 A8 B8 C8 D8 六、申請專利範圍 括: 將該線上之奇像素分爲該些群組中的一個;以及 將該線上之偶像素分爲該些群組中的另一個。 4.如申請專利範圍第2項所述之光學掃描裝置之記憶 體中影像資料排列方法,其中該些原色包括紅、綠及藍三 色。 5-如申請專利範圍第4項所述之光學掃描裝置之記憶 體中影像資料排列方法,其中將該些群組儲存於該記憶體 中的步驟,更包括: 取得該些像素之該些原色中的一種;以及 在儲存該些像素之每一個時,於儲存所取得之該原色 的位址前後保持一儲存空間,以使組成該些像素中同一個 的該些原色可以以固定順序相鄰排列於該記憶體中。 6. —種光學掃描裝置之記憶體中影像資料排列方法, 適用於以複數個像素組成一線,且該些像素中的每一個由 複數個原色所組成的影像資料,該光學掃描裝置之記憶體 中影像資料排列方法包括: 取得掃描該線時所得之該些原色其中之一; 將該線中所包括的該些像素分成複數個群組; 於儲存該些群組中的一個至該記憶體時,於儲存所取 得之該原色的位址前後保持一儲存空間,以使組成該些像 素中同一個的該些原色可以以固定順序相鄰排列於該記 憶體中;以及 當該些群組中的一個所包含的該些像素的該些原色 12 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐) (請先閱讀背面之注意事項再填寫本頁) 訂---------線. 經濟部智慧財產局員工消費合作社印製 535400 7880twf.doc/009 六、申請專利範圍 齊備時,送出該群組所包含之該些像素的該些原色。 7·如申請專利範圍第6項所述之光學掃描裝置之記憶 體中影像資料排列方法,其中分成該些群組的步驟更包 括: 將該線上之奇像素分爲該些群組中的一個;以及 將該線上之偶像素分爲該些群組中的另一個。 8·如申請專利範圍第6項所述之光學掃描裝置之記憶 體中影像資料排列方法,其中該些原色包括紅、綠及藍三 色。 -------------鲁 (請先閱讀背面之注意事項再填寫本頁) 訂---------線· 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公釐)535400 7880twf.doc / 009 A8 B8 C8 D8 Printed by the Consumer Property Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs Scope of Patent Application 1. A method for arranging image data in the memory of an optical scanning device, suitable for composing a line with a plurality of pixels, and the Each of the pixels is image data composed of a plurality of primary colors, and the image data arrangement method in the memory of the optical scanning device includes: obtaining one of the primary colors obtained when the line is scanned; including the line The odd pixels of the pixels are divided into a first group, and the even pixels of the pixels are divided into a second group. One of the first group and the second group is stored in the memory. Maintain a storage space before and after storing the address of the primary color, so that the primary colors that make up the same one of the pixels can be arranged next to each other in the memory in a fixed order; and when the first When the primary colors of the pixels included in either the group or the second group are complete, the primary colors of the pixels included in the group are sent; Color is red, blue and green colors. 2. —A method for arranging image data in a memory of an optical scanning device, comprising: dividing a plurality of pixels obtained by scanning a line into a plurality of groups to be stored in the memory; and when one of the groups includes When the data of the pixels are complete and the plurality of primary colors included in the pixels are arranged in a fixed sequence, the pixels included in the group are sent. 3. According to the method of arranging image data in the memory of the optical scanning device as described in item 2 of the scope of the patent application, the steps of dividing into these groups are more inclusive. 11 This paper size is applicable to the Chinese National Standard (CNS) A4 specification (210 X 297 mm) 535400 7880twf.doc / 009 A8 B8 C8 D8 6. The scope of patent application includes: dividing the odd pixels on the line into one of the groups; and dividing the even pixels on the line into the groups. The other one. 4. The method for arranging image data in the memory of the optical scanning device according to item 2 of the scope of patent application, wherein the primary colors include three colors of red, green and blue. 5- The method for arranging image data in the memory of the optical scanning device according to item 4 of the scope of the patent application, wherein the step of storing the groups in the memory further includes: obtaining the primary colors of the pixels One of them; and when storing each of the pixels, maintaining a storage space before and after the address of the obtained primary color is stored, so that the primary colors that make up the same one of the pixels can be adjacent in a fixed order Arranged in this memory. 6. —A method for arranging image data in the memory of an optical scanning device, which is applicable to image data composed of a plurality of pixels, and each of the pixels is composed of a plurality of primary colors. The memory of the optical scanning device The image data arrangement method includes: obtaining one of the primary colors obtained when scanning the line; dividing the pixels included in the line into a plurality of groups; and storing one of the groups to the memory A storage space is maintained before and after the obtained address of the primary color is stored, so that the primary colors that make up the same one of the pixels can be arranged next to each other in the memory in a fixed order; and when the groups The primary colors of the pixels included in one of the 12 paper sizes are applicable to the Chinese National Standard (CNS) A4 specification (210 X 297 mm) (Please read the precautions on the back before filling this page) Order --- ------ Line. Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 535400 7880twf.doc / 009 6. When the scope of patent application is complete, send out the pixels of the pixels included in the group. Some primary colors. 7. The method for arranging image data in the memory of an optical scanning device according to item 6 of the scope of patent application, wherein the step of dividing into the groups further comprises: dividing the odd pixels on the line into one of the groups ; And dividing the even pixels on the line into another of the groups. 8. The method for arranging image data in the memory of the optical scanning device according to item 6 of the scope of patent application, wherein the primary colors include red, green and blue colors. ------------- Lu (Please read the precautions on the back before filling out this page) Order --------- Line · Printed copy of the staff consumer cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs Paper size applies to China National Standard (CNS) A4 (210 X 297 mm)
TW90129159A 2001-11-26 2001-11-26 Image data arrangement method in the memory of optical scanning device TW535400B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
TW90129159A TW535400B (en) 2001-11-26 2001-11-26 Image data arrangement method in the memory of optical scanning device
US11/469,363 US7751103B2 (en) 2001-11-26 2006-08-31 Method of sequencing image data inside memory of optical scanning device
US12/770,615 US8427723B2 (en) 2001-11-26 2010-04-29 Method of sequencing image data inside memory of optical scanning device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW90129159A TW535400B (en) 2001-11-26 2001-11-26 Image data arrangement method in the memory of optical scanning device

Publications (1)

Publication Number Publication Date
TW535400B true TW535400B (en) 2003-06-01

Family

ID=29212742

Family Applications (1)

Application Number Title Priority Date Filing Date
TW90129159A TW535400B (en) 2001-11-26 2001-11-26 Image data arrangement method in the memory of optical scanning device

Country Status (1)

Country Link
TW (1) TW535400B (en)

Similar Documents

Publication Publication Date Title
TW595201B (en) Electronic camera for producing quickview images
JPS6361575A (en) Method and apparatus for copying original picture
JPS58211758A (en) Image reproduction method and apparatus
JPH05145742A (en) Image synthesizing device
TW535400B (en) Image data arrangement method in the memory of optical scanning device
JP2000354168A (en) Image processing unit and copy system
US8427723B2 (en) Method of sequencing image data inside memory of optical scanning device
JPH04290066A (en) Image forming device
US6437878B1 (en) Interactive hardcopy re-sampling without re-scanning
TW520595B (en) Scanner device and method to save the compensation RAM
JPH09200550A (en) Image processing system
JP3301849B2 (en) Image communication apparatus and image processing method thereof
TW416216B (en) Calibration method for image reading system
JPS58140881A (en) Picture processing system
TW530479B (en) Method for judging a compression ratio of a scanner automatically
TW530474B (en) Interlaced sensor for increasing the modulation transfer function and method applying the same
TW476214B (en) Scanner and scanning method using interlaced sensor
TW522719B (en) Method for increasing modulation transfer function
TW545034B (en) One-step and two-exposure scanning method
TW535403B (en) Design method and apparatus of a compensation memory
US20040101208A1 (en) Apparatus and methods for averaging image signals in a media processor
JPH08332745A (en) Copy printer and copy printing and reading apparatus
TW525366B (en) Scanner using multi-column sensing device and image scanning method
JPH04181871A (en) Color picture processing unit
TW525368B (en) Method and system for scanning gray-scale image

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent