JP2012060212A - Image processor and program - Google Patents

Image processor and program Download PDF

Info

Publication number
JP2012060212A
JP2012060212A JP2010198609A JP2010198609A JP2012060212A JP 2012060212 A JP2012060212 A JP 2012060212A JP 2010198609 A JP2010198609 A JP 2010198609A JP 2010198609 A JP2010198609 A JP 2010198609A JP 2012060212 A JP2012060212 A JP 2012060212A
Authority
JP
Japan
Prior art keywords
color
color conversion
dropout
processing
pixel
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.)
Granted
Application number
JP2010198609A
Other languages
Japanese (ja)
Other versions
JP5644282B2 (en
Inventor
Junji Tomohiro
淳二 友廣
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 JP2010198609A priority Critical patent/JP5644282B2/en
Publication of JP2012060212A publication Critical patent/JP2012060212A/en
Application granted granted Critical
Publication of JP5644282B2 publication Critical patent/JP5644282B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an image processor capable of performing color conversion appropriately in each of dropout processing and emphasis processing.SOLUTION: For a pixel subjected to dropout, color conversion processing for dropout is executed which includes processing to convert a pixel value of a target pixel using an operation expression in which a coefficient for the dropout processing is set (S140), and for a pixel subjected to emphasis processing, color conversion processing for emphasis is executed including processing to replace a pixel value of a pixel of a target color with a pixel value of black for emphasis processing (S150). Thereby, conversion processing is performed by using a different technique corresponding to each of the dropout processing and emphasis processing, thus it is possible to perform color conversion more appropriately.

Description

本発明は、色変換処理により画像データを処理する画像処理装置およびプログラムに関する。   The present invention relates to an image processing apparatus and program for processing image data by color conversion processing.

従来より、この種の画像処理装置としては、カラー画像からドロップアウト対象として指定された色の画素を検出し、検出した画素の色を背景画素の色に置換することでドロップアウト処理を行なうものが提案されている(例えば、特許文献1参照)。また、カラー画像から強調対象として指定された色の画素を検出し、検出した画素の色を予め設定された強調色に置換することで強調処理を行なうものも提案されている(例えば、特許文献2参照)。   Conventionally, this type of image processing apparatus detects a pixel of a color designated as a dropout target from a color image, and performs a dropout process by replacing the detected pixel color with a background pixel color. Has been proposed (see, for example, Patent Document 1). In addition, there has been proposed a technique for performing enhancement processing by detecting a pixel of a color designated as an enhancement target from a color image and replacing the color of the detected pixel with a preset enhancement color (for example, Patent Documents). 2).

特開2006−339874号公報JP 2006-339874 A 特開2007−81882号公報JP 2007-81882 A

上述した各装置は、いずれもカラー画像に対してドロップアウト処理や強調処理を個別に行なうものを前提としているから、ドロップアウト処理と強調処理とを共に行なう際などに両処理に上述した置換による手法を用いると色変換が適切になされない場合がある。   Since each of the above-described devices is premised on performing a dropout process and an emphasis process individually on a color image, the above-described replacement is used for both processes when performing both a dropout process and an emphasis process. If the method is used, color conversion may not be performed properly.

本発明の画像処理装置およびプログラムは、ドロップアウト処理と強調処理とのそれぞれの処理においてより適切に色変換できるようにすることを主目的とする。   The main object of the image processing apparatus and program of the present invention is to enable more appropriate color conversion in each of the dropout process and the enhancement process.

本発明の画像処理装置およびプログラムは、上述の主目的を達成するために以下の手段を採った。   The image processing apparatus and program of the present invention employ the following means in order to achieve the main object described above.

本発明の画像処理装置は、
色変換処理により画像データを処理する画像処理装置であって、
前記色変換処理としてドロップアウト処理と強調処理のいずれかの処理種の指定を伴って色変換の対象色の指定を受け付ける指定受付手段と、
所定の係数が設定された演算式を用いて前記対象色の画素の画素値を変換することにより色変換する第1の色変換手段と、
前記対象色の画素の画素値を所定の画素値に置き換えることにより色変換する第2の色変換手段と、
前記ドロップアウト処理が指定された場合には、前記所定の係数としてドロップアウト処理用の係数を用いて前記第1の色変換手段を実行し、前記強調処理が指定された場合には、前記所定の画素値として強調処理用の画素値を用いて前記第2の色変換手段を実行する色変換実行手段と
を備えることを要旨とする。
The image processing apparatus of the present invention
An image processing apparatus that processes image data by color conversion processing,
A designation receiving means for accepting designation of a target color for color conversion with designation of a processing type of either dropout processing or enhancement processing as the color conversion processing;
First color conversion means for performing color conversion by converting a pixel value of a pixel of the target color using an arithmetic expression in which a predetermined coefficient is set;
Second color conversion means for performing color conversion by replacing a pixel value of a pixel of the target color with a predetermined pixel value;
When the dropout process is specified, the first color conversion unit is executed using a coefficient for dropout processing as the predetermined coefficient. When the enhancement process is specified, the predetermined And a color conversion execution unit that executes the second color conversion unit using a pixel value for emphasis processing as the pixel value.

この本発明の画像処理装置では、ドロップアウト処理が指定された場合には、所定の係数としてドロップアウト処理用の係数が設定された演算式を用いて対象色の画素の画素値を変換することにより色変換する第1の色変換手段を実行し、強調処理が指定された場合には、所定の画素値として強調処理用の画素値に対象色の画素の画素値を置き換えることにより色変換する第2の色変換手段を実行する。これにより、ドロップアウト処理と強調処理とをそれぞれ異なる処理とすることができるから、ドロップアウト処理と強調処理とのそれぞれの処理においてより適切に色変換することができるようになる。   In the image processing apparatus of the present invention, when dropout processing is designated, the pixel value of the target color pixel is converted using an arithmetic expression in which a coefficient for dropout processing is set as a predetermined coefficient. When the first color conversion means for color conversion is executed and enhancement processing is designated, color conversion is performed by replacing the pixel value of the target color pixel with the pixel value for enhancement processing as a predetermined pixel value. The second color conversion means is executed. Thereby, since the dropout process and the enhancement process can be made different from each other, color conversion can be performed more appropriately in each of the dropout process and the enhancement process.

前記画像データとして複数の色成分で構成されるカラーの画像データを処理する本発明の画像処理装置において、前記第1の色変換手段は、前記所定の係数として各色成分に対する重み付けが振り分けられた係数を用いると共に前記演算式として前記所定の係数を前記各色成分の画素値に乗じて加算した値を該各色成分の新たな画素値とする式を用いて前記色変換する手段であり、前記色変換実行手段は、前記ドロップアウト処理用の係数として、前記対象色を構成する各色成分のうち画素値の大きな色成分ほど前記重み付けが重くなるよう設定された係数を用いて前記第1の色変換手段を実行する手段であるものとすることもできる。こうすれば、対象色を構成する色成分に応じた色変換を行なうことができるから、色変換の対象色に応じてより適切なドロップアウト処理の効果を得ることができる。この態様の本発明の画像処理装置において、前記ドロップアウト処理の強度の調整を受け付ける強度調整受付手段を備え、前記色変換実行手段は、前記受け付けられた強度が高いほど前記重み付けの重みが増すよう前記ドロップアウト処理用の係数を補正して前記第1の色変換手段を実行する手段であるものとすることもできる。こうすれば、ユーザーは強度を調整することで、ドロップアウト処理の効果を調整することができる。また、この態様の本発明の画像処理装置において、前記ドロップアウト処理の感度の調整を受け付ける感度調整受付手段を備え、前記色変換実行手段は、前記受け付けられた感度が高いほど前記対象色の各色成分の画素値が高くなるよう補正して該補正後の画素値に対して前記第1の色変換手段を実行する手段であるものとすることもできる。こうすれば、ユーザーは感度を調整することで、ドロップアウト処理の効果を調整することができる。   In the image processing apparatus of the present invention that processes color image data composed of a plurality of color components as the image data, the first color conversion means is a coefficient in which a weight for each color component is distributed as the predetermined coefficient. And the color conversion using the equation that uses a value obtained by multiplying the pixel value of each color component by the predetermined coefficient as a new pixel value of each color component. The execution means uses the first color conversion means by using a coefficient set so that the color component having a larger pixel value among the color components constituting the target color becomes heavier as the coefficient for the dropout processing. It can also be a means for executing. By so doing, it is possible to perform color conversion in accordance with the color components constituting the target color, so that it is possible to obtain a more appropriate dropout processing effect in accordance with the target color for color conversion. The image processing apparatus according to the aspect of the present invention further includes an intensity adjustment receiving unit that receives an adjustment of the intensity of the dropout process, and the color conversion execution unit increases the weighting weight as the received intensity increases. The first color conversion unit may be executed by correcting the dropout processing coefficient. In this way, the user can adjust the effect of the dropout process by adjusting the strength. The image processing apparatus according to the aspect of the present invention further includes a sensitivity adjustment reception unit that receives adjustment of sensitivity of the dropout process, and the color conversion execution unit increases each received color of the target color as the received sensitivity increases. It is also possible to correct the component pixel value so as to increase the pixel value of the component and to execute the first color conversion unit on the corrected pixel value. In this way, the user can adjust the effect of the dropout process by adjusting the sensitivity.

また、前記画像データとして複数の色成分で構成されるカラーの画像データを処理する本発明の画像処理装置において、前記色変換実行手段は、前記強調処理用の画素値として、各色成分の画素値が最小となるよう定められた値を用いて前記第2の色変換手段を実行する手段であるものとすることもできる。これにより、強調処理の対象は黒色に置換されることになる。ここで、強調処理の対象は文字などが多いから、黒色に置換することにより文字の視認性をより向上させることができ、より適切な強調処理の効果を得ることができる。この態様の本発明の画像処理装置において、前記色変換実行手段は、前記強調処理が指定された場合には、前記対象色に該当する画素のうち明度が所定の閾値以上の画素を対象から除外し明度が該所定の閾値未満の画素を対象として前記第2の色変換手段を実行する手段であるものとすることもできる。こうすれば、強調処理の対象となる文字などの色と背景の色が同じ色であっても、通常は背景の色は強調処理の対象の文字などの色に比べて明度が高いことが多いから、強調処理の対象から背景を適切に除外することができる。これにより、強調処理の対象となる文字などが背景と共に強調されるのを防止することができる。   Further, in the image processing apparatus of the present invention that processes color image data composed of a plurality of color components as the image data, the color conversion execution means uses the pixel value of each color component as the pixel value for the enhancement processing. Further, the second color conversion means may be executed by using a value determined so as to be minimum. As a result, the target of the enhancement process is replaced with black. Here, since there are many characters or the like as objects of the emphasis process, the visibility of the characters can be further improved by replacing with black, and a more appropriate effect of the emphasis process can be obtained. In the image processing apparatus according to the aspect of the present invention, the color conversion execution unit excludes, from the target, pixels whose brightness is equal to or higher than a predetermined threshold among the pixels corresponding to the target color when the enhancement processing is designated. However, the second color conversion means may be executed for pixels whose brightness is less than the predetermined threshold. In this way, even if the color of the character to be emphasized and the background color are the same color, the background color usually has a higher lightness than the color of the character to be emphasized. Therefore, the background can be appropriately excluded from the objects of the enhancement process. Thereby, it is possible to prevent the characters to be emphasized from being emphasized together with the background.

本発明のプログラムは、コンピューターを上述したいずれかの本発明の画像処理装置として機能させるためのものである。このプログラムは、コンピューターが読み取り可能な記録媒体(例えばハードディスク、ROM、FD、CD、DVDなど)に記録されていてもよいし、伝送媒体(インターネットやLANなどの通信網)を介してあるコンピューターから別のコンピューターへ配信されてもよいし、その他どのような形で授受されてもよい。このプログラムをコンピューターに実行させれば、上述した画像処理装置と同様の効果を得ることができる。   The program of the present invention is for causing a computer to function as any of the above-described image processing apparatuses of the present invention. This program may be recorded on a computer-readable recording medium (for example, hard disk, ROM, FD, CD, DVD, etc.) or from a computer via a transmission medium (communication network such as the Internet or LAN). It may be distributed to another computer, or may be exchanged in any other form. If this program is executed by a computer, the same effects as those of the image processing apparatus described above can be obtained.

スキャンシステム10の構成の概略を示す構成図。1 is a configuration diagram showing an outline of the configuration of a scan system 10. FIG. 画質調整画面40の一例を示す説明図。4 is an explanatory diagram illustrating an example of an image quality adjustment screen 40. FIG. ドロップアウト/強調色の設定画面60の一例を示す説明図。FIG. 6 is an explanatory diagram illustrating an example of a dropout / emphasized color setting screen. 複数の対象色の色相範囲を設定する様子を示す説明図。Explanatory drawing which shows a mode that the hue range of a some target color is set. 複数の対象色の色相範囲を設定する様子を示す説明図。Explanatory drawing which shows a mode that the hue range of a some target color is set. 色変換処理ルーチンの一例を示すフローチャート。6 is a flowchart illustrating an example of a color conversion processing routine. 対象画素の設定処理の一例を示すフローチャート。6 is a flowchart illustrating an example of target pixel setting processing. 明度ヒストグラムから閾値Lref1を設定する様子を示す説明図。Explanatory drawing which shows a mode that threshold value Lref1 is set from a brightness histogram. ドロップアウト用色変換処理の一例を示すフローチャート。6 is a flowchart illustrating an example of color conversion processing for dropout. 明度変換処理に用いる変換曲線L1,L2を示す説明図。Explanatory drawing which shows the conversion curves L1 and L2 used for a brightness conversion process. 色変換用の基準係数d1,d2,d3の一例を示す説明図。Explanatory drawing which shows an example of the reference coefficients d1, d2, and d3 for color conversion. 強調用色変換処理の一例を示すフローチャート。6 is a flowchart illustrating an example of an emphasis color conversion process.

次に、本発明の実施の形態を図面に基づいて説明する。図1は、本発明の一実施形態であるスキャンシステム10の構成の概略を示す構成図である。本実施形態のスキャンシステム10は、ユーザーコンピューター(ユーザーPC)20と、ユーザーPC20にUSBケーブル12を介して接続されるプリンター30とにより構成されている。   Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram showing an outline of the configuration of a scan system 10 according to an embodiment of the present invention. The scan system 10 according to this embodiment includes a user computer (user PC) 20 and a printer 30 connected to the user PC 20 via the USB cable 12.

ユーザーPC20は、各種制御を実行するCPU22や各種制御プログラムを記憶するROM23,データを一時的に記憶するRAM24などを備えたコントローラー21と、各種アプリケーションプログラムや各種ドライバー,データファイルなどを記憶するハードディスクドライブ(HDD)25と、キーボードやマウスなどの操作部26と、ディスプレイとしての表示部27とを備え、これらがバス29を介して電気的に接続された汎用のパーソナルコンピューターである。このユーザーPC20のHDD25には、ユーザーPC20とプリンター30との間で印刷データやスキャンデータなどのデータの送受信や印刷処理やスキャン処理に関する各種設定を行なうために用いられるドライバー(プリンタードライバーおよびスキャナードライバー)25aが記憶されている。このドライバー25aは、スキャン処理する際に、ある特定の色を除去するいわゆるドロップアウト処理を行なうドロップアウト機能と、ドロップアウト処理とは逆にある特定の色を強調するいわゆる強調処理を行なう強調機能とを有している。   The user PC 20 includes a CPU 22 that executes various controls, a ROM 23 that stores various control programs, a controller 21 that includes a RAM 24 that temporarily stores data, and a hard disk drive that stores various application programs, various drivers, data files, and the like. (HDD) 25, an operation unit 26 such as a keyboard and a mouse, and a display unit 27 as a display, which are general-purpose personal computers electrically connected via a bus 29. The HDD 25 of the user PC 20 is a driver (printer driver and scanner driver) that is used to send and receive data such as print data and scan data between the user PC 20 and the printer 30 and to make various settings relating to print processing and scan processing. 25a is stored. The driver 25a performs a dropout function for performing a so-called dropout process for removing a specific color and an emphasis function for performing a so-called emphasis process for emphasizing a specific color opposite to the dropout process when performing a scan process. And have.

プリンター30は、装置全体の制御を司るコントローラー31と、着色剤としてインクを用紙Sに吐出することにより印刷を行なう印刷機構32と、図示しない原稿台に載置された原稿を光学的に読み取って画像データを生成するスキャナー機構33とを備え、これらが図示しないバスを介して電気的に接続されているマルチファンクションプリンターである。なお、印刷機構32は、図示しない印刷ヘッドから用紙Sへシアン(C),マゼンタ(M),イエロー(Y),ブラック(B)の各色のインクを吐出することにより印刷を行なう周知のインクジェット方式のカラープリンター機構として構成されている。また、スキャナー機構33は、周知のイメージスキャナーとして構成され、原稿に向かって発光したあとの反射光をレッド(R),グリーン(G),ブルー(B)の各色に分解したRGBデータをスキャン画像とする周知のカラーイメージセンサーを備える。なお、RGBデータは、縦横のマトリックス状に画素が配置され、配置される画素の各値は濃淡に応じて値0〜255の256階調(8ビット)で表されるものとする。   The printer 30 optically reads a document placed on a document table (not shown), a controller 31 that controls the entire apparatus, a printing mechanism 32 that performs printing by discharging ink as a colorant onto the paper S, and the like. This is a multifunction printer that includes a scanner mechanism 33 that generates image data and is electrically connected via a bus (not shown). Note that the printing mechanism 32 is a well-known inkjet system that performs printing by ejecting cyan (C), magenta (M), yellow (Y), and black (B) ink from a print head (not shown) onto the paper S. It is configured as a color printer mechanism. The scanner mechanism 33 is configured as a well-known image scanner, and scans RGB data obtained by separating reflected light after emitting light toward the original into red (R), green (G), and blue (B) colors. A known color image sensor is provided. In the RGB data, pixels are arranged in a vertical and horizontal matrix, and each value of the arranged pixels is represented by 256 gradations (8 bits) of values 0 to 255 according to the shading.

次に、こうして構成された本実施形態のスキャンシステム10の動作、特に、ドロップアウト処理と強調処理とを伴ってスキャン処理する際の動作について説明する。ユーザーの操作部26の操作によりスキャン処理が選択されると、ユーザーPC20のCPU22は、HDD25からドライバー25aを読み出して、メイン画面を表示部27に表示させ、そのメイン画面から「ドロップアウト/強調」タブが選択されると、画質調整画面40に切り替える。図2は、画質調整画面40の一例を示す説明図である。なお、本実施形態では、「ドロップアウト/強調」タブの選択により画質調整画面40に切り替えるものとしたが、メイン画面に画質調整画面40が含まれる画面構成としても構わない。以下、この画質調整画面40について説明する。なお、以下の説明では、ドロップアウト処理と強調処理とをまとめて色変換処理と称することがある。   Next, the operation of the scan system 10 of the present embodiment configured as described above, particularly the operation when performing the scan process with the dropout process and the enhancement process will be described. When the scan process is selected by the operation of the user operation unit 26, the CPU 22 of the user PC 20 reads out the driver 25a from the HDD 25, displays the main screen on the display unit 27, and “drops out / emphasizes” from the main screen. When the tab is selected, the screen is switched to the image quality adjustment screen 40. FIG. 2 is an explanatory diagram illustrating an example of the image quality adjustment screen 40. In this embodiment, the screen is switched to the image quality adjustment screen 40 by selecting the “dropout / emphasis” tab. However, a screen configuration in which the image quality adjustment screen 40 is included in the main screen may be used. Hereinafter, the image quality adjustment screen 40 will be described. In the following description, the dropout process and the enhancement process may be collectively referred to as a color conversion process.

この画質調整画面40は、スキャン処理した画像データの出力を設定する出力設定欄41と、画像データの画質を調整する画質調整欄45と、各種ボタンからなるボタン群50とにより構成されている。出力設定欄41には、カラーかグレー,モノクロのいずれの画像を出力するかを選択的に設定可能なラジオボタン42a〜42cと、プルダウン形式で出力画像の解像度を設定可能なリストボックス43とがレイアウトされている。この出力設定欄41における設定は、CPU22によりRAM24に登録される。また、画質調整欄45には、チェックを入れることによりドロップアウト処理や強調処理を伴ってスキャン処理することを指示可能なチェックボックス46と、プルダウン形式でドロップアウト処理や強調処理の対象色を設定可能なリストボックス47と、出力画像の明るさの調整が可能でその調整値が数値ボックス48aに表示される明るさ用スライドバー48と、出力画像のコントラストの調整が可能でその調整値が数値ボックス49aに表示されるコントラスト用スライドバー49とがレイアウトされている。なお、明るさ用スライドバー48やコントラスト用スライドバー49では、数値ボックス48a,49aに数値を入力することによっても設定が可能となっている。そして、ボタン群50には、スキャン画像をプレビュー表示させるためのプレビューボタン51と、本スキャンを行なうための本スキャンボタン52と、ヘルプ画面を読み出すためのヘルプボタン53と、各種環境設定を行なうための環境設定ボタン54と、処理を終了するための閉じるボタン55とがレイアウトされている。   The image quality adjustment screen 40 includes an output setting field 41 for setting the output of scanned image data, an image quality adjustment field 45 for adjusting the image quality of image data, and a button group 50 including various buttons. The output setting column 41 includes radio buttons 42a to 42c that can selectively set whether to output color, gray, or monochrome images, and a list box 43 that can set the resolution of the output image in a pull-down format. It is laid out. The settings in the output setting column 41 are registered in the RAM 24 by the CPU 22. In the image quality adjustment field 45, a check box 46 that can be instructed to perform scan processing with dropout processing and enhancement processing by checking the check box, and a target color for dropout processing and enhancement processing in a pull-down format are set. A possible list box 47, a brightness slide bar 48 in which the brightness of the output image can be adjusted and its adjustment value displayed in a numerical value box 48a, and the contrast of the output image can be adjusted, and the adjustment value is a numerical value. A contrast slide bar 49 displayed in the box 49a is laid out. The brightness slide bar 48 and the contrast slide bar 49 can also be set by inputting numerical values in the numerical boxes 48a and 49a. The button group 50 includes a preview button 51 for previewing a scanned image, a main scan button 52 for performing a main scan, a help button 53 for reading a help screen, and various environment settings. The environment setting button 54 and the close button 55 for ending the process are laid out.

ここで、ドロップアウト処理や強調処理の対象色を設定するリストボックス47では、ドロップアウト処理か強調処理かの指定を伴って処理の対象色として赤、青、緑などの既定の色を選択することができる他、ユーザーがカスタマイズ可能な「ユーザー設定」色を選択することができる。このリストボックス47において「ユーザー設定」が選択されると、CPU22は、ドロップアウト/強調色の設定画面60を読み出して表示部27に表示させる。ここで、図3は、ドロップアウト/強調色の設定画面60の一例を示す説明図である。以下、このドロップアウト/強調色の設定画面(以下、単に、設定画面という)60について説明する。なお、設定画面60を読み出す際に画像のプレスキャンが行なわれていなければ、CPU22はプリンター30のスキャナー機構33にスキャン指示を出力してプレスキャンを行なう。   Here, in the list box 47 for setting the target color of the dropout process or the enhancement process, a default color such as red, blue, or green is selected as the process target color with designation of the dropout process or the enhancement process. In addition, the user can select a customizable “user settings” color. When “user setting” is selected in the list box 47, the CPU 22 reads the dropout / highlight color setting screen 60 and displays it on the display unit 27. FIG. 3 is an explanatory diagram showing an example of the dropout / emphasized color setting screen 60. The dropout / highlight color setting screen (hereinafter simply referred to as the setting screen) 60 will be described below. If the image is not pre-scanned when the setting screen 60 is read, the CPU 22 outputs a scan instruction to the scanner mechanism 33 of the printer 30 to perform the pre-scan.

この設定画面60は、登録済みの色設定を呼び出したり新たな色設定を登録したりする設定登録欄61と、ドロップアウト処理や強調処理の対象となる複数の対象色の指定を切り替えたり各対象色について色相範囲を調整したり調整された色相範囲に対して感度や強度を調整したりする調整欄65と、処理対象の画像から対象色を抽出するための抽出欄75と、各種ボタンからなるボタン群80とにより構成されている。   This setting screen 60 switches a setting registration field 61 for calling a registered color setting or registering a new color setting, and a designation of a plurality of target colors to be subjected to dropout processing or emphasis processing. An adjustment column 65 for adjusting the hue range of the color and adjusting sensitivity and intensity for the adjusted hue range, an extraction column 75 for extracting the target color from the processing target image, and various buttons. The button group 80 is comprised.

設定登録欄61には、プルダウン形式で登録済みの色設定を選択可能なリストボックス62と、現在の色設定を登録するための保存ボタン63と、リストボックス62のプルダウンメニューから登録済みの色設定を削除するための削除ボタン64とがレイアウトされている。この設定登録欄61では、ユーザーの操作部26の操作により設定名が入力されて保存ボタン63が押下(クリック)されると、CPU22は、そのときの調整欄65の設定内容をHDD25の所定領域に記憶して、以降はリストボックス62のプルダウンメニューからの読み出しを可能とする。また、調整欄65には、指定色番号(本実施形態では、値1〜5としているが、5以上であっても構わない)に対応して対象色の指定を切替可能なラジオボタン65a〜65eと、新たな対象色を指定するための追加ボタン66と、指定された対象色の設定を削除するための削除ボタン67と、0°から360°までの色相が連続的に表示されると共に両端部における色相が連続する帯状の色相バー68と、色相バー68に重ねて表示され両端を示す2本の境界線により囲まれる範囲を対象色の色相範囲として設定可能なスライダー69と、スライダー69の左端の境界線の位置が表示される数値ボックス70aと、スライダー69の右端の境界線の位置が表示される数値ボックス70bと、ドロップアウト処理の対象色の設定か強調処理の対象色の設定かのいずれかを選択可能なラジオボタン71a,71bと、感度の調整が可能であってその調整値が数値ボックス72aに表示される感度用スライドバー72と、強度の調整が可能であってその調整値が数値ボックス73aに表示される強度用スライドバー73と、各種設定をリセットするリセットボタン74とがレイアウトされている。なお、スライダー69は、2本の境界線をそれぞれスライドさせることにより色相範囲の設定が可能で、数値ボックス70a,70bに数値を入力することによっても設定が可能となっている。また、感度用スライドバー72や強度用スライドバー73も同様に数値ボックス72a,73aに数値を入力することによっても設定が可能となっている。そして、抽出欄75には、プレスキャンされた画像をプレビュー画像Pとして表示するためのプレビュー領域76と、プレビュー領域76に表示されたプレビュー画像Pから所望の色を抽出(選択)するためのスポイトを模した抽出アイコン77と、抽出アイコン77による抽出位置78aが拡大表示された拡大表示領域78とがレイアウトされている。そして、ボタン群80には、チェックを入れることによりプレビュー画像Pのプレビュー領域76への表示を指示可能なチェックボックス81と、ヘルプ画面を読み出すためのヘルプボタン82と、設定画面60を閉じるための閉じるボタン83とがレイアウトされている。   In the setting registration column 61, a list box 62 in which a color setting registered in a pull-down format can be selected, a save button 63 for registering the current color setting, and a color setting registered from the pull-down menu of the list box 62 are displayed. A delete button 64 for deleting is laid out. In the setting registration field 61, when a setting name is input by the user's operation of the operation unit 26 and the save button 63 is pressed (clicked), the CPU 22 displays the setting content in the adjustment field 65 at that time in a predetermined area of the HDD 25. After that, reading from the pull-down menu of the list box 62 is enabled. The adjustment field 65 includes radio buttons 65a to 65a that can switch the designation of the target color corresponding to the designated color number (in the present embodiment, the value is 1 to 5, but may be 5 or more). 65e, an add button 66 for specifying a new target color, a delete button 67 for deleting the setting of the specified target color, and a hue from 0 ° to 360 ° are continuously displayed. A band-shaped hue bar 68 in which hues at both ends are continuous, a slider 69 that can be set as a hue range of the target color, and a range surrounded by two boundary lines that are displayed overlapping the hue bar 68 and indicate both ends, and slider 69 A numerical value box 70a in which the position of the leftmost boundary line is displayed; a numerical value box 70b in which the position of the rightmost boundary line of the slider 69 is displayed; Radio buttons 71a and 71b that can select one of the elephant color settings, a sensitivity slide bar 72 whose sensitivity can be adjusted and its adjustment value displayed in a numerical value box 72a, and intensity can be adjusted An intensity slide bar 73 whose adjustment value is displayed in a numerical value box 73a and a reset button 74 for resetting various settings are laid out. The slider 69 can set a hue range by sliding two boundary lines, and can also be set by inputting a numerical value in the numerical boxes 70a and 70b. Similarly, the sensitivity slide bar 72 and the strength slide bar 73 can be set by inputting numerical values into the numerical boxes 72a and 73a. In the extraction column 75, a preview area 76 for displaying the pre-scanned image as the preview image P, and a dropper for extracting (selecting) a desired color from the preview image P displayed in the preview area 76 are displayed. And an enlarged display area 78 in which an extraction position 78a by the extraction icon 77 is enlarged and displayed. The button group 80 includes a check box 81 that can be instructed to display the preview image P in the preview area 76 by checking the button group 80, a help button 82 for reading the help screen, and a setting screen 60 for closing the setting screen 60. A close button 83 is laid out.

ここで、ユーザーの操作部26の操作により追加ボタン66が押下されると、CPU22は、ラジオボタン65a〜65eのうち未登録のラジオボタンに切り替える。そして、抽出アイコン77が操作されてプレビュー画像Pからユーザーがドロップアウト処理や強調処理を所望する色が選択されると、その色に対応する範囲のスライダー69を新たに色相バー68上に表示する。ここで、抽出アイコン77により選択される色に対応する範囲は、抽出位置78aに含まれる画素のRGBデータから色相を取得してそのヒストグラムを作成し、作成したヒストグラムにおける色相のピーク値を中心とする所定範囲などに設定することができる。なお、RGBデータからの色相の取得については後述する。このように、直接プレビュー画像Pからユーザーが色を選択するから、カラーパレットなどから単に色を選択するものに比してより所望の色に近い対象色を選択することができる。また、本実施形態では、ドロップアウト処理と強調処理との対象色として、指定色番号1〜5の最大5色が設定可能となっており、ラジオボタン65a〜65eの切り替えに伴って指定色番号1〜5の各対象色に対応する色相範囲をスライダー69を用いて設定できるようになっている。なお、本実施形態では、最大5色を設定可能としているが、6色以上を設定可能としても構わない。以下、この複数の対象色の色相範囲の設定について説明する。図4,5は、複数の対象色の色相範囲を設定する様子を示す説明図である。この図4,5では、ラジオボタン65a〜65cを用いてドロップアウト処理の対象色として指定色番号1〜3に対応する3つの色相範囲が設定される様子を示す。図4では、その3つの範囲がすべてドロップアウト処理対象として設定され、それらを色相範囲HR(d)1,HR(d)2,HR(d)3とする((d)はドロップアウト処理対象であることを示す)。一方、図5では、3つの範囲のうち指定色番号2に対応する範囲のみが強調処理対象として設定され、この指定色番号2に対応する範囲を色相範囲HR(k)2とする((k)は強調処理対象であることを示す)。   Here, when the add button 66 is pressed by the operation of the user operation unit 26, the CPU 22 switches to an unregistered radio button among the radio buttons 65a to 65e. When the extraction icon 77 is operated and the user selects a color desired for dropout processing or enhancement processing from the preview image P, a slider 69 in a range corresponding to the color is newly displayed on the hue bar 68. . Here, the range corresponding to the color selected by the extraction icon 77 is obtained by acquiring a hue from the RGB data of the pixel included in the extraction position 78a, creating a histogram, and centering on the peak value of the hue in the created histogram. The predetermined range can be set. The acquisition of hue from RGB data will be described later. As described above, since the user directly selects a color from the preview image P, it is possible to select a target color closer to a desired color as compared with a case where a color is simply selected from a color palette or the like. In the present embodiment, as the target colors for the dropout process and the emphasis process, it is possible to set a maximum of five colors, designated color numbers 1 to 5, and designated color numbers according to the switching of the radio buttons 65a to 65e. The hue range corresponding to each of the target colors 1 to 5 can be set using the slider 69. In the present embodiment, a maximum of five colors can be set, but six or more colors may be set. Hereinafter, setting of the hue ranges of the plurality of target colors will be described. 4 and 5 are explanatory diagrams showing a state in which the hue ranges of a plurality of target colors are set. FIGS. 4 and 5 show how three hue ranges corresponding to designated color numbers 1 to 3 are set as target colors for dropout processing using radio buttons 65a to 65c. In FIG. 4, all three ranges are set as dropout processing targets, and these are set as hue ranges HR (d) 1, HR (d) 2, and HR (d) 3 ((d) is a dropout processing target. ). On the other hand, in FIG. 5, only the range corresponding to the designated color number 2 among the three ranges is set as the enhancement processing target, and the range corresponding to the designated color number 2 is set as the hue range HR (k) 2 ((k ) Indicates an object to be emphasized).

まず、図4(a)に示すように、指定色番号1に対応するラジオボタン65aが選択されている場合には、CPU22により指定色番号1に対応するスライダー69aが図中実線で示すアクティブ表示とされる。このため、スライダー69aの両端の境界線をユーザーの操作部26の操作によりスライドさせることで指定色番号1の色相範囲HR(d)1が設定可能となる。また、数値ボックス70a,70bには、スライダー69aの両端の境界線に対応する数値がそれぞれ表示される。一方、指定色番号2,3に対応するラジオボタン65b,65cは非選択とされるため、指定色番号2,3に対応するスライダー69b,69cが図中点線で示す非アクティブ表示とされる。このため、スライダー69b,69cの両端の境界線がスライド不能となり、色相範囲HR(d)2や色相範囲HR(d)3の設定が不能となる。ここで、図4では、各色相範囲が同じドロップアウト処理対象として設定されているため、アクティブ表示されたスライダー69aは、他の色相範囲HR(d)2,HR(d)3を含めて色相バー68上の全ての範囲をスライド可能となっている。なお、強調処理対象として設定される色相範囲が混在する場合のスライド可能な範囲については図5を用いて後述する。   First, as shown in FIG. 4A, when the radio button 65a corresponding to the designated color number 1 is selected, the slider 69a corresponding to the designated color number 1 is displayed by the CPU 22 as an active display indicated by a solid line. It is said. Therefore, the hue range HR (d) 1 of the designated color number 1 can be set by sliding the boundary lines at both ends of the slider 69a by the operation of the operation unit 26 by the user. In the numerical boxes 70a and 70b, numerical values corresponding to the boundary lines at both ends of the slider 69a are displayed. On the other hand, since the radio buttons 65b and 65c corresponding to the designated color numbers 2 and 3 are not selected, the sliders 69b and 69c corresponding to the designated color numbers 2 and 3 are displayed inactive as indicated by dotted lines in the figure. For this reason, the boundary lines at both ends of the sliders 69b and 69c cannot slide, and the hue range HR (d) 2 and the hue range HR (d) 3 cannot be set. Here, in FIG. 4, since each hue range is set as the same dropout processing target, the slider 69 a that is actively displayed includes the other hue ranges HR (d) 2 and HR (d) 3. The entire range on the bar 68 can be slid. Note that the slidable range when the hue range set as the enhancement processing target is mixed will be described later with reference to FIG.

次に、図4(b)に示すように、図4(a)の状態からスライダー69aの図中右端の境界線が右方向にスライドされると、色相範囲HR(d)1が右方向に拡大されると共に数値ボックス70bの値が変化する。このとき、拡大された色相範囲HR(d)1は色相範囲HR(d)2と重複したものとなっている。本実施形態では、処理種としてのドロップアウト処理や強調処理が同じ場合には色相範囲が互いに重複するのを許容しており、CPU22は、他の色相範囲と重複する範囲を含めて、指定色番号1の色相範囲HR(d)1として受け付けてRAM24に登録する。なお、本実施形態では、色相範囲は、各スライダー69の両端の境界線で指定される範囲をそのまま受け付けて登録するものとした。また、図4では図示は省略したが、感度用スライドバー72による感度の調整や強度用スライドバー73による強度の調整がなされていれば、CPU22は、それぞれ感度パラメーターTs,強度パラメータTdとして受け付けて色相範囲HR(d)1に従属させて登録する。なお、それらの調整がなされていない場合には、各パラメーターにはデフォルト値が登録される。   Next, as shown in FIG. 4B, when the boundary line at the right end of the slider 69a in the drawing is slid rightward from the state shown in FIG. 4A, the hue range HR (d) 1 is moved rightward. As it is enlarged, the value in the numerical box 70b changes. At this time, the expanded hue range HR (d) 1 overlaps with the hue range HR (d) 2. In the present embodiment, when the dropout process and the enhancement process as the processing type are the same, the hue ranges are allowed to overlap each other, and the CPU 22 includes the designated color including the ranges overlapping with other hue ranges. It is received as a hue range HR (d) 1 of number 1 and registered in the RAM 24. In the present embodiment, as the hue range, the range specified by the boundary lines at both ends of each slider 69 is accepted and registered as it is. Although not shown in FIG. 4, if the sensitivity adjustment by the sensitivity slide bar 72 or the intensity adjustment by the strength slide bar 73 has been performed, the CPU 22 accepts the sensitivity parameter Ts and the strength parameter Td, respectively. Registration is made dependent on the hue range HR (d) 1. In addition, when those adjustments are not made, default values are registered for the respective parameters.

そして、図4(c)に示すように、ラジオボタン65aから指定色番号3に対応するラジオボタン65cに選択が切り替えられると、CPU22によりスライダー69aがアクティブ表示から非アクティブ表示に切り替えられると共に指定色番号3に対応するスライダー69cが非アクティブ表示からアクティブ表示に切り替えられる。なお、スライダー69bは非アクティブ表示のままとされる。また、数値ボックス70a,70bは、それぞれスライダー69cの両端の境界線に対応する数値の表示に切り替えられる。これにより、スライダー69cによる指定色番号3の色相範囲HR(d)3の設定が可能となり、感度や強度の調整がなされていれば、感度パラメーターTs,強度パラメータTdを色相範囲HR(d)3に従属させて登録する。このように、各スライダー69a〜69cにより設定された各色相範囲HR(d)1〜HR(d)3を登録することができると共に感度パラメーターTs,強度パラメータTdを各色相範囲HR(d)1〜HR(d)3にそれぞれに従属させて登録することができる。本実施形態では、このような複数の色相範囲の設定を、帯状の色相バー68とそれに重ねて表示されるスライダー69とを用いて行なうものとしている。また、調整欄65には、帯状の色相バー68の長手方向に直交する方向にある色相バー68の上下の領域に、ラジオボタン65a〜65eや感度用スライドバー72,強度用スライドバー73をレイアウトするものとしている。これらのことから、複数の対象色を指定可能な場合であっても、色相が環状に表示される色相環や色相がパレット状に表示されるものを用いる場合に比して効率のよいレイアウトを可能として、調整欄65の省スペース化を図ることができる。また、感度と強度の調整においては、感度用スライドバー72と強度用スライドバー73とを各色相範囲に共用するものとしたから、調整欄65の更なる省スペース化を図ることができる。したがって、設定画面60が大型化するのを防止することができる。また、処理種が同じ場合には色相範囲HRの重複を許容するから、重複する色相範囲HRにおいて感度パラメーターTsや強度パラメータTdに異なる値を設定することもできる。   Then, as shown in FIG. 4C, when the selection is switched from the radio button 65a to the radio button 65c corresponding to the designated color number 3, the slider 69a is switched from the active display to the inactive display by the CPU 22 and the designated color. The slider 69c corresponding to number 3 is switched from the inactive display to the active display. The slider 69b remains in an inactive display. The numerical boxes 70a and 70b are switched to display numerical values corresponding to the boundary lines at both ends of the slider 69c. Accordingly, the hue range HR (d) 3 of the designated color number 3 can be set by the slider 69c, and if the sensitivity and intensity are adjusted, the sensitivity parameter Ts and the intensity parameter Td are set to the hue range HR (d) 3. Subordinate to and register. As described above, the hue ranges HR (d) 1 to HR (d) 3 set by the sliders 69a to 69c can be registered, and the sensitivity parameter Ts and the intensity parameter Td are set to the hue ranges HR (d) 1. HR (d) 3 can be registered depending on each. In the present embodiment, such a plurality of hue ranges are set by using a band-like hue bar 68 and a slider 69 displayed in an overlapping manner. In the adjustment column 65, radio buttons 65a to 65e, a sensitivity slide bar 72, and an intensity slide bar 73 are laid out in the upper and lower areas of the hue bar 68 in a direction orthogonal to the longitudinal direction of the belt-like hue bar 68. I am going to do it. Therefore, even when a plurality of target colors can be specified, a layout that is more efficient than using a hue circle in which the hue is displayed in a ring shape or a color in which the hue is displayed in a palette shape is used. As a possible, space saving of the adjustment column 65 can be achieved. Further, in adjusting sensitivity and intensity, the sensitivity slide bar 72 and the intensity slide bar 73 are shared by the hue ranges, so that further space saving in the adjustment column 65 can be achieved. Therefore, the setting screen 60 can be prevented from becoming large. Further, since the hue range HR is allowed to overlap when the processing types are the same, different values can be set for the sensitivity parameter Ts and the intensity parameter Td in the overlapping hue range HR.

さらに、アクティブ表示とされたスライダー69cにおいて図中右端の境界線が色相バー68の右端を超えてスライドされると、図4(d)に示すように、CPU22は、右端の境界線(図4(d)中、(R)と表示)を色相バー68の左端側に表示する。ここで、上述したように、色相バー68は両端の色相が連続したものとなっている。このため、図4(d)に示す場合には、CPU22は、スライダー69cの左端の境界線(図4(d)中、(L)と表示)と色相バー68の右端までの範囲と、スライダー69cの右端の境界線と色相バー68の左端までの範囲とを合わせた色相範囲HR(d)3を、色相が連続した範囲として受け付けることができる。このように、色相バー68として帯状のバーを用いた場合であっても、色相バー68の両端で色相の連続性が途切れないから操作性よく色相範囲を設定することができる。   Furthermore, when the border line at the right end in the figure is slid beyond the right end of the hue bar 68 in the slider 69c that is in the active display, the CPU 22 displays the border line at the right end (see FIG. 4) as shown in FIG. (Displayed as (R) in (d)) is displayed on the left end side of the hue bar 68. Here, as described above, the hue bar 68 has a continuous hue at both ends. For this reason, in the case shown in FIG. 4D, the CPU 22 determines the range from the left end boundary of the slider 69c (indicated as (L) in FIG. 4D) to the right end of the hue bar 68, and the slider. A hue range HR (d) 3, which is a combination of the boundary line at the right end of 69c and the range up to the left end of the hue bar 68, can be received as a range in which hues are continuous. Thus, even when a belt-like bar is used as the hue bar 68, the hue range can be set with good operability because the hue continuity is not interrupted at both ends of the hue bar 68.

一方、ドロップアウト処理対象の色相範囲HR(d)1,3と強調処理対象の色相範囲HR(k)2とが混在する場合について図5を用いて説明する。まず、図5(a)では、図4(a)と同様の状態を示しており、スライダー69aがアクティブ表示とされている。この図5(a)の状態から、スライダー69aの図中右端の境界線が右方向にスライドされる様子を図5(b)〜(d)に示す。図5(b)に示すように、スライダー69aが色相範囲HR(k)2の左端の境界線まで到達しない領域をスライドしている場合は、スライダー69aのスライドによってスライダー69bは影響を受けず色相範囲HR(k)2は変化しない。しかし、図5(c)に示すように、スライダー69aの右端の境界線が右方向にスライドされて色相範囲HR(k)2の左端の境界線に到達した以降は、スライダー69aによる色相範囲HR(d)1が色相範囲HR(k)2に重複して設定されないようスライダー69bの左端の境界線がスライダー69aの右端の境界線と共にスライドする。このため、色相範囲HR(k)2は、図5(a)よりも小さな範囲となる。そして、スライダー69aの右端の境界線がさらに右方向にスライドされると、図5(d)に示すように、スライダー69bの左端の境界線がさらに右方向にスライドして色相範囲HR(k)2がさらに小さな範囲となる。なお、CPU22は、このときの範囲を色相範囲HR(k)2として受け付けることになる。このように、処理種としてドロップアウト処理と強調処理との異なる処理が設定される場合には、異なる処理種の色相範囲が重複することがないようアクティブ表示とされるスライダー69のスライドに合わせて非アクティブ表示とされるスライダー69がスライドすることになる。これにより、1つの色相バー68を用いてドロップアウト処理と強調処理との色相範囲を設定する場合であっても、異なる処理種の色相範囲が重複して設定されることによる不具合が生じるのを防止することができる。   On the other hand, a case where the hue range HR (d) 1, 3 to be dropped out and the hue range HR (k) 2 to be emphasized are mixed will be described with reference to FIG. First, FIG. 5A shows a state similar to that in FIG. 4A, and the slider 69a is in active display. FIGS. 5B to 5D show a state in which the boundary line at the right end of the slider 69a in the drawing is slid rightward from the state of FIG. 5A. As shown in FIG. 5B, when the slider 69a slides in an area that does not reach the boundary of the left end of the hue range HR (k) 2, the slider 69b is not affected by the slide of the slider 69a, and the hue is not affected. The range HR (k) 2 does not change. However, as shown in FIG. 5C, after the boundary of the right end of the slider 69a is slid rightward and reaches the boundary of the left end of the hue range HR (k) 2, the hue range HR by the slider 69a is reached. (D) The left boundary line of the slider 69b slides together with the right boundary line of the slider 69a so that 1 is not set to overlap with the hue range HR (k) 2. For this reason, the hue range HR (k) 2 is smaller than that in FIG. Then, when the boundary line at the right end of the slider 69a is further slid in the right direction, the boundary line at the left end of the slider 69b is further slid in the right direction as shown in FIG. 5D, and the hue range HR (k) 2 is an even smaller range. Note that the CPU 22 accepts this range as the hue range HR (k) 2. As described above, when different processes of the dropout process and the emphasis process are set as the process type, the hue range of the different process types is set in accordance with the slide of the slider 69 that is actively displayed so as not to overlap. The slider 69 that is inactive display slides. As a result, even when the hue range of the dropout process and the enhancement process is set using one hue bar 68, there is a problem that the hue ranges of different processing types are set redundantly. Can be prevented.

こうして、ドロップアウト処理や強調処理の対象色の設定を受け付けて閉じるボタン83が押下されると、CPU22は設定画面60を閉じる。そして、画質調整画面40において、本スキャンボタン52が押下されると、色変換処理が開始される。この処理は、CPU22により色変換処理ルーチンが読み出されて実行される。図6は、色変換処理ルーチンの一例を示す説明図である。なお、本実施形態では、画質調整画面40の出力設定欄41において、出力画像としてグレーやモノクロが設定された場合について説明する。   In this way, when the setting of the target color for the dropout process and the highlight process is accepted and the close button 83 is pressed, the CPU 22 closes the setting screen 60. When the main scan button 52 is pressed on the image quality adjustment screen 40, color conversion processing is started. This processing is executed by the CPU 22 reading out the color conversion processing routine. FIG. 6 is an explanatory diagram showing an example of a color conversion processing routine. In the present embodiment, a case where gray or monochrome is set as the output image in the output setting field 41 of the image quality adjustment screen 40 will be described.

このルーチンが開始されると、CPU22は、まず、画像データ(RGBデータ)を入力する(ステップS100)。ここでは、本スキャンボタン52の押下に伴って、プリンター30のスキャナー機構33へスキャン指示が出力されており、そのスキャン指示を受けて駆動したスキャナー機構33によりスキャンされた画像データを入力するものとした。なお、プレスキャンした画像データを入力するものなどとしてもよい。画像データを入力すると、ドロップアウト処理や強調処理の対象となる対象画素を設定する(ステップS110)。この処理は、図7に示す対象画素の設定処理により行なわれる。ここで、色変換処理ルーチンの説明を中断して、対象画素の設定処理について説明する。   When this routine is started, the CPU 22 first inputs image data (RGB data) (step S100). Here, when the main scan button 52 is pressed, a scan instruction is output to the scanner mechanism 33 of the printer 30, and image data scanned by the scanner mechanism 33 driven in response to the scan instruction is input. did. It is also possible to input pre-scanned image data. When the image data is input, target pixels to be subjected to dropout processing and enhancement processing are set (step S110). This process is performed by the target pixel setting process shown in FIG. Here, the description of the color conversion processing routine will be interrupted, and the target pixel setting processing will be described.

この対象画素の設定処理では、まず、判定画素を選定し(ステップS300)、選定した判定画素のRGB値を入力する(ステップS310)。ここで、判定画素の選定は、画像データを構成する画素のうち左上の画素から順に右方向に選定し、右方向に未選定の画素がなくなると一段下の左端の画素から順に右方向に選定することにより行なわれる。次に、入力したRGB値に対し色空間の変換処理を行なって色相Hを取得する(ステップS320)。ここで、RGB値から色相Hの取得は、次式(1)〜(3)によりRGB表色系の階調値をYCbCr表色系に変換し、変換したYCbCr表色系を次式(4)〜(6)によりLCH表色系に変換することにより行なうことができる。なお、上述したように、設定画面60の抽出アイコン77により色が選択された際に抽出位置78aに含まれる画素のRGBデータから色相を取得する場合も、これらの式(1)〜(6)により行なうことができる。   In this target pixel setting process, first, a determination pixel is selected (step S300), and an RGB value of the selected determination pixel is input (step S310). Here, the determination pixel is selected in the right direction in order from the upper left pixel among the pixels constituting the image data, and when there is no unselected pixel in the right direction, it is selected in the right direction in order from the leftmost pixel one step below. It is done by doing. Next, color space conversion processing is performed on the input RGB values to obtain the hue H (step S320). Here, the hue H is obtained from the RGB values by converting the RGB color system tone values to the YCbCr color system according to the following equations (1) to (3), and converting the converted YCbCr color system to the following equation (4 ) To (6) to convert to the LCH color system. As described above, when the hue is acquired from the RGB data of the pixel included in the extraction position 78a when the color is selected by the extraction icon 77 on the setting screen 60, these equations (1) to (6) are also obtained. Can be performed.

Y=0.2990×R+0.5870×G+0.1140×B (1)
Cb=−0.1687×R−0.3313×G+0.5000×B (2)
Cr=0.500×R−0.4187×G−0.0813×B (3)
H=180/π×tan(Cb/Cr) (4)
C=(Cr^2+Cb^2)^(1/2) (5)
L=Y (6)
Y = 0.2990 × R + 0.5870 × G + 0.1140 × B (1)
Cb = −0.1687 × R−0.3313 × G + 0.5000 × B (2)
Cr = 0.500 × R−0.4187 × G−0.0813 × B (3)
H = 180 / π x tan (Cb / Cr) (4)
C = (Cr ^ 2 + Cb ^ 2) ^ (1/2) (5)
L = Y (6)

こうして判定画素の色相Hを取得すると、変数nに値1をセットして(ステップS330)、指定色番号nの色相範囲HRnを読み込む(ステップS340)。ここで、番号nは、設定画面60における指定色番号に対応するものであり、本実施形態では値1〜5までの数となる。そして、取得した色相Hが読み込んだ色相範囲HRnの範囲内にあるか否かを判定し(ステップS350)、範囲内にあると判定した場合には、指定色番号nの処理がドロップアウト処理か強調処理かを判定する(ステップS360)。そして、ドロップアウト処理であると判定した場合には、色相範囲HR(d)nのドロップアウト対象画素に設定し(ステップS370)、強調処理であると判定した場合には、色相範囲HR(k)nの強調対象画素に設定する(ステップS380)。一方、取得した色相Hが色相範囲HRnの範囲内にないと判定した場合には、変数nを値1だけインクリメントして(ステップS390)、変数nが最大値nmax(値5)を超えたか否かを判定する(ステップS400)。ステップS400で変数nが最大値nmaxを超えていないと判定した場合には、再びステップS340に戻って新たな指定色番号nの色相範囲HRnを読み込んで、続くステップS350で色相Hが新たに読み込んだ色相範囲HRnの範囲内にあるか否かを判定する。こうした処理を繰り返し行なって、ステップS400で変数nが最大値nmaxを超えたと判定した場合には、判定画素を非対象画素に設定する(ステップS410)。なお、本実施形態では、変数nの最大値nmaxを値5としているが、値6以上としても構わない。例えば、6色以上の指定色が設定されている場合には、その指定色の数を最大値nmaxとすればよい。   When the hue H of the determination pixel is acquired in this way, a value 1 is set to the variable n (step S330), and the hue range HRn of the designated color number n is read (step S340). Here, the number n corresponds to the designated color number on the setting screen 60, and is a number from 1 to 5 in this embodiment. Then, it is determined whether or not the acquired hue H is within the read hue range HRn (step S350). If it is determined that the acquired hue H is within the range, is the process of the designated color number n a dropout process? It is determined whether it is an emphasis process (step S360). If it is determined that the process is a dropout process, it is set as a dropout target pixel in the hue range HR (d) n (step S370). If it is determined that the process is an enhancement process, the hue range HR (k ) Set to n enhancement target pixels (step S380). On the other hand, when it is determined that the acquired hue H is not within the range of the hue range HRn, the variable n is incremented by 1 (step S390), and whether or not the variable n exceeds the maximum value nmax (value 5). Is determined (step S400). If it is determined in step S400 that the variable n does not exceed the maximum value nmax, the process returns to step S340 again to read the hue range HRn of the new designated color number n, and in the subsequent step S350, the hue H is newly read. It is determined whether it is within the range of the hue range HRn. When such processing is repeated and it is determined in step S400 that the variable n has exceeded the maximum value nmax, the determination pixel is set as a non-target pixel (step S410). In the present embodiment, the maximum value nmax of the variable n is 5 but may be 6 or more. For example, when six or more designated colors are set, the number of designated colors may be set to the maximum value nmax.

こうして判定画素をドロップアウト対象画素か強調対象画素か非対象画素かのいずれかに設定すると、未判定の画素があるか否かを判定し(ステップS420)、未判定の画素があればステップS300に戻り処理を繰り返す。   Thus, when the determination pixel is set to any one of the dropout target pixel, the enhancement target pixel, and the non-target pixel, it is determined whether there is an undetermined pixel (step S420). If there is an undetermined pixel, step S300 is determined. Return to and repeat the process.

一方、未判定の画素がなければ、強調対象の各色相範囲HR(k)nに設定された画素の数と画像全体の画素の数との比率Rを算出し(ステップS430)、算出した比率Rが所定の閾値Rrefを超えるか否かを判定する(ステップS440)。ここで、スキャン対象の用紙が色付きであってその用紙の色(背景色)と強調処理の対象となる文字などの色とが同系色(同じ色相範囲)である場合には、背景色も含めて文字の色が強調される場合がある。その場合、本来強調したい文字が背景に埋もれてしまうことになるため、文字と背景とを分離して文字のみを強調することが求められる。そして、そのような求めに対応するためには、強調対象の色相範囲HR(k)nに設定された画素から背景色に相当する画素を除外することが必要となる。ここで、背景色に相当する画素が色相範囲に含まれていれば色相範囲HR(k)nに設定された画素の数が多くなってステップS430で算出される比率Rは高くなり、背景色に相当する画素が色相範囲に含まれていなければ色相範囲HR(k)nに設定された画素の数が少なくなって比率Rは低くなる。このため、本実施形態では、このような比率Rの高低の変化を考慮して所定の閾値Rrefを予め定めておくものとした。したがって、比率Rが所定の閾値Rrefを超える場合には、背景色に相当する画素が色相範囲HR(k)nに設定されていると推定することができる。なお、色相範囲HR(k)nに対応付けて登録された強度パラメータTdを、所定の閾値Rrefの値を調整するためのパラメータとして用いることもできる。   On the other hand, if there is no undetermined pixel, a ratio R between the number of pixels set in each hue range HR (k) n to be emphasized and the number of pixels in the entire image is calculated (step S430), and the calculated ratio It is determined whether R exceeds a predetermined threshold value Rref (step S440). Here, if the paper to be scanned is colored and the color of the paper (background color) and the color of characters to be emphasized are similar colors (same hue range), the background color is also included. Character color may be emphasized. In that case, since the character to be originally emphasized is buried in the background, it is required to separate the character and the background and emphasize only the character. In order to respond to such a request, it is necessary to exclude pixels corresponding to the background color from pixels set in the hue range HR (k) n to be emphasized. Here, if the pixel corresponding to the background color is included in the hue range, the number of pixels set in the hue range HR (k) n increases, and the ratio R calculated in step S430 increases, and the background color is increased. If the pixel corresponding to is not included in the hue range, the number of pixels set in the hue range HR (k) n decreases and the ratio R decreases. For this reason, in the present embodiment, the predetermined threshold value Rref is determined in advance in consideration of such a change in the ratio R. Therefore, when the ratio R exceeds the predetermined threshold value Rref, it can be estimated that the pixel corresponding to the background color is set in the hue range HR (k) n. The intensity parameter Td registered in association with the hue range HR (k) n can also be used as a parameter for adjusting the value of the predetermined threshold value Rref.

ステップS440で比率Rが所定の閾値Rrefを超える場合には、色相範囲HR(k)nに設定された画素の明度Lを用いて明度ヒストグラムを作成し(ステップS450)、作成した明度ヒストグラムから閾値Lref1を設定する(ステップS460)。図8は、明度ヒストグラムから閾値Lref1を設定する様子を示す説明図である。閾値Lref1の設定は、ヒストグラムから最頻値Lmoと最大値Lmaxとを取得し、取得した最頻値Lmoと最大値Lmaxとの差分ΔLを算出して、この差分ΔLを最頻値Lmoから減じた値を設定することにより行なわれる。なお、色相範囲HR(k)nに対応付けて登録された感度パラメータTsを、この閾値Lref1の設定に用いられる差分ΔLを調整するためのパラメータとして用いることもできる。こうして閾値Lref1を設定すると、色相範囲HR(k)nに設定された画素のうち明度Lが閾値Lref1以上となる画素(図8中斜線部分)を非対象画素に再設定して色相範囲HR(k)nから除外する(ステップS470)。ここで、画素の背景色と強調対象の色とが同じ色相にある場合を考えると、通常は背景色が明るく文字などの強調対象が暗い傾向にあることが多いため、ヒストグラムの最頻値Lmoの近傍には背景色の画素が集中することが多くなる。特に、最頻値Lmoから最大値Lmaxまでの差分ΔL間に存在する画素は、ほぼ全て背景色の画素と考えることができる。このようなことから、その差分ΔLを最頻値Lmoを基準に折り返した値までを背景色の画素の範囲とみなして閾値Lref1を設定するのである。こうして閾値Lref1を設定し、閾値Lref1以上の明度Lを有する画素を強調処理の対象から除外することで、背景色の画素とみなされる画素を強調処理の対象から除外することができる。これにより、背景色と強調対象の文字などの色とが同じ色相範囲にある場合であっても、背景と文字とを分離して文字のみを強調処理することができる。   When the ratio R exceeds the predetermined threshold value Rref in step S440, a brightness histogram is created using the brightness L of the pixel set in the hue range HR (k) n (step S450), and the threshold value is created from the created brightness histogram. Lref1 is set (step S460). FIG. 8 is an explanatory diagram showing how the threshold value Lref1 is set from the brightness histogram. The threshold value Lref1 is set by acquiring the mode Lmo and the maximum value Lmax from the histogram, calculating the difference ΔL between the acquired mode Lmo and the maximum value Lmax, and subtracting the difference ΔL from the mode Lmo. This is done by setting a specific value. The sensitivity parameter Ts registered in association with the hue range HR (k) n can also be used as a parameter for adjusting the difference ΔL used for setting the threshold value Lref1. When the threshold value Lref1 is set in this way, among the pixels set in the hue range HR (k) n, the pixels having the brightness L equal to or higher than the threshold value Lref1 (shaded portions in FIG. 8) are reset as non-target pixels and the hue range HR ( k) Excluded from n (step S470). Here, considering the case where the background color of the pixel and the color to be emphasized are in the same hue, since the background color is usually bright and the emphasis target such as text tends to be dark, the mode value Lmo of the histogram In many cases, background color pixels are concentrated in the vicinity of. In particular, almost all the pixels existing between the differences ΔL from the mode Lmo to the maximum value Lmax can be considered as background color pixels. For this reason, the threshold value Lref1 is set by regarding the difference ΔL up to a value obtained by folding back the mode value Lmo as a reference to the background color pixel range. Thus, by setting the threshold value Lref1 and excluding the pixels having the lightness L equal to or higher than the threshold value Lref1 from the target of the enhancement process, it is possible to exclude the pixels regarded as the background color pixels from the target of the enhancement process. As a result, even when the background color and the color of the character to be emphasized are in the same hue range, the background and the character can be separated and only the character can be emphasized.

一方、ステップS440で比率Rが所定の閾値Rrefを超えないと判定した場合には、明度Lが閾値Lref2以上となる画素を非対象画素に再設定して色相範囲HR(k)nから除外する(ステップS480)。この閾値Lref2としては、通常の文字の明度を超える高い明度の値に設定されているものとした。なお、色相範囲HR(k)nに対応付けて登録された感度パラメータTsを、この閾値Lref2の値を調整するためのパラメータとして用いることもできる。ここで、比率Rが所定の閾値Rrefを超えない場合は、色相範囲HR(k)の画素の数が画像全体に占める割合がそれほど高くないことから、背景色と強調対象の文字などの色とが異なるものと考えられる。例えば、画像の背景が一般的な白色で、強調対象の文字が白とは異なる色である場合が挙げられる。このため、強調処理した場合に文字が背景に埋もれてしまうおそれは少ないため、通常の文字の明度を超えて強調処理が不要と考えられる画素のみを除外するのである。   On the other hand, if it is determined in step S440 that the ratio R does not exceed the predetermined threshold value Rref, pixels whose brightness L is equal to or higher than the threshold value Lref2 are reset as non-target pixels and excluded from the hue range HR (k) n. (Step S480). The threshold value Lref2 is set to a high lightness value that exceeds the lightness of a normal character. The sensitivity parameter Ts registered in association with the hue range HR (k) n can also be used as a parameter for adjusting the value of the threshold value Lref2. Here, when the ratio R does not exceed the predetermined threshold value Rref, the ratio of the number of pixels in the hue range HR (k) to the entire image is not so high. Are considered different. For example, the background of the image is a general white color, and the character to be emphasized is a color different from white. For this reason, since there is little possibility that the character is buried in the background when the emphasis process is performed, only pixels that are considered unnecessary for the emphasis process beyond the brightness of the normal character are excluded.

こうして、色相範囲HR(k)nに設定された画素をその明度Lに応じて非対象画素に設定すると、未処理の色相範囲HR(k)nがあるか否かを判定する(ステップS490)。そして、未処理の色相範囲HR(k)nがあればステップS430に戻り処理を繰り返し、未処理の色相範囲HR(k)nがなければ本処理を終了する。なお、CPU22は、各画素についてドロップアウト対象画素か強調対象画素か非対象画素かの設定と共に色空間の変換処理により得られたLCH表色系の各値をRAM24に登録する。   Thus, when a pixel set in the hue range HR (k) n is set as a non-target pixel according to the lightness L, it is determined whether or not there is an unprocessed hue range HR (k) n (step S490). . If there is an unprocessed hue range HR (k) n, the process returns to step S430 and the process is repeated. If there is no unprocessed hue range HR (k) n, this process ends. The CPU 22 registers each value of the LCH color system obtained by the color space conversion process in the RAM 24 together with the setting of each pixel as a dropout target pixel, an enhancement target pixel, or a non-target pixel.

色変換処理ルーチンに戻って、こうしてドロップアウト対象画素や強調対象画素を設定すると、処理画素を選定し(ステップS120)、選定した処理画素がドロップアウト対象か強調対象か非対象かを判定する(ステップS130)。ここで、処理画素の選定は、上述した判定画素の選定と同様に左上の画素から順に選定するものとした。また、ドロップアウト対象か強調対象か非対象かの判定は、処理画素が上述した対象画素の設定処理におけるステップS370で設定されたドロップアウト対象画素かステップS380で設定された強調対象画素かいずれにも設定されない非対象画素かのいずれであるかを判定することにより行なうものとした。ステップS130で処理画素がドロップアウト対象であると判定した場合には、ドロップアウト用の色変換処理を行なってRGBにそれぞれ対応するRd,Gd,Bdを取得し(ステップS140)、上述した式(1)のRGBの各値に取得したRd,Gd,Bdをそれぞれ代入してグレースケール化処理を行なう(ステップS160)。また、ステップS130で処理画素が強調対象であると判定した場合には。強調用の色変換処理を行なってRGBにそれぞれ対応するRk,Gk,Bkを取得し(ステップS150)、ステップS160で上述した式(1)のRGBの各値に取得したRk,Gk,Bkをそれぞれ代入してグレースケール化処理を行なう。なお、ドロップアウト用の色変換処理や強調用の色変換処理の詳細については後述する。   Returning to the color conversion processing routine and setting the dropout target pixel and the enhancement target pixel in this way, the processing pixel is selected (step S120), and it is determined whether the selected processing pixel is the dropout target, the enhancement target, or the non-target ( Step S130). Here, the processing pixels are selected in order from the upper left pixel in the same manner as the determination pixels described above. The determination of whether to be a dropout target, an emphasis target, or a non-target is based on whether the processing pixel is the dropout target pixel set in step S370 or the emphasis target pixel set in step S380 in the target pixel setting process described above. Is determined by determining which of the non-target pixels is not set. If it is determined in step S130 that the processing pixel is a dropout target, dropout color conversion processing is performed to obtain Rd, Gd, and Bd corresponding to RGB (step S140), and the above-described formula ( Gray scale processing is performed by substituting Rd, Gd, and Bd acquired for each RGB value of 1) (step S160). Further, when it is determined in step S130 that the processing pixel is an enhancement target. Color conversion processing for emphasis is performed to obtain Rk, Gk, and Bk that respectively correspond to RGB (step S150), and Rk, Gk, and Bk that have been obtained for each RGB value of equation (1) described above at step S160. Substituting each for gray scale processing. The details of the color conversion process for dropout and the color conversion process for emphasis will be described later.

一方、ステップS130で処理画素が非対象画素であると判定した場合には、ステップS160で上述した式(1)により処理画素のRGB値をそのまま用いてグレースケール化処理を行なう。こうしてステップS160でグレースケール化処理を行なうと、未処理画素があるか否かを判定し(ステップS170)、未処理画素があればステップS120に戻り処理を繰り返す。一方、ステップS170で未処理画素がなければ、出力画像としてモノクロかグレーかのいずれが設定されているかを判定する(ステップS180)。ステップS180でモノクロが設定されていると判定すれば、グレースケール化した各画素の階調値を2値化処理して(ステップS190)、2値画像を出力して(ステップS200)、本ルーチンを終了する。一方、ステップS180でグレーが設定されていれば、グレースケール画像を出力して(ステップS210)、本ルーチンを終了する。以下、ドロップアウト用の色変換処理と強調用の色変換処理の詳細についてそれぞれ説明する。まず、ドロップアウト用の色変換処理について説明する。図9は、ドロップアウト用色変換処理の一例を示すフローチャートである。   On the other hand, if it is determined in step S130 that the processing pixel is a non-target pixel, grayscale processing is performed using the RGB value of the processing pixel as it is according to the above-described equation (1) in step S160. When the gray scale processing is performed in step S160, it is determined whether or not there is an unprocessed pixel (step S170). If there is an unprocessed pixel, the process returns to step S120 and the process is repeated. On the other hand, if there is no unprocessed pixel in step S170, it is determined whether monochrome or gray is set as the output image (step S180). If it is determined in step S180 that monochrome is set, the gradation value of each grayscaled pixel is binarized (step S190), and a binary image is output (step S200). Exit. On the other hand, if gray is set in step S180, a grayscale image is output (step S210), and this routine is terminated. The details of the color conversion process for dropout and the color conversion process for emphasis will be described below. First, a color conversion process for dropout will be described. FIG. 9 is a flowchart illustrating an example of color conversion processing for dropout.

このドロップアウト用色変換処理では、まず、処理画素のLCH表色系の各値を読み込んで(ステップS500)、色相範囲HR(d)nに対応付けて登録された感度パラメータTsを読み込む(ステップS510)。次に、読み込んだ感度パラメータTsに応じて変換曲線L1,L2の交点Qの位置を変更して交点Qの位置が変更された変換曲線L1,L2を用いて明度Lの明度変換処理を行なう(ステップS520)。ここで、図10は、明度変換処理に用いる変換曲線L1,L2を示す説明図である。図10(a)に示すように、入力の明度Lを横軸にとり出力の明度L’を縦軸にとり、高明度側の明度Lを明度L’に変換するための変換曲線L1と低明度側の明度Lを明度L’に変換するための変換曲線L2との交点を交点Qと称する。また、この交点Qは、感度パラメータTsの値に応じて図中左右方向に平行移動させることができる。即ち、交点Qの位置を座標(TIn,K(Kは定数))で表すと、TInの値を感度パラメータTsによって調整できるものとなっている。より具体的には、図10(b)に示すように、感度パラメータTsを高くするほどTInの値が小さくなり交点Qが図中左方向に移動する(例えば、交点Q’)。この場合には、変換曲線L1’により特に低明度側の明度Lがより高い明度L’に変換されることになる。一方、感度パラメータTsを低くするほどTInの値が大きくなり交点Qが図中右方向に移動する(例えば、交点Q”)。この場合には、変換曲線L2”により特に低明度側の明度Lがより低い明度L’に変換されることになる。このように、変換曲線L1,L2を用いた明度変換処理は、明度Lのヒストグラムのレンジを圧縮する色域圧縮処理となることがわかる。そして、例えば、画像の背景などに色のグラデーションがあって一律にドロップアウトしたい場合には、感度パラメータTsを高く設定することで低明度側の明度Lが高明度側の明度L’に変換されるから、背景の画素の明度Lを均一な明度Lに変換することができる。これにより、背景の画素を一律にドロップアウトすることができる。また、画像中の文字をドロップアウトさせたくない場合には、同じ色相であっても文字は背景より低明度であることが多いから、感度パラメータTsを低く設定することで文字のある低明度側の明度Lをより低明度側の明度L’に変換することができる。これにより、画像中の文字をドロップアウトさせずに残すことができる。このような感度パラメータTsの調整を、各色相範囲毎に設定可能なものとしたから、ドロップアウト処理の対象色毎に、ユーザーの所望するドロップアウト効果を与えることができる。   In this dropout color conversion process, first, each value of the LCH color system of the processing pixel is read (step S500), and the sensitivity parameter Ts registered in association with the hue range HR (d) n is read (step S500). S510). Next, the lightness conversion processing of lightness L is performed using the conversion curves L1 and L2 in which the position of the intersection point Q is changed by changing the position of the intersection point Q of the conversion curves L1 and L2 according to the read sensitivity parameter Ts ( Step S520). Here, FIG. 10 is an explanatory diagram showing conversion curves L1 and L2 used for the lightness conversion processing. As shown in FIG. 10 (a), the input lightness L is plotted on the horizontal axis, the output lightness L ′ is plotted on the vertical axis, and the conversion curve L1 for converting the lightness L on the high lightness side into lightness L ′ and the low lightness side. The intersection with the conversion curve L2 for converting the lightness L to lightness L ′ is referred to as an intersection Q. Further, this intersection point Q can be translated in the left-right direction in the figure in accordance with the value of the sensitivity parameter Ts. That is, when the position of the intersection point Q is expressed by coordinates (TIn, K (K is a constant)), the value of TIn can be adjusted by the sensitivity parameter Ts. More specifically, as shown in FIG. 10B, as the sensitivity parameter Ts is increased, the value of TIn decreases and the intersection Q moves to the left in the figure (for example, the intersection Q ′). In this case, the lightness L particularly on the low lightness side is converted into a lightness L ′ that is higher than the lightness L ′. On the other hand, as the sensitivity parameter Ts is decreased, the value of TIn increases and the intersection point Q moves to the right in the figure (for example, the intersection point Q ″). In this case, the lightness L on the low lightness side is particularly reduced by the conversion curve L2 ″. Will be converted to a lower lightness L ′. Thus, it can be seen that the lightness conversion process using the conversion curves L1 and L2 is a color gamut compression process for compressing the range of the lightness L histogram. For example, when there is a color gradation in the background of the image and it is desired to drop out uniformly, the brightness L on the low brightness side is converted to the brightness L ′ on the high brightness side by setting the sensitivity parameter Ts high. Therefore, the brightness L of the background pixels can be converted to a uniform brightness L. Thereby, background pixels can be uniformly dropped out. In addition, when it is not desired to drop out characters in the image, the characters are often lighter than the background even if they have the same hue, so by setting the sensitivity parameter Ts lower, the lower lightness side where the characters are present. Can be converted into a lightness L ′ on the lower lightness side. Thereby, the characters in the image can be left without being dropped out. Since the adjustment of the sensitivity parameter Ts can be set for each hue range, a dropout effect desired by the user can be provided for each target color of the dropout process.

こうして明度変換処理を行なうと、色空間の逆変換処理を行なう(ステップS530)。この逆変換処理は、明度変換処理後の明度L’と彩度C,色相Hとから次式(7)〜(9)によりYCbCr表色系(Y’Cb’Cr’)に変換し、変換したY’Cb’Cr’を次式(10)〜(12)によりRGB表色系(R’G’B’)に変換することにより行なわれる。   When lightness conversion processing is performed in this way, color space inverse conversion processing is performed (step S530). This inverse conversion processing is performed by converting the lightness L ′, saturation C, and hue H after the lightness conversion processing into a YCbCr color system (Y′Cb′Cr ′) by the following equations (7) to (9). Y′Cb′Cr ′ is converted into the RGB color system (R′G′B ′) by the following equations (10) to (12).

Y'=L' (7)
Cb'=C×sin(H×π/180) (8)
Cr'=C×cos(H×π/180) (9)
R'=Y'+1.402Cr' (10)
G'=Y'−0.344Cb'−0.714Cr' (11)
B'=Y'+1.773Cb' (12)
Y '= L' (7)
Cb '= C × sin (H × π / 180) (8)
Cr '= C × cos (H × π / 180) (9)
R '= Y' + 1.402Cr '(10)
G ′ = Y′−0.344Cb′−0.714Cr ′ (11)
B '= Y' + 1.773Cb '(12)

こうして色空間の逆変換処理を行なうと、色相範囲HR(d)nに対応付けて登録された強度パラメータTdを読み込む(ステップS540)。次に、読み込んだ強度パラメータTdに基づいて変換行列の係数を調整し調整した変換行列を用いて色変換処理を行なう(ステップS550)。ここでは、まず、次式(13)に示す調整用行列(dIntensity)に強度パラメータTdを入力して調整用行列(dIntensity)の各値を定める。次に、次式(14)により調整用行列(dIntensity)を後述する基準係数d1,d2,d3に乗じて変換行列の各係数d1’,d2’,d3’を算出する。そして、次式(15)により、ステップS530の逆変換処理で得られたR’G’B’に変換行列を乗じてRd,Gd,Bdを得る。このようにしてステップS550の色変換処理が行なわれ、この処理で得られたRd,Gd,Bdは、ドロップアウト非対象の画素と共に、上述した色変換処理ルーチンのステップS150のグレースケール化処理に用いられる。   When the color space inverse conversion process is performed in this way, the intensity parameter Td registered in association with the hue range HR (d) n is read (step S540). Next, color conversion processing is performed using the conversion matrix adjusted by adjusting the coefficient of the conversion matrix based on the read intensity parameter Td (step S550). Here, first, the strength parameter Td is input to the adjustment matrix (dIntensity) shown in the following equation (13) to determine each value of the adjustment matrix (dIntensity). Next, the coefficients d1 ', d2', d3 'of the transformation matrix are calculated by multiplying the adjustment matrix (dIntensity) by later-described reference coefficients d1, d2, d3 by the following equation (14). Then, Rd, Gd, Bd is obtained by multiplying R′G′B ′ obtained by the inverse transformation processing in step S530 by the transformation matrix according to the following equation (15). In this way, the color conversion process in step S550 is performed, and Rd, Gd, and Bd obtained by this process are used for the gray scale conversion process in step S150 of the color conversion process routine described above together with pixels that are not subject to dropout. Used.

ここで、色変換用の基準係数d1,d2,d3の一例を図11に示す。図示するように、各色に応じて基準係数d1,d2,d3の値が定められている。例えば、赤や桃の場合には、基準係数d1が値1に定められ基準係数d2,d3が値0に定められている。赤や桃の場合にはもとよりR(R’)の値が高いため、上述した式(13)〜(15)から、R(R’)の高い値をより反映させた色変換処理が行なわれることがわかる。即ち、グレースケール化されたときの階調値がより高くなるよう係数値が定められている。また、他の色についても同様に定められている。一方、調整用行列(dIntensity)についても、強度パラメータTdが大きくなるほどより高い階調値が得られるように変換行列の係数d1’,d2’,d3’を導き出す行列となっている。このため、強度パラメータTdを大きくするほどグレースケール化処理された画素の階調値が一律に高くされてドロップアウトされやすくなる。このような強度パラメータTdの調整を、各色相範囲毎に設定可能なものとしたから、ドロップアウト処理の対象色毎に、ユーザーの所望するドロップアウト効果を一律に与えることができる。ここで、色相範囲HR(d)nが主にどの色を示すものであるかは、例えば色相範囲HR(d)nの中央値と各色の代表的な色相範囲の中央値とを比較して最も近い色に定めるなど、色相の値を用いて定めることができるため、色相範囲HR(d)nが示す色に応じて図11の基準係数d1,d2,d3を選択するものなどとすればよい。   Here, an example of the reference coefficients d1, d2, and d3 for color conversion is shown in FIG. As shown in the figure, the values of the reference coefficients d1, d2, and d3 are determined according to each color. For example, in the case of red or peach, the reference coefficient d1 is set to the value 1 and the reference coefficients d2 and d3 are set to the value 0. In the case of red or peach, since the value of R (R ′) is high from the start, color conversion processing that reflects a higher value of R (R ′) is performed from the above-described equations (13) to (15). I understand that. That is, the coefficient value is determined so that the gradation value when grayscaled becomes higher. The other colors are also defined in the same manner. On the other hand, the adjustment matrix (dIntensity) is also a matrix from which the coefficients d1 ', d2', d3 'of the conversion matrix are derived so that a higher gradation value is obtained as the intensity parameter Td increases. For this reason, as the intensity parameter Td is increased, the grayscale values of the pixels subjected to the grayscale processing are uniformly increased and are easily dropped out. Since the adjustment of the intensity parameter Td can be set for each hue range, the dropout effect desired by the user can be uniformly provided for each target color of the dropout process. Here, which color the hue range HR (d) n mainly indicates is determined by, for example, comparing the median of the hue range HR (d) n with the median of the representative hue range of each color. Since it can be determined using the hue value such as the closest color, the reference coefficients d1, d2, and d3 in FIG. 11 are selected according to the color indicated by the hue range HR (d) n. Good.

次に、強調用の色変換処理について説明する。図12は、強調用色変換処理の一例を示すフローチャートである。この強調用色変換処理では、まず、処理画素のLCH表色系の各値を読み込んで(ステップS600)、色空間の逆変換処理を行なう(ステップS610)。この逆変換処理は、LCH表色系の各値を上述した式(7)〜(9)と同様の式によりYCbCr表色系に変換し、変換したYCbCr表色系の各値を上述した式(10)〜(12)と同様の式によりRGB表色系に変換することにより行なわれる。こうして逆変換処理を行なうと、変換したRGB表色系の各値を強調用処理の値として予め設定されたRk,Gk,Bkに置換する置換処理を行なう(ステップS620)。ここでは、予め設定された値として、(Rk,Gk,Bk)=(0,0,0)即ち黒画素となる値が定められているものとした。なお、色相範囲HR(k)nに対応付けて登録された強度パラメータTdを、予め設定されたRk,Gk,Bkの各値を調整するためのパラメータとして用いることもできる。例えば、強度パラメータTdが低いほど黒色よりも明るくなる色の画素値に調整するものなどとしてもよい。この処理で得られたRk,Gk,Bkは、強調非対象の画素と共に、上述した色変換処理ルーチンのステップS150のグレースケール化処理に用いられる。このため、強調処理のすべての対象色は黒色に変換されるから、強調処理の対象である文字などを視認性のよい色に色変換することができる。   Next, a color conversion process for emphasis will be described. FIG. 12 is a flowchart illustrating an example of the emphasis color conversion process. In this enhancement color conversion process, first, each value of the LCH color system of the processing pixel is read (step S600), and the color space reverse conversion process is performed (step S610). In this inverse conversion process, each value of the LCH color system is converted into a YCbCr color system by the same formulas as the formulas (7) to (9) described above, and each value of the converted YCbCr color system is expressed by the formula described above. This is performed by converting to the RGB color system using the same equations as (10) to (12). When the inverse conversion process is performed in this way, a replacement process is performed in which the converted values of the RGB color system are replaced with Rk, Gk, and Bk set in advance as values for the enhancement process (step S620). Here, as a preset value, (Rk, Gk, Bk) = (0, 0, 0), that is, a value for a black pixel is determined. The intensity parameter Td registered in association with the hue range HR (k) n can also be used as a parameter for adjusting each value of Rk, Gk, and Bk set in advance. For example, the pixel value may be adjusted to a color that becomes brighter than black as the intensity parameter Td is lower. Rk, Gk, and Bk obtained by this processing are used for the gray scale processing in step S150 of the color conversion processing routine described above together with the non-emphasized pixels. For this reason, since all the target colors of the emphasis processing are converted to black, it is possible to color-convert characters and the like that are the targets of the emphasis processing into colors with high visibility.

ここで、本実施形態の構成要素と本発明の構成要素との対応関係を明らかにする。本実施形態の図9のドロップアウト用色変換処理を行なう機能を含むドロップアウト機能を有するドライバー25aが本発明の「第1の色変換手段」に相当し、図12の強調用色変換処理を行なう機能を含む強調機能を有するドライバー25aが「第2の色変換手段」に相当し、図6の色変換処理ルーチンや図9のドロップアウト用色変換処理,図12の強調用色変換処理を実行するCPU22が「色変換実行手段」に相当する。また、設定画面60の調整欄65の強度用スライドバー73を介して強度の設定を受け付けるCPU22が「強度調整受付手段」に相当し、設定画面60の調整欄65の感度用スライドバー72を介して感度の設定を受け付けるCPU22が「感度調整受付手段」に相当する。   Here, the correspondence between the components of the present embodiment and the components of the present invention will be clarified. The driver 25a having a dropout function including the function of performing the dropout color conversion process of FIG. 9 of this embodiment corresponds to the “first color conversion means” of the present invention, and the enhancement color conversion process of FIG. The driver 25a having the enhancement function including the function to be performed corresponds to the “second color conversion unit”, and performs the color conversion processing routine of FIG. 6, the drop-out color conversion processing of FIG. 9, and the enhancement color conversion processing of FIG. The CPU 22 to execute corresponds to “color conversion execution means”. Further, the CPU 22 that receives the strength setting via the strength slide bar 73 in the adjustment field 65 of the setting screen 60 corresponds to “strength adjustment acceptance means”, and the sensitivity slide bar 72 in the adjustment field 65 of the setting screen 60 is used. The CPU 22 that receives the sensitivity setting corresponds to “sensitivity adjustment receiving means”.

以上詳述した本実施形態のスキャンシステム10によれば、ドロップアウト対象の画素に対しては、ドロップアウト処理用の係数が設定された演算式を用いて対象画素の画素値を変換する処理を含むドロップアウト用の色変換処理を実行し、強調処理の対象画素に対しては、対象色の画素の画素値を強調処理用の黒の画素値に置き換える処理を含む強調用の色変換処理を実行するから、ドロップアウト処理と強調処理とに応じた異なる手法を用いて変換処理を行なうことができ、ドロップアウト処理と強調処理とのそれぞれの処理においてより適切に色変換することができるようになる。また、強度パラメータTdの調整や感度パラメータTsの調整を各色相範囲毎に設定可能なものとしたから、ドロップアウト処理の対象色毎にユーザーの所望するドロップアウト効果を与えることができる。さらに、強調処理の対象色は黒色に変換されるから、より視認性のよい色に色変換することができる。また、強調処理の対象から背景色の画素を除外するから、強調処理の対象の文字と背景とを分離して文字のみを強調処理することができる。   According to the scan system 10 of the present embodiment described in detail above, for a pixel to be dropped out, a process of converting the pixel value of the target pixel using an arithmetic expression in which a coefficient for dropout processing is set. Including color conversion processing for dropout, and color conversion processing for emphasis that includes processing for replacing pixel values of pixels of the target color with black pixel values for emphasis processing for target pixels of the emphasis processing Since it is executed, conversion processing can be performed using different methods according to dropout processing and enhancement processing, and color conversion can be performed more appropriately in each processing of dropout processing and enhancement processing. Become. Further, since the adjustment of the intensity parameter Td and the adjustment of the sensitivity parameter Ts can be set for each hue range, a dropout effect desired by the user can be provided for each target color of the dropout process. Furthermore, since the target color of the enhancement process is converted to black, it can be converted to a color with better visibility. In addition, since the background color pixels are excluded from the target of the emphasis process, it is possible to perform the emphasis process only on the character by separating the target character and the background of the emphasis process.

なお、本発明は上述した実施態様に何ら限定されることはなく、本発明の技術的範囲に属する限り種々の態様で実施し得ることはいうまでもない。   In addition, this invention is not limited to the embodiment mentioned above at all, and it cannot be overemphasized that it can implement with a various aspect, as long as it belongs to the technical scope of this invention.

上述した実施形態では、色相範囲HR(k)nに設定された画素の数と画像全体の画素の数との比率Rが所定の閾値Rrefを超える場合に明度のヒストグラムの最頻値Lmoと最大値Lmaxとに基づいて閾値Lref1を設定して背景画素を除外するものとしたが、これに限られず、単に最頻値Lmoを閾値Lref1に設定するものなどとして背景画素を除外するものとしてもよい。また、色相範囲HR(k)nに設定された画素の数と画像全体の画素の数との比率Rが所定の閾値Rrefを超えない場合に所定の閾値Lref2を用いて色相範囲HR(k)nから背景画素を除外するものとしたが、これに限られるものではない。例えば、色相範囲HR(k)nに設定された画素の数と画像全体の画素の数との比率Rが所定の閾値Rrefを超えない場合には色相範囲HR(k)nに設定された画素を除外することなく強調対象とするものとしてもよい。または、比率Rが所定の閾値Rrefを超えるか否かに拘わらず色相範囲HR(k)nの明度ヒストグラムを作成して設定した閾値Lref1を用いて除外する画素を決定するものとしてもよい。その場合、図7のステップS440,S480の処理を省略するものとすればよい。あるいは、このような色相範囲HR(k)nに設定された画素から除外する処理を行なわないものとしてもよく、その場合、図7のステップS430〜S490の処理を省略するものとすればよい。   In the embodiment described above, when the ratio R between the number of pixels set in the hue range HR (k) n and the number of pixels in the entire image exceeds a predetermined threshold value Rref, the mode value Lmo and the maximum value of the brightness histogram are set. The background pixel is excluded by setting the threshold value Lref1 based on the value Lmax. However, the present invention is not limited to this, and the background pixel may be excluded simply by setting the mode Lmo to the threshold value Lref1. . When the ratio R between the number of pixels set in the hue range HR (k) n and the number of pixels in the entire image does not exceed the predetermined threshold value Rref, the hue range HR (k) is determined using the predetermined threshold value Lref2. Although background pixels are excluded from n, the present invention is not limited to this. For example, if the ratio R between the number of pixels set in the hue range HR (k) n and the number of pixels in the entire image does not exceed a predetermined threshold value Rref, the pixels set in the hue range HR (k) n It is good also as a thing to be emphasized without excluding. Alternatively, pixels to be excluded may be determined using a threshold value Lref1 that is set by creating a brightness histogram of the hue range HR (k) n regardless of whether the ratio R exceeds a predetermined threshold value Rref. In that case, the processing in steps S440 and S480 in FIG. 7 may be omitted. Alternatively, the process of excluding the pixels set in the hue range HR (k) n may not be performed, and in this case, the processes in steps S430 to S490 in FIG. 7 may be omitted.

上述した実施形態では、強調処理において処理対象の画素の色を黒色に置換するものとしたが、これに限られず、赤色などの他の色に置換するものとしてもよい。   In the embodiment described above, the color of the pixel to be processed is replaced with black in the enhancement processing, but the present invention is not limited to this, and may be replaced with another color such as red.

上述した実施形態では、設定画面60の調整欄65における強度用スライドバー73と感度用スライドバー72とにより強度と感度との両方を調整可能なものとしたが、これに限られず、いずれか一方のみを調整可能なものとしてもよいし、両方の調整を受け付けないものとしてもよい。   In the embodiment described above, both the strength and the sensitivity can be adjusted by the strength slide bar 73 and the sensitivity slide bar 72 in the adjustment field 65 of the setting screen 60. However, the present invention is not limited to this. It is good also as what can adjust only, and it is good also as a thing which cannot accept both adjustments.

上述した実施形態では、設定画面60の調整欄65における色相バー68を長手方向が左右方向になるようレイアウトするものとしたが、これに限られず、長手方向が上下方向になるようレイアウトするものとしてもよい。この場合、帯状の色相バー68の長手方向に直交する方向にある色相バー68の左右の領域に、ラジオボタン65a〜65eや感度用スライドバー72,強度用スライドバー73をレイアウトするものとすればよい。   In the above-described embodiment, the hue bar 68 in the adjustment field 65 of the setting screen 60 is laid out so that the longitudinal direction is the left-right direction. Also good. In this case, the radio buttons 65a to 65e, the sensitivity slide bar 72, and the strength slide bar 73 should be laid out in the left and right regions of the hue bar 68 in the direction orthogonal to the longitudinal direction of the belt-like hue bar 68. Good.

上述した実施形態では、CPU22がドロップアウト機能と強調機能とを有するドライバー25aを読み出して色変換処理を伴ってスキャン処理するものとしたが、これに限られるものではなく、ドロップアウト機能と強調機能とを有するアプリケーションソフトを読み出して処理を行なうものとしてもよい。あるいは、ドロップアウト機能と強調機能とがプリンター30に組み込まれ、このプリンター30のコントローラー31がドロップアウト機能や強調機能を読み出して処理を行なうものとしてもよい。その場合、設定画面60をプリンター30の表示部に表示するものなどとすればよい。   In the above-described embodiment, the CPU 22 reads the driver 25a having the dropout function and the enhancement function and performs the scan process with the color conversion process. However, the present invention is not limited to this, and the dropout function and the enhancement function are not limited thereto. It is also possible to read the application software having Alternatively, a dropout function and an enhancement function may be incorporated in the printer 30, and the controller 31 of the printer 30 may read the dropout function and the enhancement function and perform processing. In that case, the setting screen 60 may be displayed on the display unit of the printer 30.

上述した実施形態では、強調用の色変換処理においてRGB表色系の各値を一律に画素値(Rk,Gk,Bk)=(0,0,0)に置換するものとしたが、これに限られず、RGB表色系の各値を変換前後の値が予め定められた強調処理用のLUT(ルックアップテーブル)を用いて置換するものとしてもよい。この強調処理用のLUTの図示は省略するが、例えば、入力される階調値が値0から所定の階調値までの間にある場合には値0に置換し、所定の階調値から値255までの間にある場合には入力される階調値よりも低い階調値に置換するよう定められているものなどとすればよい。なお、この場合、色相範囲HR(k)nに対応付けて登録された強度パラメータTdを、強調処理用のLUTにおける所定の階調値を調整するためのパラメータとして用いることもできる。例えば、強度パラメータTdが低いほど値0に置換される画素が少なくなって変換処理の結果(文字など)がより明るくなる(薄くなる)よう所定の階調値を値0側に移動させ、強度パラメータTdが高いほど値0に置換される画素が多くなって変換処理の結果がより暗くなる(濃くなる)よう所定の階調値を値255側に移動させるものなどとすればよい。   In the embodiment described above, each value of the RGB color system is uniformly replaced with the pixel value (Rk, Gk, Bk) = (0, 0, 0) in the color conversion processing for emphasis. The present invention is not limited to this, and each value of the RGB color system may be replaced using an enhancement processing LUT (Look Up Table) in which values before and after conversion are predetermined. Although illustration of the LUT for emphasis processing is omitted, for example, when the input gradation value is between the value 0 and a predetermined gradation value, the value is replaced with the value 0, and from the predetermined gradation value, If the value is between the values up to 255, it may be determined to be replaced with a gradation value lower than the input gradation value. In this case, the intensity parameter Td registered in association with the hue range HR (k) n can also be used as a parameter for adjusting a predetermined gradation value in the LUT for enhancement processing. For example, as the intensity parameter Td is lower, fewer pixels are replaced with the value 0, and the predetermined gradation value is moved to the value 0 side so that the result of conversion processing (characters, etc.) becomes brighter (lighter). The predetermined gradation value may be moved to the value 255 side so that the higher the parameter Td is, the more pixels are replaced with the value 0 and the result of the conversion process becomes darker (darker).

上述した実施形態では、出力画像としてグレーやモノクロを出力する場合を例示したが、カラーの画像を出力する場合に適用するものとしてもよい。   In the above-described embodiment, the case where gray or monochrome is output as an output image has been illustrated. However, the present invention may be applied to output a color image.

上述した実施形態では、印刷機構32やスキャナー機構33を備える複合機としてのプリンター30を例として説明したが、印刷機構32を備えずにスキャナー機構のみを備えるスキャナー単体機であってもよい。また、上述した実施形態では、インクジェット方式の印刷機構32を例として説明したが、レーザー方式の印刷機構であってもよい。さらに、上述した実施形態では、原稿に向かって発光したあとの反射光をレッド(R),グリーン(G),ブルー(B)の各色に分解したRGBデータをスキャン画像とする周知のカラーイメージセンサーを備えるスキャナー機構33を例として説明したが、レッド(R),グリーン(G),ブルー(B)の各色の光源およびモノクロイメージセンサーを備えるCIS(コンタクトイメージセンサー)方式のスキャナー機構であってもよい。   In the embodiment described above, the printer 30 as a multifunction machine including the printing mechanism 32 and the scanner mechanism 33 has been described as an example. However, a single scanner that includes only the scanner mechanism without including the printing mechanism 32 may be used. In the above-described embodiment, the inkjet printing mechanism 32 has been described as an example. However, a laser printing mechanism may be used. Further, in the above-described embodiment, a well-known color image sensor that uses RGB data obtained by separating reflected light after being emitted toward a document into red (R), green (G), and blue (B) colors as scan images. The scanner mechanism 33 having the above has been described as an example. However, even a CIS (contact image sensor) type scanner mechanism having a light source of each color of red (R), green (G), and blue (B) and a monochrome image sensor. Good.

10 スキャンシステム、12 USBケーブル、20 ユーザーコンピューター(ユーザーPC)、21 コントローラー、22 CPU、23 ROM、24 RAM、25 ハードディスクドライブ(HDD)、25a ドライバー、26 操作部、27 表示部、29 バス、30 プリンター、31 コントローラー、32 印刷機構、33 スキャナー機構、40 画質調整画面、41 出力設定欄、42a,42b,42c ラジオボタン、43 リストボックス、45 画質調整欄、46 チェックボックス、47 リストボックス、48 明るさ用スライドバー、48a,49a 数値ボックス、49 コントラスト用スライドバー、50 ボタン群、51 プレビューボタン、52 本スキャンボタン、53 ヘルプボタン、54 環境設定ボタン、55 閉じるボタン、60 ドロップアウト/強調色の設定画面、61 設定登録欄、62 リストボックス、63 保存ボタン、64 削除ボタン、65 調整欄、65a,65b,65c,65d,65e ラジオボタン、66 追加ボタン、67 削除ボタン、68 色相バー、69,69a,69b,69c スライダー、70a,70b 数値ボックス、71a,71b ラジオボタン、72 感度用スライドバー、72a,73a 数値ボックス、73 強度用スライドバー、74 リセットボタン、75 抽出欄、76 プレビュー領域、77 抽出アイコン、78 拡大表示領域、78a 抽出位置、80 ボタン群、81 チェックボックス、82 ヘルプボタン、83 閉じるボタン、HR(d)1,HR(d)2,HR(d)3 ドロップアウト用色相範囲、HR(k)2 強調用色相範囲、L1,L1’,L1”,L2,L2’,L2” 変換曲線、P プレビュー画像、Q,Q’,Q” 交点、S 用紙。   10 Scan System, 12 USB Cable, 20 User Computer (User PC), 21 Controller, 22 CPU, 23 ROM, 24 RAM, 25 Hard Disk Drive (HDD), 25a Driver, 26 Operation Unit, 27 Display Unit, 29 Bus, 30 Printer, 31 Controller, 32 Printing mechanism, 33 Scanner mechanism, 40 Image quality adjustment screen, 41 Output setting field, 42a, 42b, 42c Radio button, 43 List box, 45 Image quality adjustment field, 46 Check box, 47 List box, 48 Brightness Slide bar, 48a, 49a numeric box, 49 contrast slide bar, 50 buttons, 51 preview button, 52 scan buttons, 53 help buttons, 54 preferences , 55 Close button, 60 Dropout / highlight color setting screen, 61 Setting registration field, 62 List box, 63 Save button, 64 Delete button, 65 Adjustment field, 65a, 65b, 65c, 65d, 65e Radio button, 66 Add button, 67 Delete button, 68 Hue bar, 69, 69a, 69b, 69c Slider, 70a, 70b Numeric box, 71a, 71b Radio button, 72 Sensitivity slide bar, 72a, 73a Numeric box, 73 Strength slide bar, 74 reset button, 75 extraction field, 76 preview area, 77 extraction icon, 78 enlarged display area, 78a extraction position, 80 button group, 81 check box, 82 help button, 83 close button, HR (d) 1, HR (d ) 2, HR (d) 3 Hue range for dropout, HR (k) 2 emphasizing color range, L1, L1 ', L1 ", L2, L2', L2" conversion curve, P preview image, Q, Q ', Q "intersections, S paper.

Claims (7)

色変換処理により画像データを処理する画像処理装置であって、
前記色変換処理としてドロップアウト処理と強調処理のいずれかの処理種の指定を伴って色変換の対象色の指定を受け付ける指定受付手段と、
所定の係数が設定された演算式を用いて前記対象色の画素の画素値を変換することにより色変換する第1の色変換手段と、
前記対象色の画素の画素値を所定の画素値に置き換えることにより色変換する第2の色変換手段と、
前記ドロップアウト処理が指定された場合には、前記所定の係数としてドロップアウト処理用の係数を用いて前記第1の色変換手段を実行し、前記強調処理が指定された場合には、前記所定の画素値として強調処理用の画素値を用いて前記第2の色変換手段を実行する色変換実行手段と
を備える画像処理装置。
An image processing apparatus that processes image data by color conversion processing,
A designation receiving means for accepting designation of a target color for color conversion with designation of a processing type of either dropout processing or enhancement processing as the color conversion processing;
First color conversion means for performing color conversion by converting a pixel value of a pixel of the target color using an arithmetic expression in which a predetermined coefficient is set;
Second color conversion means for performing color conversion by replacing a pixel value of a pixel of the target color with a predetermined pixel value;
When the dropout process is specified, the first color conversion unit is executed using a coefficient for dropout processing as the predetermined coefficient. When the enhancement process is specified, the predetermined An image processing apparatus comprising: a color conversion execution unit that executes the second color conversion unit using a pixel value for enhancement processing as the pixel value.
前記画像データとして複数の色成分で構成されるカラーの画像データを処理する請求項1記載の画像処理装置であって、
前記第1の色変換手段は、前記所定の係数として各色成分に対する重み付けが振り分けられた係数を用いると共に前記演算式として前記所定の係数を前記各色成分の画素値に乗じて加算した値を該各色成分の新たな画素値とする式を用いて前記色変換する手段であり、
前記色変換実行手段は、前記ドロップアウト処理用の係数として、前記対象色を構成する各色成分のうち画素値の大きな色成分ほど前記重み付けが重くなるよう設定された係数を用いて前記第1の色変換手段を実行する手段である
画像処理装置。
The image processing apparatus according to claim 1, wherein the image processing apparatus processes color image data composed of a plurality of color components as the image data.
The first color conversion unit uses a coefficient in which the weight for each color component is distributed as the predetermined coefficient, and multiplies the pixel value of each color component by the predetermined coefficient as the arithmetic expression, and adds the value obtained by adding the value to each color component. Means for performing the color conversion using an expression for a new pixel value of a component;
The color conversion execution unit uses the first coefficient as a coefficient for the dropout processing so that the weighting of the color component having a larger pixel value becomes heavier among the color components constituting the target color. An image processing apparatus which is means for executing color conversion means.
請求項2記載の画像処理装置であって、
前記ドロップアウト処理の強度の調整を受け付ける強度調整受付手段を備え、
前記色変換実行手段は、前記受け付けられた強度が高いほど前記重み付けの重みが増すよう前記ドロップアウト処理用の係数を補正して前記第1の色変換手段を実行する手段である
画像処理装置。
The image processing apparatus according to claim 2,
Comprising strength adjustment accepting means for accepting the adjustment of the strength of the dropout process;
The color conversion execution means is an image processing apparatus that executes the first color conversion means by correcting the coefficient for dropout processing so that the weighting weight increases as the received intensity increases.
請求項2または3記載の画像処理装置であって、
前記ドロップアウト処理の感度の調整を受け付ける感度調整受付手段を備え、
前記色変換実行手段は、前記受け付けられた感度が高いほど前記対象色の各色成分の画素値が高くなるよう補正して該補正後の画素値に対して前記第1の色変換手段を実行する手段である
画像処理装置。
The image processing apparatus according to claim 2 or 3,
A sensitivity adjustment receiving means for receiving sensitivity adjustment of the dropout process;
The color conversion execution unit corrects the pixel value of each color component of the target color to be higher as the received sensitivity is higher, and executes the first color conversion unit on the corrected pixel value. An image processing apparatus.
前記画像データとして複数の色成分で構成されるカラーの画像データを処理する請求項1ないし4いずれか1項に記載の画像処理装置であって、
前記色変換実行手段は、前記強調処理用の画素値として、各色成分の画素値が最小となるよう定められた値を用いて前記第2の色変換手段を実行する手段である
画像処理装置。
The image processing apparatus according to any one of claims 1 to 4, wherein color image data including a plurality of color components is processed as the image data.
The image processing apparatus, wherein the color conversion execution unit is a unit that executes the second color conversion unit using a value determined so as to minimize a pixel value of each color component as the pixel value for the enhancement processing.
前記色変換実行手段は、前記強調処理が指定された場合には、前記対象色に該当する画素のうち明度が所定の閾値以上の画素を対象から除外し明度が該所定の閾値未満の画素を対象として前記第2の色変換手段を実行する手段である請求項5記載の画像処理装置。   When the enhancement processing is designated, the color conversion execution unit excludes pixels having lightness equal to or higher than a predetermined threshold from pixels corresponding to the target color, and removes pixels having lightness less than the predetermined threshold. The image processing apparatus according to claim 5, wherein the image processing apparatus is means for executing the second color conversion means as a target. コンピューターを、請求項1ないし6いずれか1項に記載の画像処理装置として機能させるためのプログラム。   A program for causing a computer to function as the image processing apparatus according to any one of claims 1 to 6.
JP2010198609A 2010-09-06 2010-09-06 Image processing apparatus and program Expired - Fee Related JP5644282B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010198609A JP5644282B2 (en) 2010-09-06 2010-09-06 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010198609A JP5644282B2 (en) 2010-09-06 2010-09-06 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2012060212A true JP2012060212A (en) 2012-03-22
JP5644282B2 JP5644282B2 (en) 2014-12-24

Family

ID=46056831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010198609A Expired - Fee Related JP5644282B2 (en) 2010-09-06 2010-09-06 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP5644282B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014053843A (en) * 2012-09-10 2014-03-20 Casio Comput Co Ltd Printer and printing method of the same
JP2016187068A (en) * 2015-03-27 2016-10-27 ブラザー工業株式会社 Image processing apparatus and computer program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11187958A (en) * 1997-12-25 1999-07-13 Design Art Studio:Kk Temporary structure for store or stage
JPH11272864A (en) * 1998-03-20 1999-10-08 Hitachi Ltd Optical character read method or its device
US6035058A (en) * 1998-02-10 2000-03-07 Eastman Kodak Company Automatic color dropout using luminance-chrominance space processing
JP2002358482A (en) * 2001-04-30 2002-12-13 Eastman Kodak Co Method for performing color dropout
JP2005150837A (en) * 2003-11-11 2005-06-09 Fuji Photo Film Co Ltd Document processor
JP2009159185A (en) * 2007-12-26 2009-07-16 Hitachi Computer Peripherals Co Ltd Drop out color treatment method and its apparatus

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11187958A (en) * 1997-12-25 1999-07-13 Design Art Studio:Kk Temporary structure for store or stage
US6035058A (en) * 1998-02-10 2000-03-07 Eastman Kodak Company Automatic color dropout using luminance-chrominance space processing
JPH11272864A (en) * 1998-03-20 1999-10-08 Hitachi Ltd Optical character read method or its device
JP2002358482A (en) * 2001-04-30 2002-12-13 Eastman Kodak Co Method for performing color dropout
JP2005150837A (en) * 2003-11-11 2005-06-09 Fuji Photo Film Co Ltd Document processor
JP2009159185A (en) * 2007-12-26 2009-07-16 Hitachi Computer Peripherals Co Ltd Drop out color treatment method and its apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014053843A (en) * 2012-09-10 2014-03-20 Casio Comput Co Ltd Printer and printing method of the same
JP2016187068A (en) * 2015-03-27 2016-10-27 ブラザー工業株式会社 Image processing apparatus and computer program

Also Published As

Publication number Publication date
JP5644282B2 (en) 2014-12-24

Similar Documents

Publication Publication Date Title
JP5640550B2 (en) Color conversion instruction apparatus and program
US8698833B2 (en) Color designation control device, color designation control method, and medium storing color designation control program
US8995024B2 (en) Image processing apparatus, image processing method, and program
US8014602B2 (en) Backlight image determining apparatus, backlight image determining method, backlight image correction apparatus, and backlight image correction method
US20150332653A1 (en) Image processing apparatus, image processing system, and image processing method
US9225877B2 (en) Image processing apparatus, method for processing images, and program for performing density adjustments
EP2424218B1 (en) Image forming apparatus and method of processing image thereof
US8094165B2 (en) Color reproduction evaluation apparatus and program storage medium
JP5644282B2 (en) Image processing apparatus and program
US9967407B2 (en) Image reading device and method, reading area display device and method, and program
JP2015126277A (en) Image processing apparatus and image processing method
US9064205B2 (en) Method of printing document based on black optimization printing option and image forming apparatus and host device to perform the same
JP5644280B2 (en) Color conversion instruction apparatus and program
US20170366707A1 (en) Image Processing Apparatus and Image Processing Method That Ensure Improved Visibility of Character After Conversion into Monochrome Image Data, and Recording Medium Therefor
JP4431887B2 (en) Image processing apparatus, image processing method, image processing program, print control apparatus, print control method, and print control program
JP6852618B2 (en) Computer programs and image processing equipment
US20130135633A1 (en) Image processing apparatus, controlling method of image processing apparatus, and storage medium
JP6562381B2 (en) Image forming apparatus and program
JP6809010B2 (en) Scanned image correction device, scanned image correction method, and computer program
JP5005734B2 (en) Image processing apparatus, image processing method, and image processing program
JP6263951B2 (en) Image processing apparatus and program
JP5322980B2 (en) Image processing apparatus and image forming apparatus
JP2006279092A (en) Image processor
JP2013093721A (en) Image processing device, image processing method, and program
JP2009260663A (en) Color processing device, and method therein

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140722

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140919

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141007

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141020

R150 Certificate of patent or registration of utility model

Ref document number: 5644282

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees