TWI431547B - Method of reducing black amount in an image - Google Patents

Method of reducing black amount in an image Download PDF

Info

Publication number
TWI431547B
TWI431547B TW99117870A TW99117870A TWI431547B TW I431547 B TWI431547 B TW I431547B TW 99117870 A TW99117870 A TW 99117870A TW 99117870 A TW99117870 A TW 99117870A TW I431547 B TWI431547 B TW I431547B
Authority
TW
Taiwan
Prior art keywords
value
pixel
transition
pixels
original
Prior art date
Application number
TW99117870A
Other languages
Chinese (zh)
Other versions
TW201145212A (en
Inventor
Kuan Li Chao
Kuo Ping Yang
Neo Bob Chih Yung Yang
Original Assignee
Kuo Ping Yang
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 Kuo Ping Yang filed Critical Kuo Ping Yang
Priority to TW99117870A priority Critical patent/TWI431547B/en
Priority to JP2010293629A priority patent/JP2011254446A/en
Publication of TW201145212A publication Critical patent/TW201145212A/en
Application granted granted Critical
Publication of TWI431547B publication Critical patent/TWI431547B/en

Links

Landscapes

  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

降低數位圖像中黑色含量之方法Method for reducing black content in digital images

本發明係關於一種降低數位圖像中黑色含量之方法,使得印表機在列印數位圖像後,數位圖像能完全不含或大大降低黑色墨水(或碳粉)。SUMMARY OF THE INVENTION The present invention is directed to a method of reducing the black content of a digital image such that the digital image can completely or substantially reduce black ink (or toner) after the digital image is printed by the printer.

市售印表機會將使用者電腦端送達的圖像作自動判斷,以混合黑色墨水(碳粉)之方式達到列印灰階效果,以節省彩色墨水(碳粉)之消耗,並達到更佳的暗部細節效果。然而,有些應用場合並不希望印表機印出具有黑色墨水(碳粉)之圖像,譬如利用光筆(又稱OID Pen,OID:Optical Index/Optical Identification,譬如參考http://www.giga.com.tw/english/productpen.htm)讀取某一圖像上覆蓋之讀取語音用列印碼(大多為非常細微之二維條碼),讀取語音用列印碼基本是黑色的,如果圖像有許多黑色部分,則會影響光筆之讀取成功率。The commercially available printer will automatically judge the image delivered by the user's computer, and achieve the printing grayscale effect by mixing black ink (toner) to save the consumption of color ink (toner) and achieve better. Dark details of the effect. However, some applications do not want the printer to print images with black ink (toner), such as the use of a light pen (also known as OID Pen, OID: Optical Index / Optical Identification, such as reference http://www.giga .com.tw/english/productpen.htm)Read the print code for reading voice overlaid on a certain image (mostly very fine two-dimensional barcode), and the print code for reading voice is basically black. If the image has many black parts, it will affect the reading success rate of the stylus.

以往的解決辦法是在圖像處理軟體內將RGB格式的影樣轉換為CMYK格式,並將K值去除或盡量減少。然而一個RGB值可以對應到多種CMYK的組合,因此這樣的做法在傳送至列印端後,列印系統還是會將剩餘的CMY值做處理:摻入K值以取得暗部效果。而圖像也會因原圖的K值(暗部)被去除,亮部沒有更動,而使得列印出來的圖像看起來頭重腳輕。The previous solution was to convert the RGB format image into CMYK format in the image processing software and remove or minimize the K value. However, an RGB value can correspond to a combination of multiple CMYKs, so after the transfer to the print end, the printing system will still process the remaining CMY values: the K value is incorporated to achieve the shadow effect. The image will also be removed due to the K value (dark part) of the original image, and the bright part will not be changed, making the printed image look top-heavy.

因此,有必要提供一種方法完全繞過列印系統的摻入K值的轉換機制,讓使用者列印出真正不含或降低黑色墨水(碳粉)的印製品。Therefore, it is necessary to provide a method of completely bypassing the K-value conversion mechanism of the printing system, allowing the user to print a print that does not contain or reduce black ink (toner).

申請人曾針對上述之問題申請,申請中華民國專利(案號為098139978),然在前一申請案需要將像素增加為4倍或9倍,因此解析度較差,運算也較耗時,本發明之方法能進一步改善先前所提出之方法。The applicant applied for the above-mentioned question and applied for the Republic of China patent (Case No. 098139978). However, in the previous application, the pixel needs to be increased by 4 times or 9 times, so the resolution is poor and the operation is time consuming. The method can further improve the previously proposed method.

本發明之主要目的係在提供降低數位圖像中黑色含量之方法,本發明包括下列步驟:The primary object of the present invention is to provide a method of reducing the black content in a digital image, and the present invention comprises the following steps:

(A)讀取一原始數位圖像30,其中該原始數位圖像包括P個原始像素,其中3≦P≦9,000,000,000,各原始像素包括三個色彩資訊,分別為R,G及B,其中R代表紅色值,G代表綠色值,及B代表藍色值,且:(A) reading a raw digital image 30, wherein the original digital image includes P original pixels, wherein 3 ≦ P ≦ 9,000,000,000, each original pixel includes three color information, respectively R, G and B, where R Represents a red value, G represents a green value, and B represents a blue value, and:

0≦R≦F,0≦G≦F,0≦B≦F,其中0≦R≦F, 0≦G≦F, 0≦B≦F, where

24 -1≦F≦232 -1;以及2 4 -1≦F≦2 32 -1; and

(B)將各P個原始像素轉換為對應之各P個轉變像素,其中各轉變像素包括三個色彩資訊,分別為R’,G’及B’,其中R’代表紅色值,G’代表綠色值,及B’代表藍色值,且:(B) converting each P original pixels into corresponding P transition pixels, wherein each transition pixel includes three color information, respectively R', G' and B', wherein R' represents a red value, and G' represents The green value, and B' represents the blue value, and:

0≦R’≦F,0≦G’≦F,0≦B’≦F;0≦R’≦F,0≦G’≦F,0≦B’≦F;

其中P個轉變像素具有下述特性:P個轉變像素具有N組轉變像素,其中N為整數且1≦N≦P/3,其中每一組轉變像素包括3個相鄰之轉變像素,該3個相鄰之轉變像素且該3個相鄰之轉變像素分別具有以下特性:特性R1:其中之一轉變像素係由相對應之原始像素之R值進行增值,使得轉變像素之R’值大於或等於相對應之原始像素之R值,且轉變像素之R’值區間為:0.8×F≦R’≦F,而根據實施例R’=F;特性G1:其中之一轉變像素係由相對應之原始像素之G值進行增值,使得轉變像素之G’值大於或等於相對應之原始像素之G值,且轉變像素之G’值區間為:0.8×F≦G’≦F,而根據實施例G’=F;以及特性B1:其中之一轉變像素係由相對應之原始像素之B值進行增值,使得轉變像素之B’值大於或等於相對應之原始像素之B值,且轉變像素之B’值區間為:0.8×F≦B’≦F,而根據實施例B’=F。The P transition pixels have the following characteristics: P transition pixels have N sets of transition pixels, where N is an integer and 1 ≦ N ≦ P / 3, wherein each set of transition pixels includes 3 adjacent transition pixels, the 3 Each of the adjacent transition pixels and the three adjacent transition pixels respectively have the following characteristics: characteristic R1: one of the transition pixels is incremented by the R value of the corresponding original pixel such that the R' value of the transition pixel is greater than or Corresponding to the R value of the corresponding original pixel, and the R' value interval of the transition pixel is: 0.8×F≦R′≦F, and according to the embodiment R′=F; the characteristic G1: one of the transition pixels is corresponding The G value of the original pixel is increased such that the G' value of the converted pixel is greater than or equal to the G value of the corresponding original pixel, and the G' value interval of the converted pixel is: 0.8×F≦G′≦F, and according to the implementation Example G'=F; and characteristic B1: one of the transition pixels is incremented by the B value of the corresponding original pixel such that the B' value of the transition pixel is greater than or equal to the B value of the corresponding original pixel, and the transition pixel The B' value interval is: 0.8 × F ≦ B ' ≦ F, and according to the real Example B '= F.

為能讓 貴審查委員能更瞭解本發明之技術內容,特舉一個較佳具體實施例說明如下。In order to enable the reviewing committee to better understand the technical contents of the present invention, a preferred embodiment will be described below.

以下請一併參考圖1關於使用環境之第一實施例示意圖。Please refer to FIG. 1 for a schematic diagram of the first embodiment of the use environment.

使用者係透過個人電腦10來執行本發明之方法。電腦10主要包括一處理器11及一記憶體12,記憶體12中儲存一應用程式20,本發明是透過處理器11執行此應用程式20以產生本發明之步驟。The user performs the method of the present invention through the personal computer 10. The computer 10 mainly includes a processor 11 and a memory 12. The memory 12 stores an application 20. The present invention executes the application 20 through the processor 11 to generate the steps of the present invention.

電腦10以有線或無線方式連結一印表機16,印表機16之功能是要列印文件之用。The computer 10 is connected to a printer 16 by wire or wirelessly. The function of the printer 16 is to print the documents.

圖2係本發明使用環境之第二實施例示意圖。使用者係使用一近端電腦81,透過網路80(如網際網路)與一電腦10a(網路伺服器)連結,使得近端電腦81可以使用網路伺服器10a之應用程式20,在第二實施例中,印表機16以有線或無線方式連結近端電腦81。兩個不同實施例之重點就是使用者得以利用電腦來執行應用程式20,然後以印表機16列印文件。Figure 2 is a schematic illustration of a second embodiment of the environment in which the present invention is used. The user uses a near-end computer 81 to connect to a computer 10a (web server) via a network 80 (such as the Internet), so that the near-end computer 81 can use the application 20 of the web server 10a. In the second embodiment, the printer 16 is connected to the near-end computer 81 in a wired or wireless manner. The focus of the two different embodiments is that the user can use the computer to execute the application 20 and then print the file on the printer 16.

請參考圖3,關於本發明降低數位圖像中黑色含量之技術及步驟之示意圖。本發明基本上係以每三個相鄰像素為一組來進行處理,以三個相鄰像素61,62,63為例,其三個色彩資訊RGB之值如下(其中R代表紅色值,G代表綠色值,及B代表藍色值,以255為滿值為例:Please refer to FIG. 3 for a schematic diagram of techniques and steps for reducing the black content in a digital image according to the present invention. The present invention basically processes each of three adjacent pixels as a group, taking three adjacent pixels 61, 62, 63 as an example, and the values of the three color information RGB are as follows (where R represents a red value, G Represents a green value, and B represents a blue value, with a value of 255 as the full value:

像素61(RGB)=(0,150,200),Pixel 61 (RGB) = (0, 150, 200),

像素62(RGB)=(10,155,100),Pixel 62 (RGB) = (10, 155, 100),

像素63(RGB)=(20,150,255)。Pixel 63 (RGB) = (20, 150, 255).

接著針對3個像素分別進行:『R值進行增值』、『G值進行增值』及『B值進行增值』,以本實施例對R、G或B增值是直接加到滿值(譬如255),進行增值後請見三個相鄰像素61a,62a,63a,其三個色彩資訊RGB之值如下:Then, for 3 pixels, respectively: "R value is added", "G value is added" and "B value is added". In this embodiment, the value of R, G or B is directly added to the full value (such as 255). After adding value, please see three adjacent pixels 61a, 62a, 63a, and the values of the three color information RGB are as follows:

像素61a(RGB)=(255,150,200),Pixel 61a (RGB) = (255, 150, 200),

像素62a(RGB)=(10,255,100),Pixel 62a (RGB) = (10, 255, 100),

像素63a(RGB)=(20,150,255)。Pixel 63a (RGB) = (20, 150, 255).

需注意的是,每一像素只針對其中一色彩值增值,譬如像素61只針對R值進行增值,並不對G值或B值進行增值。而此三個相鄰像素所增值之色彩互為不同。It should be noted that each pixel is only incremented for one of the color values. For example, the pixel 61 only adds value to the R value, and does not add value to the G value or the B value. The colors added by the three adjacent pixels are different from each other.

另外需注意的是,因為像素63之B值原來就是滿值(255),因此像素63a已無空間針對B值進行增值,所以像素63a之RGB值與像素63是相同的,所以本說明書中所述對色彩『增值』,其中『增值』之意義係指若遇到『色彩為滿值』時,是不再增加滿值之色彩。In addition, since the B value of the pixel 63 is originally a full value (255), the pixel 63a has no space to add value to the B value, so the RGB value of the pixel 63a is the same as the pixel 63, so in this specification In the case of color "value added", the meaning of "value added" means that if "color is full value", it is no longer increasing the value of full value.

上述無論是像素61,62,63或像素61a,62a,63a以RGB值表示是以一般檔案記錄之格式,或者是呈現於螢幕81時所表現之色彩資訊。如圖2所示,當以印表機16(或其他印刷機)印出時,列印系統(或是電腦)會將RGB轉為CMY系統列印。CMY事實上即為RGB之補色,請繼續參考圖3,以CMY表示之列印像素61b,62b,63b:The above-mentioned pixels 61, 62, 63 or pixels 61a, 62a, 63a are represented by RGB values in the format of general file recording, or color information expressed when presented on the screen 81. As shown in Figure 2, when printed on printer 16 (or other printer), the printing system (or computer) will convert RGB to CMY system printing. CMY is actually a complementary color of RGB. Please continue to refer to Figure 3, which prints pixels 61b, 62b, 63b in CMY:

像素61b(CMY)=(0,105,55),Pixel 61b (CMY) = (0, 105, 55),

像素62b(CMY)=(245,0,155),Pixel 62b (CMY) = (245, 0, 155),

像素63b(CMY)=(235,105,0)。Pixel 63b (CMY) = (235, 105, 0).

CMY值之算法,係以『滿值』(如255)減去RGB值。由於像素61a,62a,63a分別至少有一個彩色值(R,G,or B)為滿值(255),因此像素61b,62b,63b之分別至少有一個CMY值為『0』,因此當像素61b,62b,63b被列印時,不會有黑色墨水被印出。The CMY value algorithm subtracts the RGB value from the "full value" (eg 255). Since at least one color value (R, G, or B) of the pixels 61a, 62a, 63a is a full value (255), each of the pixels 61b, 62b, 63b has a CMY value of "0", so when the pixel When 61b, 62b, 63b are printed, no black ink will be printed.

為再更進一步瞭解本發明,以下請參考圖4關於本發明之流程圖,並請一併參考圖1~2,以及圖5~7以瞭解本發明。In order to further understand the present invention, please refer to FIG. 4 for a flow chart of the present invention, and please refer to FIGS. 1 to 2 and FIGS. 5 to 7 to understand the present invention.

步驟401:Step 401:

讀取一原始數位圖像30。A raw digital image 30 is read.

原始數位圖像30包括P個原始像素31,其中1≦P≦9,000,000,000。像素(pixel)是組成數位圖像(點陣圖)的最小單位,以一張800x600的圖片來說,它是由橫向800個格點,縱向600個格點所組成的,因此一張長寬為800x600大小的數位圖像圖片,一共包含了48萬個格點(800x600=480,000)。P的大小理論上是可以無限大,但以目前及未來之應用,P最大設為90億應可涵蓋絕大多數的數位圖像。The original digital image 30 includes P original pixels 31, of which 1 ≦ P ≦ 9,000,000,000. Pixel (pixel) is the smallest unit that constitutes a digital image (dotmap). In the case of an 800x600 image, it consists of 800 grid points in the horizontal direction and 600 grid points in the vertical direction. Therefore, the length and width are 800x600. The size of the digital image contains a total of 480,000 grid points (800x600 = 480,000). The size of P can theoretically be infinite, but for current and future applications, P should be set to a maximum of 9 billion to cover the vast majority of digital images.

譬如使用者由自己的電腦或網站取得一數位圖像,而由應用程式20讀取。需注意的是原先之數位圖像之格式可能不是以點陣圖紀錄(譬如jpg壓縮檔),則必須先轉為以像素描述之檔案。步驟401所述之原始數位圖像30可能是先經過處理後之數位圖像,譬如由其他格式之數位圖像所處理後的,或是經過縮小或增加像素處理後的等等。For example, if a user obtains a digital image from his or her computer or website, it is read by the application 20. It should be noted that the format of the original digital image may not be recorded in bitmap (such as jpg compression file), then it must be converted to a file described in pixels. The original digital image 30 described in step 401 may be a processed digital image, such as processed by a digital image of another format, or reduced or increased by pixel processing, and the like.

各原始像素31a,31b,31c,31d,31e,31f,31g,31h,31i(以圖5之第一列為例)包括三個色彩資訊RGB之值。目前一般色彩資訊以八位元表示,則各色彩資訊之數值最小為0,最大為255。目前一般有以四位元表示,八位元表示,或十六位元表示,而未來有可能以32位元表示,因此:Each of the original pixels 31a, 31b, 31c, 31d, 31e, 31f, 31g, 31h, 31i (taking the first column of FIG. 5 as an example) includes values of three color information RGB. At present, the general color information is expressed in octets, and the value of each color information is at least 0 and the maximum is 255. At present, it is generally expressed in four bits, octet representation, or sixteen digits, and in the future it may be represented by 32 bits, so:

0≦R≦F,0≦G≦F,0≦B≦F,其中24 -1≦F≦232 -1。0≦R≦F, 0≦G≦F, 0≦B≦F, where 2 4 -1≦F≦2 32 -1.

步驟402:Step 402:

以3個相鄰像素為一組,針對3個像素分別進行對R值進行增值,對G值進行增值,以及對B值進行增值。Taking 3 adjacent pixels as a group, the R value is added for each of the 3 pixels, the G value is added, and the B value is added.

步驟402即如上述在說明圖3時之方式,以圖5之第一列為例,各原始像素31a~31i以三個為循環進行R值,G值,以及B值之增值,如圖6所示:譬如前面三個相鄰原始像素:原始像素31a:對R進行增值,原始像素31b:對G進行增值,原始像素31c:對B進行增值。Step 402 is as described above in the manner of FIG. 3. Taking the first column of FIG. 5 as an example, each of the original pixels 31a to 31i performs R value, G value, and value of B value in three cycles, as shown in FIG. 6. Shown: For example, the first three adjacent original pixels: original pixel 31a: adding value to R, original pixel 31b: adding value to G, original pixel 31c: adding value to B.

接下來針對下一組相鄰原始像素進行增值:原始像素31d:對R進行增值,原始像素31e:對G進行增值,原始像素31f:對B進行增值。Next, the next set of adjacent original pixels is added: original pixel 31d: adding value to R, original pixel 31e: adding value to G, and original pixel 31f: adding value to B.

再接下來針對下一組相鄰原始像素進行增值:原始像素31g:對R進行增值,原始像素31h:對G進行增值,原始像素31i:對B進行增值。Then, the next set of adjacent original pixels is added: original pixel 31g: adding value to R, original pixel 31h: adding value to G, and original pixel 31i: adding value to B.

當然增值過後任一之轉變像素的R’,G’及B’值(R’代表紅色值,G’代表綠色值,及B’代表藍色值)仍須介於0及滿值之間,亦即:0≦R’≦F,0≦G’≦F,0≦B’≦F。Of course, the value of R', G' and B' (where R' stands for red value, G' stands for green value, and B' stands for blue value) of any transition pixel after adding value must still be between 0 and full value. That is: 0≦R'≦F, 0≦G'≦F, 0≦B'≦F.

每次處理三個相鄰原始像素後,如果其他像素尚未處理(步驟403),則繼續要重複進行步驟402,直到所有原始像素都經過增值處理後才停止,最後完成轉變數位圖像50(步驟404)。After processing three adjacent original pixels each time, if other pixels have not been processed (step 403), then step 402 is continued until all the original pixels have undergone value-added processing, and finally the converted digital image 50 is completed (step 404).

由於本發明係將每三個相鄰像素進行色彩增值處理,因此以P個像素而言,最多有『P/3』組個三個相鄰像素,若以N代表幾組三個相鄰像素,則N與P之關係可表現如下:N為整數且1≦N≦P/3。Since the present invention performs color value-adding processing on every three adjacent pixels, in the case of P pixels, there are at most three adjacent pixels in the "P/3" group, and if N represents several groups of three adjacent pixels. Then, the relationship between N and P can be expressed as follows: N is an integer and 1≦N≦P/3.

再經過步驟402處理後,依據上述之實施例(包括圖3之說明)可以歸納如下:轉變數位圖像50像素之數目(P個轉變像素)仍保持原始數位圖像30像素(P個原始像素)之數目。After the processing in step 402, according to the above embodiment (including the description of FIG. 3), it can be summarized as follows: the number of pixels of the converted digital image (P transition pixels) still retains 30 pixels of the original digital image (P original pixels) The number of).

P個轉變像素具有N組轉變像素,其中N為整數且1≦N≦P/3,其中每一組轉變像素包括3個相鄰之轉變像素,該3個相鄰之轉變像素且該3個相鄰之轉變像素分別具有以下特性:P transition pixels have N sets of transition pixels, where N is an integer and 1 ≦ N ≦ P / 3, wherein each set of transition pixels includes 3 adjacent transition pixels, the 3 adjacent transition pixels and the 3 Adjacent transition pixels have the following characteristics:

特性R1:Characteristic R1:

其中之一轉變像素係由相對應之原始像素之R值進行增值,使得轉變像素之R’值大於或等於相對應之原始像素之R值,且轉變像素之R’值區間為:0.8×F≦R’≦F。One of the transition pixels is incremented by the R value of the corresponding original pixel such that the R' value of the transition pixel is greater than or equal to the R value of the corresponding original pixel, and the R' value interval of the transition pixel is: 0.8×F ≦R'≦F.

轉變像素之G’值相對應之原始像素之G值關係如下:0.9G≦G’≦1.1 G≦F;轉變像素之R’值相對應之原始像素之B值關係如下:0.9B≦B’≦1.1B≦F;以像素(RGB)=(0,150,200)為例:R值進行增值,G,B保持接近後:The G value of the original pixel corresponding to the G' value of the transition pixel is as follows: 0.9G ≦ G' ≦ 1.1 G ≦ F; the B value of the original pixel corresponding to the R' value of the transition pixel is as follows: 0.9B ≦ B' ≦1.1B≦F; take pixel (RGB)=(0,150,200) as an example: R value is added, G, B keeps close:

像素(R’G’B’)=(204~255,135~165,180~220)Pixel (R'G'B') = (204~255, 135~165, 180~220)

R’至少要接近滿值F(如255)且至少大於R,原因是當R’轉為印刷之C值會很小,因此黑色含量很低。R’建議為滿值F,可確保沒有黑色含量。R' is at least close to the full value F (e.g., 255) and at least greater than R because the C value for R' turning to printing is small, so the black content is very low. R' is recommended to have a full value of F to ensure no black content.

G’B’要接近G,B才能盡量保持原色彩,最佳建議仍是G’=G,B’=B。G'B' is close to G, B can try to maintain the original color, the best suggestion is still G'=G, B'=B.

特性G1:Characteristic G1:

其中之一轉變像素係由相對應之原始像素之G值進行增值,使得轉變像素之G’值大於或等於相對應之原始像素之G值,且轉變像素之G’值區間為:0.8×F≦G’≦F。One of the transition pixels is incremented by the G value of the corresponding original pixel such that the G' value of the transition pixel is greater than or equal to the G value of the corresponding original pixel, and the G' value interval of the transition pixel is: 0.8×F ≦G'≦F.

轉變像素之B’值相對應之原始像素之B值關係如下:0.9B≦B’≦1.1B≦F;轉變像素之B’值相對應之原始像素之R值關係如下:0.9 R≦R’≦1.1 R≦F;以像素(RGB)=(0,150,200)為例:G值進行增值,B,R保持接近後:The B value of the original pixel corresponding to the B' value of the transition pixel is as follows: 0.9B≦B'≦1.1B≦F; the R value of the original pixel corresponding to the B' value of the transition pixel is as follows: 0.9 R≦R' ≦1.1 R≦F; take pixel (RGB)=(0,150,200) as an example: G value increases, B, R stays close:

像素(R’G’B’)=(0,204~255,180~220)Pixel (R'G'B') = (0, 204~255, 180~220)

G’至少要接近滿值F(如255)且至少大於G,原因是當G’轉為印刷之M值會很小,因此黑色含量很低。G’建議為滿值F,可確保沒有黑色含量。G' should be at least close to the full value F (e.g., 255) and at least greater than G, because the M value when G' is converted to printing is small, so the black content is very low. G' is recommended to have a full value of F to ensure no black content.

B’R’要接近B,R才能盡量保持原色彩,最佳建議仍是B’=B,R’=R。B'R' is close to B, and R can maintain the original color as much as possible. The best suggestion is still B'=B, R'=R.

特性B1:Characteristic B1:

其中之一轉變像素係由相對應之原始像素之B值進行增值,使得轉變像素之B’值大於或等於相對應之原始像素之B值,且轉變像素之B’值區間為:0.8×F≦B’≦F。One of the transition pixels is incremented by the B value of the corresponding original pixel such that the B' value of the transition pixel is greater than or equal to the B value of the corresponding original pixel, and the B' value interval of the transition pixel is: 0.8×F ≦B'≦F.

轉變像素之R’值相對應之原始像素之R值關係如下:0.9 R≦R’≦1.1 R≦F;轉變像素之G’值相對應之原始像素之G值關係如下:0.9 G≦G’≦1.1 G≦F;以像素(RGB)=(0,150,200)為例:B值進行增值,R,G保持接近後:The R value of the original pixel corresponding to the R' value of the transition pixel is as follows: 0.9 R ≦ R' ≦ 1.1 R ≦ F; the G value of the original pixel corresponding to the G' value of the transition pixel is as follows: 0.9 G ≦ G ' ≦ 1.1 G≦F; take pixel (RGB) = (0, 150, 200) as an example: B value is added, R, G stays close:

像素(R’G’B’)=(0,135~165,204~255)Pixel (R'G'B') = (0, 135~165, 204~255)

B’至少要接近滿值F(如255)且至少大於B,原因是當B’轉為印刷之F值會很小,因此黑色含量很低。B’建議為滿值F,可確保沒有黑色含量。B' is at least close to the full value F (e.g., 255) and at least greater than B because the F value for B' to be printed is small and therefore the black content is very low. B' is recommended to have a full value of F to ensure no black content.

R’G’要接近R,G才能盡量保持原色彩,最佳建議仍是R’=R,G’=G。R'G' should be close to R, and G can maintain the original color as much as possible. The best suggestion is still R'=R, G'=G.

上述圖6以各原始像素31a~31i以有順序方式對R值,G值以及B值進行增值(當然亦可以其他順序方式,譬如GBR,GRB,RBG,BRG,BGR等)。但根據實驗,不一定要以固定順序之方式之效果亦是很好,只要三個相鄰原始像素中,各分配增值R值,G值以及B值,譬如請見圖7,原始像素31a~31c分別對RGB進行增值,但下一組三個原始像素31d~31f分別對GBR(非以RGB之順序)進行增值,而下一組三個原始像素31g~31i分別對BGR(亦非以RGB之順序)進行增值。In the above-mentioned FIG. 6, the R values, the G values, and the B values are added in a sequential manner by the original pixels 31a to 31i (of course, other sequential methods such as GBR, GRB, RBG, BRG, BGR, etc.) may be added. However, according to the experiment, the effect of not necessarily in a fixed order is also very good, as long as three adjacent original pixels are assigned value-added R value, G value and B value, as shown in FIG. 7, the original pixel 31a~ 31c adds value to RGB, respectively, but the next set of three original pixels 31d~31f respectively add value to GBR (not in RGB order), and the next set of three original pixels 31g~31i respectively to BGR (also not in RGB) The order) adds value.

經過上述之步驟,將原始數位圖像30降低黑色或是完全去K之為轉變數位圖像50之後,譬如列印出來的文件可以由一光筆90來使用。光筆90又稱OID Pen(OID:Optical Index/Optical Identification,譬如參考http://www.giga.com.tw/english/productpen.htm),由於硬體為已知裝置,因此在此不再贅述。請見圖8,語音用列印碼70與轉變數位圖像50被列印在同一位置,雖然讀取語音用列印碼70為黑色,但光筆90讀取語音用列印碼70之成功率大大增加。After the above steps, the original digital image 30 is lowered in black or completely removed to K. After the digital image 50 is converted, for example, the printed document can be used by a light pen 90. The light pen 90 is also called OID Pen (OID: Optical Index/Optical Identification, for example, refer to http://www.giga.com.tw/english/productpen.htm). Since the hardware is a known device, it will not be described here. . Referring to FIG. 8, the voice print code 70 and the transition digital image 50 are printed at the same position. Although the read voice print code 70 is black, the light pen 90 reads the success rate of the voice print code 70. greatly increase.

綜上所陳,本發明無論就目的、手段及功效,在在均顯示其迥異於習知技術之特徵,懇請 貴審查委員明察,早日賜准專利,俾嘉惠社會,實感德便。惟應注意的是,上述諸多實施例僅係為了便於說明而舉例而已,本發明所主張之權利範圍自應以申請專利範圍所述為準,而非僅限於上述實施例。To sum up, the present invention, regardless of its purpose, means and efficacy, shows its distinctive features of the prior art. You are requested to review the examination and express the patent as soon as possible. It should be noted that the various embodiments described above are merely illustrative for ease of explanation, and the scope of the invention is intended to be limited by the scope of the claims.

10,10a...電腦10,10a. . . computer

11...處理器11. . . processor

12...記憶體12. . . Memory

16...印表機16. . . Printer

20...應用程式20. . . application

30...原始數位圖像30. . . Original digital image

50...轉變數位圖像50. . . Transforming digital images

70...語音用列印碼70. . . Voice print code

80...網路80. . . network

81...近端電腦81. . . Near-end computer

90...光筆90. . . Light pen

圖1係應用本發明之環境示意圖之第一實施例。BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a first embodiment of an environmental schematic diagram to which the present invention is applied.

圖2係應用本發明之環境示意圖之第二實施例。2 is a second embodiment of an environmental schematic diagram to which the present invention is applied.

圖3係本發明降低數位圖像中黑色含量之技術及步驟示意圖。3 is a schematic diagram of a technique and a step of reducing the black content in a digital image according to the present invention.

圖4係本發明之流程圖。Figure 4 is a flow chart of the present invention.

圖5係關於原始數位圖像之原始像素的示意圖。Figure 5 is a schematic illustration of the original pixels of the original digital image.

圖6係轉變數位圖像之一實施例示意圖。Figure 6 is a schematic diagram of one embodiment of a transformed digital image.

圖7係轉變數位圖像之另一實施例示意圖。Figure 7 is a schematic illustration of another embodiment of a transition digital image.

圖8係光筆讀取語音用列印碼之示意圖。Fig. 8 is a schematic view showing a print code for reading a voice by a light pen.

步驟401:讀取一原始數位圖像30。Step 401: Read an original digital image 30.

步驟402:以3個相鄰像素為一組,針對3個像素分別進行對R值進行增值,對G值進行增值,以及對B值進行增值。Step 402: Adding 3 adjacent pixels as a group, adding value to the R value for each of the three pixels, adding value to the G value, and adding value to the B value.

步驟403:所有像素處理完畢?Step 403: All pixels are processed?

步驟404:完成轉變數位圖像50。Step 404: Complete the transition digital image 50.

Claims (4)

一種降低數位圖像中黑色含量之方法,係以電腦將一原始數位圖像處理成黑色含量較低或是消除黑色含量,以得到一轉變數位圖像,該方法包括下列步驟:(A)讀取該原始數位圖像,其中該原始數位圖像包括P個原始像素,其中3≦P≦9,000,000,000,各原始像素包括三個色彩資訊,分別為R,G及B,其中R代表紅色值,G代表綠色值,及B代表藍色值,且:0≦R≦F,0≦G≦F,0≦B≦F,其中24 -1≦F≦232 -1;以及(B)將各P個原始像素轉換為對應之各P個轉變像素,其中各轉變像素包括三個色彩資訊,分別為R’,G’及B’,其中R’代表紅色值,G’代表綠色值,及B’代表藍色值,且:0≦R’≦F,0≦G’≦F,0≦B’≦F;其中P個轉變像素具有下述特性:P個轉變像素具有N組轉變像素,其中N為整數且1≦N≦P/3,其中每一組轉變像素包括3個相鄰之轉變像素,該3個相鄰之轉變像素且該3個相鄰之轉變像素分別具有以下特性:特性R1:其中之一轉變像素係由相對應之原始像素之R值進行增值,使得轉變像素之R’值大於或等於相對應之原始像素之R值,且轉變像素之R’值區間為:0.8×F≦R’≦F; 特性G1:其中之一轉變像素係由相對應之原始像素之G值進行增值,使得轉變像素之G’值大於或等於相對應之原始像素之G值,且轉變像素之G’值區間為:0.8×F≦G’≦F;以及特性B1:其中之一轉變像素係由相對應之原始像素之B值進行增值,使得轉變像素之B’值大於或等於相對應之原始像素之B值,且轉變像素之B’值區間為:0.8×F≦B’≦F。A method for reducing the black content in a digital image by processing a raw digital image into a black content or eliminating black content to obtain a converted digital image, the method comprising the following steps: (A) reading Taking the original digital image, wherein the original digital image includes P original pixels, wherein 3 ≦P ≦ 9,000,000,000, each original pixel includes three color information, respectively R, G and B, wherein R represents a red value, G Represents a green value, and B represents a blue value, and: 0≦R≦F, 0≦G≦F, 0≦B≦F, where 2 4 -1≦F≦2 32 -1; and (B) will each P original pixels are converted into corresponding P transition pixels, wherein each transition pixel includes three color information, respectively R', G' and B', wherein R' represents a red value, G' represents a green value, and B ' represents a blue value, and: 0≦R'≦F, 0≦G'≦F, 0≦B'≦F; wherein P transition pixels have the following characteristics: P transition pixels have N sets of transition pixels, wherein N is an integer and 1≦N≦P/3, wherein each set of transition pixels includes 3 adjacent transition pixels, the 3 adjacent transition pixels and the 3 adjacent The transition pixels respectively have the following characteristics: characteristic R1: one of the transition pixels is incremented by the R value of the corresponding original pixel such that the R' value of the transition pixel is greater than or equal to the R value of the corresponding original pixel, and the transition pixel The R' value interval is: 0.8×F≦R′≦F; characteristic G1: one of the transition pixels is incremented by the G value of the corresponding original pixel, so that the G′ value of the converted pixel is greater than or equal to the corresponding one. The G value of the original pixel, and the G' value interval of the transition pixel is: 0.8×F≦G′≦F; and the characteristic B1: one of the transition pixels is incremented by the B value of the corresponding original pixel, so that the transition pixel The B' value is greater than or equal to the B value of the corresponding original pixel, and the B' value interval of the transition pixel is: 0.8×F≦B′≦F. 如申請專利範圍第1項所述之降低數位圖像中黑色含量之方法,其中:特性R1中,更包括:轉變像素之G’值相對應之原始像素之G值關係如下:0.9G≦G’≦1.1G≦F;轉變像素之B’值相對應之原始像素之B值關係如下:0.9B≦B’≦1.1B≦F;特性G1中,更包括:轉變像素之B’值相對應之原始像素之B值關係如下:0.9B≦B’≦1.1B≦F;轉變像素之R’值相對應之原始像素之R值關係如下:0.9R≦R’≦1.1R≦F;以及特性B1中,更包括:轉變像素之R’值相對應之原始像素之R值關係如下:0.9R≦R’≦1.1R≦F;轉變像素之G’值相對應之原始像素之G值關係如下:0.9G≦G’≦1.1G≦F。The method for reducing the black content in the digital image according to the first aspect of the patent application, wherein: the characteristic R1 further includes: the G value of the original pixel corresponding to the G′ value of the transition pixel is as follows: 0.9G≦G '≦1.1G≦F; The B value of the original pixel corresponding to the B' value of the transition pixel is as follows: 0.9B≦B'≦1.1B≦F; in the characteristic G1, it further includes: the B' value of the transition pixel corresponds to The B value relationship of the original pixel is as follows: 0.9B≦B'≦1.1B≦F; the R value of the original pixel corresponding to the R' value of the transition pixel is as follows: 0.9R≦R'≦1.1R≦F; In B1, the relationship between the R values of the original pixels corresponding to the R' value of the transition pixel is as follows: 0.9R ≦ R' ≦ 1.1R ≦ F; the G value of the original pixel corresponding to the G' value of the transition pixel is as follows: :0.9G≦G'≦1.1G≦F. 如申請專利範圍第2項所述之降低數位圖像中黑色含量之方法,其中:特性R1中,R’=F;特性G1中,G’=F;以及特性B1中,B’=F。A method for reducing the black content in a digital image as described in claim 2, wherein: in the characteristic R1, R' = F; in the characteristic G1, G' = F; and in the characteristic B1, B' = F. 如申請專利範圍第3項所述之降低數位圖像中黑色含量之方法,其中:特性R1中,G’=G,B’=B;特性G1中,B’=B,R’=R;以及特性B1中,R’=R,G’=G。A method for reducing the black content in a digital image as described in claim 3, wherein: in the characteristic R1, G'=G, B'=B; in the characteristic G1, B'=B, R'=R; And in the characteristic B1, R'=R, G'=G.
TW99117870A 2010-06-03 2010-06-03 Method of reducing black amount in an image TWI431547B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW99117870A TWI431547B (en) 2010-06-03 2010-06-03 Method of reducing black amount in an image
JP2010293629A JP2011254446A (en) 2010-06-03 2010-12-28 Method for reducing black color contained in digital image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW99117870A TWI431547B (en) 2010-06-03 2010-06-03 Method of reducing black amount in an image

Publications (2)

Publication Number Publication Date
TW201145212A TW201145212A (en) 2011-12-16
TWI431547B true TWI431547B (en) 2014-03-21

Family

ID=45417967

Family Applications (1)

Application Number Title Priority Date Filing Date
TW99117870A TWI431547B (en) 2010-06-03 2010-06-03 Method of reducing black amount in an image

Country Status (2)

Country Link
JP (1) JP2011254446A (en)
TW (1) TWI431547B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115545126A (en) * 2022-04-26 2022-12-30 珠海凯芯微电子科技有限公司 Code spreading method and system for point writing pen image indexes

Also Published As

Publication number Publication date
JP2011254446A (en) 2011-12-15
TW201145212A (en) 2011-12-16

Similar Documents

Publication Publication Date Title
US10136128B2 (en) Cell-based compression with edge detection
JP4217398B2 (en) Image data processing method, image data processing apparatus, storage medium, and program
US20110188750A1 (en) Image processing apparatus and processing method therefor
JP4725336B2 (en) Image processing apparatus and image processing program
US8805069B2 (en) Cell-based compression of digital images
US9129208B2 (en) Method and system for determining an object type from raster data in an image forming apparatus
US8503025B2 (en) Image processing apparatus, image processing method, and computer program product
US9838570B2 (en) Cell-based compression with edge detection and interleaved encoding
CN112000303B (en) Processing method and device capable of realizing watermark printing, electronic equipment and storage medium
US8928936B2 (en) Red-green-blue to monochrome color conversion
TWI431547B (en) Method of reducing black amount in an image
JP4208877B2 (en) Image processing apparatus and method, computer program, and storage medium
US8494261B2 (en) Image processing apparatus, image processing method, and computer-readable medium
US8326034B2 (en) Method of reducing the amount of black in an image
CN102300035B (en) Method for reducing content of black in digital image
US8294951B2 (en) Method of reducing the amount of black in an image
TWI376642B (en) Method of reducing black amount in an image
JP4748525B2 (en) Method and printing apparatus for outputting an image
JP2009199436A (en) Data transfer device, image processor, and image forming apparatus
JP2018137621A (en) Image processing device and program
JP2018093413A (en) Image processing device, image processing method, and image processing program
JP2011135301A (en) Image processor, and image processing program
JP2003324618A (en) Image processing equipment, method and program for image processing
JP2005142922A (en) Image processing device and method therefor, and its program

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees