JP2008203925A - Document editing device, program, and storage medium - Google Patents

Document editing device, program, and storage medium Download PDF

Info

Publication number
JP2008203925A
JP2008203925A JP2007036032A JP2007036032A JP2008203925A JP 2008203925 A JP2008203925 A JP 2008203925A JP 2007036032 A JP2007036032 A JP 2007036032A JP 2007036032 A JP2007036032 A JP 2007036032A JP 2008203925 A JP2008203925 A JP 2008203925A
Authority
JP
Japan
Prior art keywords
text
color
document
image
pixels
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
JP2007036032A
Other languages
Japanese (ja)
Other versions
JP4867693B2 (en
Inventor
Takashi Tani
宇 谷
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 JP2007036032A priority Critical patent/JP4867693B2/en
Publication of JP2008203925A publication Critical patent/JP2008203925A/en
Application granted granted Critical
Publication of JP4867693B2 publication Critical patent/JP4867693B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To determine the character color of a text according to an image included in a document. <P>SOLUTION: This document editing device is provided with a detection means for detecting the inter-pixel luminance difference of images in a document including an image and a text; an acquisition means for acquiring the initial values of the background color and the character color of the text; and a changing means for changing at least either the background color or the character color of the text from the initial value acquired by the acquisition means according to the inter-pixel luminance difference detected by the detection means. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、文書を編集する技術に関する。   The present invention relates to a technique for editing a document.

画像およびテキスト(文字列)を含む文書において、文字色をどのように決定するかは文書の見た目、バランス、または美観に影響を与える。例えば、特許文献1は、テンプレートを用いた画像編集装置において、テンプレートに挿入された文字色を決定する技術を開示している。具体的には、特許文献1によれば、文字色は、背景色の補色相に設定される。   In a document including an image and text (character string), how the character color is determined affects the appearance, balance, or aesthetics of the document. For example, Patent Document 1 discloses a technique for determining a character color inserted into a template in an image editing apparatus using the template. Specifically, according to Patent Document 1, the character color is set to a complementary hue of the background color.

特開2002−158860号公報JP 2002-158860 A

しかし特許文献1においては、文字色を決定する際、紙面内に配置される画像は考慮されなかった。そのため、同一の紙面内に配置される画像との関係において、文字色がアンバランスになってしまうことがあった。
これに対し本発明は、文書内に含まれる画像に応じてテキストの文字色(またはその背景色)を決定する技術を提供する。
However, in Patent Document 1, when determining the character color, an image arranged in the paper is not considered. For this reason, the character colors may become unbalanced in relation to images arranged on the same sheet.
In contrast, the present invention provides a technique for determining the text color (or background color) of text in accordance with an image included in a document.

上述の課題を解決するため、本発明は、画像およびテキストを含む文書において前記画像の画素間明度差を検出する検出手段と、前記テキストの背景色と文字色の初期値を取得する取得手段と、前記検出手段により検出された画素間明度差に応じて、前記テキストの背景色と文字色の少なくともいずれか一方を、前記取得手段により取得された初期値から変更する変更手段とを有する文書編集装置を提供する。
この文書編集装置によれば、画像の画素間明度差に応じて文字色または背景色が決定される。
In order to solve the above-described problems, the present invention provides a detection unit that detects a lightness difference between pixels of the image in a document including an image and text, and an acquisition unit that acquires initial values of the background color and the character color of the text. A document editing unit including: a changing unit configured to change at least one of a background color and a character color of the text from an initial value acquired by the acquiring unit in accordance with a brightness difference between pixels detected by the detecting unit. Providing the device.
According to this document editing apparatus, the character color or the background color is determined according to the brightness difference between pixels of the image.

好ましい態様において、この文書編集装置は、前記文書が複数の画像を含み、前記検出手段が、前記複数の画像のうち前記テキストとの距離が最小の画像において画素間明度差を検出してもよい。
この文書編集装置によれば、テキストとの距離が最小の画像の画素間明度差に応じて文字色または背景色が決定される。
In a preferred aspect, in the document editing apparatus, the document may include a plurality of images, and the detection unit may detect a brightness difference between pixels in an image having a minimum distance from the text among the plurality of images. .
According to this document editing apparatus, the character color or the background color is determined according to the brightness difference between pixels of the image having the smallest distance from the text.

別の好ましい態様において、この文書編集装置は、前記文書が複数の画像を含み、前記検出手段が、前記複数の画像のうち面積が最大の画像において画素間明度差を検出してもよい。
この文書編集装置によれば、面積が最大の画像の画素間明度差に応じて文字色または背景色が決定される。
In another preferred aspect, in the document editing apparatus, the document may include a plurality of images, and the detection unit may detect a brightness difference between pixels in an image having the largest area among the plurality of images.
According to this document editing apparatus, the character color or the background color is determined according to the brightness difference between pixels of the image having the largest area.

さらに別の好ましい態様において、この文書編集装置は、前記変更手段が、前記テキストと背景色と文字色の明度差が前記画素間明度差と等しくなるように前記テキストの背景色と文字色の少なくともいずれか一方を変更してもよい。
この文書編集装置によれば、画像における画素間明度差と、テキストにおける背景色と文字色の明度差が等しくなる。
In still another preferred embodiment, the document editing apparatus is characterized in that the changing means has at least one of a background color and a text color of the text so that a brightness difference between the text, the background color and the text color is equal to the brightness difference between the pixels. Either one may be changed.
According to this document editing apparatus, the brightness difference between pixels in an image is equal to the brightness difference between a background color and a character color in text.

さらに別の好ましい態様において、この文書編集装置は、前記変更手段が、前記テキストの背景色および文字色を変更してもよい。   In still another preferred aspect, in the document editing apparatus, the changing means may change a background color and a character color of the text.

また、本発明は、コンピュータ装置に、画像およびテキストを含む文書において前記画像の画素間明度差を検出するステップと、前記テキストの背景色と文字色の初期値を取得するステップと、前記検出された画素間明度差に応じて、前記テキストの背景色と文字色の少なくともいずれか一方を、前記取得された初期値から変更するステップとを実行させるプログラムを提供する。
さらに本発明は、上記のプログラムを記憶した記憶媒体を提供する。
このプログラムまたは記憶媒体によれば、画像の画素間明度差に応じて文字色または背景色が決定される。
According to another aspect of the present invention, there is provided a computer device for detecting a brightness difference between pixels of the image in a document including an image and text, obtaining an initial value of a background color and a character color of the text, and detecting the detected values. A program for executing a step of changing at least one of a background color and a character color of the text from the acquired initial value according to the brightness difference between the pixels is provided.
Furthermore, the present invention provides a storage medium storing the above program.
According to this program or storage medium, the character color or the background color is determined according to the brightness difference between pixels of the image.

1.構成
図1は、本発明の一実施形態に係る文書編集装置100の機能構成を示す図である。文書編集装置100は、文書を編集する機能、および、それに付随して、文書の編集を支援する機能を有する。「文書」とは、レイアウト領域内に配置される少なくとも1のオブジェクトおよびレイアウト領域におけるオブジェクトの配置を示すレイアウト情報を含むデータ、またはそのデータに従って出力された結果物をいう。「オブジェクト」とは、テキスト(文字列)もしくは画像の少なくとも一方を示すデータ、またはそのデータにより示されるテキストもしくは画像をいう。「レイアウト領域」とは、出力される文書の物理的な境界をいう。レイアウト領域は、例えば、文書が印刷される1または複数の紙、1つのページ、連続する複数のページ、またはページのうち一部分の領域をいう。
1. Configuration FIG. 1 is a diagram showing a functional configuration of a document editing apparatus 100 according to an embodiment of the present invention. The document editing apparatus 100 has a function for editing a document and a function for supporting the editing of the document accompanying the function. The “document” refers to data including layout information indicating the arrangement of at least one object arranged in the layout area and the object in the layout area, or a result output according to the data. “Object” refers to data indicating at least one of text (character string) or image, or text or image indicated by the data. A “layout area” refers to a physical boundary of an output document. The layout area refers to, for example, one or a plurality of papers, one page, a plurality of continuous pages, or a part of a page on which a document is printed.

明度差検出部101は、画像およびテキストを含む文書において、画像の画素間明度差を検出する。「画素間明度差」とは、ある画像における明度の最大値と最小値との差をいう。初期値取得部102は、テキストの背景色と文字色の初期値を取得する。色変更部103は、画素間明度差に応じて、テキストの背景色と文字色の少なくともいずれか一方を初期値から変更する。   The brightness difference detection unit 101 detects a brightness difference between pixels of an image in a document including an image and text. The “pixel brightness difference” refers to a difference between the maximum value and the minimum value of brightness in a certain image. The initial value acquisition unit 102 acquires initial values of the text background color and character color. The color changing unit 103 changes at least one of the text background color and the character color from the initial value according to the brightness difference between the pixels.

図2は、文書編集装置100のハードウェア構成を示す図である。CPU(Central Processing Unit)110は、文書編集装置100の各構成要素を制御する制御装置である。ROM(Read Only Memory)120は、文書編集装置100の起動に必要なデータおよびプログラムを記憶する記憶装置である。RAM(Random Access Memory)130は、CPU110がプログラムを実行する際の作業領域として機能する記憶装置である。I/F(Interface)140は、種々の入出力装置や記憶装置との間でデータおよび制御信号の入出力をするインターフェースである。HDD(Hard Disk Drive)150は、各種プログラムおよびデータを記憶する記憶装置である。本実施形態に関して、HDD150は、黄金分割線の生成を行う文書編集プログラムを記憶している。キーボード・マウス160は、ユーザが文書編集装置100に対して指示入力を行うための入力装置である。ディスプレイ170は、データの内容あるいは処理の状況などを表示する出力装置である。本実施形態において、ディスプレイ170は、オブジェクト、レイアウト領域、および黄金分割線を表示する。ネットワークIF180は、ネットワーク(図示略)を介して接続された他の装置との間でデータの送受信を行うためのインターフェースである。文書編集装置100は、例えば、ネットワークおよびネットワークIF180を介して文書(正確には、文書を示す電子データ)を受信することができる。CPU110、ROM120、RAM130、およびI/F140は、バス190を介して接続されている。CPU110が文書編集プログラムを実行することにより、文書編集装置100は、図1に示される機能構成を備える。なお、文書編集装置100は、図1に示される機能構成および図2に示されるハードウェア構成を含むものであれば、どのような装置であってもよい。例えば、文書編集装置100は、いわゆるパーソナルコンピュータであってもよい。あるいは、文書編集装置100は、これらの機能を有するプリンタなどの画像形成装置であってもよい。   FIG. 2 is a diagram illustrating a hardware configuration of the document editing apparatus 100. A CPU (Central Processing Unit) 110 is a control device that controls each component of the document editing apparatus 100. A ROM (Read Only Memory) 120 is a storage device that stores data and programs necessary for starting up the document editing apparatus 100. A RAM (Random Access Memory) 130 is a storage device that functions as a work area when the CPU 110 executes a program. An I / F (Interface) 140 is an interface for inputting / outputting data and control signals to / from various input / output devices and storage devices. An HDD (Hard Disk Drive) 150 is a storage device that stores various programs and data. With respect to this embodiment, the HDD 150 stores a document editing program for generating a golden dividing line. The keyboard / mouse 160 is an input device for the user to input instructions to the document editing apparatus 100. The display 170 is an output device that displays data contents or processing status. In the present embodiment, the display 170 displays objects, layout areas, and golden dividing lines. The network IF 180 is an interface for transmitting and receiving data to and from other devices connected via a network (not shown). For example, the document editing apparatus 100 can receive a document (more precisely, electronic data indicating the document) via the network and the network IF 180. CPU 110, ROM 120, RAM 130, and I / F 140 are connected via a bus 190. When the CPU 110 executes the document editing program, the document editing apparatus 100 has the functional configuration shown in FIG. The document editing apparatus 100 may be any apparatus as long as it includes the functional configuration shown in FIG. 1 and the hardware configuration shown in FIG. For example, the document editing apparatus 100 may be a so-called personal computer. Alternatively, the document editing apparatus 100 may be an image forming apparatus such as a printer having these functions.

2.動作
図3は、文書編集装置100の動作を示すフローチャートである。図3のフローに先立ち、文書編集装置100は、処理対象となる文書(以下、「対象文書」という)を取得する。対象文書は、HDD150など文書編集装置100内部の記憶装置から読み出されてもよい。あるいは、対象文書は、ネットワーク(図示略)およびネットワークIF180を介して、他の装置から取得されてもよい。さらにあるいは、対象文書は、ユーザがキーボード・マウス160を操作することにより入力されてもよい。
2. Operation FIG. 3 is a flowchart showing the operation of the document editing apparatus 100. Prior to the flow of FIG. 3, the document editing apparatus 100 acquires a document to be processed (hereinafter referred to as “target document”). The target document may be read from a storage device inside the document editing apparatus 100 such as the HDD 150. Alternatively, the target document may be acquired from another device via a network (not shown) and the network IF 180. Alternatively, the target document may be input by the user operating the keyboard / mouse 160.

図4は、対象文書を例示する図である。文書Dは、オブジェクトとして画像IおよびテキストT(「この夏、海に潜ろう」)を含む。文書Dは、テキストの背景色および文字色の候補を示す情報を含んでいる。ここでは、文書Dは、背景色として「白色」を、文字色の候補として「ブラウン」、「紫」、「グリーン」、「ブルー」の4つの色相について色相ごとに候補色を含んでいる。   FIG. 4 is a diagram illustrating a target document. Document D includes image I and text T (“Let's dive into the sea this summer”) as objects. The document D includes information indicating text background color and character color candidates. Here, the document D includes candidate colors for each hue of four hues of “white” as a background color and “brown”, “purple”, “green”, and “blue” as character color candidates.

再び図3を参照して説明する。ステップS100において、CPU110は、文字色、背景色の初期値を取得する。文書Dがテキストの背景色および文字色の候補を示す情報を含んでいるので、CPU110は、文書Dのデータから文字色、背景色の情報を抽出する。なお、CPU110は、配色に関するテンプレートから、文字色および背景色の初期値を取得してもよい。この場合、HDD150は、少なくとも1つのテンプレートを記憶している。あるいは、文字色および背景色の初期値は、ユーザの操作入力に基づいて決定されてもよい。   A description will be given with reference to FIG. 3 again. In step S100, the CPU 110 acquires initial values of the character color and the background color. Since the document D includes information indicating text background color and character color candidates, the CPU 110 extracts character color and background color information from the document D data. Note that the CPU 110 may acquire initial values of the character color and the background color from the template relating to the color scheme. In this case, the HDD 150 stores at least one template. Alternatively, the initial values of the character color and the background color may be determined based on a user operation input.

図5は、文字色の候補を例示する図である。図5の例では、「ブラウン」、「紫」、「グリーン」、「ブルー」の4つの色相について、色相ごとに1つ候補色が示されている。また図5において、候補色は、RGB表色系およびL*a*b*表色系の2通りの表現で表されている。テンプレートや文書のデータとして記憶される際、色に関する情報はRGB表色系に従ったデータとして保存されるが、本実施形態に関する処理を行う際には、候補色の成分は、L*a*b*表色系に従ったデータに変換される。なお、元のデータにおいて候補色がL*a*b*表色系で表されていれば変換の必要はない。本実施形態の以降の説明では、請求項及び図面における画素の明るさを表す指標「明度」にL*a*b*表色系の明度L*を使う。   FIG. 5 is a diagram illustrating character color candidates. In the example of FIG. 5, one candidate color is shown for each hue with respect to four hues of “brown”, “purple”, “green”, and “blue”. In FIG. 5, the candidate colors are represented by two representations of RGB color system and L * a * b * color system. When stored as template or document data, the color-related information is stored as data according to the RGB color system. However, when performing processing related to the present embodiment, the candidate color component is L * a *. It is converted into data according to the b * color system. Note that if the candidate color is represented in the L * a * b * color system in the original data, conversion is not necessary. In the following description of the present embodiment, the lightness L * of the L * a * b * color system is used as an index “lightness” representing the brightness of a pixel in the claims and drawings.

ふたたび図3を参照して説明する。ステップS110において、CPU110は、対象文書に含まれる画像において画素間明度差を検出する。画素間明度差の検出は、データ群の中から最大値および最小値を検出する公知のアルゴリズムを用いて行われる。いま、例えば、処理対象の画像(以下、「対象画像」という)における明度L*の最小値L*minが50であり、最大値L*maxが96である場合、すなわち画素間明度差ΔL*=46である場合を例に説明する。 This will be described with reference to FIG. 3 again. In step S110, the CPU 110 detects a brightness difference between pixels in an image included in the target document. The lightness difference between pixels is detected using a known algorithm for detecting the maximum value and the minimum value from the data group. Now, for example, when the minimum value L * min of the lightness L * in the image to be processed (hereinafter referred to as “target image”) is 50 and the maximum value L * max is 96, that is, the lightness difference ΔL * between pixels. = 46 will be described as an example.

ステップS120において、CPU110は、画素間明度差に基づいて、文字色および背景色の少なくともいずれか一方の色を変更する。すなわち、CPU110は、画素間明度差に基づいて、文字色および背景色の少なくともいずれか一方の色を補正する。具体的には、CPU110は、例えば以下のように文字色を決定する。CPU110は、背景色の明度L*bak(背景色が複数の色からなる場合には、明度の平均値)がしきい値以上であるか判断する。しきい値としては、例えば明度の範囲の中央値(50)が用いられる。CPU110は、背景色の明度L*bakに応じて、補正後の文字色の明度L*calを決定する。
(a)L*bak≧50の場合
CPU110は、次式(1)に従って明度L*calを決定する。
L*cal=L*bak−ΔL* …(1)
なお式(1)の演算結果が負の値であった場合、すなわち、演算結果が明度の取り得る値の最小値より小さい場合、CPU110は、L*cal=0と再度の補正を行ってもよい。
(b)L*bak<50の場合
CPU110は、次式(2)に従って明度L*calを決定する。
L*cal=L*bak+ΔL* …(2)
なお式(2)の演算結果が100を超えた場合、すなわち、演算結果が明度の取り得る値の最大値より大きい場合、CPU110は、L*cal=0と再度の補正を行ってもよい。
In step S120, the CPU 110 changes at least one of the character color and the background color based on the brightness difference between the pixels. That is, the CPU 110 corrects at least one of the character color and the background color based on the brightness difference between pixels. Specifically, the CPU 110 determines a character color as follows, for example. The CPU 110 determines whether the lightness L * bak of the background color (average value of lightness when the background color is composed of a plurality of colors) is equal to or greater than a threshold value. As the threshold value, for example, the median value (50) of the brightness range is used. The CPU 110 determines the lightness L * cal of the corrected character color according to the lightness L * bak of the background color.
(A) When L * bak ≧ 50 The CPU 110 determines the lightness L * cal according to the following equation (1).
L * cal = L * bak− ΔL * (1)
Note that if the calculation result of the expression (1) is a negative value, that is, if the calculation result is smaller than the minimum value that the brightness can take, the CPU 110 may correct L * cal = 0 again. Good.
(B) When L * bak <50 The CPU 110 determines the lightness L * cal according to the following equation (2).
L * cal = L * bak + ΔL * (2)
When the calculation result of Expression (2) exceeds 100, that is, when the calculation result is larger than the maximum value that the lightness can take, the CPU 110 may perform correction again with L * cal = 0.

図6は、図5の文字色候補に対して補正を行った例を示す図である。L*a*b*表色系で表した場合に、明度L*成分のみが補正されている。この補正により、テキストにおける背景色と文字色の明度の差(コントラスト)と、画像における明度の差とが等しくなる。   FIG. 6 is a diagram illustrating an example in which the character color candidates in FIG. 5 are corrected. When expressed in the L * a * b * color system, only the lightness L * component is corrected. By this correction, the difference in brightness between the background color and the character color (contrast) in the text is equal to the difference in brightness in the image.

再び図3を参照して説明する。ステップS130において、CPU110は、文字色および背景色を決定する。CPU110は、決定された文字色および背景色に従って文書を出力する。文字色の候補が複数ある場合、CPU110は、そのうちの1つの色を文字色として決定する。候補色のうちどの色を文字色として決定するか選択する方法は任意である。例えば、CPU110は、ユーザの操作入力に応じて候補色のうち1つの色を文字色として決定してもよい。あるいは、CPU110は、候補色の中からランダムに文字色を選択してもよい。あるいは、CPU110は、候補色の中から、画像の代表色(例えば、画像の平均色、または再頻色すなわち画素数が最も多い色)とあらかじめ決められた関係を満たす色を文字色として選択してもよい。CPU110は、文字色および背景色が決定した文書を出力する。例えば、CPU110は、文書データに従ってディスプレイ170に画像を表示する。あるいは、CPU110は、文書データをHDD150に記憶する。あるいは、CPU110は、文書データをネットワークやI/F140を介して他の装置に出力する。   A description will be given with reference to FIG. 3 again. In step S130, CPU 110 determines a character color and a background color. CPU 110 outputs the document according to the determined character color and background color. When there are a plurality of character color candidates, the CPU 110 determines one of them as the character color. A method for selecting which of the candidate colors is determined as the character color is arbitrary. For example, the CPU 110 may determine one of the candidate colors as a character color in response to a user operation input. Or CPU110 may select a character color at random from candidate colors. Alternatively, the CPU 110 selects, from among the candidate colors, a color that satisfies a predetermined relationship with a representative color of the image (for example, an average color of the image or a frequent color, that is, a color having the largest number of pixels) as a character color. May be. CPU 110 outputs a document whose character color and background color are determined. For example, the CPU 110 displays an image on the display 170 according to the document data. Alternatively, CPU 110 stores document data in HDD 150. Or CPU110 outputs document data to another apparatus via a network or I / F140.

以上で説明したように、本実施形態によれば、画像のコントラストによる視覚的な印象がテキスト領域においても維持されるため、文書全体が統一された印象を与えることができる。   As described above, according to the present embodiment, the visual impression due to the contrast of the image is maintained even in the text region, so that the entire document can be given a unified impression.

3.他の実施形態
本発明は上述の実施形態に限定されるものではなく、種々の変形実施が可能である。
上述の実施形態において、対象文書が1つの画像を含む例について説明したが、対象文書は複数の画像を含んでもよい。この場合、CPU110は、複数の画像のうちの1つを対象画像として選択してもよい。例えば、CPU110は、複数の画像のうち、テキストとの距離が最小の画像を対象画像として選択してもよい。あるいは、CPU110は、複数の画像のうち、面積が最大の画像を対象画像として選択してもよい。さらにあるいは、CPU110は、画像の属性情報に基づいて対象画像を選択してもよい。この場合、文書は、各オブジェクトの属性を示す属性情報を含んでいる。さらにあるいは、CPU110は、ユーザの指示入力に応じて対象画像を選択してもよい。
3. Other Embodiments The present invention is not limited to the above-described embodiments, and various modifications can be made.
In the above-described embodiment, the example in which the target document includes one image has been described. However, the target document may include a plurality of images. In this case, the CPU 110 may select one of the plurality of images as the target image. For example, the CPU 110 may select an image having a minimum distance from the text among the plurality of images as the target image. Or CPU110 may select an image with the largest area among several images as a target image. Further alternatively, the CPU 110 may select a target image based on image attribute information. In this case, the document includes attribute information indicating the attribute of each object. Further alternatively, the CPU 110 may select the target image in response to a user instruction input.

上述の実施形態において、文字色と背景色のうち文字色を変更する例について説明したが、変更される色は文字色に限定されない。CPU110は、画素間明度差に基づいて背景色を変更してもよい。あるいは、CPU110は、文字色について式(1)または式(2)による演算結果が明度の最大値または最小値を超えた場合に、その超えた分について背景色を変更してもよい。さらにあるいは、CPU110は、画素間明度差をある割合で文字色と背景色に割り当て、文字色と背景色の両方を変更してもよい。さらにあるいは、文字色と背景色のうちどちらを変更するか、ユーザの指示入力に応じて決定されてもよい。   In the above-described embodiment, the example of changing the character color between the character color and the background color has been described, but the color to be changed is not limited to the character color. The CPU 110 may change the background color based on the brightness difference between pixels. Or CPU110 may change a background color about the part by which the calculation result by Formula (1) or Formula (2) exceeded the maximum value or minimum value of the brightness about the character color. Further alternatively, the CPU 110 may assign a lightness difference between pixels to the character color and the background color at a certain ratio, and change both the character color and the background color. Further alternatively, it may be determined according to the user's instruction input whether to change the character color or the background color.

上述の実施形態において、文字色は4つの候補色の中から選択されたが、候補色の数は4つに限定されない。候補色の数は3つ以下または5つ以上であってもよい。特に、候補色の数は1つであってもよい。すなわち、文字色が直接決定されてもよい。   In the above-described embodiment, the character color is selected from the four candidate colors, but the number of candidate colors is not limited to four. The number of candidate colors may be 3 or less, or 5 or more. In particular, the number of candidate colors may be one. That is, the character color may be determined directly.

上述の実施形態において、文字色または背景色はL*a*b*表色系を用いて処理されたが、用いられる表色系はこれに限定されない。明度を変更できるものであれば、どのような表色系が用いられてもよい。   In the above embodiment, the character color or the background color is processed using the L * a * b * color system, but the color system used is not limited to this. Any color system may be used as long as the lightness can be changed.

上述の実施形態において、文書が1ページの情報を含む例について説明した。しかし、文書は、複数ページの情報を含んでもよい。この場合、CPU110は、同一のページに含まれる画像およびテキストに対して上記の処理を行ってもよいし、複数ページに渡って含まれる画像およびテキストに対して上記の処理を行ってもよい。   In the above-described embodiment, the example in which the document includes one page of information has been described. However, the document may include multiple pages of information. In this case, the CPU 110 may perform the above processing on images and text included in the same page, or may perform the above processing on images and text included in a plurality of pages.

また、コンピュータ装置に上述の処理を実行させるプログラムは、CD−ROM(Compact Disk Read Only Memory)などの記憶媒体により提供されてもよい。   Further, the program that causes the computer apparatus to execute the above-described processing may be provided by a storage medium such as a CD-ROM (Compact Disk Read Only Memory).

本発明の一実施形態に係る文書編集装置100の機能構成を示す図である。It is a figure which shows the function structure of the document editing apparatus 100 which concerns on one Embodiment of this invention. 文書編集装置100のハードウェア構成を示す図である。2 is a diagram illustrating a hardware configuration of a document editing apparatus 100. FIG. 文書編集装置100の動作を示すフローチャートである。3 is a flowchart showing the operation of the document editing apparatus 100. 対象文書を例示する図である。It is a figure which illustrates an object document. 文字色の候補を例示する図である。It is a figure which illustrates the candidate of a character color. 文字色候補に対して補正を行った例を示す図である。It is a figure which shows the example which correct | amended with respect to the character color candidate.

符号の説明Explanation of symbols

100…文書編集装置、101…明度差検出部、102…初期値取得部、103…色変更部、110…CPU、120…ROM、130…RAM、140…I/F、150…HDD、160…キーボード・マウス、170…ディスプレイ、180…ネットワークIF、190…バス DESCRIPTION OF SYMBOLS 100 ... Document editing apparatus 101 ... Lightness difference detection part 102 ... Initial value acquisition part 103 ... Color change part 110 ... CPU, 120 ... ROM, 130 ... RAM, 140 ... I / F, 150 ... HDD, 160 ... Keyboard / Mouse, 170 ... Display, 180 ... Network IF, 190 ... Bus

Claims (7)

画像およびテキストを含む文書において前記画像の画素間明度差を検出する検出手段と、
前記テキストの背景色と文字色の明度の初期値を取得する取得手段と、
前記検出手段により検出された前記画素間明度差に応じて、前記テキストの背景色と文字色の少なくともいずれか一方を、前記取得手段により取得された前記明度の初期値から変更する変更手段と
を有する文書編集装置。
Detecting means for detecting a lightness difference between pixels of the image in a document including an image and text;
Obtaining means for obtaining initial values of brightness of the background color and the character color of the text;
A changing unit that changes at least one of a background color and a character color of the text from the initial value of the brightness acquired by the acquiring unit according to the brightness difference between the pixels detected by the detecting unit; Document editing device having.
前記文書が複数の画像を含み、
前記検出手段が、前記複数の画像のうち前記テキストとの距離が最小の画像において画素間明度差を検出する
ことを特徴とする請求項1に記載の文書編集装置。
The document includes a plurality of images;
The document editing apparatus according to claim 1, wherein the detection unit detects a lightness difference between pixels in an image having a minimum distance from the text among the plurality of images.
前記文書が複数の画像を含み、
前記検出手段が、前記複数の画像のうち面積が最大の画像において画素間明度差を検出する
ことを特徴とする請求項1に記載の文書編集装置。
The document includes a plurality of images;
The document editing apparatus according to claim 1, wherein the detection unit detects a brightness difference between pixels in an image having the largest area among the plurality of images.
前記変更手段が、前記テキストと背景色と文字色の明度差が前記画素間明度差と等しくなるように前記テキストの背景色と文字色の少なくともいずれか一方の明度を変更する
ことを特徴とする請求項1に記載の文書編集装置。
The changing means changes the lightness of at least one of the background color and the character color of the text so that the lightness difference between the text, the background color, and the character color is equal to the lightness difference between the pixels. The document editing apparatus according to claim 1.
前記変更手段が、前記テキストの背景色および文字色の明度を変更する
ことを特徴とする請求項1に記載の文書編集装置。
The document editing apparatus according to claim 1, wherein the changing unit changes a lightness of a background color and a character color of the text.
コンピュータ装置に、
画像およびテキストを含む文書において前記画像の画素間明度差を検出するステップと、
前記テキストの背景色と文字色の明度の初期値を取得するステップと、
前記検出された画素間明度差に応じて、前記テキストの背景色と文字色の少なくともいずれか一方を、前記取得された明度の初期値から変更するステップと
を実行させるプログラム。
Computer equipment,
Detecting a brightness difference between pixels of the image in a document including the image and text;
Obtaining initial values of brightness of the background color and text color of the text;
A program for executing at least one of a background color and a character color of the text from the acquired initial value of brightness according to the detected brightness difference between pixels.
コンピュータ装置に、
画像およびテキストを含む文書において前記画像の画素間明度差を検出するステップと、
前記テキストの背景色と文字色の明度の初期値を取得するステップと、
前記検出された画素間明度差に応じて、前記テキストの背景色と文字色の少なくともいずれか一方を、前記取得された明度の初期値から変更するステップと
を実行させるプログラムを記憶した記憶媒体。
Computer equipment,
Detecting a brightness difference between pixels of the image in a document including the image and text;
Obtaining initial values of brightness of the background color and text color of the text;
A storage medium storing a program for executing a step of changing at least one of a background color and a character color of the text from the initial value of the acquired brightness according to the detected brightness difference between pixels.
JP2007036032A 2007-02-16 2007-02-16 Document editing apparatus and program Expired - Fee Related JP4867693B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007036032A JP4867693B2 (en) 2007-02-16 2007-02-16 Document editing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007036032A JP4867693B2 (en) 2007-02-16 2007-02-16 Document editing apparatus and program

Publications (2)

Publication Number Publication Date
JP2008203925A true JP2008203925A (en) 2008-09-04
JP4867693B2 JP4867693B2 (en) 2012-02-01

Family

ID=39781410

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007036032A Expired - Fee Related JP4867693B2 (en) 2007-02-16 2007-02-16 Document editing apparatus and program

Country Status (1)

Country Link
JP (1) JP4867693B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019012521A (en) * 2017-06-29 2019-01-24 セールスフォース ドット コム インコーポレイティッド Presentation color theme maintenance

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158860A (en) * 2000-11-21 2002-05-31 Canon Inc Image editor, method and system for editing image
JP2006197178A (en) * 2005-01-13 2006-07-27 Ricoh Co Ltd Image processor, image processing method, program, and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002158860A (en) * 2000-11-21 2002-05-31 Canon Inc Image editor, method and system for editing image
JP2006197178A (en) * 2005-01-13 2006-07-27 Ricoh Co Ltd Image processor, image processing method, program, and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019012521A (en) * 2017-06-29 2019-01-24 セールスフォース ドット コム インコーポレイティッド Presentation color theme maintenance
JP7130465B2 (en) 2017-06-29 2022-09-05 セールスフォース ドット コム インコーポレイティッド Maintain the color theme of your presentation

Also Published As

Publication number Publication date
JP4867693B2 (en) 2012-02-01

Similar Documents

Publication Publication Date Title
JP2011040968A (en) Image processing apparatus and image processing program
JP4905015B2 (en) Image processing device
JP4469249B2 (en) Image processing device
JP2007172164A (en) Digital content preparation system, program, and storage medium
JP2005051356A (en) Color reduction processor and color reduction processing method
JP2015179995A (en) Image processing device and program
JP6452342B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP4867693B2 (en) Document editing apparatus and program
JP2007151075A (en) Printer, printing method, image processing apparatus, image processing method, printing program, image processing program, and recording medium
JP4983955B2 (en) Image processing apparatus and image processing program
JP4944068B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2004146914A (en) Method, apparatus and program for reducing ink consumption
JP6292061B2 (en) Information processing apparatus and program
JP2012245707A (en) Apparatus, method, and program for image processing
JP2009218928A (en) Image processing apparatus, image processing method, image processing program and image processing storage medium
JP7321885B2 (en) Image processing device, image processing method, and program
JP2006260533A (en) Image forming apparatus and method
JP2006287603A (en) Mesh point region discrimination apparatus and mesh point region discrimination program
JP5609573B2 (en) Driver program and printing system
JP2009218823A (en) Image processor, image processing method, image processing program and image processing storage medium
JP6060062B2 (en) Image processing apparatus and program
JP2015231197A (en) Profile creation method, profile creation program, and recording medium
JP4835735B2 (en) Image processing apparatus and image processing program
JP4970419B2 (en) Image processing device
JP2006197415A (en) Color image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091218

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110630

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110705

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110905

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: 20111018

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111031

R150 Certificate of patent or registration of utility model

Ref document number: 4867693

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141125

Year of fee payment: 3

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