TW560173B - Automatically adjusting line art threshold method and apparatus - Google Patents
Automatically adjusting line art threshold method and apparatus Download PDFInfo
- Publication number
- TW560173B TW560173B TW91111220A TW91111220A TW560173B TW 560173 B TW560173 B TW 560173B TW 91111220 A TW91111220 A TW 91111220A TW 91111220 A TW91111220 A TW 91111220A TW 560173 B TW560173 B TW 560173B
- Authority
- TW
- Taiwan
- Prior art keywords
- threshold
- value
- quality
- dichroic
- grayscale value
- Prior art date
Links
Landscapes
- Image Input (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
560173 五、發明說明(1) 5 - 1發明領域: 本發明係關於一種自動調整臨限二色階晝質灰階值的 方法,特別是一種利用校正表來自動調整臨限二色階畫質 灰階值的方法。 5 - 2發明背景: 光學掃描器係用來擷取影像並數位化影像。舉例來說 ,光學掃描器最常被用來擷取列印或印製在平面紙張上的 文字或其他影像。然後擷取的影像被數位化並被儲存或進 一步藉由字元辨識軟體處理以產生美國資訊交換標準碼 A SC I I的文字。典型的光學掃描器包含一光源、呈線性排 列的光電感測元件(通常為電荷耦合元件CCD、互補式金屬 氧化物半導體電晶體CMOS與CIS)、一類比放大器(Analog Amplifier)、一類比數位轉換器、一控制單元( Controller)與記憶體元件。 光電感測元件包含大量呈線性排列的電荷耦合元件 CCD。每一電荷耦合元件CCD可擷取影像單一像素的光訊號 。一整列的電荷耦合元件CCD則可擷取影像的一整列像素 的光訊號。藉由橫掃過整份文件,電荷耦合元件CCD即可 接收整份文件的影像光訊號。560173 V. Description of the invention (1) 5-1 Field of the invention: The present invention relates to a method for automatically adjusting a threshold dichroic day quality grayscale value, in particular to a correction table to automatically adjust a threshold dichroic image quality Method of grayscale value. 5-2 BACKGROUND OF THE INVENTION: Optical scanners are used to capture and digitize images. For example, optical scanners are most commonly used to capture text or other images printed or printed on flat paper. The captured image is then digitized and stored or further processed by character recognition software to generate text from the American Standard Code for Information Interchange A SC I I. A typical optical scanner includes a light source, a linearly arranged photo-sensing element (usually a charge-coupled element CCD, complementary metal oxide semiconductor transistor CMOS and CIS), an analog amplifier (Analog Amplifier), and an analog digital converter Device, a control unit (Controller) and a memory element. The photo-sensing element contains a large number of linearly-coupled charge-coupled elements (CCDs). Each charge-coupled element CCD can capture the optical signal of a single pixel of the image. A full row of charge-coupled device CCD can capture the optical signal of a whole row of pixels in the image. By scanning across the entire document, the CCD can receive the image light signal of the entire document.
560173 五、發明說明(2) 反射自掃瞄文件或穿透自掃瞄文件的光訊號轉換成數 位訊號的過程包含三步驟。首先,每一光電感測元件會將 所接收到的光訊號轉換成電荷,而電荷的數量取決於光的 強度與曝光的時間。其次光電感測元件所產生的電荷會藉 由類比放大器轉換成類比電壓。最後類比電壓會被類比數 位轉換器數位化,以便進行數位影像處理與儲存於記憶體 元件中。560173 5. Description of the invention (2) The process of converting the optical signal reflecting or scanning the self-scanning document into a digital signal includes three steps. First, each photo-sensing element converts the received light signal into an electric charge, and the amount of electric charge depends on the intensity of the light and the exposure time. Secondly, the charge generated by the photo-sensing element is converted into an analog voltage by an analog amplifier. Finally, the analog voltage is digitized by the analog-to-digital converter for digital image processing and storage in the memory device.
二色階晝質(Line Art)係由複數個數位化灰階值來^ 表。在影像掃描器中,臨限二色階畫質灰階值(Line Ari Threshold)為一明暗分界的臨界值,即灰階值高於臨限二 色,晝質為「暗」,灰階值低於臨限二色階畫質灰階值見 =「明」或「亮」。舉例來說,灰階值為自〇至255,、『 ;i =色階畫質灰階值為「2 5 5」,而最「亮」的二色 階值為「〇」,則臨限二色階畫質灰階值可為「 階值為人二色階畫質灰階值為「126」,此二色階晝質名 應視f ^ 位化灰階值範圍並不必然為自0至25 5,The two-color line art (Line Art) is represented by a plurality of digitized gray scale values ^. In the image scanner, the threshold gray level value of the threshold two-color image quality (Line Ari Threshold) is a threshold value of a light-dark boundary, that is, the gray level value is higher than the threshold two-color, the day quality is "dark", and the gray level value For grayscale values below the threshold two-color level, see = "Bright" or "Bright". For example, if the grayscale value is from 0 to 255, "; i = color level image quality gray level value is" 2 5 5 ", and the brightest two-color level value is" 0 ", then the threshold is The grayscale value of the two-color-gradation image quality can be "the value is human. The gray-scale value of the two-colorscale image quality value is" 126 ". 0 to 25 5,
器中,臨限二色;些高階影像掃指 動調整不僅X Ϊ 手動調整。不過以寻 出一 t 便,而且也不夠精確。因此非常有必要指 像掃自動調整臨限二色階畫質灰階值的方法,以使% 階畫ί U 5用者或製造商更容易調整影像掃描器的二έIn the device, the threshold is two colors; some high-level image sweeping adjustments are not only X Ϊ manual adjustments. However, it is convenient to find t, and it is not accurate enough. Therefore, it is very necessary to refer to the method of automatically adjusting the threshold grayscale value of the threshold two-color image quality to make it easier for the user or manufacturer to adjust the image scanner's image quality.
560173 五、發明說明(3) 5 - 3發明目的及概述: 本發明之一目的為提供一種自動調整臨限二色階畫質 灰階值的方法,以使影像掃描器的使用者更容易調整影像 掃描器的二色階晝質灰階值。560173 V. Description of the invention (3) 5-3 Purpose and summary of the invention: One object of the present invention is to provide a method for automatically adjusting the threshold value of the grayscale value of the threshold dichroic image quality, so that the user of the image scanner can more easily adjust it. The dichroic diurnal grayscale value of the image scanner.
本發明之另一目的為提供一種簡單且有效率的調整臨 限二色階晝質灰階值的方法。Another object of the present invention is to provide a simple and efficient method for adjusting the threshold dichroic diurnal grayscale value.
為了達成上述之目的,本發明提出一種自動調整臨限 二色階畫質灰階值的方法,該方法包含以下步驟。首先設 定一起始明暗密度、一最終明暗密度、一臨限亮度百分比 、一臨限暗度百分比與一二色階畫質臨限規格值。接著掃 瞄一校正表,該校正表包含至少一明暗密度區,該明暗密 度區具有為自全暗自全亮連續改變的灰階值。此校正表可 内建於影像掃描器或是由使用者置於影像掃描器之透明掃 瞄板上。然後根據該起始明暗密度、該最終明暗密度、該 臨限亮度百分比、該臨限暗度百分比與掃瞄校正表結果計 算出一臨限二色階晝質灰階值。最後比較該臨限二色階晝 質灰階值與該二色階畫質臨限規格值。當上述之該臨限二 色階晝質灰階值等於該二色階晝質臨限規格值時,則儲存 該二色階畫質臨限規格值。但當上述之該臨限二色階晝質In order to achieve the above-mentioned object, the present invention proposes a method for automatically adjusting the threshold grayscale value of the threshold dichroic image quality. The method includes the following steps. First set an initial light and dark density, a final light and dark density, a threshold brightness percentage, a threshold darkness percentage, and a two-color-scale image quality threshold specification value. Then, a calibration table is scanned. The calibration table includes at least one light-dark density region, and the light-dark density region has a grayscale value that changes continuously from full darkness to full brightness. This calibration table can be built into the image scanner or placed on the transparent scanner board of the image scanner by the user. Then calculate a threshold dichroic daylight grayscale value based on the initial light and dark density, the final light and dark density, the threshold brightness percentage, the threshold darkness percentage and the scan correction table results. Finally, the threshold dichroic day quality grayscale value is compared with the dichroic image quality threshold specification value. When the above-mentioned threshold dichroic day quality grayscale value is equal to the dichroic day quality threshold specification value, the dichroic image quality threshold specification value is stored. But when the above-mentioned threshold dichroic day quality
第7頁 560173 五、發明說明(4) 灰階值小於該二色階畫質臨限規格值時,則增加該二色階 畫質臨限規格值直到該二色階晝質臨限規格值等於該臨限 二色階晝質灰階值。相反地,當上述之該臨限二色階晝質 灰階值大於該二色階晝質臨限規格值時,則減少該二色階 畫質臨限規格值直到該二色階畫質臨限規格值等於該臨限 二色階晝質灰階值。 上述有關發明的簡單說明及以下的詳細說明僅為範例 並非限制。其他不脫離本發明之精神的等效改變或修飾均 應包含在的本發明的專利範圍之内。 5 - 4發明的詳細說明: 在此必須說明的是以下描述之自動調整臨限二色階晝 質灰階值的方法僅包含必要之元件與步驟。同時本發明可 以藉各種習知軟體與硬體來實施,在此僅提及瞭解本發明 所需之系統與運作方式。以下將根據本發明所附圖示做詳 細的說明,請注意圖示均為簡單的形式。 參考第一圖所示,顯示本發明之校正表或明暗密度表 。此校正表包含至少一明暗密度區,但第一圖所示有六個 明暗密度區。此校正表可内建於影像掃描器或是由使用者 置於影像掃描器之透明掃瞄板上。明暗密度區1 1 0表示最Page 7 560173 V. Description of the invention (4) When the grayscale value is smaller than the dichroic image quality threshold specification value, increase the dichroic image quality threshold specification value until the dichroic daylight quality threshold specification value Equal to the threshold dichroic diurnal grayscale value. Conversely, when the threshold dichroic day quality grayscale value is greater than the dichroic day quality threshold specification value, the dichroic image quality threshold specification value is reduced until the dichroic image quality threshold The limit specification value is equal to the threshold dichroic day quality grayscale value. The foregoing brief description of the invention and the following detailed description are examples only and are not limiting. Other equivalent changes or modifications that do not depart from the spirit of the invention should be included in the patent scope of the invention. 5-4 Detailed description of the invention: What must be explained here is that the method for automatically adjusting the threshold dichroic daylight grayscale value described below includes only necessary components and steps. At the same time, the present invention can be implemented by various conventional software and hardware, and only the system and operation mode required for understanding the present invention are mentioned here. The following detailed description will be made according to the accompanying drawings of the present invention. Please note that the drawings are simple forms. Referring to the first figure, a calibration table or light-dark density table of the present invention is shown. This correction table contains at least one light and dark density area, but the first figure has six light and dark density areas. This calibration table can be built into the image scanner or placed on the transparent scanner board of the image scanner by the user. Light and dark density area 1 1 0 means the most
560173 五 、發明說明 (5) 暗 的 灰 階 影 像 而 明 暗 密 度區 1 0 2表示最亮的灰階影像。明 暗 密 度 的 數 @ 為 任 意 ,且 亮度值為自全暗自全亮連續改 變 或 若 選 擇 2 5 6灰階或8位元 ,灰階值自〇至2 5 5連續改變。 此 時 臨 限 二 色 階 畫 質 灰 階值 為1 2 7,而灰階值高於1 2 7之灰 階 影 像 則 為 望 或 暗 〇 參 考 第 二 圖 所 示 j 顯示 本發明「自動調整臨限二色階 畫 質 灰 階 值 方 法 j 的 流 程圖 。於步驟2 0 2開始後,設定以 下 參 數 於 步 驟 2 0 4, 參數包含起始明暗密度Sd、最終明暗 密 度 Fd、 臨 限 亮 度 百 分 比Wp、臨限暗度百分比Bp與二色階 畫 質 臨 限 規 格 值 W/B — _t 3起始明暗密度Sd與最終明暗密度 Fcm 用 來 決 定 明 暗 密 度 區的 長度或像素數。舉例來說,若 影 像 掃 描 器 的 使 用 者 設 定起 始明暗密度Sd為數位灰階值 1( 30 ,而最終明暗密度】 7d為\ 2 0 0,並選擇四明暗密度區,貝j 明 暗 密 度 的 長 度 灰 階 值為 2 5。臨限亮度百分比ψ p與臨限 暗 度 百 分 比 Bp係 用 來 定 義與 辨識明暗。舉例來說,若臨限 亮 度 百 分 比 Wp設 定 為 7 5% , 意謂當亮像素超過7 5%時,灰 階 影 像 立 則 >田 被 η 定 為 厂 亮 j ° 若臨限暗度百分比Bp設定為8 0 % 思 吕胃 當 暗 像 素 超 過 8 0% 時’灰階影像則被判定為「暗 j 0 色 階 晝 質 臨 限 規 格值 W/B一t為使用者欲獲得之規格 值 〇 在 步 驟 畫 20 6中掃猫校正表之後,在步驟2〇8中計算 限 «ν务 色 階 質 灰 階 值 W/B_d 。臨限二色階畫質灰階值W/B_d 係 糟 由 起 始 明 暗 密 度 Sd、最 終明暗密度Fd、臨限亮度百分 比 Wp興 臨 限 暗 IrLR Jtt 度 百 分 比 Bp, 以及掃瞄校正表的結果計算而560173 V. Description of the invention (5) Dark grayscale image and light and dark density area 1 0 2 represents the brightest grayscale image. The number of light and dark density @ is arbitrary, and the brightness value is continuously changed from full darkness to full brightness or if 2 5 6 grayscale or 8-bit is selected, the grayscale value is continuously changed from 0 to 2 55. At this time, the grayscale value of the threshold two-color level image quality is 1 2 7 and the grayscale image with a grayscale value higher than 1 2 7 is visible or dark. Refer to the second figure. Flow chart of the method for limiting the gradation value of two-level grayscale value j. After starting in step 202, set the following parameters in step 204. The parameters include the initial light and dark density Sd, the final light and dark density Fd, and the threshold brightness percentage Wp. , Threshold darkness percentage Bp and dichroic image quality threshold specifications W / B — _t 3 The initial light and dark density Sd and the final light and dark density Fcm are used to determine the length or number of pixels of the light and dark density area. For example, if The user of the image scanner sets the initial light and dark density Sd to a digital grayscale value of 1 (30, and the final light and dark density) 7d is \ 2 0 0, and selects four light and dark density regions. The length grayscale value of the light and dark density is 2 5. Threshold brightness percentage ψ p and threshold darkness percentage Bp are used to define and identify light and dark. For example, if the threshold brightness percentage Wp is set to 7 5%, which means that when the bright pixels exceed 7 5%, the gray-scale image legislation > Tian is set as factory bright j ° If the threshold darkness percentage Bp is set to 80% At 80%, the grayscale image is judged as "dark j 0 color level day quality threshold specification value W / B-t is the specification value that the user wants to obtain. After scanning the cat calibration table in step 20, In step 208, the limit value «ν service color level quality gray level value W / B_d is calculated. The threshold two color level image quality gray level value W / B_d is determined from the initial light and dark density Sd, the final light and dark density Fd, and the threshold The brightness percentage Wp is limited to the dark limit IrLR Jtt and the percentage percentage Bp is calculated from the results of the scan correction table.
560173 五、發明說明(6) 得。接著於步驟2 1 0中,臨限二色階畫質灰階值W/B_d與二 色階畫質臨限規格值W/B_t比較。若臨限二色階晝質灰階 值W/B__d不等於二色階晝質臨限規格值W/B_t,則於步驟 2 1 2中,進一步檢視臨限二色階畫質灰階值w/B — d是否大於 二色階畫質臨限規格值W/B_t。若臨限二色階畫質灰階值 〜/:6_^大於二色階晝質臨限規格值1/6^,則於步驟214中 增加二色階畫質臨限規格值重新與臨限二色階畫 質灰階值W/B一d比較直到二色階畫質臨限規格值W/B_t等於 臨限二色階畫質灰階值W/B — d為止。相反地,若臨限二色 階畫質灰階值W/B一d小於二色階畫質臨限規格值w/B — t,則 於步驟21 6中減少二色階畫質臨限規格值W/B — t並重新與臨 限二色階畫質灰階值W/B一d比較直到二色階晝質臨限規格 值W/B — t等於臨限二色階畫質灰階值w/B一d為止、Γ接著於°步 驟2 1 8中,二色階畫質臨限規格值w/B — t被儲存。 、上述有關發明的詳細說明僅為範例並非限制。其他不 脫離本發明之精神的等效改變或修飾均應包含在的^發明 的專利範圍之内。 又560173 V. Description of Invention (6) Next, in step 210, the threshold gradation value W / B_d of the two-level image quality threshold is compared with the threshold value W / B_t of the dichroic image quality threshold. If the threshold dichroic day quality grayscale value W / B__d is not equal to the dichroic day quality threshold specification value W / B_t, then in step 2 1 2, further review the threshold dichroic image quality grayscale value w / B — Whether d is greater than the two-level image quality threshold specification value W / B_t. If the threshold gradation value of the two-level grayscale image quality is ~ /: 6_ ^ is greater than the threshold value of the dichroic daytime quality threshold 1/6 ^, then the dichroic image quality threshold value is added to the threshold in step 214. The gradation value W / B_d of the two-level image quality is compared until the threshold value W / B_t of the two-level image quality threshold is equal to the threshold gradation value W / B — d of the two-level image quality threshold. Conversely, if the grayscale value W / B_d of the threshold two-color image quality is smaller than the threshold w / B — t of the two-color image quality threshold value, then the two-color image quality threshold value is reduced in step 21 6. The value W / B — t is re-compared with the threshold two-color image quality grayscale value W / B-d until the two-color day quality threshold specification value W / B — t is equal to the threshold two-color image quality gray scale Up to the value w / B-d, and Γ is followed by step 2 1 8, the two-level image quality threshold specification value w / B — t is stored. The above detailed description of the invention is merely an example and not a limitation. Other equivalent changes or modifications that do not depart from the spirit of the present invention should be included in the patent scope of the invention. also
560173 圖式簡單說明 為了能讓本發明上述之其他目的、特徵、和優點能更 明顯易懂,下文特舉一較佳實施例,並配合所附圖式,作 詳細說明如下: 第一圖顯示本發明之校正表;及 第二圖顯示本發明「自動調整臨限二色階畫質灰階值 方法」的流程圖。 主要部分之代表符號: 1 0 2明暗密度區 1 0 4明暗密度區 1 0 6明暗密度區 10 8明暗密度區 1 1 0明暗密度區 2 0 2開始 2 0 4設定起始明暗密度Sd、最終明暗密度Fd 、臨限亮度百分比W p、臨限暗度百分比 Bp與二色階畫質臨限規格值W/B_t 2 0 6掃瞄校正表 2 0 8計算臨限二色階畫質灰階值W/B_d 2 1 0比較臨限二色階晝質灰階值W/B_d與二 色階畫質臨限規格值W/B_t 2 1 2檢視臨限二色階晝質灰階值W/B_d是否560173 Brief description of the drawings In order to make the other objects, features, and advantages of the present invention clearer and easier to understand, a preferred embodiment is described below in conjunction with the accompanying drawings to make a detailed description as follows: The first diagram shows The calibration table of the present invention; and the second figure shows a flow chart of the "method for automatically adjusting the threshold gray-scale value of the dichroic image quality" of the present invention. Symbols of the main parts: 1 0 2 light and dark density area 1 0 4 light and dark density area 1 0 6 light and dark density area 10 8 light and dark density area 1 1 0 light and dark density area 2 0 2 start 2 0 4 set the initial light and dark density Sd, and finally Brightness and darkness density Fd, threshold brightness percentage Wp, threshold darkness percentage Bp, and dichroism threshold quality specification value W / B_t 2 0 6 Scan correction table 2 0 8 Calculate threshold dichroism gray quality The value W / B_d 2 1 0 compares the threshold dichroism day quality grayscale value W / B_d with the dichroism image quality threshold specification value W / B_t 2 1 2 Whether B_d
560173 圖式簡單說明 大於二色階晝質臨限規格值W/B_t 2 1 4增加二色階晝質臨限規格值W/B_t 2 16減少二色階畫質臨限規格值W/B_t 2 1 8儲存二色階晝質臨限規格值W/B_t 第12頁560173 The diagram simply illustrates that the daylight quality threshold specification value is greater than the two-color level W / B_t 2 1 4 increases the daylight quality threshold specification value of the two-color level W / B_t 2 16 decreases the color quality threshold specification value of the two-color level W / B_t 2 1 8 Store the dichroic day quality threshold specification value W / B_t page 12
Claims (1)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91111220A TW560173B (en) | 2002-05-27 | 2002-05-27 | Automatically adjusting line art threshold method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW91111220A TW560173B (en) | 2002-05-27 | 2002-05-27 | Automatically adjusting line art threshold method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
TW560173B true TW560173B (en) | 2003-11-01 |
Family
ID=32322872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW91111220A TW560173B (en) | 2002-05-27 | 2002-05-27 | Automatically adjusting line art threshold method and apparatus |
Country Status (1)
Country | Link |
---|---|
TW (1) | TW560173B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114905851A (en) * | 2022-07-15 | 2022-08-16 | 浙江工业大学 | Method for collecting printing color density characteristic curve |
-
2002
- 2002-05-27 TW TW91111220A patent/TW560173B/en active
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114905851A (en) * | 2022-07-15 | 2022-08-16 | 浙江工业大学 | Method for collecting printing color density characteristic curve |
CN114905851B (en) * | 2022-07-15 | 2022-11-11 | 浙江工业大学 | Method for collecting characteristic curve of printing color density |
WO2024011659A1 (en) * | 2022-07-15 | 2024-01-18 | 浙江工业大学 | Color density characteristic curve collection method for printing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100874561B1 (en) | Image Processing Apparatus and Method | |
JP3640989B2 (en) | Exposure changing method and image processing system | |
US8009224B2 (en) | Image signal processing method and image signal processing device | |
EP0920193A2 (en) | Image processing apparatus and method | |
US5892590A (en) | Corrected data generator for image taking device | |
US7443546B2 (en) | Method for generating a calibration curve | |
US20080218800A1 (en) | Image processing apparatus, image processing method, and computer program product | |
TW560173B (en) | Automatically adjusting line art threshold method and apparatus | |
US5726771A (en) | System and method for optimizing tonal resolution in an optical scanner | |
US7433093B2 (en) | Method and apparatus for increasing signal to noise ratio | |
JP3316548B2 (en) | Image density adjustment device | |
JPH09298628A (en) | Image reader | |
JP3489801B2 (en) | Image reading device | |
JP3105936B2 (en) | Image reading device | |
JP4265374B2 (en) | Image reading apparatus and image processing program | |
JP2000270216A (en) | Original reader | |
US20040257592A1 (en) | Scanning method and device for performing gamma corrections according to multiple gamma functions | |
JPH057302A (en) | Picture processor | |
TWI255133B (en) | Method for increasing signal to noise ratio | |
JP4134368B2 (en) | Image reading device | |
JP2646888B2 (en) | Image processing device | |
US20060072167A1 (en) | Method of image signal modulation based on light source luminosity | |
JP2001111888A (en) | Digital camera and its character photographing method | |
JP2001103324A (en) | Image reader, image reading method and storage medium | |
JPH10336450A (en) | Original reader |