JP2008067124A - Monochromatic image adjusting device - Google Patents

Monochromatic image adjusting device Download PDF

Info

Publication number
JP2008067124A
JP2008067124A JP2006243606A JP2006243606A JP2008067124A JP 2008067124 A JP2008067124 A JP 2008067124A JP 2006243606 A JP2006243606 A JP 2006243606A JP 2006243606 A JP2006243606 A JP 2006243606A JP 2008067124 A JP2008067124 A JP 2008067124A
Authority
JP
Japan
Prior art keywords
density
monochrome image
image data
density difference
monochrome
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2006243606A
Other languages
Japanese (ja)
Inventor
Tomoyuki Amino
智幸 網野
Yoichi Ito
洋一 伊藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006243606A priority Critical patent/JP2008067124A/en
Publication of JP2008067124A publication Critical patent/JP2008067124A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a monochromatic image adjusting device capable of obtaining a hard copy in which each area colored by different colors in an adjacent area during creating the hard copy after monochromizing color image data can be discriminated. <P>SOLUTION: Whether a difference between density m of one area and density n of the other area is smaller than 64 is checked (S19). If the difference is smaller than 64, it is checked that m is larger than n (S20). If m is larger than n, processing is performed, which adds a designated value to m so as to make the difference larger than 64 (S21). If m is not larger than n, processing is performed, which subtracts a designated value from m so as to make the difference larger than 64 (S22). The density of an area corresponding to m of print data is rewritten to a value of corrected m. This processing is executed between areas adjacent to each other about the whole areas included in the monochromatic print data (step S23). <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、輪郭線で区切られた複数の領域を持ち、互いに隣接する領域同士が異なる色で着色されたモノクロ画像データにおいて、隣接する領域同士の間の色の濃度差を調整するモノクロ画像調整装置に関する。   The present invention provides a monochrome image adjustment for adjusting a color density difference between adjacent regions in monochrome image data having a plurality of regions separated by contour lines and in which adjacent regions are colored with different colors. Relates to the device.

従来、画像処理技術の分野において、カラー画像データをモノクロ画像データに変換する手法が知られている。この手法では、例えば、カラー画像データがRGB形式のカラー画像データである場合、該カラー画像データの有するRGB情報を、所定の変換式に基づいて色の明暗を示す明度(濃度)のみの情報であるグレースケールに変換する色処理の過程を経ることにより、該カラー画像データに対応するモノクロ画像データのハードコピーが、プリンタから出力される(例えば特許文献1参照)。   Conventionally, a technique for converting color image data into monochrome image data is known in the field of image processing technology. In this method, for example, when the color image data is RGB format color image data, the RGB information of the color image data is only information on lightness (density) indicating the brightness of the color based on a predetermined conversion formula. Through a process of color processing for conversion to a certain gray scale, a hard copy of monochrome image data corresponding to the color image data is output from the printer (see, for example, Patent Document 1).

特開2002-262108号公報JP 2002-262108 A

ところで、上述した手法においては、単に、カラー画像データの有するRGB情報をグレースケールに変換する色処理が行われるだけであったので、複数の領域を持ち夫々の領域別に異なる色で着色された画像データから得られるモノクロ画像データのハードコピーに、以下のような問題が生じる場合が多かった。   By the way, in the above-described method, color processing for simply converting RGB information of color image data into grayscale is performed, so an image having a plurality of regions and colored with a different color for each region. The following problems often occur in hard copy of monochrome image data obtained from data.

即ち、パソコン(パーソナルコンピュータ)等の情報処理機器を用いて、例えば棒グラフや円グラフ等の画像や、グラフィカルな図形画像等のような複数の領域を持つ画像データであって、夫々の領域別に異なる色で着色された画像データを作成し、上記手法により該カラー画像データから変換したモノクロ画像データのハードコピーを作成した場合、該ハードコピーの画像が彩色されてないため、(色の違いではなく)明るさの違いだけで、該ハードコピーから夫々の領域を識別し難いことがある。特に、隣接する領域において、夫々の領域に着色された色の濃度が近い場合には、見分けがつかなくなってしまうという問題が生じる。   That is, image data having a plurality of areas such as images such as bar graphs and pie charts and graphical graphic images using an information processing device such as a personal computer (personal computer), and different for each area. When image data colored with color is created and a hard copy of monochrome image data converted from the color image data by the above method is created, the hard copy image is not colored. ) It may be difficult to distinguish each area from the hard copy only by the difference in brightness. In particular, in the adjacent areas, when the density of the color colored in each area is close, there arises a problem that it becomes impossible to distinguish.

従って本発明の目的は、カラー画像データをモノクロ画像データに変換して該モノクロ画像データのハードコピーを作成する場合に、特に隣接する領域において、異なる色で着色された夫々の領域が識別可能なハードコピーが得られるモノクロ画像調整装置を提供することにある。   Accordingly, an object of the present invention is to identify each area colored in a different color, particularly in an adjacent area, when color image data is converted into monochrome image data to create a hard copy of the monochrome image data. An object of the present invention is to provide a monochrome image adjusting apparatus capable of obtaining a hard copy.

本発明に従うモノクロ画像調整装置は、入力されたモノクロ画像データが輪郭線で区切られた複数の領域を持ち、互いに隣接する領域同士が異なる色で着色された図形画像データかどうか判別する判別手段と、上記判別手段が上記モノクロ画像データを上記図形画像データと判別した場合に、上記モノクロ画像データをモノクロ印刷したとき、上記異なる色を各々の色同士の濃度差だけで区別可能なように調整すべきかどうか判断する判断手段と、上記判断手段が上記モノクロ画像データを、上記異なる色を各々の色同士の濃度差だけで区別可能なように調整すべきと判断した場合に、上記輪郭線に基づいて上記各々の領域を検出すると共に検出した各々の領域の色の濃度を検出する検出手段と、上記検出手段により検出された各々の領域の色の濃度に基づいて、各々異なる色で着色された隣接する領域同士の間の濃度差を算出し、その濃度差と所定の濃度差閾値とを比較する比較手段と、上記比較手段による比較の結果、上記濃度差が上記濃度差閾値よりも小さかった場合に、上記濃度差が上記濃度差閾値を上廻るよう上記隣接する領域同士のうちの何れか一方の濃度を補正する補正手段と、を備える。   A monochrome image adjusting apparatus according to the present invention has a determining means for determining whether or not input monochrome image data is graphic image data having a plurality of regions divided by contour lines and regions adjacent to each other are colored in different colors. When the determination unit determines the monochrome image data as the graphic image data, when the monochrome image data is printed in monochrome, the different colors should be adjusted so that they can be distinguished only by the density difference between the colors. And determining means for determining whether or not the monochrome image data should be adjusted so that the different colors can be distinguished only by the density difference between the colors. Detecting means for detecting each of the areas and detecting the color density of each detected area; and for each area detected by the detecting means A comparison means for calculating a density difference between adjacent regions colored with different colors based on the density of the image and comparing the density difference with a predetermined density difference threshold value, and a result of comparison by the comparison means Correction means for correcting the density of any one of the adjacent regions so that the density difference exceeds the density difference threshold when the density difference is smaller than the density difference threshold. .

本発明に係る好適な実施形態では、上記濃度差閾値が、ユーザにより可変調整される。   In a preferred embodiment according to the present invention, the density difference threshold is variably adjusted by the user.

上記とは別の実施形態では、上記補正手段による、上記隣接する領域同士のうちの何れか一方の濃度の補正が、所定の値の、上記隣接する領域同士のうちの何れか一方の濃度への加算、又は上記隣接する領域同士のうちの何れか一方の濃度からの減算により行われる。   In an embodiment different from the above, the correction of the density of any one of the adjacent areas by the correction unit is changed to the density of any one of the adjacent areas having a predetermined value. Or subtraction from the density of any one of the adjacent regions.

また、上記とは別の実施形態では、上記所定の値が、ユーザにより設定される。   In another embodiment different from the above, the predetermined value is set by the user.

更に、上記とは別の実施形態では、上記判断手段による判断が、上記モノクロ画像データをモノクロ印刷したとき、上記異なる色を各々の色同士の濃度差だけで区別可能なように調整すべき旨の指令が外部から与えられたかどうかによって行われる。   Further, in an embodiment different from the above, the determination by the determination means should be adjusted so that the different colors can be distinguished only by the density difference between the colors when the monochrome image data is printed in monochrome. This is done depending on whether the command is given from outside.

本発明によれば、カラー画像データをモノクロ画像データに変換して該モノクロ画像データのハードコピーを作成する場合に、特に隣接する領域において、異なる色で着色された夫々の領域が識別可能なハードコピーが得られるモノクロ画像調整装置を提供することができる。   According to the present invention, when color image data is converted into monochrome image data and a hard copy of the monochrome image data is created, hardware that can identify each region colored with a different color, particularly in adjacent regions. It is possible to provide a monochrome image adjusting apparatus capable of obtaining a copy.

以下、本発明の実施の形態を、図面により詳細に説明する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

以下の説明では、モノクロ画像調整装置として、例えば、パソコン(パーソナルコンピュータ)等のホスト装置、及び該ホスト装置に通信ネットワークを通じて接続されるカラープリンタ、若しくはモノクロプリンタ等のレーザビームプリンタを想定しているが、パソコン、及びプリンタの装置構成自体に、本発明の技術的な特徴はないので、パソコン、及びプリンタの装置構成を記載したブロック図、及びその詳細な説明については、割愛する。   In the following description, for example, a host device such as a personal computer (personal computer) and a laser printer such as a color printer or a monochrome printer connected to the host device via a communication network are assumed as the monochrome image adjusting device. However, since the device configuration itself of the personal computer and the printer does not have the technical features of the present invention, a block diagram describing the device configuration of the personal computer and the printer and a detailed description thereof will be omitted.

図1は、本発明の一実施形態に係るモノクロ画像調整装置を構成するパソコン(パーソナルコンピュータ)が内蔵するプリンタドライバの画面を示す説明図である。   FIG. 1 is an explanatory diagram showing a screen of a printer driver built in a personal computer (personal computer) constituting a monochrome image adjusting apparatus according to an embodiment of the present invention.

図1で示した画面は、パソコンのキーボード等を介してプリンタドライバを起動したとき、該パソコンの表示部に表示されるものである。該プリンタドライバの画面は、図示のように、(印刷に使用される)用紙サイズ、印刷方向、給紙装置、用紙種類、色、割り付け、両面印刷、及び印刷部数等を夫々選択/設定するための領域を含む。カラー印刷か、それともモノクロ印刷かを選択するための色選択領域において、モノクロ印刷が選択されることによって、グラフ印刷を有効にするかどうか(オン/オフ)を選択するためのチェックボックス1が上記画面上に表示される。   The screen shown in FIG. 1 is displayed on the display unit of the personal computer when the printer driver is activated via the keyboard or the like of the personal computer. As shown in the figure, the printer driver screen selects / sets the paper size (used for printing), printing direction, paper feeding device, paper type, color, layout, duplex printing, number of copies, and the like. Including the region. A check box 1 for selecting whether or not to enable graph printing (on / off) by selecting monochrome printing in the color selection region for selecting color printing or monochrome printing is provided above. Displayed on the screen.

また、上記チェックボックス1に加え、グラフ印刷において、夫々が異なる色で着色される、隣接する領域同士の間における濃度差をどの程度まで際立たせるかを決めるための数値を、ユーザが設定するのに使用するステレオバー3も表示される。ステレオバー3により設定される数値については、図3に示すフローチャートにおいて詳述する。ユーザが、上記画面に表示された上記チェックボックス1に、チェック記号を挿入することにより、グラフ印刷が有効になる。ステレオバー3による数値設定は、グラフ印刷が有効になったことによって可能になる。   In addition to the above check box 1, the user sets a numerical value for determining how much the density difference between adjacent regions, which are colored with different colors, is highlighted in graph printing. Also displayed is a stereo bar 3 to be used. The numerical values set by the stereo bar 3 will be described in detail in the flowchart shown in FIG. When the user inserts a check symbol into the check box 1 displayed on the screen, graph printing is enabled. Numerical value setting by the stereo bar 3 becomes possible when the graph printing is enabled.

なお、プリンタドライバにおいて実行される、カラー画像データからの(モノクロの)グレースケール画像データへの変換(Gray変換(R’G’B’→Gray(モノクロ))は、下記により行われる。   Note that the conversion from color image data to (monochrome) grayscale image data (Gray conversion (R′G′B ′ → Gray (monochrome))) performed in the printer driver is performed as follows.

Y=0.299×R’+0.587G’+0.114B’             Y = 0.299 × R ′ + 0.587G ′ + 0.114B ′

また、プリンタドライバにおいて実行される、γ補正(RGB→R’G’B’)は、下記により行われる。   Further, γ correction (RGB → R′G′B ′) executed in the printer driver is performed as follows.

R’: 4.5×R R<0.018
1.099×(R0.45)−0.099 R≧0.018
G’: 4.5×G G<0.018
1.099×(G0.45)−0.099 G≧0.018
B’: 4.5×B B<0.018
1.099×(B0.45)−0.099 B≧0.018
R ': 4.5 x RR <0.018
1.099 × (R 0.45 ) −0.099 R ≧ 0.018
G ': 4.5 × GG <0.018
1.099 × (G 0.45 ) −0.099 G ≧ 0.018
B ': 4.5 × BB <0.018
1.099 × (B 0.45 ) −0.099 B ≧ 0.018

また、プリンタドライバにおいて実行される、RGB→CMYK変換は、下記により行われる。   The RGB → CMYK conversion executed in the printer driver is performed as follows.

C=(1−R−K)/(1−K)
M=(1−G−K)/(1−K)
Y=(1−B−K)/(1−K)
K=min(1−R,1−G,1−B)
C = (1−R−K) / (1−K)
M = (1−G−K) / (1−K)
Y = (1−B−K) / (1−K)
K = min (1-R, 1-G, 1-B)

更に、プリンタドライバにおいて実行される、CMYK→RGB変換は、下記により行われる。   Further, CMYK → RGB conversion executed in the printer driver is performed as follows.

R=1−min(1,C×(1−K)+K)
G=1−min(1,M×(1−K)+K)
B=1−min(1,Y×(1−K)+K)
R = 1-min (1, C x (1-K) + K)
G = 1−min (1, M × (1−K) + K)
B = 1−min (1, Y × (1−K) + K)

図2は、元のカラー画像データを用いて得られたモノクロ画像のハードコピーの一例を示す説明図である。図2に示した例では、夫々が異なる色で着色されている複数の矩形領域を、モノクロ印刷したとき、濃度が近い値をとる順に並べ替えている。従って、図2を参照して明らかなように、隣接する矩形領域同士の間での濃度差が小さいため、夫々の矩形領域の見分けがつき難くなっている。   FIG. 2 is an explanatory diagram showing an example of a hard copy of a monochrome image obtained using original color image data. In the example shown in FIG. 2, a plurality of rectangular regions, each colored with a different color, are rearranged in order of taking close values when monochrome printing is performed. Accordingly, as is apparent with reference to FIG. 2, since the difference in density between adjacent rectangular areas is small, it is difficult to distinguish each rectangular area.

図2において、最上段に位置する帯状の画像のうちの、左端に位置する領域は、R、G、B共に0であるので、黒色で着色されている。その右隣の領域は、R、G共に0で、Bが255であるので、青色で着色されている。また、その右隣の領域は、R、G共に0で、Bが128であるので、やや暗くした青色で着色されている。更に、その右隣である右端に位置する領域は、R、G共に0で、Bが85であるので、更に暗くした青色で着色されている。   In FIG. 2, the region located at the left end of the band-like image located at the uppermost stage is 0 because all of R, G, and B are colored black. The area to the right is colored blue because R and G are both 0 and B is 255. In addition, since the R and G are both 0 and B is 128, the right adjacent region is colored with a slightly dark blue color. Furthermore, the area located at the right end, which is adjacent to the right side, is 0 for both R and G and B for 85, so it is colored in a darker blue color.

次に、上から2段目に位置する帯状の画像のうちの、左端に位置する領域は、Rが255で、G、B共に0であるので、赤色で着色されている。その右隣の領域は、Gが128で、R、B共に0であるので、やや暗い緑色で着色されている。また、その右隣の領域は、G、B共に128で、Rが0であるので、緑がかった青色で着色されている。更に、その右隣である右端に位置する領域は、R、G、B共に85であるので、灰色で着色されている。   Next, the area located at the left end of the band-like image located in the second row from the top is colored red because R is 255 and G and B are both 0. The area on the right is G, which is 128 and R and B are 0, so it is colored a little dark green. Also, the region on the right side is 128 for both G and B, and R is 0, so it is colored greenish blue. Furthermore, since the region located at the right end, which is adjacent to the right, is 85 for all of R, G, and B, it is colored in gray.

本実施形態では、隣接する領域同士の見分けがつくように、隣接する領域の各々に着色された色同士の関係を見て、両者の間に濃度差がつくよう、どちらか一方の領域の色のR、G、B値が修正される。本実施形態では、この上から2段目に位置する帯状の画像データを用いて検証を行っている。   In this embodiment, in order to distinguish between adjacent regions, the color of either region is determined so that a density difference is created between the two regions by looking at the relationship between the colors colored in each of the adjacent regions. R, G, and B values are modified. In the present embodiment, the verification is performed using the band-shaped image data located in the second stage from the top.

なお、上から3段目以下の各画像データの詳細については、説明を割愛するが、最下段に位置する帯状の画像データにおいて、左端に位置する領域は、緑色で着色されており、その右隣の領域は、黄色で着色されている。更に、その右端に位置する領域は、白色(背景色)である。   Note that the details of the image data in the third and lower stages from the top are omitted, but in the strip-shaped image data located at the bottom, the area located at the left end is colored green, The adjacent area is colored yellow. Furthermore, the area located at the right end is white (background color).

図3は、本発明の一実施形態に係るモノクロ画像調整装置におけるモノクロ印刷データの色調変換方法を示すフローチャートである。   FIG. 3 is a flowchart showing a color conversion method for monochrome print data in the monochrome image adjustment apparatus according to the embodiment of the present invention.

図3において、まず、プリンタが、通信ネットワークを通じてホスト装置からファイル形式で送信されてくるモノクロ印刷データを受信する。上記モノクロ印刷データは、従来の、単にカラー画像データをモノクロ画像データ(モノクロの単なる濃度のデータであって、色の違いが濃度の違いとして明確に表現されていない)に変換しただけの色処理しか行われていない画像データである。上記モノクロ印刷データには、ヘッダ情報と、画像データとが含まれており、ヘッダ情報には、グラフ印刷のオン/オフ(グラフ印刷を行うか否か)を示す情報と、グラフ印刷における濃度差調整の度合に係わる情報とが含まれている(ステップS11)。   In FIG. 3, first, the printer receives monochrome print data transmitted in a file format from the host device through the communication network. The monochrome print data is a conventional color process in which color image data is simply converted into monochrome image data (monochrome simple density data, and color differences are not clearly expressed as density differences). It is image data that has only been performed. The monochrome print data includes header information and image data. The header information includes information indicating graph printing on / off (whether or not to perform graph printing) and a density difference in graph printing. Information on the degree of adjustment is included (step S11).

次に、プリンタでは、上記ヘッダ情報をチェックすることにより、グラフ印刷がオンになっているかどうかを確認する(ステップS12)。このチェックの結果、グラフ印刷がオンになっていなければ(ステップS12でNO)、上記モノクロ印刷データに基づき、そのまま印刷処理を実行すればよい。よって、CMYK(シアン、マゼンタ、イエロー、黒)変換の処理、即ち、シアン、マゼンタ、イエロー、黒のインクのうちの、どのインクを使用して白黒画像を印刷するか、換言すれば、各色(CMYK)のインクのドットを打つ/打たないを決めるハーフトーニング処理を行う(ステップS13)。そして、印刷ヘッドを駆動して上記モノクロ印刷データの印刷処理を行う(ステップS14)。   Next, the printer checks whether the graph printing is turned on by checking the header information (step S12). If the graph printing is not turned on as a result of this check (NO in step S12), the printing process may be executed as it is based on the monochrome print data. Therefore, CMYK (cyan, magenta, yellow, black) conversion processing, that is, which of the cyan, magenta, yellow, and black inks is used to print a monochrome image, in other words, each color ( A halftoning process for determining whether or not to hit the ink dots of CMYK) is performed (step S13). Then, the print head is driven to print the monochrome print data (step S14).

一方、グラフ印刷がオンになっているかどうかのチェックの結果、グラフ印刷がオンになっていれば(ステップS12でYES)、エンドオブファイル(ファイル形式の印刷データの最後のファイル)まで本フローチャートに示す色調変換方法に係わる一連の処理を行ったかどうかチェックする(ステップS15)。このチェックの結果、エンドオブファイルまで本フローチャートに示す色調変換方法に係わる一連の処理を行っていれば、モノクロ印刷データの端部の領域と、そうではない領域との間の濃度上の差異を際立たせる処理を行う必要性がないので(ステップS15でYES)、上述したステップS13で示す処理動作に移行する。一方、該チェックの結果、エンドオブファイルまで上記一連の処理を行っていなければ(ステップS15でNO)、各々の領域の輪郭を構成する輪郭線の黒線を検出すると共に、検出した輪郭線を挟んで両側に位置する濃度の固まり(即ち、黒線で輪郭が縁取られている領域)の濃度を検出する。   On the other hand, as a result of checking whether or not the graph printing is turned on, if the graph printing is turned on (YES in step S12), the flowchart shows up to the end of file (the last file of the print data in the file format). It is checked whether a series of processing relating to the color tone conversion method has been performed (step S15). As a result of this check, if the series of processing related to the color tone conversion method shown in this flowchart is performed up to the end of file, the difference in density between the edge area of the monochrome print data and the area that does not stand out. Since there is no need to perform the processing to be performed (YES in step S15), the process proceeds to the processing operation shown in step S13 described above. On the other hand, as a result of the check, if the above-described series of processing is not performed up to the end of file (NO in step S15), the black lines of the contour lines constituting the contours of the respective areas are detected and the detected contour lines are sandwiched. Then, the density of the density clusters located on both sides (that is, the area whose outline is outlined by the black line) is detected.

そして、検出した、該黒線を挟んだ一方の領域の濃度をn(0から256段階に区分される何れかの値)とする(ステップS16)。次に、検出した、該黒線を挟んだ他方の領域の濃度をm(0から256段階に区分される、上記nの値を除く何れかの値)とすると共に(ステップS17)、mが背景色を示す255(紙の色:通常は真っ白:最も明るい色)か、又はエンドオブファイル(隣接する領域が無い)のデータかをチェックする。ここで、m、nとは、夫々の領域の着色された色の濃度を示す変数である(ステップS18)。   Then, the detected density of one region sandwiching the black line is set to n (any value divided from 0 to 256 levels) (step S16). Next, the detected density of the other region sandwiching the black line is set to m (any value except for the value of n, which is divided into 0 to 256 levels) (step S17), and m is It is checked whether the data is 255 indicating the background color (paper color: normally white: the brightest color) or end-of-file (no adjacent area) data. Here, m and n are variables indicating the density of the colored color in each region (step S18).

このチェックの結果、mが背景色、又はエンドオブファイルの何れかであれば(ステップS18でYES)、上述したステップS15で示した処理動作に移行する。上記チェックの結果、mが背景色、及びエンドオブファイルの何れでもなければ(ステップS18でNO)、上記他方の領域の濃度m(の絶対値)と、上記一方の領域の濃度n(の絶対値)との差分(濃度差の絶対値)が、所定の値、即ち、黒線を挟んだ上記双方の領域を区別し得るか否かの閾値(境界値)である64より小さいかどうかチェックする。この64という値は、0から256段階まである濃度値の1/4(25%)の値であり、mとnとの差分値が、64よりも小さければ、上記双方の領域を区別し難い濃度差であることを示し、mとnとの差分値が、64よりも大きければ、上記双方の領域を区別し得る濃度差であることを示している(ステップS19)。   If m is either the background color or the end-of-file as a result of this check (YES in step S18), the process proceeds to the above-described step S15. If m is neither the background color nor the end-of-file as a result of the check (NO in step S18), the density m (absolute value) of the other area and the density n (absolute value of the one area) ) (Absolute value of the density difference) is smaller than a predetermined value, that is, 64, which is a threshold value (boundary value) indicating whether or not both of the above-described regions sandwiching the black line can be distinguished. . The value 64 is 1/4 (25%) of a density value from 0 to 256 levels. If the difference value between m and n is smaller than 64, it is difficult to distinguish the above two areas. This indicates a density difference. If the difference value between m and n is larger than 64, it indicates that the density difference can be distinguished between the two areas (step S19).

該チェックの結果、mとnとの差分値が、64よりも小さければ(ステップS19でYES)、次に、m>nかどうかチェックする(ステップS20)。このチェックの結果、m>nであれば(ステップS20でYES)、mとnとの差分値が、64よりも大きな値になるよう、指定値をmに加算する処理を行う(ステップS21)。上記チェックの結果、m>nでなければ(ステップS20でNO)、nとmとの差分値が、64よりも大きな値になるよう、上記と同じ指定値をmから減算する処理を行う(ステップS22)。ステップS21、ステップS22において、mに指定値を加算したり、mから指定値を減算したりする理由は、mが濃度調整の対象になっているためである。ここで、指定値とは、隣接する領域同士の間の、濃度差の度合を示す値であり、ユーザがパソコン等の表示部に表示されるプリンタドライバの画面上のステレオバー(図1にて示した)を操作して決める任意の値である。   If the difference between m and n is smaller than 64 as a result of the check (YES in step S19), then it is checked whether m> n (step S20). As a result of this check, if m> n (YES in step S20), a process of adding a designated value to m is performed so that the difference value between m and n is larger than 64 (step S21). . As a result of the check, if m> n is not satisfied (NO in step S20), the same designated value as above is subtracted from m so that the difference value between n and m is larger than 64 ( Step S22). In step S21 and step S22, the reason why the designated value is added to m or the designated value is subtracted from m is that m is the object of density adjustment. Here, the designated value is a value indicating the degree of density difference between adjacent areas, and a stereo bar on the screen of the printer driver displayed on a display unit such as a personal computer by the user (in FIG. 1). It is an arbitrary value determined by operating (shown).

ステップS21で示した処理動作、又はステップS22で示した処理動作が終了すると、印刷データのmに対応する領域の濃度を、上述した処理動作によって修正した後のmの値に書き換える。この処理は、モノクロ印刷デ−タに含まれる全ての領域について、互いに隣接する領域同士の間で実行される。即ち、全ての隣接する領域の色を比較して、両者の間の濃度差が或る値よりも小さければ、該濃度差を大きくするような処理を、モノクロ印刷データに含まれる全ての領域に亘って実行する(ステップS23)。次に、上述したm(上記修正された後のm)の濃度値を持つ領域に隣接する次の領域について、該領域におけると同様の処理を行うため、該領域の濃度値を、上述したnの濃度値を持つ領域とし、該領域に隣接する次の領域の濃度値をmとした後に(ステップS24)、上述したステップS17で示した処理動作に移行する。   When the processing operation shown in step S21 or the processing operation shown in step S22 is completed, the density of the area corresponding to m of the print data is rewritten to the value of m corrected by the processing operation described above. This process is executed between adjacent areas for all areas included in the monochrome print data. That is, the colors of all adjacent areas are compared, and if the density difference between the two is smaller than a certain value, a process for increasing the density difference is applied to all areas included in the monochrome print data. (Step S23). Next, for the next area adjacent to the area having the density value of m (m after the above correction), the same processing as that in the area is performed. After setting the density value of the next area adjacent to the area to m (step S24), the process proceeds to the processing operation shown in step S17 described above.

一方、mとnとの差分値が64よりも小さいかどうかをチェックした結果、該差分値が、64よりも大きければ(ステップS19でNO)、m、及びnの値について、ステップS20〜ステップS23で示した修正処理を行う必要がないので、直ちに、上記mの濃度値を持つ領域の隣接領域について、上述したステップS17以降の処理動作を実行すべく、ステップS24で示した処理動作を行ってから、ステップS17で示した処理動作に移行する。   On the other hand, as a result of checking whether or not the difference value between m and n is smaller than 64, if the difference value is larger than 64 (NO in step S19), the values of m and n are step S20 to step S20. Since it is not necessary to perform the correction processing shown in S23, the processing operation shown in step S24 is immediately performed to execute the processing operation in step S17 and subsequent steps on the adjacent region having the density value of m. Then, the process proceeds to the processing operation shown in step S17.

上述したフローチャートでは、黒線を挟んだ上記双方の領域を区別し得るか否かの閾値(境界値)を64として説明したが、該閾値は必ずしも64に限定されるものではなく、該閾値として、別の値を設定しても良いし、或いは、上述したステレオバー3の操作によりユーザによって設定される指定ちと同様に、ユーザにより設定できるようにしても良い。   In the above-described flowchart, the threshold value (boundary value) indicating whether or not the above two regions across the black line can be distinguished is described as 64. However, the threshold value is not necessarily limited to 64. Alternatively, another value may be set, or it may be set by the user in the same manner as the designation set by the user by operating the stereo bar 3 described above.

以上説明したように、本発明の一実施形態によれば、カラー画像データをモノクロ画像データに変換して該モノクロ画像データのハードコピーを作成する場合に、特に隣接する領域において、異なる色で着色された夫々の領域が識別可能なハードコピーを得ることができる。   As described above, according to an embodiment of the present invention, when color image data is converted to monochrome image data and a hard copy of the monochrome image data is created, coloring is performed in different colors, particularly in adjacent regions. It is possible to obtain a hard copy in which each of the recorded areas can be identified.

以上、本発明の好適な実施形態を説明したが、これは本発明の説明のための例示であって、本発明の範囲をこの実施形態にのみ限定する趣旨ではない。本発明は、他の種々の形態でも実施することが可能である。本実施形態では、パソコンから出力されるモノクロ印刷データを受けて、プリンタ側で隣接する領域同士の間で見分けがつくよう、隣接する領域同士の間の濃度差を際立たせるデータ処理を行う点を例にとって説明したが、プリンタ以外の画像処理装置にも、本発明は適用が可能である。即ち、画像処理装置において、上記データ処理を経て隣接する領域同士の間の濃度差を際立たせた後のモノクロ印刷データを蓄積しておき、後で印刷や印刷以外の処理に使用するようにしても良い。   The preferred embodiment of the present invention has been described above, but this is an example for explaining the present invention, and the scope of the present invention is not limited to this embodiment. The present invention can be implemented in various other forms. In the present embodiment, monochrome printing data output from a personal computer is received, and data processing is performed to make the density difference between adjacent regions stand out so that the printer can distinguish between adjacent regions. Although described as an example, the present invention can be applied to an image processing apparatus other than a printer. That is, in the image processing apparatus, monochrome print data after the density difference between adjacent areas is made to stand out through the above data processing is accumulated and used later for processing other than printing and printing. Also good.

また、上述した各領域毎に、文字等によって何のデータかを示す説明が付いている場合には、隣接する領域同士の間において、上記濃度差を際立たせる修正が行われた場合には、文字等の濃度も同時に修正されるから問題は生じない。しかし、上記文字等による説明に代えて、別に、凡例により上記説明がなされている場合には、上記濃度差を際立たせる修正が行われると、凡例の色と上記領域の色とがずれてしまう。そこで、上記領域における、上記濃度差を際立たせる修正が行われた場合には、それと同期して、凡例の色も変更できるようにしても良い。   In addition, when each region described above is accompanied by an explanation indicating what data is written by characters or the like, when correction that makes the above-described density difference conspicuous between adjacent regions is performed, There is no problem because the density of characters and the like is also corrected. However, instead of the description using the characters and the like, if the above description is made with a legend, the color of the legend and the color of the region will be shifted if correction that makes the density difference stand out. . Therefore, when a correction that makes the density difference stand out in the area is performed, the color of the legend may be changed in synchronization therewith.

また、モノクロ印刷データに、模様を付けるためにマスクをかけて、異なる色が着色された隣接する領域同士を、濃度差だけではなく、模様の違いによっても区別できるようにしても良い。   In addition, the monochrome print data may be masked to give a pattern so that adjacent regions colored in different colors can be distinguished not only by the density difference but also by the difference in the pattern.

更に、モノクロ印刷データに、隣接する領域同士で異なるパターンを付与することによっても、各領域同士の間で、より差を際立たせることができる。   Furthermore, even if different patterns are given to adjacent areas in the monochrome print data, the difference between the areas can be made more conspicuous.

本発明の一実施形態に係るモノクロ画像調整装置を構成するパソコンが内蔵するプリンタドライバの画面を示す説明図。FIG. 3 is an explanatory diagram showing a screen of a printer driver built in a personal computer that constitutes a monochrome image adjustment apparatus according to an embodiment of the present invention. 元のカラー画像データを用いて得られたモノクロ画像のハードコピーの一例を示す説明図。FIG. 3 is an explanatory diagram illustrating an example of a hard copy of a monochrome image obtained using original color image data. 本発明の一実施形態に係るモノクロ画像調整装置におけるモノクロ印刷データの色調変換方法を示すフローチャート。6 is a flowchart showing a monochrome print data color tone conversion method in the monochrome image adjustment apparatus according to the embodiment of the present invention.

符号の説明Explanation of symbols

1 チェックボックス1
3 ステレオバー
1 Check box 1
3 Stereo bar

Claims (5)

入力されたモノクロ画像データが輪郭線で区切られた複数の領域を持ち、互いに隣接する領域同士が異なる色で着色された図形画像データかどうか判別する判別手段と、
前記判別手段が前記モノクロ画像データを前記図形画像データと判別した場合に、前記モノクロ画像データをモノクロ印刷したとき、前記異なる色を各々の色同士の濃度差だけで区別可能なように調整すべきかどうか判断する判断手段と、
前記判断手段が前記モノクロ画像データを、前記異なる色を各々の色同士の濃度差だけで区別可能なように調整すべきと判断した場合に、前記輪郭線に基づいて前記各々の領域を検出すると共に検出した各々の領域の色の濃度を検出する検出手段と、
前記検出手段により検出された各々の領域の色の濃度に基づいて、各々異なる色で着色された隣接する領域同士の間の濃度差を算出し、該濃度差と所定の濃度差閾値とを比較する比較手段と、
前記比較手段による比較の結果、前記濃度差が前記濃度差閾値よりも小さかった場合に、前記濃度差が前記濃度差閾値を上廻るよう前記隣接する領域同士のうちの何れか一方の濃度を補正する補正手段と、
を備えるモノクロ画像調整装置。
Determining means for determining whether or not the input monochrome image data is graphic image data having a plurality of regions separated by outlines, and regions adjacent to each other are colored in different colors;
Should the discrimination means discriminate the monochrome image data from the graphic image data, when the monochrome image data is printed in monochrome, should the different colors be adjusted so that they can be distinguished only by the density difference between the colors? Judgment means for judging whether or not
When the determination means determines that the monochrome image data should be adjusted so that the different colors can be distinguished only by the density difference between the colors, the areas are detected based on the contour lines. Detecting means for detecting the color density of each region detected together with,
Based on the color density of each area detected by the detection means, a density difference between adjacent areas colored with different colors is calculated, and the density difference is compared with a predetermined density difference threshold value. Comparing means to
If the density difference is smaller than the density difference threshold as a result of the comparison by the comparing means, the density of any one of the adjacent regions is corrected so that the density difference exceeds the density difference threshold. Correction means to
Monochrome image adjustment device comprising:
請求項1記載のモノクロ画像調整装置において、
前記濃度差閾値が、ユーザにより可変調整されるモノクロ画像調整装置。
The monochrome image adjustment apparatus according to claim 1,
A monochrome image adjusting apparatus in which the density difference threshold is variably adjusted by a user.
請求項1記載のモノクロ画像調整装置において、
前記補正手段による、前記隣接する領域同士のうちの何れか一方の濃度の補正が、所定の値の、前記隣接する領域同士のうちの何れか一方の濃度への加算、又は前記隣接する領域同士のうちの何れか一方の濃度からの減算により行われるモノクロ画像調整装置。
The monochrome image adjustment apparatus according to claim 1,
The correction of the density of any one of the adjacent areas by the correcting unit is performed by adding a predetermined value to the density of any one of the adjacent areas, or between the adjacent areas. Monochrome image adjustment device that is performed by subtraction from the density of any one of the above.
請求項3記載のモノクロ画像調整装置において、
前記所定の値が、ユーザにより設定されるモノクロ画像調整装置。
The monochrome image adjustment apparatus according to claim 3, wherein
A monochrome image adjusting apparatus in which the predetermined value is set by a user.
請求項1記載のモノクロ画像調整装置において、
前記判断手段による判断が、前記モノクロ画像データをモノクロ印刷したとき、前記異なる色を各々の色同士の濃度差だけで区別可能なように調整すべき旨の指令が外部から与えられたかどうかによって行われるモノクロ画像調整装置。
The monochrome image adjustment apparatus according to claim 1,
The determination by the determination means is performed based on whether or not an instruction is given from the outside that when the monochrome image data is printed in monochrome, the different colors should be adjusted so as to be distinguishable only by the density difference between the colors. Monochrome image adjustment device.
JP2006243606A 2006-09-08 2006-09-08 Monochromatic image adjusting device Pending JP2008067124A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006243606A JP2008067124A (en) 2006-09-08 2006-09-08 Monochromatic image adjusting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006243606A JP2008067124A (en) 2006-09-08 2006-09-08 Monochromatic image adjusting device

Publications (1)

Publication Number Publication Date
JP2008067124A true JP2008067124A (en) 2008-03-21

Family

ID=39289417

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006243606A Pending JP2008067124A (en) 2006-09-08 2006-09-08 Monochromatic image adjusting device

Country Status (1)

Country Link
JP (1) JP2008067124A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013077961A (en) * 2011-09-30 2013-04-25 Sharp Corp Image forming apparatus and printer driver program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013077961A (en) * 2011-09-30 2013-04-25 Sharp Corp Image forming apparatus and printer driver program

Similar Documents

Publication Publication Date Title
JP5553139B2 (en) Image processing apparatus and image processing program
JP4285127B2 (en) Color reduction processing apparatus and color reduction processing method
US8355175B2 (en) Image forming apparatus capable of reproducing fine line of high quality
JP5671978B2 (en) Image processing method, image processing apparatus, image processing program, and recording medium
JP2009044616A (en) Image processing apparatus and image processing method
JP4848235B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2005316237A (en) Print control unit, print control method, and print control program
JP4569702B2 (en) Image forming apparatus, line width control method, and line width control program
JP2007088741A (en) Image processing apparatus and image processing method
JP2008067124A (en) Monochromatic image adjusting device
EP2375720B1 (en) Image processor
JP4797840B2 (en) Image processing apparatus and image processing method
US10798267B2 (en) Image processing to set output pixel values subject to edge or thin line correction
JP2006260532A (en) Image forming apparatus and method
JP2015051610A (en) Image forming apparatus and image processing method in image forming apparatus
US20030030857A1 (en) Image processing method and image output apparatus
US11563871B2 (en) Information processing apparatus, control method, and product performing multiplexing processing changing a component in different color spaces with respect to printing and non-printing areas
JP5662768B2 (en) Image processing apparatus and image processing method
JP2006260533A (en) Image forming apparatus and method
JP5790000B2 (en) Printing apparatus and printing method therefor
JP2007055032A (en) Printing device
JP2006287603A (en) Mesh point region discrimination apparatus and mesh point region discrimination program
JP2020044673A (en) Printer
JP2019145933A (en) Image processing apparatus
JP2011130105A (en) Image processing apparatus