TW530479B - Method for judging a compression ratio of a scanner automatically - Google Patents
Method for judging a compression ratio of a scanner automatically Download PDFInfo
- Publication number
- TW530479B TW530479B TW90122970A TW90122970A TW530479B TW 530479 B TW530479 B TW 530479B TW 90122970 A TW90122970 A TW 90122970A TW 90122970 A TW90122970 A TW 90122970A TW 530479 B TW530479 B TW 530479B
- Authority
- TW
- Taiwan
- Prior art keywords
- pixels
- difference
- pixel
- majority
- standard value
- Prior art date
Links
Landscapes
- Compression Of Band Width Or Redundancy In Fax (AREA)
Abstract
Description
530479 五、發明說明(1) _____ 本發明係為一種掃瞄壓縮 於一種掃描器掃瞄壓縮比自動、、之判別方法,特別是有關 及資料傳輸的次數,並改盖於匈別之方法,以減少資料量 "v吗之速度。 5 - 2發明背景: 對現今之資訊使用者,尤 所接觸電腦資訊的模式已由_ ^疋個人電腦使用者而言, 所謂之多媒體(Multi—Medi\f單調的文字模式而進入至1530479 V. Description of the invention (1) _____ The present invention is a method for judging scanning compression ratio in an automatic scanning compression ratio of a scanner, especially related to the number of times of data transmission. To reduce the amount of data " v? 5-2 Background of the Invention: For today's information users, especially the computer information mode they have contacted, the so-called multimedia (Multi-Medi \ f monotonous text mode) has entered 1 for personal computer users.
料包含文字、影像、聲音等内j時代,而多媒體意味著I 體的形式呈現在觀眾的二前,^丄而為了使資料能以多销 像或是聲音等之多媒濟牡蓄 $已發展出多種可擷取景 内容,因此處理多媒體J料::多媒體資料包含較“ 理單調的文字模式為高:以:::的記憶體之容量編 式呈現出來。 乂使夕媒體資料以更為順暢之指 對影像輸入裝置而言,掃描器(scanner)與數位相機 ""l)係為目前較為常見之裝置。數位照相機 ^ ^ /位化的貧訊來儲存所拍攝得的影像,它利用一個 "°己錄〜像的磁碟片或是個人電腦記憶體卡國際協會(The materials include text, video, sound, etc., and multimedia means that the form of body I is presented in front of the audience. ^ 丄 In order to make the materials available for multi-selling images or sounds, the media has been saved. Developed a variety of captureable content, so the processing of multimedia J materials :: multimedia data contains higher than the "monotonous text mode": the memory capacity of the ::: is compiled to show. Smooth means that for image input devices, a scanner and a digital camera " " l) are the more common devices at present. Digital cameras ^^ / Bitize the poor information to store the captured image, It uses a " ° self-recorded ~ image disk or personal computer memory card international association (
Personal Computer Memory Card International Association; PCMCIA)的記憶卡,來儲存靜態影像。為了 即省儲存媒體所使用的記憶空間,通常數位相機所拍攝的Personal Computer Memory Card International Association (PCMCIA) memory card to store still images. In order to save the memory space used by storage media,
第5頁 530479 五、發明說明(2) 影像都是以壓縮檔案來儲存,常見的有靜態影像壓縮標準 (Joint Photographic Experts Group; JPEG)槽案格式。 而就掃描器使用的種類而言,通常掃描器可分為掌上 型掃描器(hand 1 y scanner)及桌上型掃描器 (desktop scanner或 flat bed scanner)和饋紙式掃描器(sheet-f e e d s c a η n e r)三種。掃描的清晰度是以每英吋的點數( dot per inch; dpi)為單位,dpi越高的機器其品質越高 ’但是掃描時間也較長。在掃描彩色影像時,許多掃描器 必須要將RGB三原色分開掃描,因此掃描動作要重複三次 ,也使得掃描所花的時間加長。 桌上型掃描器係為一種較常用之掃描器,其係用以將 一些待掃瞄文件,如穿透式文件(如投影片)或反射式文 件(如知、片或紙張)等經由掃瞄程序而轉換成數位資料。 一般而言,桌上型掃描器所用之光電感應模組主要包括一 光電感應元件,此光電感應元件可為:電荷輕合元件( charge coupled device; CCD)或是接觸影像感^元件( contact image sensor; CIS)。桌上型掃描器係用以將放 置於玻璃平台上之待掃瞄文稿經掃瞄過程而轉換成數位資 料而輸入至個人電腦内,以供進—步利用。Page 5 530479 V. Description of the invention (2) The images are stored as compressed files. Commonly, there is a still image compression standard (Joint Photographic Experts Group; JPEG) slot format. As far as the types of scanners are concerned, usually scanners can be divided into handheld scanners (hand 1 y scanners), desktop scanners (desktop scanners or flat bed scanners) and sheet-fed scanners (sheet-f eedsca η ner) three. The definition of scanning is in dots per inch (dpi). The higher the dpi, the higher the quality of the machine. But the scanning time is also longer. When scanning color images, many scanners must scan the three primary RGB colors separately, so the scanning action is repeated three times, which also makes the scanning time longer. Desktop scanner is a more commonly used scanner, which is used to scan some documents to be scanned, such as transmissive documents (such as slides) or reflective documents (such as paper, paper or paper). Aiming at the program and converted into digital data. Generally speaking, the photoelectric sensor module used in desktop scanners mainly includes a photoelectric sensor element, which can be: a charge coupled device (CCD) or a contact image sensor element (contact image sensor; CIS). The desktop scanner is used to convert the document to be scanned placed on the glass platform into digital data through the scanning process and input it into the personal computer for further use.
第6頁 530479 五、發明說明(3) 接收。之後,再經控制電路而連接至主機,比如個人電腦 ,而經由個人電腦進行影像處理。 如所知一般,將光之三原色-紅色(R)、藍色(β)及綠 色(G)依不同比率組合可得到各種有色光。反過來★兌,'夂 種有色光可視為R、G及B之組合。在底下,各種以色光内 所包含之R、G及B之成分簡稱為紅(R)資料、綠(G)資料以 及籃(B)資料。 、 在掃瞄之過程中,光電感應模組先擷取待掃目苗景)像資 料某列中每一圖素之R資料、G資料及B資料,並產H目對胃 應的類比訊號。再將這些類比訊號送給類比〜叙7 ^ ^ 。 u 默位#號轉 換器(analog-digital converter),以嘉斗杏, οσ I玍數位資料供下 一早元處理。接著光電感應模組擷取待拯糾… Τ ^ Γ J Η 田景}傍^ ^| JL^ 之料、G資料及B資料’作類似的動作。 依其掃瞄、處理資料方式之不同而可約八、此過転中’ 單頻道掃瞄(one-channel scanning) 為兩種類型· three-channel scanning)。 三頻道掃目苗(Page 6 530479 V. Description of the invention (3) Receive. After that, it is connected to a host computer, such as a personal computer, via a control circuit, and image processing is performed through the personal computer. As is known, combining the three primary colors of light-red (R), blue (β), and green (G) at different ratios to obtain various colored lights. Conversely, it can be regarded as a combination of R, G, and B. Below, the components of R, G, and B contained in various colors are referred to as red (R) data, green (G) data, and basket (B) data. In the scanning process, the photoelectric sensor module first captures the R data, G data, and B data of each pixel in a row of image data, and generates analog signals of H mesh to the stomach. . Then send these analog signals to the analog ~ ~ 7 ^ ^. u 默 位 # converter (analog-digital converter), with Jiadouxing, οσ I 玍 digital data for the next early processing. Then the photoelectric sensor module captures the data to be corrected ... Τ ^ Γ J Η Tian Jing} ^ ^ ^ | JL ^ material, G data and B data ’for similar actions. It can be about eight depending on the scanning and processing methods. One-channel scanning is two types of three-channel scanning. Three Channel Scanning Miao (
參照第一 A圖與第一 b圖所示,此 =影像資料之示意圖。第一 A圖繪示 '圖為傳統技術^ :與B之掃目,、使位置以及掃目苗區域。專?術如何選擇 ^ =代表待掃瞄區域上之一圖弟一 A圖中,考 素……“…圖素在待以:=匕Refer to Figures A and B, this = schematic diagram of image data. The first diagram A shows the traditional technique ^: scan with B, position and scan area. Special? How to choose the technique ^ = represents one of the figure on the area to be scanned. Figure A, test ... "... the picture element is waiting: = dagger
530479 五、發明說明(4) —~___ 2明說明書中,圖素之影像資料-圖素值以符 表示之,其中X代表列座標,而y則代' X, y) 2W,”即代表ηη-1(η為自然數)以第例如:P( 之圖素值。 艾弟—個圖素 在傳統技術中,在掃_第2n-l列時,R、Γ盘 ,使位置係皆在待掃瞄區域之第一個圖素,且^之掃瞄 為-完整的-列。也就是其解析度為完整。4瞒區域 而第一 Β圖係繪示對應於各個圖 G與Β資料之情形。在第—β圖中,r(、x f相對應的R、 β (x, y)係分別代表圖素值p ( y G (X, y )與 倘若每個圖素之R、(;與β資 八’ y所包括之顏色資料。 —由第一 A圖與第_β圖可 資料至個人電腦時,係把每去專統掃描器在傳送影像 送出去。而所要傳出之資 :素之R、G與Β資料全部傳 :器—u,當緩衝儲;掃描器上的緩衝儲 緩衝儲存器收到-掃(終止=達其健存之上限時或是 丨内所儲存之資料傳送至主機;:緩衝儲存器將會將复 所佔的記憶體空間是相當二丁處理。一般來說, t f # # ^ ^ ^ ^ 限而必須將其内部所錯存530479 V. Description of the invention (4) — ~ ___ 2 In the description, the image data of the pixel-the pixel value is represented by a symbol, where X represents the column coordinates, and y represents' X, y) 2W, "which means For example, ηη-1 (η is a natural number) is the pixel value of P (. Adi—a pixel. In the traditional technique, when scanning the 2nd column, the R and Γ disks make the positions all The first pixel in the area to be scanned, and the scan of ^ is -complete-column, that is, its resolution is complete. 4 The area is hidden and the first B picture is shown corresponding to each picture G and B The situation of data. In the graph of -β, R (, xf, R, β (x, y)) respectively represent the pixel value p (y G (X, y)) and if each pixel R, (; And the color information included in β Zi Ya'y. — When the data from the first A picture and the _β picture can be transmitted to the personal computer, the special scanner is sent every time the image is transmitted. Funding: All R, G, and B data of the element are transmitted: device-u, when the buffer storage; buffer storage on the scanner receives-scan (termination = when it reaches the upper limit of its health storage or internal storage) The stored data is sent to Host ;: The buffer memory will deal with the memory space occupied by the memory. Generally speaking, t f # # ^ ^ ^ ^ is limited and the internal memory must be misstored.
530479 五、發明說明(5) 之資料傳輸出去。當資料量較大時,緩衝儲存器滿載的情 況也較多,傳輸資料的次數也隨之增加,因此掃瞄之速度 將會減緩,並會縮短緩衝儲存器之壽命。 傳統之掃瞄裝置之速度的瓶頸,經常發生在掃瞄裝置 將資料往主機傳送時,因資料量過大而導致資料必須分批 傳輸至主機而降低掃瞄的速度。因此為了加快掃瞄速度, 減少往主機傳之資料量將是最有效之方式。 5 - 3發明目的及概述: 鑒於上述之發明背景中,傳統的資料傳輸方法將會因 為所需傳輸的資料量過大而使得傳輸的次數較多,導致掃 瞄速度的降低。本發明主要提供一種方法,利用掃描器掃 瞄壓縮比自動判別方法將影像資料先行壓縮,以減少所需 傳輸的資料量。 本發明的第二個目的為利用掃描器掃瞄壓縮比自動判 別方法將影像資料先行壓縮,以減少資料由緩衝記憶體傳 輸至主機的次數。 本發明的第三個目的為利用掃描器掃瞄壓縮比自動判 別方法將影像資料先行壓縮,以加速掃瞄的速度。530479 5. The data of invention description (5) is transmitted. When the amount of data is large, the buffer storage is full, and the number of data transfers will increase. Therefore, the scanning speed will be slowed down and the life of the buffer storage will be shortened. The bottleneck of the speed of the traditional scanning device often occurs when the scanning device transmits data to the host. Due to the large amount of data, the data must be transmitted to the host in batches to reduce the scanning speed. Therefore, in order to speed up the scanning speed, reducing the amount of data transmitted to the host is the most effective way. 5-3 Objects and Summary of the Invention: In view of the above background of the invention, the traditional data transmission method will cause a large number of transmissions due to the large amount of data to be transmitted, resulting in a reduction in scanning speed. The present invention mainly provides a method for automatically compressing image data by using a scanner scanning compression ratio automatic discrimination method to reduce the amount of data to be transmitted. The second object of the present invention is to compress the image data in advance by using a scanner scanning compression ratio automatic discrimination method to reduce the number of times data is transmitted from the buffer memory to the host. A third object of the present invention is to compress the image data in advance by using the scanner's automatic scan compression discrimination method to accelerate the scanning speed.
530479 五、發明說明(6) 本發明的第四個目的為利用掃描器掃瞄壓縮比自動判 別方法將影像資料先行壓縮,以減少緩衝記憶體滿載的次 數。 本發明的再一個目的為利用掃描器掃瞄壓縮比自動判 別方法將影像資料先行壓縮,以延長緩衝記憶的使用壽命 掃描 減少 ,將 圖素 的差 標準 ,或 標準 之標 指定 區塊 根據 器掃 資料 此影 值較 值決 值。 是該 值完 以上所 瞄壓縮 量。本 像資料 為接近 定每一 此標準 區域所 整地存 準值與該區 一區域存放 内之資料是 述之目的 比自動判 發明首先 劃分為數 。接下來 區域之掃 值可為該 有像素的 入緩衝儲 域之各圖 每相對應 否有經過 ,本 別方 分析 個區 藉由 瞄壓 區域 最小 存器 素的 區塊 壓縮 發明提供了一種方法 法將影像資 預掃完成所 域,每一區 每一區域相 縮比’並決 所有像素之 圖素值。最 (buffer)中 差值存入緩 有無壓縮之 料先 獲得 域内 鄰像 定每 圖素 後將 ,並 衝儲 資訊 行壓 之影 相鄰 素之 —區 值的 此每 將此 存器 ,藉 ,利用 縮,以 像資料 像素之 圖素值 域之一 平均值 區域之 每區域 中,並 以判別 5 - 4發明詳細說明:530479 V. Description of the invention (6) The fourth object of the present invention is to compress the image data in advance by using the scanner's automatic determination method of compression ratio to reduce the number of times the buffer memory is fully loaded. Another object of the present invention is to use an automatic scanning compression ratio determination method of the scanner to compress the image data in advance, so as to extend the service life of the buffer memory, reduce the scanning, and reduce the difference between the pixels or the standard designated block according to the scanner. The value of this shadow value is determined. This value is the amount of compression targeted above. This image data is close to each standard area. The standard value of the site preparation and the data stored in one area of the area are described for the purpose than the automatic judgment of the invention is divided into the number first. The value of the next area scan can be used for each picture in the buffered storage area with pixels. This section provides a method for analyzing the block compression invention of the smallest register element in the area. The method pre-scans the image data to complete the area, and each area and each area shrinks and determines the pixel values of all pixels. The difference in the buffer (buffer) is stored in the material with or without compression. Firstly, the neighboring image in the domain is obtained, and then each pixel is set, and the information is stored. The value of the adjacent pixel is stored in the register. , Using the shrinkage, to each area of the average value region of the pixel value range like data pixels, and to discriminate 5-4 invention in detail:
第10頁 530479 五、發明說明(7) 本發明的一些實施例會詳細描述如下。然而,除了詳 細描述外,本發明還可以廣泛地在其他的實施例施行,且 本發明的範圍不受限定,其以之後的專利範圍為準。 ’一般目前掃瞄時,所採用將影像資料壓縮之方法,均 為採用一固定壓縮比的方式將影像資料壓縮,以減少所需 傳輸的資料量。然而當壓縮比固定後,影像各部位難以與 壓縮比取得一最佳的平衡點。當採用之壓縮比較高時,則 影像部分之處將較容易失真。當要維持影像的真實度並不 欲得到失真的影像時,所採用之壓縮比較低,但是所儲存 的資料量就會變得較為龐大,因而喪失壓縮資料的目的。 因此必須隨著影像各部位像素之不同,採用不同的壓縮比 進行掃瞄的工作,以期使影像資料在經過有效率的壓縮過 程後,而能保持其原有之真實度。 本發明提供掃描器掃瞄壓縮比自動判別方法將影像資 料先行壓縮,以減少資料量。本發明首先分析預掃完成所 獲得之影像資料,將此影像資料劃分為數個區域,每一區 域内相鄰像素之圖素值較為接近。為使每一區域内相鄰像 素之圖素值較為接近,因此本發明可預先設定一標準值。 當相鄰兩圖素之差值大於此標準值時,則此相鄰兩圖素必 須被劃分在兩個區域内。接下來藉由每一區域相鄰像素之 圖素值的差值決定每一區域之掃瞄壓縮比,並決定每一區Page 10 530479 V. Description of the invention (7) Some embodiments of the present invention will be described in detail as follows. However, in addition to the detailed description, the present invention can also be widely implemented in other embodiments, and the scope of the present invention is not limited, which is subject to the scope of subsequent patents. ’Generally, the current methods of compressing image data during scanning are to compress the image data with a fixed compression ratio to reduce the amount of data to be transmitted. However, when the compression ratio is fixed, it is difficult for each part of the image to achieve an optimal balance with the compression ratio. When the compression is relatively high, parts of the image will be more easily distorted. When you want to maintain the authenticity of the image and do not want to obtain a distorted image, the compression used is relatively low, but the amount of stored data will become larger, so the purpose of compressing the data is lost. Therefore, it is necessary to use different compression ratios for scanning according to the different pixels of each part of the image, so that the image data can maintain its original authenticity after an efficient compression process. The invention provides a method for automatically determining the scan compression ratio of a scanner to compress image data in advance to reduce the amount of data. The present invention first analyzes the image data obtained after the prescan is completed, and divides the image data into several regions, and the pixel values of adjacent pixels in each region are relatively close. In order to make the pixel values of adjacent pixels in each area relatively close, the present invention can set a standard value in advance. When the difference between two adjacent pixels is greater than this standard value, the two adjacent pixels must be divided into two regions. Next, the scan compression ratio of each area is determined by the difference between the pixel values of adjacent pixels in each area, and each area is determined.
第11頁 530479 I五、發明說明(8) 域之一標準值。此標準值 平均值,或是該區域所有# ^ ^,域所有像素之圖令# ^域之標準值完整地存人緩衝儲存器將此每 :區域之標準值與該區域之各圖素的差值存入%楚將此 中,並指定一區域存放每相對應區塊有無壓縮=儲存器 以判別區塊内之資料是否有經過壓縮。 貝訊,藉 本發明 ’並將此影 )°為確保 此本發明可 此標準值時 内。當相鄰 素必須被劃 同,依區塊 像資料相鄰 資料進行分 所介紹之方 制本發明之 素值的差值 形式存在, 塊内包含多 态所能掃目苗 條線所構成 首先分析掃 像資料分割 每一區塊内 預先設定一 ,則此相鄰 兩圖素之差 分在同一區 内各相鄰之 各像素之圖 割之步驟, 法,為將影 範圍。分割 均相當的小 或是在一條 數條線。所 之一條線的 的,因此在 描器經過預 為多數個區 相鄰兩像素 標準值。當 兩圖素必須 值小於此標 塊内。此多 像素之圖素 素值的差值 將影像資料 像資料分割 而成的區塊 。所分割而 線内分割成 謂一條線的 範圍。因為 掃瞄的過程 掃後所獲得 塊(參照第 之圖素值較 相鄰兩圖素 被劃分在兩 準值時,則 數個區塊的 值的差值而 均很小時, 視為一區塊 為數個區塊 ’其區塊内 成的區塊可 多數個區域 定義是指電 一個平面通 中,掃描器 之影像資料 一 Α圖所示 為接近,因 之差值大於 個不同區塊 此相鄰兩圖 大小並不相 決定。若影 即不對影像 。本實施例 ,但並不限 之像素之圖 為一條線的 ’或是在區 腦控制顯示 常是由很多 的電腦控制Page 11 530479 I V. Description of the invention (8) One of the standard values of the domain. The average value of this standard value, or all # ^ ^ in the area, all pixels in the domain. Order ^ The standard value of the domain is completely stored in the buffer memory. The standard value of each area and the pixels of the area are The difference is stored in %%, and an area is designated to store the compression of each corresponding block = storage to determine whether the data in the block is compressed. Beixun borrows the present invention and makes this shadow) to ensure that the present invention is within this standard value. When the adjacent primes must be identified, the difference between the prime values of the present invention is based on the block image data and the adjacent data introduced in the present invention. The block contains the polymorphic slender lines that can be scanned first. The scan data is divided into one block in each block, and the difference between the two adjacent pixels in the same area is divided into pixels. The method is the shadow range. The splits are all fairly small or on a few lines. All of the lines have a standard value of two pixels adjacent to each other in the scanner. When the two pixels must be less than this block. This multi-pixel pixel is a block formed by dividing the image data from the image data. Divided into a range called a line. Because the block obtained after scanning (refer to the first pixel value is divided into two quasi-values compared to the neighboring two pixels, the difference between the values of several blocks is small, which is regarded as a region. A block is several blocks. The blocks formed in the block can be defined in a large number of areas. It means that the image data of the scanner is similar to the one in the plane, and the difference is greater than that of different blocks. The size of two adjacent pictures is not determined. If the picture is not correct, the picture in this embodiment, but not limited to the pixel is a line, or the display is controlled by a lot of computers in the regional brain.
接下來取 ^準值’ q代表藍色資料Next, take the ^ quasi value ’q for blue data
530479 ———_____ 五、發明說明(9^ ' ' 一~ --一《 = 欠::之文件分成許多條線的資料來儲存, 通常為-列資: 線組合成此文件…條線之資料 的排歹二f圖所示’此為其中一個區塊内各圖素資料 資料-圖辛值以本發明之範圍。其中圖 y則代夺^ L ^ ,y)表示之,且x代表列座標,而 然數)、列中之第。'如:…11-1,i)即代表第2n-1“為自 與B(x ^ 一圖素之圖素值。R(X, y)、G(x , y) 此區塊二i i 2代表圖素值p(x,y)所包括之顏色資料 個圖素^ 口像素之圖素值的差異較小’且此區塊包含k 值,並將此俨樂t ί 1直作為此區塊各像素之圖素值的標準 為各像= = 諸存入緩衝儲存器1。此標準值可 小值。接下各像素之圖素值的最 將此些差值儲存於緩衝儲存内,此標準值之差值,並 參照第三圖所示,此為利 器上儲存其中一區塊之示意圖。t务明之方法在缓衝儲存 q並將此標準值q完整儲存入^田求出各區塊内之標準值 素之圖素值與此標準值q之差信1儲存器後,隨即求取各像 料之標準值,Q代表綠色資料。其中q代表紅色圖素資530479 ———_____ V. Description of the invention (9 ^ '' a ~-one "= owed :: The file is divided into many lines of data to store, usually-listed funds: lines are combined into this file ... The data is shown in the second row of f. 'This is the data of each pixel in one of the blocks-the value of the graphin is in the scope of the present invention. The graph y is represented by ^ L ^, y), and x represents Column coordinates, but number), the first in the column. 'Eg:… 11-1, i) means 2n-1 "is the pixel value of self and B (x ^ one pixel. R (X, y), G (x, y) this block two ii 2 represents the color data included in the pixel value p (x, y). Each pixel has a small difference in pixel value. And this block contains the value of k. Let this be t 1 The standard of the pixel value of each pixel of the block is each image = = all stored in the buffer memory 1. This standard value can be small. Then the difference of the pixel values of each pixel is stored in the buffer memory. The difference between this standard value, and referring to the third figure, is a schematic diagram of storing one of the blocks on the sharp tool. The method of t Mingming stores q in the buffer and stores this standard value q in the field. After the difference between the pixel value of the standard value element in each block and the standard value q is stored in the 1 memory, the standard value of each image is obtained, and Q represents green data, where q represents red pixel data.
530479 ............................... 丨唯 五、發明說明(ίο) 之標準值。當計算出第—像素之 丨差值後,隨即將此第一差值儲存 二,與標準值q的第一 I出第一像素之圖素值與標準值 緩-衝儲存器内。當計算 第二差值儲存在缓衝儲存器内。4 二差值後,隨即將此 當计异出第k像素之圖素值與 區塊有k個圖素,貝 I將此第k差值儲存在緩衝儲存哭內 2的第k差值後,隨即 I準值q相同時,則將此差值記&為雯當像素之圖素值與標 當將各區塊内之標準值&教 一 各區塊之各像素的圖素值血=二二=緩衝記憶體内,並將 體内後’隨即將緩衝記憶體;;:差值存入緩衝記憶 並在主機内進行影像結合名存的資料往主機傳輸, 地還原。本發明所採用之二* ,使得影像在主機上完整 ,因此各區塊之壓縮比夂=限制各區塊的範圍大小 差異而改變,因此可在::”相鄰像素之圖素值的 一最佳平衡,影像資料可、細二與壓縮比的比例上取得 資料適度地壓縮,以減^ 二適當之壓縮方法將影像 存器之壽命。 枓傳輸之時間,並延長緩衝儲 苐四圖為本發明之530479 ............... 丨 V. Standard value of invention description (ίο). After the difference between the first pixel and the first pixel is calculated, the first difference is stored two, and the pixel value and the standard value of the first pixel from the first I of the standard value q are stored in the buffer memory. When calculating the second difference is stored in the buffer memory. 4 After the two difference values, the pixel value of the k-th pixel and the block have k pixels. Then, I store this k-th difference in the buffer memory. , Then when I quasi value q is the same, then record the difference & as the pixel value of Wendang pixels and the standard value in each block & teach the pixel value of each pixel in each block Blood = 22 = buffer memory, and the body will immediately buffer the memory;;: The difference is stored in the buffer memory and the image-named data is transferred to the host and restored in the host. The second method adopted in the present invention makes the image complete on the host, so the compression ratio of each block 夂 = limits the difference in the size of the range of each block to change, so it can be used in: "" The best balance is that the image data can be appropriately compressed on the ratio of the thin two to the compression ratio to reduce the life of the image memory by a suitable compression method. 枓 Transmission time and extending the buffer storage. The invention
程圖。首先將掃描器預:描器掃❹縮比自動判別法 相鄰像素之圖素值之間I過後所彳于到之影像資料藉由 塊内相鄰像素之圖素伯、差值而刀告彳為多數個區塊, 來在各區塊内求取1 # :的差值均小於一設定值40。 軚準值,並將此標準值完整存入Process map. First, the scanner pre-scanner scan ratio is automatically discriminated between the pixel values of adjacent pixels. The image data obtained after the I is passed is reported by the pixel and difference of adjacent pixels in the block.彳 is a plurality of blocks, to find 1 # in each block: the difference is less than a set value of 40.軚 Standard value, and store this standard value in full
第14頁 530479 五、發明說明(11) 儲存器内41。接下來計算各區塊的第一圖素與各區塊之標 準值的第一差值,並將此第一差值存入緩衝儲存器内4 2。 接下來計算各區塊的第二圖素與各區塊之標準值的第二差 值,並將此第二差值存入緩衝儲存器内4 3。接下來計算各 區塊的第η圖素與各區塊之標準值的第k差值,並將此第k 差值存入緩衝儲存器内4 4。最後將緩衝儲存器内之資料傳 輸至主機上進行影像結合的步驟4 5。 綜合上述,本發明提供了一種方法,利用本發明提供 了一種方法,利用掃描器掃瞄壓縮比自動判別方法將影像 資料先行壓縮,以減少資料量。本發明首先分析預掃完成 所獲得之影像資料,將此影像資料劃分為數個區域,每一 區域内相鄰像素之圖素值較為接近。接下來藉由每一區域 相鄰像素之圖素值的差值決定每一區域之掃目苗壓縮比,並 決定每一區域之一標準值。此標準值可為該區域所有像素 之圖素值的平均值,或是該區域所有像素的最小圖素值。 最後將此每區域之標準值完整地存入緩衝儲存器(buff er) 中,並將此每區域之標準值與該區域之各圖素的差值存入 緩衝儲存器中,並指定一區域存放每相對應區塊有無壓縮 之資訊,藉以判別區塊内之資料是否有經過壓縮。 以上所述僅為本發明之較佳實施例而已,此實施例僅 係用來說明而非用以限定本發明之申請專利範圍。在不脫 離本發明之實質内容的範疇内仍可予以變化而加以實施,Page 14 530479 V. Description of the invention (11) Inside the storage 41. Next, calculate the first difference between the first pixel of each block and the standard value of each block, and store this first difference in the buffer memory 4 2. Next, calculate the second difference between the second pixel of each block and the standard value of each block, and store this second difference in the buffer memory 4 3. Next, calculate the k-th difference between the n-th pixel of each block and the standard value of each block, and store the k-th difference in the buffer memory 4 4. Finally, the data in the buffer memory is transmitted to the host for image combination step 4 5. To sum up, the present invention provides a method. The present invention provides a method for compressing image data in advance by using a scanner scanning compression ratio automatic discrimination method to reduce the amount of data. The present invention first analyzes the image data obtained after the prescan is completed, and divides the image data into several regions, and the pixel values of adjacent pixels in each region are relatively close. Next, the difference between the pixel values of the adjacent pixels in each area is used to determine the compression ratio of the scans in each area, and a standard value for each area is determined. This standard value can be the average pixel value of all pixels in the area, or the minimum pixel value of all pixels in the area. Finally, the standard value of each region is completely stored in the buffer memory, and the difference between the standard value of each region and each pixel in the region is stored in the buffer memory, and a region is specified. Stores the compressed information of each corresponding block to determine whether the data in the block is compressed. The above description is only a preferred embodiment of the present invention. This embodiment is only used for illustration, not for limiting the scope of patent application of the present invention. It can be modified and implemented without departing from the scope of the present invention.
第15頁 530479Page 15 530479
第16頁 530479 圖式簡單說明 本發明之上述目的與優點,將以下列的實施例以及圖 示,做詳細說明如下,其中: 第一 A圖為傳統技術如何選擇R、G與B之掃瞄起使位置 以及掃目苗區域, 第一 B圖為對應於各個圖素所產生相對應的R、G與B資 料之情形; 第二A圖為將預掃完成所獲得之影像資料分割為多數 個區塊之示意圖; ® 第二B圖為其中一個區塊内各圖素資料的排列方式; 第三圖為利用本發明之方法在緩衝儲存器上儲存其中 一區塊之不意圖,及 第四圖為本發明之掃描器掃瞄壓縮比自動判別法之流 程圖。 ❿ 主要部分之代表符號: R(x,y)紅色圖素之影像資料-圖素值 G(x,y)綠色圖素之影像資料-圖素值 B(x,y)藍色圖素之影像資料-圖素值The 530479 diagram on page 16 briefly illustrates the above-mentioned objects and advantages of the present invention. The following embodiments and diagrams will be used to explain in detail as follows. Among them: The first diagram A shows how the traditional technology selects R, G and B scanning. The starting position and the area for scanning the seedlings, the first B picture is the situation corresponding to the R, G and B data generated by each pixel; the second A picture is the image data obtained by pre-scanning is divided into a majority Schematic diagram of each block; ® Figure B shows the arrangement of pixel data in one of the blocks; Figure 3 shows the intent of storing one of the blocks on the buffer memory using the method of the present invention, and The four figures are the flowcharts of the automatic scanning compression ratio discrimination method of the scanner.代表 The main symbols: R (x, y) image data of red pixels-pixel value G (x, y) image data of green pixels-pixel value B (x, y) of blue pixels Image data-pixel values
第17頁 530479 圖式簡單說明 X列座標 y行座標 k區塊内所能容納之圖素數目 q標準值 q紅色圖素之標準值 Q#色圖素之標準值 q綦色圖素之標準值Page 17 530479 The diagram briefly explains the number of pixels that can be accommodated in the X column coordinate y row coordinate k block q standard value q standard value of red pixel Q # standard value of color pixel q standard of color pixel value
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW90122970A TW530479B (en) | 2001-09-19 | 2001-09-19 | Method for judging a compression ratio of a scanner automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW90122970A TW530479B (en) | 2001-09-19 | 2001-09-19 | Method for judging a compression ratio of a scanner automatically |
Publications (1)
Publication Number | Publication Date |
---|---|
TW530479B true TW530479B (en) | 2003-05-01 |
Family
ID=28787792
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW90122970A TW530479B (en) | 2001-09-19 | 2001-09-19 | Method for judging a compression ratio of a scanner automatically |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW530479B (en) |
-
2001
- 2001-09-19 TW TW90122970A patent/TW530479B/en active
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8537407B2 (en) | Image reading device, correction method, and image processing method using an image reading device | |
US7495669B2 (en) | Image processing apparatus and image processing method | |
JP2003533917A (en) | Scanner with paperless scaling mode | |
JP3710452B2 (en) | Image reading apparatus, data interpolation method, and control program | |
US20040130750A1 (en) | Image processing apparatus and image processing method | |
CN1322084A (en) | Digital image signal processing, digital image recording apparatus and method, and recording medium | |
EP1463295A3 (en) | Image processing apparatus, method and program for processing scanned images of non-flat originals, and storage medium carrying said program | |
US6674551B1 (en) | Image processing device and image processing method | |
US20030095270A1 (en) | Method and apparatus for adaptively binarizing color document images | |
EP1416424A3 (en) | Photo-sensor array with pixel-level signal comparison | |
TW530479B (en) | Method for judging a compression ratio of a scanner automatically | |
US6453080B1 (en) | Method for real-time auto-cropping a scanned image | |
JP4438834B2 (en) | Image color determination apparatus, image color determination method, and program | |
US6970596B2 (en) | Method for compressing an image by classifying colors | |
TW569616B (en) | Method for compressing an image in real time and shading compressing an images | |
US20060103896A1 (en) | Duplex scan apparatus | |
US7418138B2 (en) | Image processor for and method of performing tonal transformation on image data | |
US6816612B2 (en) | Multi-mode image processing method and a system thereof | |
TW571219B (en) | Image data transmission system and method | |
US7233705B2 (en) | Method and apparatus for reducing inaccuracies when processing color data with a tone map | |
CN1251139C (en) | Multiple-pattern image processing method and system thereof | |
US20030138167A1 (en) | Method and a system for stitching images produced by two or more sensors in a graphical scanner | |
TW503377B (en) | Image processing method and system with multiple modes | |
JP3210378B2 (en) | Image input device | |
US20030081839A1 (en) | Method for comprising an image in real time |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GD4A | Issue of patent certificate for granted invention patent |