JP2018074247A - Image forming apparatus and image forming program - Google Patents

Image forming apparatus and image forming program Download PDF

Info

Publication number
JP2018074247A
JP2018074247A JP2016208762A JP2016208762A JP2018074247A JP 2018074247 A JP2018074247 A JP 2018074247A JP 2016208762 A JP2016208762 A JP 2016208762A JP 2016208762 A JP2016208762 A JP 2016208762A JP 2018074247 A JP2018074247 A JP 2018074247A
Authority
JP
Japan
Prior art keywords
gradation
color
similar
information
outer edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016208762A
Other languages
Japanese (ja)
Inventor
将大 北川
Masahiro Kitagawa
将大 北川
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Data 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 Oki Data Corp filed Critical Oki Data Corp
Priority to JP2016208762A priority Critical patent/JP2018074247A/en
Publication of JP2018074247A publication Critical patent/JP2018074247A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an image forming apparatus which improves character visibility while keeping designability, and a program.SOLUTION: A PC 10 comprises: an information acquisition part 44 for acquiring gradation information and background color information from input gradation image data; a similar color determination part 46 for comparing a gradation color included in the gradation information with a background color included in the background information acquired by the information acquisition part and determines whether the gradation color and the background color are similar to each other; a similar gradation color variation part 48 for generating a gradation color obtained by varying a density value of the gradation color in a case where the similar color determination part determines that the colors are similar to each other; an outer edge part gradation information generation part 50 for generating outer edge part gradation information obtained by combining the gradation color generated by the similar gradation color variation part with an outer edge part of a gradation target included in the gradation information acquired by the information acquisition part; and an image output part 54 for outputting output gradation image data based on the outer edge part gradation information.SELECTED DRAWING: Figure 2

Description

本発明は画像形成装置及び画像形成プログラムに関し、文字の視認性を向上させる画像形成装置に適用して好適なものである。   The present invention relates to an image forming apparatus and an image forming program, and is suitable for application to an image forming apparatus that improves the visibility of characters.

従来、画像形成装置においては、文字を含んだ画像を形成した場合に、文字の外縁部を強調することにより文字の視認性を向上させていた(例えば、特許文献1参照)。このような画像形成装置においては、文字の外縁部に対して強調処理を行い、且つ文字の外縁部から内側に向かって徐々に濃度を低下させることで、文字の視認性を向上させつつ、濃度差による不自然さを低減してするものがあった。   Conventionally, in an image forming apparatus, when an image including a character is formed, the visibility of the character is improved by emphasizing the outer edge portion of the character (see, for example, Patent Document 1). In such an image forming apparatus, the emphasis processing is performed on the outer edge portion of the character, and the density is gradually decreased from the outer edge portion of the character toward the inner side, thereby improving the character visibility. Some have reduced unnaturalness due to differences.

特許第4181187号Japanese Patent No. 4181187

しかしながら、従来の方法では文字がグラデーションの場合には、外縁部の濃度が一様に高くなることで外縁部が目立ち、文字のデザイン性を保つことができない問題があった。   However, in the conventional method, when the character is gradation, there is a problem that the outer edge portion is conspicuous because the density of the outer edge portion is uniformly increased, and the design of the character cannot be maintained.

本発明は以上の点を考慮してなされたもので、デザイン性を保ちつつ文字の視認性を向上し得る画像形成装置及び画像形成プログラムを提案しようとするものである。   The present invention has been made in consideration of the above points, and intends to propose an image forming apparatus and an image forming program capable of improving the visibility of characters while maintaining the design.

かかる課題を解決するため本発明の画像形成装置は、画像データを入力する画像入力部に入力した画像データからグラデーション情報と背景色情報とを取得する情報取得部と、情報取得部で取得したグラデーション情報に含まれるグラデーション色と背景色情報に含まれる背景色とを比較し類似色であるかを判定する類似色判定部と、類似色判定部が類似色と判定した場合、グラデーション色の濃度値を変動させたグラデーション色を生成する類似グラデーション色変動部と、情報取得部で取得したグラデーション情報に含まれるグラデーション対象の外縁部に対して、類似グラデーション色変動部が生成したグラデーション色を組み合わせた外縁部グラデーション情報を生成する外縁部グラデーション情報生成部と外縁部グラデーション情報に基づく画像データを出力する画像出力部とを設けるようにした。   In order to solve such a problem, an image forming apparatus of the present invention includes an information acquisition unit that acquires gradation information and background color information from image data input to an image input unit that inputs image data, and a gradation acquired by the information acquisition unit. A similar color determination unit that compares the gradation color included in the information with the background color included in the background color information to determine whether the color is similar, and the density value of the gradation color when the similar color determination unit determines that the color is similar A similar gradation color variation part that generates a gradation color with a fluctuating color and an outer edge that combines the gradation color generated by the similar gradation color variation part to the gradation target outer edge part included in the gradation information acquired by the information acquisition part Outer edge gradation information generating unit for generating outer gradation information and outer edge gradation information It was provided and an image output unit for outputting image data based on.

また本発明の画像形成プログラムは、コンピュータに、画像データを入力する画像入力部に入力した画像データからグラデーション情報と背景色情報とを取得する情報取得ステップと、情報取得ステップにおいて取得したグラデーション情報に含まれるグラデーション色と背景色情報に含まれる背景色とを比較し類似色であるかを判定する類似色判定ステップと、類似色判定ステップにおいて類似色と判定した場合、グラデーション色の濃度値を変動させたグラデーション色を生成する類似グラデーション色変動ステップと、情報取得ステップにおいて取得したグラデーション情報に含まれるグラデーション対象の外縁部に対して、類似グラデーション色変動ステップにおいて生成したグラデーション色を組み合わせた外縁部グラデーション情報を生成する外縁部グラデーション情報生成ステップと、外縁部グラデーション情報に基づく画像データを出力する画像出力ステップとを行わせるようにした。   The image forming program of the present invention also includes an information acquisition step for acquiring gradation information and background color information from image data input to an image input unit for inputting image data to a computer, and gradation information acquired in the information acquisition step. A similar color determination step that compares the included gradation color with the background color included in the background color information to determine whether it is a similar color, and if the similar color determination step determines a similar color, the gradation color density value varies. A similar gradation color variation step for generating a gradation color, and an outer edge gradation in which the gradation color generated in the similar gradation color variation step is combined with the outer edge portion of the gradation target included in the gradation information acquired in the information acquisition step And the outer edge portion gradation information generating step of generating a broadcast, and to carry out an image output step of outputting the image data based on the outer edge gradient information.

これにより本発明は、文字の外縁部における背景との濃度差が大きい箇所のみの濃度を僅かに変動させることにより、外縁部が目立ち過ぎない程度に文字と背景との境界を視認させることができる。   Thus, the present invention makes it possible to visually recognize the boundary between the character and the background to such an extent that the outer edge portion is not conspicuous by slightly varying the density of only the portion where the density difference between the outer edge portion and the background is large. .

本発明は、デザイン性を保ちつつ文字の視認性を向上し得る画像形成装置及び画像形成プログラムを実現できる。   The present invention can realize an image forming apparatus and an image forming program capable of improving the visibility of characters while maintaining the design.

PCの全体構成を示すブロック図である。It is a block diagram which shows the whole structure of PC. 第1の実施の形態によるPCの機能構成を示すブロック図である。It is a block diagram which shows the function structure of PC by 1st Embodiment. 第1の実施の形態による外縁部グラデーション処理手順を示すフローチャートである。It is a flowchart which shows the outer edge part gradation process procedure by 1st Embodiment. 第1の実施の形態によるRGBの変化を示す図である。It is a figure which shows the change of RGB by 1st Embodiment. 入力グラデーション画像データを示す図である。It is a figure which shows input gradation image data. 第1の実施の形態による出力グラデーション画像データを示す図である。It is a figure which shows the output gradation image data by 1st Embodiment. プレビュー画面を示す図である。It is a figure which shows a preview screen. 第2の実施の形態によるPCの機能構成を示すブロック図である。It is a block diagram which shows the function structure of PC by 2nd Embodiment. 第2の実施の形態による外縁部グラデーション処理手順を示すフローチャートである。It is a flowchart which shows the outer edge part gradation process sequence by 2nd Embodiment. 第2の実施の形態によるRGBの変化を示す図である。It is a figure which shows the change of RGB by 2nd Embodiment. 第2の実施の形態による出力グラデーション画像データを示す図である。It is a figure which shows the output gradation image data by 2nd Embodiment. 他の実施の形態による出力グラデーション画像データを示す図である。It is a figure which shows the output gradation image data by other embodiment.

以下、発明を実施するための形態(以下実施の形態とする)について、図面を用いて説明する。   Hereinafter, modes for carrying out the invention (hereinafter referred to as embodiments) will be described with reference to the drawings.

[1.第1の実施の形態]
[1−1.PCの全体構成]
図1に示すようにPC10は、いわゆるパーソナルコンピュータであり、CPU(Central Processing Unit)12と、RAM(Random Access Memory)14と、外部記憶装置I/F16と、入力装置I/F18と、表示装置I/F20と、プリンタI/F22とが、システムバスにより相互に接続されていると共に、HDD24と、ユーザが入力操作を行なうキーボード26及びマウス28と、各種情報の表示を行なうモニタ30と、プリンタ32とが、それぞれに対応する外部記憶装置I/F16と、入力装置I/F18と、表示装置I/F20と、プリンタI/F22とを介してシステムバスに接続されている。
[1. First Embodiment]
[1-1. Overall configuration of PC]
As shown in FIG. 1, a PC 10 is a so-called personal computer, which includes a CPU (Central Processing Unit) 12, a RAM (Random Access Memory) 14, an external storage device I / F 16, an input device I / F 18, and a display device. An I / F 20 and a printer I / F 22 are connected to each other via a system bus, the HDD 24, a keyboard 26 and a mouse 28 on which a user performs input operations, a monitor 30 that displays various information, and a printer 32 are connected to the system bus via the corresponding external storage device I / F 16, input device I / F 18, display device I / F 20, and printer I / F 22.

CPU12は、HDD24に格納された種々のプログラムをRAM14に一時的に読み込み、読み込んだプログラムを実行することにより、PC10の全体を制御し、外縁部グラデーション処理等の種々の処理を行う。またCPU12は、画像処理部42の各機能を実現する。RAM14は、PC10の電源が切られた際に、保持しているデータを失う揮発性の記憶装置である。HDD24は、PC10の電源が切られても、保持すべきデータを記憶する記憶装置である。プリンタI/F22は、例えばUSB(Universal Serial Bus)ケーブル等の図示しない通信ケーブルを介してプリンタ32と相互に通信するインターフェイスである。   The CPU 12 temporarily reads various programs stored in the HDD 24 into the RAM 14 and executes the read programs to control the entire PC 10 and perform various processes such as outer edge gradation processing. Further, the CPU 12 realizes each function of the image processing unit 42. The RAM 14 is a volatile storage device that loses stored data when the power of the PC 10 is turned off. The HDD 24 is a storage device that stores data to be retained even when the PC 10 is powered off. The printer I / F 22 is an interface that communicates with the printer 32 via a communication cable (not shown) such as a USB (Universal Serial Bus) cable.

[1−2.PCの機能構成]
図2に外縁部グラデーション処理に関するPC10の制御機能の機能ブロック図を示す。この機能は、制御プログラムの形でHDD24に格納されており、実行時にはRAM14に一時的に読み込まれCPU12により実行される。実行に必要なデータはRAM14に一時的に記憶される。
[1-2. PC functional configuration]
FIG. 2 shows a functional block diagram of the control functions of the PC 10 regarding the outer edge gradation processing. This function is stored in the HDD 24 in the form of a control program, and is temporarily read into the RAM 14 and executed by the CPU 12 at the time of execution. Data necessary for execution is temporarily stored in the RAM 14.

画像入力部40は、ユーザがキーボード26又はマウス28を操作して図示しないアプリケーションにより選択した画像データを取得し、画像処理部42へ出力する。画像処理部42は、情報取得部44と、類似色判定部46と、類似グラデーション色変動部48と、外縁部グラデーション情報生成部50と、グラデーション画像生成部52と、プレビュー画像生成部56とを有している。   The image input unit 40 operates the keyboard 26 or mouse 28 to acquire image data selected by an application (not shown) and outputs the image data to the image processing unit 42. The image processing unit 42 includes an information acquisition unit 44, a similar color determination unit 46, a similar gradation color variation unit 48, an outer edge gradation information generation unit 50, a gradation image generation unit 52, and a preview image generation unit 56. Have.

情報取得部44は、画像入力部40又はグラデーション画像生成部52が出力した画像データからグラデーション情報と背景色情報とを取得し、類似色判定部46へ出力する。   The information acquisition unit 44 acquires gradation information and background color information from the image data output from the image input unit 40 or the gradation image generation unit 52 and outputs the gradation information and background color information to the similar color determination unit 46.

類似色判定部46は、情報取得部44が出力したグラデーション情報に含まれるグラデーション色と、背景色情報に含まれる背景色とを比較し、類似色であるか否かの判定を行い、判定結果を類似グラデーション色変動部48へ出力する。   The similar color determination unit 46 compares the gradation color included in the gradation information output from the information acquisition unit 44 with the background color included in the background color information, determines whether the color is similar, and determines the determination result. Is output to the similar gradation color changing section 48.

類似グラデーション色変動部48は、類似色判定部46が類似色と判定したグラデーション色のみの濃度値を変動させた外縁部グラデーション色を生成し、外縁部グラデーション情報生成部50へ出力する。   The similar gradation color changing unit 48 generates an outer edge gradation color obtained by changing only the density value of the gradation color determined by the similar color determining unit 46 as a similar color, and outputs the generated outer edge gradation color to the outer edge gradation information generating unit 50.

外縁部グラデーション情報生成部50は、情報取得部44が出力したグラデーション情報に含まれるグラデーション対象の外縁部と、類似グラデーション色変動部48が出力した外縁部グラデーション色とを組み合わせた外縁部グラデーション情報を生成し、グラデーション画像生成部52へ出力する。   The outer edge gradation information generation unit 50 generates outer edge gradation information obtained by combining the outer edge of the gradation target included in the gradation information output by the information acquisition unit 44 and the outer edge gradation color output by the similar gradation color changing unit 48. And output to the gradation image generation unit 52.

グラデーション画像生成部52は、外縁部グラデーション情報生成部50が出力した外縁部グラデーション情報又は外縁部グラデーション情報入力部60が出力した外縁部グラデーション情報からグラデ−ションを施した画像データを生成して情報取得部44と画像出力部54とプレビュー画像生成部56とへ出力する。   The gradation image generation unit 52 generates image data that is graded from the outer edge gradation information output from the outer edge gradation information generation unit 50 or the outer edge gradation information output from the outer edge gradation information input unit 60. The data is output to the acquisition unit 44, the image output unit 54, and the preview image generation unit 56.

画像出力部54は、グラデーション画像生成部52が出力した画像データをプリンタ32へ出力する。   The image output unit 54 outputs the image data output from the gradation image generation unit 52 to the printer 32.

プレビュー画像生成部56は、グラデーション画像生成部52が出力した画像データをラスタ画像データに変換し、プレビュー表示部58へ出力する。プレビュー表示部58は、プレビュー画像生成部56が出力したラスタ画像データをモニタ30へ出力する。   The preview image generation unit 56 converts the image data output from the gradation image generation unit 52 into raster image data, and outputs the raster image data to the preview display unit 58. The preview display unit 58 outputs the raster image data output from the preview image generation unit 56 to the monitor 30.

外縁部グラデーション情報入力部60は、ユーザがキーボード26又はマウス28を操作して図示しないアプリケーションにより、情報取得部44が出力したグラデーション情報に含まれるグラデーション対象の外縁部と、ユーザ任意の外縁部グラデーション色との組み合わせを入力し、外縁部グラデーション情報としてグラデーション画像生成部52へ出力する。   The outer edge gradation information input unit 60 is operated by the user operating the keyboard 26 or the mouse 28, and the gradation target outer edge included in the gradation information output from the information acquisition unit 44 by an application (not shown) and the user-specified outer edge gradation A combination with a color is input and output to the gradation image generation unit 52 as outer edge gradation information.

[1−3.外縁部グラデーション処理]
次に、PC10による外縁部グラデーション処理の具体的な処理手順について、図3のフローチャートを用いて説明する。ユーザにより外縁部グラデーション処理プログラムが起動されると、CPU12は、HDD24から外縁部グラデーション処理プログラムを読み出して実行することにより外縁部グラデーション処理手順RT1を開始し、ステップSP1へ移る。
[1-3. Outer edge gradation processing]
Next, a specific processing procedure of the outer edge gradation processing by the PC 10 will be described with reference to the flowchart of FIG. When the outer edge gradation processing program is activated by the user, the CPU 12 starts the outer edge gradation processing procedure RT1 by reading out and executing the outer edge gradation processing program from the HDD 24, and proceeds to step SP1.

ステップSP1においてCPU12は、例えば図5に示す画像データである入力グラデーション画像データIM1を画像入力部40により取得し、ステップSP2へ移る。ここで、画像データの形式はベクタ画像データであり、画像データの信号はsRGBであるとする。この入力グラデーション画像データIM1は、背景BGと文字CHとにより構成されている。背景BGの色である背景色は、全面に亘って白色である。文字CHの色である文字色は、左側から右側に向かうに連れ徐々に色が薄くなるモノトーンのグラデーションである。図5中右側の四角内に、文字CHの右上端部分の拡大図を示すように、文字CHの右端は、背景BGとほぼ同色となっており、文字CHと背景BGとの境界部が視認され難くなっている。   In step SP1, the CPU 12 obtains, for example, input gradation image data IM1, which is image data shown in FIG. 5, by the image input unit 40, and proceeds to step SP2. Here, the format of the image data is vector image data, and the signal of the image data is sRGB. The input gradation image data IM1 is composed of a background BG and characters CH. The background color that is the color of the background BG is white over the entire surface. The character color that is the color of the character CH is a monotone gradation in which the color gradually decreases from the left side toward the right side. As shown in an enlarged view of the upper right end portion of the character CH in the square on the right side in FIG. 5, the right end of the character CH is almost the same color as the background BG, and the boundary portion between the character CH and the background BG is visually recognized. It is hard to be done.

ステップSP2においてCPU12は、画像入力部40が出力した入力グラデーション画像データIM1からグラデーション情報と背景色情報とを情報取得部44により取得し、ステップSP3へ移る。このグラデーション情報にはグラデーションの対象、色、形状や角度等が含まれる。   In step SP2, the CPU 12 acquires gradation information and background color information from the input gradation image data IM1 output from the image input unit 40 by the information acquisition unit 44, and proceeds to step SP3. This gradation information includes the gradation target, color, shape, angle, and the like.

具体的に情報取得部44は、ベクタ画像データである入力グラデーション画像データIM1から、グラデーションに関する描画コマンドと、背景色に関する描画コマンドとを取得する。ここで、グラデーションの対象とは文字や図形等を表しており、ここでは、情報取得部44は、ベクタ画像データからグラデーション対象のオブジェクトと外縁部オブジェクトとを取得する。図4(a)は、情報取得部44が取得した文字CHのグラデーション色である。グラデーション色は3色で構成され、情報取得部44は、各sRGB値として(R,G,B)=濃度1(70,70,70)、濃度2(125,125,125)及び濃度3(250,250,250)を取得する。すなわち本実施の形態において情報取得部44は、入力グラデーション画像データIM1から3箇所のグラデーション色を取得する。一方のグラデーション色と該一方のグラデーション色に隣接する他方のグラデーション色との間の色(すなわち濃度1と濃度2との間の色と、濃度2と濃度3との間の色)は線形補間で計算される。この濃度1は、グラデーションの始点となる濃度を示し、濃度3は、グラデーションの終点となる濃度を示し、濃度2は、濃度1と濃度3との間の濃度を示している。また情報取得部44は、グラデーション情報のうちの形状として線形、角度として0度を取得すると共に、背景色情報として白色(R,G,B)=(255,255,255)を取得する。   Specifically, the information acquisition unit 44 acquires a drawing command related to gradation and a drawing command related to background color from the input gradation image data IM1 which is vector image data. Here, the gradation target represents characters, figures, and the like. Here, the information acquisition unit 44 acquires the gradation target object and the outer edge object from the vector image data. FIG. 4A shows the gradation color of the character CH acquired by the information acquisition unit 44. The gradation color is composed of three colors, and the information acquisition unit 44 uses (R, G, B) = density 1 (70, 70, 70), density 2 (125, 125, 125) and density 3 ( 250, 250, 250). That is, in the present embodiment, the information acquisition unit 44 acquires three gradation colors from the input gradation image data IM1. The color between one gradation color and the other gradation color adjacent to the one gradation color (that is, the color between density 1 and density 2 and the color between density 2 and density 3) is linearly interpolated. Calculated by The density 1 indicates the density that is the start point of the gradation, the density 3 indicates the density that is the end point of the gradation, and the density 2 indicates the density between the density 1 and the density 3. The information acquisition unit 44 acquires linear as the shape of the gradation information, 0 degrees as the angle, and white (R, G, B) = (255, 255, 255) as the background color information.

ステップSP3においてCPU12は、情報取得部44で取得したグラデーション色(すなわち濃度1、濃度2及び濃度3)と背景色とが類似色かを類似色判定部46により判定し、ステップSP4へ移る。このように本実施の形態において類似色判定部46は、情報取得部44で取得した3箇所のグラデーション色のみと背景色との類似を判定する。ここでは、類似色の判定にはCIELabの色差を用いる。CIELabの色差計算方法として、まず、sRGBからXYZへの色空間変換はD50光源下の変換行列Mを用い、以下の式で求められる。   In step SP3, the CPU 12 determines whether the gradation color (that is, density 1, density 2 and density 3) acquired by the information acquisition unit 44 and the background color are similar colors by the similar color determination unit 46, and proceeds to step SP4. Thus, in the present embodiment, the similar color determination unit 46 determines the similarity between only the three gradation colors acquired by the information acquisition unit 44 and the background color. Here, the CIELab color difference is used to determine the similar color. As a CIELab color difference calculation method, first, color space conversion from sRGB to XYZ is obtained by the following equation using a conversion matrix M under a D50 light source.

次に、XYZからLabへの色空間は白色点の座標X、Y及びZを用い、以下の式で求められる。 Next, the color space from XYZ to Lab is obtained by the following equation using the coordinates X n , Y n and Z n of the white point.

次に、CIELabの色差は以下の式で求められる。   Next, the color difference of CIELab is obtained by the following equation.

色差の閾値を13.0とした時、グラデーション色(R,G,B)=濃度3(250,250,250)と背景色(R,G,B)=(255,255,255)との色差が0.8となり、色差が13.0以内に含まれるため、類似色判定部46は、濃度3と背景色とは類似色であるという判定結果を出力する。また濃度1及び濃度2は、色差が13.0以内に含まれないため、類似色判定部46は、濃度1及び濃度2と背景色とは類似色ではないという判定結果を出力する。   When the color difference threshold is 13.0, gradation color (R, G, B) = density 3 (250, 250, 250) and background color (R, G, B) = (255, 255, 255) Since the color difference is 0.8 and the color difference is included within 13.0, the similar color determination unit 46 outputs a determination result that the density 3 and the background color are similar colors. Further, since the color difference between the density 1 and the density 2 is not included within 13.0, the similar color determination unit 46 outputs a determination result that the density 1 and the density 2 and the background color are not similar colors.

ステップSP4においてCPU12は、類似色判定部46が類似色と判定したグラデーション色(すなわち濃度3)のみの濃度値を変動させたグラデーション色を類似グラデーション色変動部48により生成し、ステップSP5へ移る。ここでは類似グラデーション色変動部48は、類似色と判定したグラデーション色のRGB値を変動させることにより、濃度値を変動させる。具体的に類似グラデーション色変動部48は、類似色と判定したグラデーション色(R,G,B)=濃度3(250,250,250)のRGB値を20%(すなわち256階調のうちの約20%である50)低く設定することにより濃度値を上げる。これにより、グラデーション色(R,G,B)=濃度3(250,250,250)は、グラデーション色(R,G,B)=濃度4(200,200,200)となり、類似グラデーション色変動部48は、グラデーション色(R,G,B)=濃度1(70,70,70)、濃度2(125,125,125)、濃度4(200,200,200)を用いたグラデーション色を生成する。図4(b)は、類似グラデーション色変動部48が類似色と判定したグラデーション色のみの濃度値を変動させて生成した外縁部グラデーション色である。   In step SP4, the CPU 12 generates a gradation color in which only the gradation value determined by the similar color determination unit 46 as a similar color (that is, density 3) is changed by the similar gradation color change unit 48, and proceeds to step SP5. Here, the similar gradation color changing unit 48 changes the density value by changing the RGB value of the gradation color determined to be a similar color. Specifically, the similar gradation color changing unit 48 sets the RGB value of the gradation color (R, G, B) = density 3 (250, 250, 250) determined as the similar color to 20% (that is, about 256 out of 256 gradations). 50) which is 20%, the density value is raised by setting it low. Thereby, gradation color (R, G, B) = density 3 (250, 250, 250) becomes gradation color (R, G, B) = density 4 (200, 200, 200), and the similar gradation color variation portion 48, gradation colors (R, G, B) = density 1 (70, 70, 70), density 2 (125, 125, 125), and gradation 4 using density 4 (200, 200, 200) are generated. . FIG. 4B shows the outer edge gradation color generated by changing only the density value of the gradation color determined by the similar gradation color changing section 48 as the similar color.

ステップSP5においてCPU12は、情報取得部44が出力したグラデーション情報に含まれるグラデーション対象の外縁部と、類似グラデーション色変動部48が出力した外縁部グラデーション色とを組み合わせた 外縁部グラデーション情報を外縁部グラデーション情報生成部50により生成し、ステップSP6へ移る。   In step SP5, the CPU 12 converts the outer edge gradation information obtained by combining the outer edge part of the gradation target included in the gradation information output from the information acquisition unit 44 and the outer edge gradation color output from the similar gradation color changing unit 48 into the outer edge gradation. The information is generated by the information generator 50, and the process proceeds to step SP6.

ステップSP6においてCPU12は、外縁部グラデーション情報生成部50が出力した外縁部グラデーション情報又は外縁部グラデーション情報入力部60が出力した外縁部グラデーション情報(詳しくは後述する)から、グラデーションを施した画像データを出力グラデーション画像データIM2としてグラデーション画像生成部52により生成しステップSP7へ移る。ここではグラデーション画像生成部52は、ベクタ画像データを生成する。これにより、図5に示した入力グラデーション画像データIM1に対して外縁部グラデーションが施され、図6に示す出力グラデーション画像データIM2が生成される。   In step SP6, the CPU 12 obtains the image data subjected to gradation from the outer edge gradation information output from the outer edge gradation information generation unit 50 or the outer edge gradation information (described later in detail) output from the outer edge gradation information input unit 60. The output gradation image data IM2 is generated by the gradation image generation unit 52, and the process proceeds to step SP7. Here, the gradation image generation unit 52 generates vector image data. As a result, the outer edge gradation is applied to the input gradation image data IM1 shown in FIG. 5, and the output gradation image data IM2 shown in FIG. 6 is generated.

出力グラデーション画像データIM2は、入力グラデーション画像データIM1(図5)と比べて、文字CHの右側部分の外縁部における、背景BGとほぼ同色となっている箇所に、文字CHの外縁部の内側の文字色よりも僅かに濃い色の外縁部OEが付されており、文字CHと背景BGとの境界部が視認され易くなっている。   Compared with the input gradation image data IM1 (FIG. 5), the output gradation image data IM2 is located on the outer edge of the right side portion of the character CH at a position that is substantially the same color as the background BG, inside the outer edge portion of the character CH. An outer edge portion OE having a color slightly darker than the character color is attached, so that the boundary portion between the character CH and the background BG is easily visually recognized.

ステップSP7においてCPU12は、グラデーション画像生成部52が出力した出力グラデーション画像データIM2をプレビュー画像生成部56によりベクタ画像データからラスタ画像データへ変換することによりプレビュー画像を生成し、ステップSP8へ移る。   In step SP7, the CPU 12 generates a preview image by converting the output gradation image data IM2 output from the gradation image generation unit 52 from vector image data to raster image data by the preview image generation unit 56, and proceeds to step SP8.

ステップSP8においてCPU12は、プレビュー画像生成部56が出力した出力グラデーション画像データIM2のラスタ画像データを、プレビュー表示部58により図7に示すモニタ30内のプレビュー画面PRDにプレビュー表示させ、ステップSP9へ移り、プレビュー画面PRDをモニタ30に表示した状態でユーザによる操作を待ち受ける。このときユーザは、プレビュー画面PRDを確認し、この出力グラデーション画像データIM2を印刷するときは印刷ボタンBT1を押下する一方、この出力グラデーション画像データIM2を印刷せずにユーザ任意のグラデーションの調整を行うときはユーザ調整ボタンBT2を押下する。   In step SP8, the CPU 12 displays the raster image data of the output gradation image data IM2 output from the preview image generation unit 56 on the preview screen PRD in the monitor 30 shown in FIG. 7 by the preview display unit 58, and proceeds to step SP9. The user waits for an operation by the user while the preview screen PRD is displayed on the monitor 30. At this time, the user confirms the preview screen PRD, and presses the print button BT1 to print the output gradation image data IM2, while adjusting the user's arbitrary gradation without printing the output gradation image data IM2. When the user presses the user adjustment button BT2.

ステップSP9においてCPU12は、ユーザ調整ボタンBT2が押下されたか否かを判定する。ここで否定結果が得られると、このことは、印刷ボタンBT1が押下されたため、ユーザはグラデーションの調整を自身では行わずに、プレビュー表示された出力グラデーション画像データIM2を印刷することを希望していることを表し、このときCPU12はステップSP11へ移る。   In step SP9, the CPU 12 determines whether or not the user adjustment button BT2 has been pressed. If a negative result is obtained here, this means that the user desires to print the output gradation image data IM2 displayed in the preview without adjusting the gradation by himself because the print button BT1 is pressed. At this time, the CPU 12 proceeds to step SP11.

ステップSP11においてCPU12は、画像処理結果である出力グラデーション画像データIM2を画像出力部54によりプリンタ32へ出力し、ステップSP12へ移り外縁部グラデーション処理手順RT1を終了する。   In step SP11, the CPU 12 outputs the output gradation image data IM2 as the image processing result to the printer 32 by the image output unit 54, and proceeds to step SP12 to end the outer edge gradation processing procedure RT1.

一方ステップSP9において肯定結果が得られると、このことはプレビュー表示された出力グラデーション画像データIM2にユーザが満足しておらずグラデーションの調整を自身で行うことを希望していることを表し、このときCPU12はステップSP10へ移る。   On the other hand, if an affirmative result is obtained in step SP9, this indicates that the user is not satisfied with the output gradation image data IM2 displayed in the preview and desires to adjust the gradation by himself / herself. The CPU 12 moves to step SP10.

ステップSP10においてCPU12は、キーボード26又はマウス28を介したユーザによる、情報取得部44が出力したグラデーション情報に含まれるグラデーション対象の外縁部と、ユーザ任意の外縁部グラデーション色との組み合わせの入力を、外縁部グラデーション情報入力部60により受け付けてグラデーション画像生成部52へ出力し、ステップSP6へ移る。ステップSP6においてCPU12は、外縁部グラデーション情報入力部60から外縁部グラデーション情報の入力があった場合、外縁部グラデーション情報入力部60が出力した外縁部グラデーション情報から、グラデーションを施した画像データを出力グラデーション画像データIM2としてグラデーション画像生成部52により生成しステップSP7へ移り、以降の処理を行う。   In step SP10, the CPU 12 inputs the combination of the gradation target outer edge part included in the gradation information output from the information acquisition unit 44 and the user arbitrary outer edge gradation color by the user via the keyboard 26 or the mouse 28. Accepted by the outer edge gradation information input unit 60 and output to the gradation image generation unit 52, the process proceeds to step SP6. In step SP6, when the outer edge gradation information input unit 60 inputs the outer edge gradation information, the CPU 12 outputs the gradation-processed image data from the outer edge gradation information output by the outer edge gradation information input unit 60. The gradation image generation unit 52 generates the image data IM2 and proceeds to step SP7 to perform the subsequent processing.

[1−4.効果等]
以上の構成においてPC10は、入力グラデーション画像データIM1における文字CHがグラデーションの場合に、グラデーション色と背景色とを比較し類似色であるかを判定し、類似色と判定したグラデーション色のみの濃度値を変動させた外縁部グラデーション色を生成し、入力グラデーション画像データIM1におけるグラデーション情報に含まれるグラデーション対象の外縁部と、濃度値を変動させた外縁部グラデーション色とを組み合わせた外縁部グラデーション情報を生成し、外縁部グラデーション情報からグラデ−ションを施した出力グラデーション画像データIM2を生成するようにした。
[1-4. Effect]
In the above configuration, when the character CH in the input gradation image data IM1 is gradation, the PC 10 compares the gradation color with the background color to determine whether the color is similar, and determines the density value of only the gradation color determined to be similar. The outer edge gradation color is generated by combining the outer edge part of the gradation target included in the gradation information in the input gradation image data IM1 and the outer edge gradation color whose density value is changed. Thus, the output gradation image data IM2 that is graded from the outer edge gradation information is generated.

このためPC10は、文字CHがグラデーションの場合であっても該文字CHの外縁部に縁取りをすることができ、該文字CHの視認性を向上させることができる。   For this reason, the PC 10 can trim the outer edge of the character CH even when the character CH is gradation, and can improve the visibility of the character CH.

ここで、従来のように文字CHの外縁部全ての濃度を一様に高くすると、文字CHのうち背景BGとの濃度差が大きい、白色に近い部分の外縁部にも濃い色の外縁部が付されてしまうため、外縁部が目立って不自然になり、デザイン性が保てない可能性があった。   Here, if the density of all the outer edge portions of the character CH is uniformly increased as in the conventional case, the outer edge portion of the character CH that has a large density difference from the background BG and is close to white also has a darker outer edge portion. As a result, the outer edge becomes conspicuous and unnatural, and the design may not be maintained.

これに対しPC10は、文字CHの外縁部全ての濃度を一様に高くするのではなく、外縁部のうち、背景色と類似する箇所のみ、すなわち背景色である白色に近い箇所のみ、濃度値を僅かに、例えば256階調のうちの20%であるほぼ50だけ濃く変動させるようにした。これによりPC10は、外縁部を目立ち過ぎないようにさせて不自然にならないようにし、デザイン性を保つことができる。   On the other hand, the PC 10 does not uniformly increase the density of all the outer edge portions of the character CH, but only the portion of the outer edge portion similar to the background color, that is, the portion close to white as the background color. Is slightly changed, for example, by about 50 which is 20% of 256 gradations. As a result, the PC 10 can keep the outer edge portion not conspicuous so as not to become unnatural and maintain the design.

またPC10は、プレビュー画面PRDにおいてユーザ調整ボタンBT2を押下され、外縁部グラデーション情報入力部60により外縁部グラデーション情報がユーザから入力された場合、入力グラデーション画像データIM1に、ユーザ任意の外縁部グラデーション情報に基づくグラデ−ションを施し、出力グラデーション画像データIM2として生成するようにした。これによりPC10は、自動的に生成された出力グラデーション画像データIM2に満足できずグラデーションの調整を自身で行いたいというユーザの意図を反映できる。   Further, when the user adjustment button BT2 is pressed on the preview screen PRD and the outer edge gradation information is input from the user by the outer edge gradation information input unit 60, the PC 10 adds the user-specified outer edge gradation information to the input gradation image data IM1. The output gradation image data IM2 is generated by performing the gradation based on the above. Thus, the PC 10 can reflect the user's intention to adjust the gradation by itself without being satisfied with the automatically generated output gradation image data IM2.

以上の構成によればPC10は、画像データを入力する画像入力部40に入力した入力グラデーション画像データIM1からグラデーション情報と背景色情報とを取得する情報取得部44と、情報取得部44で取得したグラデーション情報に含まれるグラデーション色と背景色情報に含まれる背景色とを比較し類似色であるかを判定する類似色判定部46と、類似色判定部46が類似色と判定した場合、グラデーション色の濃度値を変動させたグラデーション色を生成する類似グラデーション色変動部48と、情報取得部44で取得したグラデーション情報に含まれるグラデーション対象の外縁部に対して、類似グラデーション色変動部48が生成したグラデーション色を組み合わせた外縁部グラデーション情報を生成する外縁部グラデーション情報生成部50と、外縁部グラデーション情報に基づく出力グラデーション画像データIM2を出力する画像出力部54とを設けるようにした。   According to the above configuration, the PC 10 acquires the gradation information and the background color information from the input gradation image data IM1 input to the image input unit 40 that inputs the image data, and the information acquisition unit 44 acquires the information. A similar color determination unit 46 that determines whether the color is similar by comparing the gradation color included in the gradation information with the background color included in the background color information, and when the similar color determination unit 46 determines that the color is similar, the gradation color The similar gradation color variation unit 48 generates a gradation color in which the density value is varied, and the similar gradation color variation unit 48 generates the gradation target outer edge portion included in the gradation information acquired by the information acquisition unit 44. Outer edge gradation that generates gradation information that combines the gradation colors And emissions information generating unit 50, and be provided an image output unit 54 for outputting the output gradation image data IM2 based on the outer edge gradient information.

これによりPC10は、文字CHの外縁部における背景BGとの濃度差が大きい箇所のみの濃度を僅かに変動させることにより、外縁部が目立ち過ぎない程度に文字CHと背景BGとの境界を視認させることができる。   As a result, the PC 10 makes the boundary between the character CH and the background BG visible to such an extent that the outer edge portion is not conspicuous by slightly varying the density only at the portion where the density difference between the outer edge portion of the character CH and the background BG is large. be able to.

[2.第2の実施の形態]
[2−1.PCの機能構成]
図2及び図3とそれぞれ対応する部材に同一符号を付した図8及び図9に示すように、第2の実施の形態によるPC110は、第1の実施の形態によるPC10と比べて、画像処理部142が画像処理部42と異なっているものの、それ以外は同様に構成されている。画像処理部142は画像処理部42と比べて、類似グラデーション色変動部48に代えてグラデーション色一律変動部70が設けられているものの、それ以外は同様に構成されている。
[2. Second Embodiment]
[2-1. PC functional configuration]
As shown in FIGS. 8 and 9 in which members corresponding to those in FIGS. 2 and 3 are given the same reference numerals, the PC 110 according to the second embodiment performs image processing as compared with the PC 10 according to the first embodiment. Although the unit 142 is different from the image processing unit 42, the rest is configured similarly. Compared with the image processing unit 42, the image processing unit 142 is provided with a gradation color uniform variation unit 70 instead of the similar gradation color variation unit 48, but is otherwise configured in the same manner.

類似色判定部46は、情報取得部44が出力したグラデーション情報に含まれるグラデーション色と背景色情報に含まれる背景色とを比較し類似色であるか否かの判定を第1の実施の形態と同様に行い、判定結果をグラデーション色一律変動部70へ出力する。具体的に類似色判定部46は、情報取得部44が取得した複数のグラデーション色のうち、1つでも背景色と類似しているものが存在する場合、グラデーション色と背景色とが類似色であると判定する。   The similar color determination unit 46 compares the gradation color included in the gradation information output from the information acquisition unit 44 with the background color included in the background color information to determine whether the color is similar to the first embodiment. The determination result is output to the gradation color uniform changing unit 70. Specifically, the similar color determination unit 46 determines that the gradation color and the background color are similar when at least one of the plurality of gradation colors acquired by the information acquisition unit 44 is similar to the background color. Judge that there is.

グラデーション色一律変動部70は、類似色判定部46が類似色と判定した場合に、全てのグラデーション色の濃度値を一律に変動させた外縁部グラデーション色を生成し、外縁部グラデーション情報生成部50へ出力する。   The gradation color uniform variation unit 70 generates an outer edge gradation color in which the density values of all gradation colors are uniformly varied when the similar color determination unit 46 determines that the color is similar, and the outer edge gradation information generation unit 50 Output to.

外縁部グラデーション情報生成部50は、情報取得部44が出力したグラデーション情報に含まれるグラデーション対象の外縁部と、グラデーション色一律変動部70が出力した外縁部グラデーション色とを組み合わせた外縁部グラデーション情報を第1の実施の形態と同様に生成し、グラデーション画像生成部52へ出力する。   The outer edge gradation information generation unit 50 generates outer edge gradation information obtained by combining the outer edge of the gradation target included in the gradation information output from the information acquisition unit 44 and the outer edge gradation color output from the gradation color uniform variation unit 70. It is generated in the same manner as in the first embodiment, and is output to the gradation image generation unit 52.

[2−2.外縁部グラデーション処理]
次に、PC110による外縁部グラデーション処理手順RT101について、図3と同一の処理を行うステップに同一符号を付した図9のフローチャートを用いて説明する。
[2-2. Outer edge gradation processing]
Next, the outer edge gradation processing procedure RT101 by the PC 110 will be described with reference to the flowchart of FIG. 9 in which the same reference numerals are assigned to the steps for performing the same processing as in FIG.

ステップSP1〜ステップSP3においてCPU12は、外縁部グラデーション処理手順RT1と同様の処理を行い、ステップSP104へ移る。ステップSP104においてCPU12は、類似色判定部46が類似色と判定した場合に、全てのグラデーション色(すなわち濃度1、濃度2及び濃度3)の濃度値を一律に変動させたグラデーション色をグラデーション色一律変動部70により生成し、ステップSP5へ移る。ここではグラデーション色一律変動部70は、全てのグラデーション色のRGB値を変動させることにより、濃度値を変動させる。具体的にグラデーション色一律変動部70は、グラデーション色(R,G,B)=濃度1(70,70,70)、濃度2(125,125,125)、濃度3(250,250,250)のRGB値を20%(すなわち256階調のうちの約20%である50)低く設定することにより濃度値を上げる。これにより、グラデーション色(R,G,B)=濃度1(70,70,70)、濃度2(125,125,125)及び濃度3(250,250,250)は、それぞれ(R,G,B)=濃度5(20,20,20)、濃度6(75,75,75)及び濃度7(200,200,200)となり、グラデーション色一律変動部70は、グラデーション色(R,G,B)=濃度5(20,20,20)、濃度6(75,75,75)及び濃度7(200,200,200)を用いたグラデーション色を生成する。図10(b)は、全てのグラデーション色の濃度値を一律で一定に変動させて生成した外縁部グラデーション色である。   In step SP1 to step SP3, the CPU 12 performs the same process as the outer edge gradation processing procedure RT1, and proceeds to step SP104. In step SP104, when the similar color determination unit 46 determines that the similar color is the same, the CPU 12 determines that the gradation color of all gradation colors (that is, density 1, density 2 and density 3) is uniformly changed by changing the gradation color uniformly. The data is generated by the changing unit 70, and the process proceeds to step SP5. Here, the gradation color uniform changing unit 70 changes the density value by changing the RGB values of all the gradation colors. Specifically, the gradation color uniform variation unit 70 is gradation color (R, G, B) = density 1 (70, 70, 70), density 2 (125, 125, 125), density 3 (250, 250, 250). The density value is increased by setting the RGB value of 20% lower (that is, 50 which is about 20% of 256 gradations). Thereby, gradation color (R, G, B) = density 1 (70, 70, 70), density 2 (125, 125, 125) and density 3 (250, 250, 250) are respectively (R, G, B) = density 5 (20, 20, 20), density 6 (75, 75, 75), and density 7 (200, 200, 200), and the gradation color uniform variation unit 70 uses gradation colors (R, G, B). ) = Gradient color using density 5 (20, 20, 20), density 6 (75, 75, 75) and density 7 (200, 200, 200) is generated. FIG. 10B shows an outer edge gradation color generated by uniformly changing the density values of all gradation colors uniformly.

ステップSP5〜ステップSP11においてCPU12は、外縁部グラデーション処理手順RT1と同様の処理を行い、ステップSP12へ移り外縁部グラデーション処理手順RT101を終了する。   In step SP5 to step SP11, the CPU 12 performs the same processing as the outer edge gradation processing procedure RT1, moves to step SP12, and ends the outer edge gradation processing procedure RT101.

これにより、図5に示した入力グラデーション画像データIM1に対して外縁部グラデーションが施され、図11に示す出力グラデーション画像データIM102が生成される。出力グラデーション画像データIM102は、入力グラデーション画像データIM1と比べて、文字CHの全体の外縁部に、文字CHの外縁部の内側の文字色よりも僅かに濃い色の外縁部OEが付されており、文字CHと背景BGとの境界部が視認し易くなっている。   Thereby, the outer edge gradation is applied to the input gradation image data IM1 shown in FIG. 5, and the output gradation image data IM102 shown in FIG. 11 is generated. The output gradation image data IM102 has an outer edge portion OE having a slightly darker color than the character color inside the outer edge portion of the character CH at the outer edge portion of the entire character CH, as compared with the input gradation image data IM1. The boundary between the character CH and the background BG is easy to visually recognize.

[2−3.効果等]
以上の構成においてPC110は、入力グラデーション画像データIM1における文字がグラデーションの場合に、グラデーション色と背景色とを比較し類似色であるかを判定し、類似色であると判定した場合、全てのグラデーション色の濃度値を一定に変動させた外縁部グラデーション色を生成し、入力グラデーション画像データIM1におけるグラデーション情報に含まれるグラデーション対象の外縁部と、濃度値を変動させた外縁部グラデーション色とを組み合わせた外縁部グラデーション情報を生成し、外縁部グラデーション情報からグラデ−ションを施した出力グラデーション画像データIM102を生成するようにした。
[2-3. Effect]
In the above configuration, when the character in the input gradation image data IM1 is gradation, the PC 110 compares the gradation color with the background color to determine whether they are similar colors. An outer edge gradation color in which the density value of the color is changed constant is generated, and the outer edge part of the gradation target included in the gradation information in the input gradation image data IM1 is combined with the outer edge gradation color in which the density value is changed. The outer edge gradation information is generated, and the output gradation image data IM102 graded from the outer edge gradation information is generated.

このためPC110は、文字CHがグラデーションの場合であっても該文字CHの全ての外縁部にバランス良く縁取りをすることができ、該文字CHの視認性を向上させることができる。   For this reason, even if the character CH is gradation, the PC 110 can trim all the outer edges of the character CH in a well-balanced manner and improve the visibility of the character CH.

ここで、従来のように文字CHの外縁部全ての濃度を同じ濃度値になるように高くすると、文字CHのうち背景BGとの濃度差が大きい、白色に近い部分の外縁部にも濃い色の外縁部が付されてしまうため、外縁部が目立って不自然になり、デザイン性が保てない可能性があった。   Here, if the density of all the outer edge portions of the character CH is increased so as to have the same density value as in the prior art, the outer edge portion of the character CH that has a large density difference from the background BG and is close to white is also darker. Since the outer edge portion is attached, the outer edge portion becomes conspicuous and unnatural, and the design may not be maintained.

これに対しPC110は、文字CHの外縁部全ての濃度の濃度値を同じにするのではなく、文字CHの内側の文字色よりも外縁部を僅かに、例えば20%だけ濃く変動させるようにした。これによりPC110は、外縁部を目立ち過ぎないようにさせて不自然にならないようにし、デザイン性を保つことができる。   On the other hand, the PC 110 does not make the density values of all the outer edge portions of the character CH the same, but changes the outer edge portion slightly, for example, 20% darker than the character color inside the character CH. . As a result, the PC 110 can keep the outer edge portion not conspicuous so as not to become unnatural and maintain the design.

その他第2の実施の形態によるPC110は、第1の実施の形態によるPC10とほぼ同様の作用効果を奏する。   In addition, the PC 110 according to the second embodiment has substantially the same operational effects as the PC 10 according to the first embodiment.

[3.他の実施の形態]
なお上述した実施の形態においては、ユーザによる外縁部グラデーション情報の入力が外縁部グラデーション情報入力部60からあった場合、該外縁部グラデーション情報から、グラデーションを施した画像データを出力グラデーション画像データIM2として生成する、すなわち、外縁部OEをユーザが調整する場合について述べた。本発明はこれに限らず、ユーザによるグラデーション情報の入力が所定のグラデーション情報入力部からあった場合、該グラデーション情報から、グラデーションを施した画像データを出力グラデーション画像データIM2として生成する、すなわち、文字CHをユーザが調整するようにしても良い。さらに、文字CH又は外縁部OEの何れを調整するかをユーザに選択させても良い。
[3. Other Embodiments]
In the above-described embodiment, when the user inputs the outer edge gradation information from the outer edge gradation information input unit 60, the image data subjected to gradation from the outer edge gradation information is used as the output gradation image data IM2. The case where the user generates the outer edge OE is described. The present invention is not limited to this, and when gradation information is input by a user from a predetermined gradation information input unit, image data with gradation is generated from the gradation information as output gradation image data IM2, that is, text The user may adjust the CH. Further, the user may select which of the character CH or the outer edge OE is to be adjusted.

また上述した第1の実施の形態においては、類似色と判定したグラデーション色(濃度3)のみの濃度値を20%変動させる一方、類似色でないと判定したグラデーション色(濃度1及び濃度2)の濃度値は変動させずに、各濃度の間を線形補間する場合について述べた。本発明はこれに限らず、類似色と判定したグラデーション色(濃度3)の濃度値と、濃度3に隣接するグラデーション色(濃度2)の濃度値とを例えば20%変動させる等、類似色と判定したグラデーション色に隣接するグラデーション色である類似判定隣接グラデーション色の濃度値も、類似色と判定したグラデーション色と同様に変動させても良い。   In the first embodiment described above, the density value of only the gradation color (density 3) determined to be a similar color is changed by 20%, while the gradation color (density 1 and density 2) determined not to be a similar color is changed. The case where linear interpolation is performed between each density without changing the density value has been described. The present invention is not limited to this, and the density value of the gradation color (density 3) determined to be a similar color and the density value of the gradation color (density 2) adjacent to the density 3 are changed by, for example, 20%. The density value of the similarity determination adjacent gradation color that is a gradation color adjacent to the determined gradation color may also be changed in the same manner as the gradation color determined to be a similar color.

また、類似色と判定したグラデーション色(濃度3)の濃度値を例えば20%変動させ、濃度3に隣接するグラデーション色(濃度2)の濃度値を例えば10%変動させる等、類似判定隣接グラデーション色の濃度値を、類似色と判定したグラデーション色の濃度値の変動量よりも小さい変動量だけ変動させても良い。その場合、より一層外縁部を目立ち過ぎないようにできる。また、類似色と判定したグラデーション色の何個隣のグラデーション色まで濃度値を変動させるか(例えば濃度3は20%、濃度2は10%、濃度1は5%等)をユーザに指定させても良い。   Further, the gradation value of the gradation color (density 3) determined to be a similar color is changed by, for example, 20%, and the density value of the gradation color (density 2) adjacent to the density 3 is changed, for example, by 10%. The density value may be changed by a fluctuation amount smaller than the fluctuation amount of the density value of the gradation color determined to be a similar color. In that case, the outer edge portion can be made less conspicuous. Also, the user can specify how many gradation colors adjacent to the gradation color determined to be similar are to be changed (for example, density 3 is 20%, density 2 is 10%, density 1 is 5%, etc.). Also good.

さらに上述した実施の形態においては、入力グラデーション画像データIM1から3箇所のグラデーション色を取得する場合について述べた。本発明はこれに限らず、入力グラデーション画像データIM1から2箇所以上の任意の個数のグラデーション色を取得して良い。また上述した実施の形態においては、ベクタ画像データである入力グラデーション画像データIM1からグラデーション色を取得したが、ラスタ画像データからグラデーション色を検出する手段を有する場合、入力グラデーション画像データIM1をラスタ画像データとしても良い。   Further, in the above-described embodiment, the case where three gradation colors are acquired from the input gradation image data IM1 has been described. The present invention is not limited to this, and an arbitrary number of gradation colors of two or more locations may be acquired from the input gradation image data IM1. In the above-described embodiment, the gradation color is acquired from the input gradation image data IM1, which is vector image data. However, when the gradation color is detected from the raster image data, the input gradation image data IM1 is converted into the raster image data. It is also good.

さらに上述した実施の形態においては、類似色と判定したグラデーション色のRGB値を20%低く設定する場合について述べた。本発明はこれに限らず、他の種々の割合だけRGB値を変更して良い。その場合、全階調(例えば256階調)のうちの20%以下程度だけ濃度を変動させると、外縁部が目立ち過ぎないため好ましい。また、RGB値を変更する割合をユーザに設定させたり、例えば濃いめや、薄め等、割合の数値までは設定させなくとも種々の方法によりユーザの意思を反映させたりしても良い。   Furthermore, in the above-described embodiment, the case where the RGB value of the gradation color determined to be a similar color is set 20% lower has been described. The present invention is not limited to this, and the RGB values may be changed by various other ratios. In that case, it is preferable to change the density by about 20% or less of all gradations (for example, 256 gradations) because the outer edge portion is not so conspicuous. In addition, the user may set the ratio of changing the RGB value, or may reflect the user's intention by various methods without setting the numerical value of the ratio, such as dark or light.

さらに上述した実施の形態においては、色差の閾値を13.0とする場合について述べた。本発明はこれに限らず、色差の閾値は任意に設定して良い。また、色差の閾値をユーザに設定させたり、例えば厳しめや、優しめ等、閾値までは設定させなくとも種々の方法によりユーザの意思を反映させたりしても良い。   Further, in the above-described embodiment, the case where the color difference threshold is set to 13.0 has been described. The present invention is not limited to this, and the color difference threshold value may be set arbitrarily. Further, the user may set the threshold value of the color difference, or may reflect the user's intention by various methods without setting the threshold value, such as strictness or gentleness.

また上述した実施の形態においては、グラデーションの形状が線形である入力グラデーション画像データIM1に外縁部グラデーション処理を行う場合について述べた。本発明はこれに限らず、図12に示す円形のグラデーションの出力グラデーション画像データIM202のように、例えば円形や放射等、種々のグラデーションの形状の入力グラデーション画像データに外縁部グラデーション処理を行って良い。   In the above-described embodiment, the case where the outer edge gradation process is performed on the input gradation image data IM1 having a linear gradation shape has been described. The present invention is not limited to this, and outer edge gradation processing may be performed on input gradation image data having various gradation shapes such as circular and radial, as in circular gradation output gradation image data IM202 shown in FIG. .

さらに上述した実施の形態においては、sRGB値におけるRGB全ての値が同一である、文字色がモノトーンの文字CHを含む入力グラデーション画像データIM1に外縁部グラデーション処理を行う場合について述べた。本発明はこれに限らず、sRGB値におけるRGBの値が同一でない、文字色がカラーの文字を含む入力グラデーション画像データに外縁部グラデーション処理を行っても良い。   Furthermore, in the above-described embodiment, the case has been described in which the outer edge gradation process is performed on the input gradation image data IM1 including the character CH of the monotone character color in which all the RGB values in the sRGB values are the same. The present invention is not limited to this, and the outer edge gradation processing may be performed on input gradation image data including characters whose color is not the same in sRGB values and whose character color is color.

さらに上述した実施の形態においては、背景色が全面に亘って一様の白色である背景BGを含む入力グラデーション画像データIM1に外縁部グラデーション処理を行う場合について述べた。本発明はこれに限らず、背景色が全面に亘って一様の色ではない背景を含む入力グラデーション画像データに本発明を適用しても良い。   Furthermore, in the above-described embodiment, the case where the outer edge gradation processing is performed on the input gradation image data IM1 including the background BG whose background color is uniform white over the entire surface has been described. The present invention is not limited to this, and the present invention may be applied to input gradation image data including a background whose background color is not uniform over the entire surface.

さらに上述した実施の形態においては、文字オブジェクトである文字CHを含む入力グラデーション画像データIM1に対し外縁部グラデーション処理を行う場合について述べた。本発明はこれに限らず、文字列オブジェクト等、グラデーション情報が付与可能な種々のオブジェクトを含む入力グラデーション画像データに対し外縁部グラデーション処理を行って良い。   Further, in the above-described embodiment, the case where the outer edge gradation process is performed on the input gradation image data IM1 including the character CH that is the character object has been described. The present invention is not limited to this, and outer edge gradation processing may be performed on input gradation image data including various objects to which gradation information can be added, such as character string objects.

さらに上述した実施の形態においては、プリンタ32がUSBケーブルによりPC10及び110と接続される場合について述べた。本発明はこれに限らず、IEEE(Institute of Electrical and Electronics Engineers)1394ケーブル、Ethernet(登録商標)ケーブル、BlueTooth(登録商標)、IEEE(Institute of Electrical and Electronics Engineers)802.3u/abやIEEE802.11a/b/g/n等の規格に準じた有線又は無線のLAN(Local Area Network)等、種々の通信手段を介して接続しても良い。   Further, in the above-described embodiment, the case where the printer 32 is connected to the PCs 10 and 110 by the USB cable has been described. The present invention is not limited to this. IEEE (Institute of Electrical and Electronics Engineers) 1394 cable, Ethernet (registered trademark) cable, BlueTooth (registered trademark), IEEE (Institute of Electrical and Electronics Engineers) 802.3u / ab, IEEE802. You may connect via various communication means, such as wired or wireless LAN (Local Area Network) according to standards, such as 11a / b / g / n.

さらに上述した実施の形態においては、PC10及び110と相互に通信する装置としてプリンタ32について述べた。本発明はこれに限らず、例えばコピー機、複合機やFAX機等、種々の機器であって良い。   Further, in the above-described embodiment, the printer 32 has been described as an apparatus that communicates with the PCs 10 and 110. The present invention is not limited to this, and may be various devices such as a copy machine, a multifunction machine, and a FAX machine.

さらに上述した実施の形態においては、PC10に本発明を適用する場合について述べた。本発明はこれに限らず、例えばプリンタ32に本発明を適用し、該プリンタ32において、入力グラデーション画像データを補正し画像形成しても良い。   Further, in the above-described embodiment, the case where the present invention is applied to the PC 10 has been described. The present invention is not limited to this. For example, the present invention may be applied to the printer 32, and the printer 32 may correct the input gradation image data to form an image.

さらに上述した実施の形態においては、情報取得部としての情報取得部44と、類似色判定部としての類似色判定部46と、類似グラデーション色変動部としての類似グラデーション色変動部48と、外縁部グラデーション情報生成部としての外縁部グラデーション情報生成部50とによって、画像形成装置としてのPC10を構成する場合について述べた。本発明はこれに限らず、その他種々の構成でなる情報取得部と、類似色判定部と、類似グラデーション色変動部と、外縁部グラデーション情報生成部とによって、画像形成装置を構成しても良い。   Further, in the embodiment described above, the information acquisition unit 44 as an information acquisition unit, the similar color determination unit 46 as a similar color determination unit, the similar gradation color variation unit 48 as a similar gradation color variation unit, and the outer edge portion The case where the PC 10 as the image forming apparatus is configured by the outer edge gradation information generation unit 50 as the gradation information generation unit has been described. The present invention is not limited to this, and an image forming apparatus may be configured by an information acquisition unit having various other configurations, a similar color determination unit, a similar gradation color variation unit, and an outer edge gradation information generation unit. .

本発明は、文字の視認性を向上させるよう画像処理するコンピュータの他、イメージスキャナやファクシミリ装置、或いは複写機等、画像に関する種々の処理を行う種々の電子機器でも利用できる。   The present invention can be used not only for computers that perform image processing so as to improve the visibility of characters but also for various electronic devices that perform various processes relating to images, such as image scanners, facsimile machines, and copying machines.

10、110……PC、12……CPU、14……RAM、16……外部記憶装置I/F、18……入力装置I/F、20……表示装置I/F、22……プリンタI/F、24……HDD、26……キーボード、28……マウス、30……モニタ、32……プリンタ、40……画像入力部、42、142……画像処理部、44……情報取得部、46……類似色判定部、48……類似グラデーション色変動部、50……外縁部グラデーション情報生成部、52……グラデーション画像生成部、54……画像出力部、56……プレビュー画像生成部、58……プレビュー表示部、60……外縁部グラデーション情報入力部、70……グラデーション色一律変動部、BT1……印刷ボタン、BT2……ユーザ調整ボタン、BG……背景、CH……文字、OE……外縁部、IM1……入力グラデーション画像データ、IM2、IM102、IM202……出力グラデーション画像データ、PRD……プレビュー画面。   10, 110 ... PC, 12 ... CPU, 14 ... RAM, 16 ... external storage device I / F, 18 ... input device I / F, 20 ... display device I / F, 22 ... printer I / F, 24 ... HDD, 26 ... Keyboard, 28 ... Mouse, 30 ... Monitor, 32 ... Printer, 40 ... Image input unit, 42, 142 ... Image processing unit, 44 ... Information acquisition unit , 46... Similar color determination unit, 48... Similar gradation color variation unit, 50... Outer edge gradation information generation unit, 52... Gradation image generation unit, 54. 58 ...... Preview display section, 60.Outer edge gradation information input section, 70 ...... Gradation color uniform variation section, BT1 ... Print button, BT2 ... User adjustment button, BG ... Background, CH ... Sentence , OE ...... outer edge, IM1 ...... input gradation image data, IM2, IM102, IM202 ...... output gradation image data, PRD ...... preview screen.

Claims (9)

画像データを入力する画像入力部に入力した画像データからグラデーション情報と背景色情報とを取得する情報取得部と、
前記情報取得部で取得した前記グラデーション情報に含まれるグラデーション色と前記背景色情報に含まれる背景色とを比較し類似色であるかを判定する類似色判定部と、
前記類似色判定部が類似色と判定した場合、前記グラデーション色の濃度値を変動させたグラデーション色を生成する類似グラデーション色変動部と、
前記情報取得部で取得した前記グラデーション情報に含まれるグラデーション対象の外縁部に対して、前記類似グラデーション色変動部が生成した前記グラデーション色を組み合わせた外縁部グラデーション情報を生成する外縁部グラデーション情報生成部と、
前記外縁部グラデーション情報に基づく画像データを出力する画像出力部と
を有する画像形成装置。
An information acquisition unit for acquiring gradation information and background color information from the image data input to the image input unit for inputting image data;
A similar color determination unit that compares the gradation color included in the gradation information acquired by the information acquisition unit with the background color included in the background color information and determines whether the color is similar;
When the similar color determination unit determines that the color is similar, a similar gradation color variation unit that generates a gradation color in which the density value of the gradation color is varied;
An outer edge gradation information generating unit that generates outer edge gradation information in which the gradation color generated by the similar gradation color changing unit is combined with an outer edge of a gradation target included in the gradation information acquired by the information acquiring unit. When,
And an image output unit that outputs image data based on the outer edge gradation information.
前記情報取得部は、濃度値が異なる複数の前記グラデーション色を取得し、
前記類似グラデーション色変動部は、少なくとも前記類似色判定部が類似色と判定した前記グラデーション色の濃度値を変動させたグラデーション色を生成する
請求項1に記載の画像形成装置。
The information acquisition unit acquires a plurality of gradation colors having different density values,
The image forming apparatus according to claim 1, wherein the similar gradation color changing unit generates a gradation color in which a density value of the gradation color determined by at least the similar color determination unit as a similar color is changed.
前記類似グラデーション色変動部は、前記類似色判定部が類似色と判定した前記グラデーション色のみの濃度値を変動させたグラデーション色を生成する
請求項2に記載の画像形成装置。
The image forming apparatus according to claim 2, wherein the similar gradation color changing unit generates a gradation color in which only a density value of the gradation color determined by the similar color determining unit as a similar color is changed.
前記類似グラデーション色変動部は、前記類似色判定部が類似色と判定した前記グラデーション色を含む、全ての前記グラデーション色の濃度値を一律に変動させたグラデーション色を生成する
請求項2に記載の画像形成装置。
The said similar gradation color fluctuation | variation part produces | generates the gradation color which fluctuated uniformly the density value of all the said gradation colors including the said gradation color which the said similar color determination part determined as the similar color. Image forming apparatus.
前記類似グラデーション色変動部は、前記類似色判定部が類似色と判定した前記グラデーション色の濃度値と、該グラデーション色に濃度が隣接する前記グラデーション色の濃度値とを変動させたグラデーション色を生成する
請求項2に記載の画像形成装置。
The similar gradation color changing unit generates a gradation color in which a density value of the gradation color determined to be a similar color by the similar color determination unit and a density value of the gradation color adjacent to the gradation color are changed. The image forming apparatus according to claim 2.
前記類似グラデーション色変動部は、前記類似色判定部が類似色と判定した前記グラデーション色の濃度値に濃度が隣接する前記グラデーション色の濃度値を、前記類似色判定部が類似色と判定した前記グラデーション色の濃度値よりも小さく変動させる
請求項5に記載の画像形成装置。
The similar gradation color variation unit determines the density value of the gradation color whose density is adjacent to the density value of the gradation color determined by the similar color determination unit as a similar color, and the similarity color determination unit determines the similarity value as a similar color. The image forming apparatus according to claim 5, wherein the image forming apparatus is changed to be smaller than the density value of the gradation color.
前記類似グラデーション色変動部は、前記グラデーション色の濃度値を全階調のうち20%以下変動させたグラデーション色を生成する
請求項1に記載の画像形成装置。
The image forming apparatus according to claim 1, wherein the similar gradation color changing unit generates a gradation color in which a density value of the gradation color is changed by 20% or less of all gradations.
前記情報取得部は、濃度値が異なる複数の前記グラデーション色を取得し、一方の前記グラデーション色と、該一方の前記グラデーション色に濃度が隣接する他方の前記グラデーション色の間の色を線形補間で計算する
請求項1に記載の画像形成装置。
The information acquisition unit acquires a plurality of gradation colors having different density values, and linearly interpolates a color between one gradation color and the other gradation color whose density is adjacent to the one gradation color. The image forming apparatus according to claim 1.
コンピュータに、
画像データを入力する画像入力部に入力した画像データからグラデーション情報と背景色情報とを取得する情報取得ステップと、
前記情報取得ステップにおいて取得した前記グラデーション情報に含まれるグラデーション色と前記背景色情報に含まれる背景色とを比較し類似色であるかを判定する類似色判定ステップと、
前記類似色判定ステップにおいて類似色と判定した場合、前記グラデーション色の濃度値を変動させたグラデーション色を生成する類似グラデーション色変動ステップと、
前記情報取得ステップにおいて取得した前記グラデーション情報に含まれるグラデーション対象の外縁部に対して、前記類似グラデーション色変動ステップにおいて生成した前記グラデーション色を組み合わせた外縁部グラデーション情報を生成する外縁部グラデーション情報生成ステップと、
前記外縁部グラデーション情報に基づく画像データを出力する画像出力ステップと
を実行させるための画像形成プログラム。
On the computer,
An information acquisition step of acquiring gradation information and background color information from the image data input to the image input unit for inputting image data;
A similar color determination step of comparing the gradation color included in the gradation information acquired in the information acquisition step with the background color included in the background color information to determine whether the color is similar;
If it is determined that the color is similar in the similar color determining step, a similar gradation color changing step for generating a gradation color in which the density value of the gradation color is changed;
An outer edge gradation information generation step for generating outer edge gradation information in which the gradation color generated in the similar gradation color variation step is combined with the outer edge part of the gradation target included in the gradation information acquired in the information acquisition step. When,
An image forming program for executing an image output step of outputting image data based on the outer edge gradation information.
JP2016208762A 2016-10-25 2016-10-25 Image forming apparatus and image forming program Pending JP2018074247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016208762A JP2018074247A (en) 2016-10-25 2016-10-25 Image forming apparatus and image forming program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016208762A JP2018074247A (en) 2016-10-25 2016-10-25 Image forming apparatus and image forming program

Publications (1)

Publication Number Publication Date
JP2018074247A true JP2018074247A (en) 2018-05-10

Family

ID=62115906

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016208762A Pending JP2018074247A (en) 2016-10-25 2016-10-25 Image forming apparatus and image forming program

Country Status (1)

Country Link
JP (1) JP2018074247A (en)

Similar Documents

Publication Publication Date Title
JP3890211B2 (en) Image processing method, image processing apparatus, program, and storage medium
US8503775B2 (en) Image processing method and image processing apparatus
JP5153607B2 (en) Image processing apparatus, image processing method, and image processing program
JPH1132227A (en) Image-processing method and unit and storage medium
JP2009071548A (en) Color processing device and method therefor
JP2009225424A (en) Color correction coefficient generator and program
JP2015154194A (en) Image processing apparatus, image processing system, image processing method, program, and recording medium
JP2021093719A (en) Image processing apparatus, image processing method, and program
JP2009118419A (en) Image processing apparatus, image processing method and image processing program
JPH11196285A (en) Image processing method, device and recording medium
JP4944413B2 (en) Information processing method, computer program, computer-readable storage medium, and information processing apparatus
JP5610687B2 (en) Information processing apparatus, method, and program
EP1569438A2 (en) Color conversion system,color conversion apparatus and color conversion program storage medium
JP2015002442A (en) Image processing apparatus and method
JP2018074247A (en) Image forming apparatus and image forming program
JP2020175597A (en) Image processing system, image processing method, and program
JP4985162B2 (en) Color gamut generation device, color gamut generation program, and color conversion device
JP5966817B2 (en) Color conversion table creation device and program
US20040017476A1 (en) Printing system, layout data generation device, print data processing device and program
JP7186527B2 (en) Image processing device, image processing method, and program
JP2016100682A (en) Image processing apparatus, control program of image processing apparatus, and control method of image processing apparatus
JP4802981B2 (en) Color conversion table creation program, color conversion table creation device, and color conversion table creation system
JP2008042835A (en) Image processor, image processing method, program, and recording medium
JP5903946B2 (en) Color processing apparatus and color processing program
JP4863498B2 (en) Color processing apparatus and method