JP2011211287A - Image forming apparatus and image processing program - Google Patents

Image forming apparatus and image processing program Download PDF

Info

Publication number
JP2011211287A
JP2011211287A JP2010074376A JP2010074376A JP2011211287A JP 2011211287 A JP2011211287 A JP 2011211287A JP 2010074376 A JP2010074376 A JP 2010074376A JP 2010074376 A JP2010074376 A JP 2010074376A JP 2011211287 A JP2011211287 A JP 2011211287A
Authority
JP
Japan
Prior art keywords
color
representative
representative color
image
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2010074376A
Other languages
Japanese (ja)
Other versions
JP5183660B2 (en
Inventor
Etsuko Manda
悦子 萬田
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Mita 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 Kyocera Mita Corp filed Critical Kyocera Mita Corp
Priority to JP2010074376A priority Critical patent/JP5183660B2/en
Publication of JP2011211287A publication Critical patent/JP2011211287A/en
Application granted granted Critical
Publication of JP5183660B2 publication Critical patent/JP5183660B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an image forming apparatus capable of converting an inputted image to an image more natural than before at high speed.SOLUTION: A multifunction machine includes a storage unit for storing a representative color, and a controller for preparing a Voronoi diagram where the representative color stored by the storage unit is a generatrix on an Lab color space, and converting the respective pixels of the inputted image to the closest representative color on the basis of the Voronoi diagram. The controller receives a color selected by a user, and calculates one or more colors between the received color and white. The storage unit stores the color received by the controller as the representative color, and stores the color calculated by the controller as the representative color. The controller changes the representative color corresponding to the pixel (S223) so that the adjacent pixel is within a predetermined range on the Voronoi diagram.

Description

本発明は、入力された画像を代表色のみで構成される画像に変換して出力することができる画像形成装置および画像処理プログラムに関する。   The present invention relates to an image forming apparatus and an image processing program capable of converting an input image into an image composed of only representative colors and outputting the image.

近年、エコロジーやコスト削減のために省エネルギーが重視されている。複写機やプリンタ等の画像形成装置においても、省エネルギーのために、単色プリントや2色プリントなど、入力された画像を代表色のみで構成される画像に変換して印刷することが増加している。   In recent years, energy conservation has been emphasized for ecology and cost reduction. Also in image forming apparatuses such as copiers and printers, in order to save energy, printing is performed by converting an input image such as a single color print or a two-color print into an image composed only of representative colors. .

従来、入力された画像を代表色のみで構成される画像に変換して出力する場合、入力された画像の各画素を、RGB色空間上やCMYK色空間上で最も近い代表色に変換する方法が知られている。しかしながら、この方法は、RGB色空間やCMYK色空間が画像の出力装置に依存する色空間であるため、実際に出力される画像が出力装置によって異なってしまうという問題がある。   Conventionally, when an input image is converted into an image composed of only representative colors and then output, each pixel of the input image is converted to the closest representative color in the RGB color space or the CMYK color space It has been known. However, since this method is a color space in which the RGB color space and the CMYK color space depend on the image output device, there is a problem in that an actually output image varies depending on the output device.

この問題を解決する方法として、入力された画像の各画素を、RGB色空間上やCMYK色空間上の値から、画像の出力装置に依存せずに人間の感覚で表されるLab色空間上の値に変換した後、Lab色空間上で最も近い代表色に変換する方法が知られている(例えば、特許文献1参照。)。しかしながら、この方法は、各画素を最も近い代表色に変換するときに、入力された画像の各画素に対して全ての代表色との距離を求めて、最短の距離である代表色をその画素の変換後の色としているので、変換するための処理量が多く、処理時間が長いという問題がある。   As a method for solving this problem, each pixel of the input image is displayed on the Lab color space expressed by the human sense without depending on the image output device from the values on the RGB color space or the CMYK color space. There is known a method of converting to the closest representative color in the Lab color space after conversion to the value (for example, see Patent Document 1). However, in this method, when each pixel is converted to the nearest representative color, the distance between all the representative colors is obtained for each pixel of the input image, and the representative color having the shortest distance is determined as that pixel. Therefore, there is a problem that the processing amount for conversion is large and the processing time is long.

この問題を解決する方法として、ボロノイ図を用いて各画素を最も近い代表色に変換する方法が知られている(例えば、特許文献2,3参照。)。   As a method for solving this problem, a method is known in which each pixel is converted to the closest representative color using a Voronoi diagram (see, for example, Patent Documents 2 and 3).

ところで、人間は、色相の変化に敏感である。したがって、空、海、草木などの写真画像が代表色のみで構成される画像に変換された場合、変換後の画像は、その色相の変化具合によっては不自然な画像になってしまうことがある。色相の変化を滑らかにするための技術としては、元のイメージデータに対してピクセル毎にLab色空間で色誤差拡散を実行して、出力イメージデータを生成するものが知られている(例えば、特許文献4参照。)。   By the way, humans are sensitive to changes in hue. Therefore, when a photographic image of sky, sea, vegetation, etc. is converted into an image composed only of representative colors, the converted image may become an unnatural image depending on how the hue changes. . As a technique for smoothing a change in hue, one that generates output image data by performing color error diffusion in the Lab color space for each pixel with respect to original image data is known (for example, (See Patent Document 4).

特許第4083311号公報Japanese Patent No. 4083311 特開平7−85251号公報Japanese Patent Laid-Open No. 7-85251 特許第3492115号公報Japanese Patent No. 3492115 特許第3737149号公報Japanese Patent No. 3737149

特許文献2,3に記載された技術においては、選択された代表色によっては、入力された画像のうち濃度が大きく異なる画素同士が同一の代表色に変換されることがあり、変換後の画像が不自然な画像になってしまうことがあるという問題がある。   In the techniques described in Patent Documents 2 and 3, depending on the selected representative color, pixels having greatly different densities in the input image may be converted to the same representative color. There is a problem that sometimes becomes an unnatural image.

また、特許文献4に記載された技術においては、ピクセル毎にLab色空間で色誤差拡散を実行しているので、処理速度が遅いという問題がある。   In the technique described in Patent Document 4, since color error diffusion is performed in the Lab color space for each pixel, there is a problem that the processing speed is slow.

そこで、本発明は、入力された画像を従来より自然な画像に高速に変換することができる画像形成装置を提供することを目的とする。   SUMMARY An advantage of some aspects of the invention is that it provides an image forming apparatus capable of converting an input image into a more natural image than before.

本発明の画像形成装置は、代表色を記憶する代表色記憶手段と、前記代表色記憶手段によって記憶されている前記代表色を母点としたボロノイ図を均等色空間上に作成するボロノイ図作成手段と、入力された画像の各画素を前記ボロノイ図に基づいて最も近い前記代表色に変換する色変換手段と、前記画素に対応する前記代表色を変更する色変更手段とを備えている画像形成装置であって、前記色変更手段は、隣接する前記画素が前記ボロノイ図上で所定の範囲内になるように、前記画素に対応する前記代表色を変更することを特徴とする。   An image forming apparatus according to the present invention includes a representative color storage unit that stores a representative color, and a Voronoi diagram generation that generates a Voronoi diagram using the representative color stored in the representative color storage unit as a base point in a uniform color space. An image comprising: means; color conversion means for converting each pixel of the input image to the nearest representative color based on the Voronoi diagram; and a color changing means for changing the representative color corresponding to the pixel. In the forming apparatus, the color changing unit changes the representative color corresponding to the pixel so that the adjacent pixel is within a predetermined range on the Voronoi diagram.

この構成により、本発明の画像形成装置は、隣接する画素がボロノイ図上で所定の範囲内になるように、画素に対応する代表色を変更するので、入力された画像を従来より自然な画像に変換することができる。また、本発明の画像形成装置は、ボロノイ図を利用するので、画像を高速に変換することができる。   With this configuration, the image forming apparatus of the present invention changes the representative color corresponding to a pixel so that the adjacent pixel is within a predetermined range on the Voronoi diagram. Can be converted to Further, since the image forming apparatus of the present invention uses the Voronoi diagram, the image can be converted at high speed.

また、本発明の画像形成装置は、利用者によって選択された色を受け付ける選択色受付手段と、前記選択色受付手段によって受け付けられた色と白色との間の1以上の色を算出する色算出手段とを備えており、前記代表色記憶手段は、前記選択色受付手段によって受け付けられた色と、前記色算出手段によって算出された色とを前記代表色として記憶することが好ましい。   The image forming apparatus according to the present invention includes a selection color reception unit that receives a color selected by a user, and a color calculation that calculates one or more colors between the color received by the selection color reception unit and white. The representative color storage means preferably stores the color received by the selected color receiving means and the color calculated by the color calculation means as the representative color.

この構成により、本発明の画像形成装置は、利用者によって選択された色を代表色とするだけでなく、その色と白色との間の1以上の色を自動的に代表色として追加するので、入力された画像を更に自然な画像に変換することができる。   With this configuration, the image forming apparatus of the present invention not only sets the color selected by the user as the representative color, but also automatically adds one or more colors between the color and white as the representative color. The input image can be converted into a more natural image.

また、本発明の画像処理プログラムは、代表色を記憶する代表色記憶手段と、前記代表色記憶手段によって記憶されている前記代表色を母点としたボロノイ図を均等色空間上に作成するボロノイ図作成手段と、入力された画像の各画素を前記ボロノイ図に基づいて最も近い前記代表色に変換する色変換手段と、前記画素に対応する前記代表色を変更する色変更手段としてコンピュータを機能させるための画像処理プログラムであって、前記色変更手段は、隣接する前記画素が前記ボロノイ図上で所定の範囲内になるように、前記画素に対応する前記代表色を変更することを特徴とする。   The image processing program according to the present invention includes a representative color storage unit that stores a representative color, and a Voronoi diagram that creates a Voronoi diagram using the representative color stored in the representative color storage unit as a base point in a uniform color space. The computer functions as a diagram creation means, a color conversion means for converting each pixel of the input image to the nearest representative color based on the Voronoi diagram, and a color change means for changing the representative color corresponding to the pixel An image processing program for performing the processing, wherein the color changing unit changes the representative color corresponding to the pixel so that the adjacent pixel is within a predetermined range on the Voronoi diagram. To do.

この構成により、本発明の画像処理プログラムを実行するコンピュータは、隣接する画素がボロノイ図上で所定の範囲内になるように、画素に対応する代表色を変更するので、入力された画像を従来より自然な画像に変換することができる。また、本発明の画像処理プログラムを実行するコンピュータは、ボロノイ図を利用するので、画像を高速に変換することができる。   With this configuration, the computer that executes the image processing program of the present invention changes the representative color corresponding to a pixel so that adjacent pixels are within a predetermined range on the Voronoi diagram. It can be converted into a more natural image. Further, since the computer that executes the image processing program of the present invention uses the Voronoi diagram, the image can be converted at high speed.

本発明の画像形成装置は、入力された画像を従来より自然な画像に高速に変換することができる。   The image forming apparatus of the present invention can convert an input image into a more natural image than before.

本発明の一実施の形態に係る複合機の制御構成を示すブロック図である。It is a block diagram which shows the control structure of the multifunctional device which concerns on one embodiment of this invention. 利用者によってコピーの指示が与えられたときの図1に示す制御部の動作のフローチャートである。2 is a flowchart of the operation of the control unit shown in FIG. 1 when a copy instruction is given by a user. (a)は、利用者によって代表色が選択される前の図1に示すモニタに表示されるコピー動作画面を示す図である。(b)は、利用者によって代表色が選択された後の図1に示すモニタに表示されるコピー動作画面を示す図である。(A) is a figure which shows the copy operation | movement screen displayed on the monitor shown in FIG. 1 before a representative color is selected by the user. (B) is a figure which shows the copy operation | movement screen displayed on the monitor shown in FIG. 1 after a representative color is selected by the user. 図2に示す代表色選択処理のフローチャートである。It is a flowchart of the representative color selection process shown in FIG. 図1に示すモニタに表示される代表色選択画面を示す図である。It is a figure which shows the representative color selection screen displayed on the monitor shown in FIG. 図2に示すコピー処理のフローチャートである。3 is a flowchart of a copy process shown in FIG. 図6に示すボロノイ図作成処理のフローチャートである。7 is a flowchart of Voronoi diagram creation processing shown in FIG. 6. 図7に示すボロノイ図作成処理において作成されたボロノイ図を示す図である。It is a figure which shows the Voronoi diagram produced in the Voronoi diagram creation process shown in FIG. 図6に示す色変換処理のフローチャートである。It is a flowchart of the color conversion process shown in FIG. 図6に示す特定領域画像抽出処理のフローチャートである。It is a flowchart of the specific area image extraction process shown in FIG. 図6に示す色変更処理のフローチャートである。It is a flowchart of the color change process shown in FIG.

以下、本発明の一実施の形態について、図面を用いて説明する。   Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

まず、本実施の形態に係る画像形成装置としての複合機の構成について説明する。   First, the configuration of a multifunction peripheral as an image forming apparatus according to the present embodiment will be described.

図1は、本実施の形態に係る複合機10の制御構成を示すブロック図である。   FIG. 1 is a block diagram showing a control configuration of the multifunction machine 10 according to the present embodiment.

図1に示すように、複合機10は、複合機10全体を制御するための制御部11と、種々の情報を記憶するための記憶部12と、利用者によって種々の操作が入力される図示していない操作パネル上の操作部13と、種々の情報を表示する操作パネル上のモニタ14と、用紙に印刷を実行するプリンタ部15と、原稿を読み込んで画像データを生成する読取デバイスであるスキャナ部16と、ホストコンピュータなどの図示していない外部の装置とLAN(Local Area Network)を介して通信を行うためのネットワークI/F(interface)部17とを備えている。   As shown in FIG. 1, the multifunction machine 10 includes a control unit 11 for controlling the entire multifunction machine 10, a storage unit 12 for storing various information, and various operations input by a user. An operation unit 13 on the operation panel (not shown), a monitor 14 on the operation panel for displaying various information, a printer unit 15 for executing printing on paper, and a reading device for reading an original and generating image data. The scanner unit 16 and a network I / F (interface) unit 17 for communicating with an external device (not shown) such as a host computer via a LAN (Local Area Network).

制御部11は、CPU(Central Processing Unit)と、本発明の画像処理プログラムなどのプログラムや各種のデータを予め記憶しているROM(Read Only Memory)と、CPUの作業領域として用いられるRAM(Random Access Memory)となどによって構成されている。CPUは、ROMに記憶されているプログラムを実行することによって制御部11を動作させる演算処理装置である。RAMは、CPUによってプログラムが実行されるときにプログラムや各種のデータを一時的に記憶するようになっている。   The control unit 11 includes a CPU (Central Processing Unit), a ROM (Read Only Memory) preliminarily storing programs such as an image processing program of the present invention and various data, and a RAM (Random) used as a work area of the CPU. Access Memory) and the like. The CPU is an arithmetic processing unit that operates the control unit 11 by executing a program stored in the ROM. The RAM temporarily stores programs and various data when the programs are executed by the CPU.

ここで、制御部11は、画像処理プログラムを実行することによって、後述するように、利用者によって選択された色を代表色として受け付けるようになっており、選択色受付手段11aとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、利用者によって選択された色と白色との間の1以上の色を代表色として算出するようになっており、色算出手段11bとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、記憶部12によって記憶されている代表色を母点としたボロノイ図をLab色空間上に作成するようになっており、ボロノイ図作成手段11cとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、入力された画像の各画素をボロノイ図に基づいて最も近い代表色に変換するようになっており、色変換手段11dとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、画素に対応する代表色を変更するようになっており、色変更手段11eとして機能するようになっている。   Here, by executing the image processing program, the control unit 11 receives the color selected by the user as a representative color, as will be described later, and functions as the selected color receiving unit 11a. It has become. Further, the control unit 11 calculates one or more colors between a color selected by the user and white as a representative color by executing an image processing program, as will be described later. It functions as the color calculation means 11b. In addition, the control unit 11 creates a Voronoi diagram with the representative color stored in the storage unit 12 as a generating point in the Lab color space by executing the image processing program, as will be described later. And functions as Voronoi diagram creation means 11c. The control unit 11 executes the image processing program to convert each pixel of the input image into the closest representative color based on the Voronoi diagram, as will be described later. It functions as 11d. Further, the control unit 11 changes the representative color corresponding to the pixel by executing an image processing program, and functions as the color changing unit 11e.

記憶部12は、制御部11を構成するRAMなどによって構成されている。ここで、記憶部12は、制御部11が画像処理プログラムを実行することによって、後述するように、代表色を記憶するようになっており、本発明の代表色記憶手段を構成している。   The storage unit 12 is configured by a RAM or the like that constitutes the control unit 11. Here, the storage unit 12 is configured to store a representative color as will be described later when the control unit 11 executes the image processing program, and constitutes a representative color storage unit of the present invention.

操作部13は、モニタ14とともにタッチパネルを形成するボタンや、操作パネル上のボタンなどの入力デバイスから構成されている。   The operation unit 13 includes input devices such as buttons that form a touch panel together with the monitor 14 and buttons on the operation panel.

モニタ14は、例えばLCD(Liquid Crystal Display)などの表示デバイスから構成されている。   The monitor 14 includes a display device such as an LCD (Liquid Crystal Display).

プリンタ部15は、図示していない外部の装置から後述するネットワークI/F部17を介して受信された印刷データのジョブや、スキャナ部16によって生成された画像データのジョブなどの各種のジョブを印刷する印刷デバイスである。   The printer unit 15 executes various jobs such as a print data job received from an external device (not shown) via a network I / F unit 17 described later and an image data job generated by the scanner unit 16. A printing device for printing.

ネットワークI/F部17は、例えば、スキャナ部16によって生成された画像データをLANを介して外部の装置に送信したり、プリンタ部15で印刷されるための印刷データをLANを介して外部の装置から受信したりする。   The network I / F unit 17 transmits, for example, image data generated by the scanner unit 16 to an external device via the LAN, or print data to be printed by the printer unit 15 via the LAN. Or receive from the device.

次に、複合機10の動作について説明する。   Next, the operation of the multifunction machine 10 will be described.

利用者は、操作部13によって複合機10にコピーの指示を与えることができる。利用者がコピーの指示を複合機10に与えると、複合機10の制御部11は、図2に示す処理を開始する。   The user can give a copy instruction to the multifunction machine 10 through the operation unit 13. When the user gives a copy instruction to the multifunction device 10, the control unit 11 of the multifunction device 10 starts the processing shown in FIG.

図2は、利用者によってコピーの指示が与えられたときの制御部11の動作のフローチャートである。   FIG. 2 is a flowchart of the operation of the control unit 11 when a copy instruction is given by the user.

図2に示すように、制御部11は、まず、図3(a)に示すコピー動作画面をモニタ14に表示させる(S101)。   As shown in FIG. 2, the control unit 11 first displays the copy operation screen shown in FIG. 3A on the monitor 14 (S101).

図3(a)は、利用者によって代表色が選択される前のモニタ14に表示されるコピー動作画面を示す図である。図3(b)は、利用者によって代表色が選択された後のモニタ14に表示されるコピー動作画面を示す図である。   FIG. 3A shows a copy operation screen displayed on the monitor 14 before the representative color is selected by the user. FIG. 3B is a diagram showing a copy operation screen displayed on the monitor 14 after the representative color is selected by the user.

図3に示すように、コピー動作画面には、利用者が選択した代表色が表示される代表色表示領域21と、利用者が選択した画像種類が表示される画像種類表示領域22と、利用者が代表色を選択するときに押すための「代表色選択」ボタン23と、利用者が複合機10にコピーを開始させるときに押すための「コピー開始」ボタン24とが含まれている。利用者は、操作部13によって「代表色選択」ボタン23や「コピー開始」ボタン24を押すことができる。なお、図3(a)に示すコピー動作画面は、代表色表示領域21および画像種類表示領域22に何も表示されていない。   As shown in FIG. 3, the copy operation screen includes a representative color display area 21 in which the representative color selected by the user is displayed, an image type display area 22 in which the image type selected by the user is displayed, and usage. A “representative color selection” button 23 to be pressed when the user selects a representative color, and a “copy start” button 24 to be pressed when the user starts the multifunction device 10 to copy is included. The user can press the “representative color selection” button 23 and the “copy start” button 24 by the operation unit 13. In the copy operation screen shown in FIG. 3A, nothing is displayed in the representative color display area 21 and the image type display area 22.

図2に示すように、制御部11は、S101の処理の後、コピー動作画面の「代表色選択」ボタン23が利用者によって押されたか否かを判断する(S102)。   As shown in FIG. 2, the control unit 11 determines whether or not the “representative color selection” button 23 on the copy operation screen has been pressed by the user after the process of S101 (S102).

制御部11は、コピー動作画面の「代表色選択」ボタン23が利用者によって押されたとS102において判断すると、図4に示す代表色選択処理を実行する(S103)。   If the control unit 11 determines in S102 that the “representative color selection” button 23 on the copy operation screen has been pressed by the user, the control unit 11 executes a representative color selection process shown in FIG. 4 (S103).

図4は、代表色選択処理のフローチャートである。   FIG. 4 is a flowchart of representative color selection processing.

図4に示すように、制御部11は、代表色選択処理において、まず、図3(a)に示すコピー動作画面に代えて図5に示す代表色選択画面をモニタ14に表示させる(S121)。   As shown in FIG. 4, in the representative color selection process, the control unit 11 first displays the representative color selection screen shown in FIG. 5 on the monitor 14 instead of the copy operation screen shown in FIG. 3A (S121). .

図5は、モニタ14に表示される代表色選択画面を示す図である。   FIG. 5 is a diagram showing a representative color selection screen displayed on the monitor 14.

図5に示すように、代表色選択画面には、利用者が代表色を選択するためのカラーパレット31と、利用者に画像種類として写真画像を選択させるためのラジオボタン32aと、利用者に画像種類としてテキスト画像を選択させるためのラジオボタン32bと、利用者が代表色の選択を終了するときに押すための「OK」ボタン33とが含まれている。ラジオボタン32a、32bは、常に1つのラジオボタンのみが選択されている状態になる。利用者は、操作部13によってカラーパレット31から任意の色を選択することや、ラジオボタン32a、32bの何れかを選択することや、「OK」ボタン33を押すことができる。   As shown in FIG. 5, the representative color selection screen includes a color palette 31 for the user to select a representative color, a radio button 32 a for allowing the user to select a photographic image as an image type, and the user. A radio button 32b for selecting a text image as an image type and an “OK” button 33 for pressing when the user finishes selecting a representative color are included. The radio buttons 32a and 32b are always in a state where only one radio button is selected. The user can select an arbitrary color from the color palette 31 using the operation unit 13, select one of the radio buttons 32 a and 32 b, and press the “OK” button 33.

図4に示すように、制御部11は、S121の処理の後、代表色選択画面のカラーパレット31から利用者によって代表色が選択されたか否かを判断する(S122)。   As shown in FIG. 4, after the process of S121, the control unit 11 determines whether or not a representative color has been selected by the user from the color palette 31 on the representative color selection screen (S122).

制御部11の機能の1つである選択色受付手段11aは、代表色選択画面のカラーパレット31から利用者によって代表色が選択されたとS122において判断すると、利用者によって選択された代表色(以下「利用者選択代表色」という。)のRGB値を記憶部12に記憶させた後(S123)、再びS122の処理に戻る。したがって、利用者は、S122、S123の処理を繰り返すことによって、複数の代表色を選択することができる。   When the selected color receiving means 11a, which is one of the functions of the control unit 11, determines in S122 that the representative color has been selected by the user from the color palette 31 on the representative color selection screen, the representative color selected by the user (hereinafter referred to as “representative color”). After the RGB value of “user selected representative color” is stored in the storage unit 12 (S123), the process returns to S122 again. Therefore, the user can select a plurality of representative colors by repeating the processes of S122 and S123.

制御部11は、代表色選択画面のカラーパレット31から利用者によって代表色が選択されていないとS122において判断すると、代表色選択画面のラジオボタン32a、32bから利用者によって画像種類が選択されたか否かを判断する(S124)。   If the control unit 11 determines in S122 that the representative color is not selected by the user from the color palette 31 on the representative color selection screen, has the image type been selected by the user from the radio buttons 32a and 32b on the representative color selection screen? It is determined whether or not (S124).

制御部11は、代表色選択画面のラジオボタン32a、32bから利用者によって画像種類が選択されたとS124において判断すると、利用者によって選択された画像種類を記憶部12に記憶させた後(S125)、再びS122の処理に戻る。   When the control unit 11 determines in S124 that the image type has been selected by the user from the radio buttons 32a and 32b on the representative color selection screen, the control unit 11 stores the image type selected by the user in the storage unit 12 (S125). Then, the process returns to S122 again.

一方、制御部11は、代表色選択画面のラジオボタン32a、32bから利用者によって画像種類が選択されていないとS124において判断すると、代表色選択画面の「OK」ボタン33が利用者によって押されたか否かを判断する(S126)。   On the other hand, when the control unit 11 determines in S124 that the image type is not selected by the user from the radio buttons 32a and 32b on the representative color selection screen, the “OK” button 33 on the representative color selection screen is pressed by the user. It is determined whether or not (S126).

制御部11は、代表色選択画面の「OK」ボタン33が利用者によって押されていないとS126において判断すると、再びS122の処理に戻る。   If the control unit 11 determines in S126 that the “OK” button 33 on the representative color selection screen has not been pressed by the user, the control unit 11 returns to the process of S122 again.

一方、制御部11は、代表色選択画面の「OK」ボタン33が利用者によって押されたとS126において判断すると、図5に示す代表色選択画面に代えて図3(b)に示すコピー動作画面をモニタ14に表示させて(S127)、図4に示す代表色選択処理を終了する。なお、図3(b)に示すコピー動作画面は、利用者選択代表色が代表色表示領域21に表示されており、利用者が選択した画像種類が画像種類表示領域22に表示されている。   On the other hand, when determining in S126 that the “OK” button 33 on the representative color selection screen has been pressed by the user, the control unit 11 replaces the representative color selection screen shown in FIG. 5 with the copy operation screen shown in FIG. Is displayed on the monitor 14 (S127), and the representative color selection process shown in FIG. In the copy operation screen shown in FIG. 3B, the user selected representative color is displayed in the representative color display area 21, and the image type selected by the user is displayed in the image type display area 22.

図2に示すように、制御部11は、S103の代表色選択処理を終了すると、再びS102の処理に戻る。   As illustrated in FIG. 2, when the representative color selection process of S103 is completed, the control unit 11 returns to the process of S102 again.

制御部11は、コピー動作画面の「代表色選択」ボタン23が利用者によって押されていないとS102において判断すると、コピー動作画面の「コピー開始」ボタン24が利用者によって押されたか否かを判断する(S104)。   If the control unit 11 determines in S102 that the “representative color selection” button 23 on the copy operation screen has not been pressed by the user, it determines whether or not the “copy start” button 24 on the copy operation screen has been pressed by the user. Judgment is made (S104).

制御部11は、コピー動作画面の「コピー開始」ボタン24が利用者によって押されていないとS104において判断すると、再びS102の処理に戻る。   If the control unit 11 determines in S104 that the “copy start” button 24 on the copy operation screen has not been pressed by the user, the process returns to S102.

一方、制御部11は、コピー動作画面の「コピー開始」ボタン24が利用者によって押されたとS104において判断すると、図6に示すコピー処理を実行する(S105)。   On the other hand, if the control unit 11 determines in S104 that the “copy start” button 24 on the copy operation screen has been pressed by the user, the control unit 11 executes the copy process shown in FIG. 6 (S105).

図6は、コピー処理のフローチャートである。   FIG. 6 is a flowchart of the copy process.

図6に示すように、制御部11は、コピー処理において、まず、図7に示すボロノイ図作成処理を実行する(S141)。   As shown in FIG. 6, in the copy process, the control unit 11 first executes the Voronoi diagram creation process shown in FIG. 7 (S141).

図7は、ボロノイ図作成処理のフローチャートである。   FIG. 7 is a flowchart of Voronoi diagram creation processing.

図7に示すように、制御部11の機能の1つである色算出手段11bは、ボロノイ図作成処理において、まず、S123において記憶部12に記憶していた利用者選択代表色と白色との間のm個の色をRGB色空間において追加の代表色として算出し(S161)、S161において算出した追加の代表色のRGB値を記憶部12に記憶させる(S162)。   As shown in FIG. 7, in the Voronoi diagram creation process, the color calculation means 11b, which is one of the functions of the control unit 11, first calculates the user-selected representative color stored in the storage unit 12 in S123 and the white color. The m colors in between are calculated as additional representative colors in the RGB color space (S161), and the RGB values of the additional representative colors calculated in S161 are stored in the storage unit 12 (S162).

追加の代表色の算出方法としては、例えば、RGB色空間において利用者選択代表色と白色とを結ぶ線分を(m+1)等分するm個の点を追加の代表色とする方法がある。また、利用者選択代表色が記憶部12に複数記憶されている場合、追加の代表色は、利用者選択代表色のそれぞれに対してm個ずつ算出される。ただし、利用者選択代表色と白色とが近い場合には、追加の代表色の数は、所定のルールに従ってm個未満にされるようになっていても良い。なお、追加の代表色の数であるmは、予め操作部13によって利用者が設定できるようになっている。   As an additional representative color calculation method, for example, there is a method in which m points dividing a line segment connecting the user-selected representative color and white in the RGB color space into (m + 1) equals the additional representative color. When a plurality of user-selected representative colors are stored in the storage unit 12, m additional representative colors are calculated for each of the user-selected representative colors. However, when the user selected representative color is close to white, the number of additional representative colors may be set to less than m according to a predetermined rule. Note that m, which is the number of additional representative colors, can be set by the user in advance using the operation unit 13.

次いで、制御部11の機能の1つであるボロノイ図作成手段11cは、S123およびS162において記憶部12に記憶させた代表色をRGB値からLab値に変換し(S163)、S163においてLab値に変換した代表色を母点としたボロノイ図40(図8参照。)を均等色空間としてのLab色空間上に作成して(S164)、図7に示すボロノイ図作成処理を終了する。   Next, the Voronoi diagram creation means 11c, which is one of the functions of the control unit 11, converts the representative colors stored in the storage unit 12 in S123 and S162 from RGB values to Lab values (S163), and converts them to Lab values in S163. A Voronoi diagram 40 (see FIG. 8) using the converted representative color as a base point is created in the Lab color space as a uniform color space (S164), and the Voronoi diagram creating process shown in FIG. 7 is terminated.

なお、ボロノイ図とは、空間中に存在する各母点から最も近い空間を線や面などの超平面で区切った図である。つまり、ボロノイ図は、距離空間内の有限部分集合P={p1,p2,・・・,pn}に対するボロノイ領域{V(p1),V(p2),・・・,V(pn)}の集合と定義することができる。ここで、ボロノイ領域とは、距離関数dに対して次の式で構成される領域V(pi)のことである。
V(pi)={p|d(p,pi)≦d(p,pj),i≠j}
The Voronoi diagram is a diagram in which a space closest to each generating point existing in the space is divided by a hyperplane such as a line or a surface. That is, the Voronoi diagram shows the Voronoi regions {V (p1), V (p2),..., V (pn)} for the finite subset P = {p1, p2,. It can be defined as a set. Here, the Voronoi region is a region V (pi) configured by the following expression with respect to the distance function d.
V (pi) = {p | d (p, pi) ≦ d (p, pj), i ≠ j}

図8は、S164において作成されたボロノイ図40を示す図である。   FIG. 8 is a diagram showing the Voronoi diagram 40 created in S164.

図8に示すボロノイ図40において、S163においてLab値に変換した代表色41は、ボロノイ図40の母点である。代表色41がそれぞれ含まれるボロノイ領域42は、ボロノイ境界43や、ボロノイ境界43同士の交点であるボロノイ点44によって区切られている。なお、図8においては理解を容易にするために2次元のボロノイ図を表しているが、S164において作成されたボロノイ図40は、実際には3次元のボロノイ図である。   In the Voronoi diagram 40 shown in FIG. 8, the representative color 41 converted into the Lab value in S163 is a generating point of the Voronoi diagram 40. The Voronoi regions 42 each containing the representative color 41 are delimited by Voronoi boundaries 43 and Voronoi points 44 that are intersections of the Voronoi boundaries 43. In FIG. 8, a two-dimensional Voronoi diagram is shown for easy understanding, but the Voronoi diagram 40 created in S164 is actually a three-dimensional Voronoi diagram.

図6に示すように、制御部11は、S141のボロノイ図作成処理を終了すると、スキャナ部16によって原稿の全ての画素の読み込み(S142)、図9に示す色変換処理を実行する(S143)。   As shown in FIG. 6, when the Voronoi diagram creation process of S141 is completed, the control unit 11 reads all pixels of the document by the scanner unit 16 (S142), and executes the color conversion process shown in FIG. 9 (S143). .

図9は、色変換処理のフローチャートである。   FIG. 9 is a flowchart of the color conversion process.

図9に示すように、制御部11は、色変換処理において、まず、S142において読み込まれた画素をRGB値からLab値に変換する(S181)。   As shown in FIG. 9, in the color conversion process, the control unit 11 first converts the pixels read in S142 from RGB values to Lab values (S181).

次いで、制御部11の機能の1つである色変換手段11dは、S181においてLab値に変換した画素を、S164で作成したボロノイ図40に基づいて、最も近い代表色に変換して(S182)、図9に示す色変換処理を終了する。つまり、制御部11は、S164で作成したボロノイ図40の複数のボロノイ領域42のうち、S181においてLab値に変換した画素が含まれる1つのボロノイ領域42を求め、S181においてLab値に変換した画素をそのボロノイ領域42に含まれる代表色41に変換する。   Next, the color conversion unit 11d, which is one of the functions of the control unit 11, converts the pixel converted into the Lab value in S181 into the closest representative color based on the Voronoi diagram 40 created in S164 (S182). Then, the color conversion process shown in FIG. That is, the control unit 11 obtains one Voronoi region 42 including the pixel converted to the Lab value in S181 from the plurality of Voronoi regions 42 of the Voronoi diagram 40 created in S164, and the pixel converted to the Lab value in S181. Is converted into a representative color 41 included in the Voronoi region 42.

なお、画素がボロノイ境界43やボロノイ点44上に存在するときは、制御部11は、所定の規則に従って画素を代表色41に変換する。例えば、制御部11は、画素がボロノイ境界43上に存在するとき、そのボロノイ境界43で区切られる複数のボロノイ領域42の代表色41のうち、L値が最も高い代表色が1つのみ存在するとき、L値が最も高い代表色に画素を変換する。次いで、L値が最も高い代表色が複数存在するときには、そのL値が最も高い複数の代表色のうちa値が最も高い代表色が1つのみ存在するとき、そのa値が最も高い代表色に画素を変換する。最後に、L値およびa値が共に最も高い代表色が複数存在するときには、そのL値およびa値が共に最も高い複数の代表色のうちb値が最も高い代表色に画素を変換する。画素がボロノイ境界43上に存在するときについて説明したが、画素がボロノイ点44上に存在するときも同様である。   When the pixel exists on the Voronoi boundary 43 or the Voronoi point 44, the control unit 11 converts the pixel into the representative color 41 according to a predetermined rule. For example, when the pixel exists on the Voronoi boundary 43, the control unit 11 has only one representative color having the highest L value among the representative colors 41 of the plurality of Voronoi regions 42 partitioned by the Voronoi boundary 43. When the pixel is converted to a representative color having the highest L value. Next, when there are a plurality of representative colors having the highest L value, when there is only one representative color having the highest a value among the plurality of representative colors having the highest L value, the representative color having the highest a value. Convert the pixel to. Finally, when there are a plurality of representative colors having the highest L value and a value, the pixel is converted to a representative color having the highest b value among the plurality of representative colors having the highest L value and a value. Although the case where the pixel exists on the Voronoi boundary 43 has been described, the same applies to the case where the pixel exists on the Voronoi point 44.

図6に示すように、制御部11は、S143の色変換処理を終了すると、図10に示す特定領域画像抽出処理を実行する(S144)。   As shown in FIG. 6, when the color conversion process of S143 is completed, the control unit 11 executes the specific area image extraction process shown in FIG. 10 (S144).

図10は、特定領域画像抽出処理のフローチャートである。   FIG. 10 is a flowchart of the specific area image extraction process.

図10に示すように、制御部11は、特定領域画像抽出処理において、まず、S181においてLab値に変換した全体画像から特定領域画像を抽出する(S201)。ここで、特定領域とは、色相の変化を滑らかにする必要がある領域のことであり、特定領域画像とは、特定領域の画像のことである。特定領域としては、例えば、写真画像における空の領域、海の領域、草木の領域などの自然の画像の領域がある。何を特定領域に含めるかは、設定次第である。また、何を特定領域に含めるかは、利用者が選択した画像種類に応じて異なっていても良い。なお、特定領域の画像は、特定領域以外の画像と比較して、色相、明度、彩度、周波数帯域などに特徴がある。これらの特徴に基づいて、特定領域画像を、それ以外の画像と区別する技術は、特開2004−234409号公報、特開2004−038481号公報、特開2004−120092号公報などに記載されている。制御部11は、このような公知の技術を使用して、S181においてLab値に変換した全体画像から特定領域画像を抽出することができる。   As shown in FIG. 10, in the specific area image extraction process, the control unit 11 first extracts a specific area image from the entire image converted into the Lab value in S181 (S201). Here, the specific area is an area where the hue change needs to be smoothed, and the specific area image is an image of the specific area. The specific area includes, for example, a natural image area such as an empty area, a sea area, and a vegetation area in a photographic image. What is included in the specific area depends on the setting. Also, what is included in the specific area may be different depending on the image type selected by the user. Note that the image of the specific area is characterized by hue, brightness, saturation, frequency band, and the like as compared with an image other than the specific area. Techniques for distinguishing a specific area image from other images based on these characteristics are described in Japanese Patent Application Laid-Open No. 2004-234409, Japanese Patent Application Laid-Open No. 2004-038481, Japanese Patent Application Laid-Open No. 2004-120092, and the like. Yes. Using such a known technique, the control unit 11 can extract the specific area image from the entire image converted into the Lab value in S181.

次いで、制御部11の色変換手段11dは、S201において抽出された特定領域画像の各画素を、S164で作成したボロノイ図40に基づいて、最も近い代表色に変換して(S202)、図10に示す特定領域画像抽出処理を終了する。   Next, the color conversion unit 11d of the control unit 11 converts each pixel of the specific area image extracted in S201 into the closest representative color based on the Voronoi diagram 40 created in S164 (S202), and FIG. The specific area image extraction process shown in FIG.

図6に示すように、制御部11は、S144の特定領域抽出処理を終了すると、図11に示す色変更処理を実行する(S145)。   As shown in FIG. 6, when the specific area extraction process of S144 is completed, the control unit 11 executes the color change process shown in FIG. 11 (S145).

図11は、色変更処理のフローチャートである。   FIG. 11 is a flowchart of the color change process.

図11に示すように、制御部11の機能の1つである色変更手段11eは、色変更処理において、まず、S202において代表色41に変換された特定領域画像のうち1つの画素を対象とする(S221)。   As shown in FIG. 11, the color changing unit 11e, which is one of the functions of the control unit 11, first targets one pixel in the specific area image converted into the representative color 41 in S202 in the color changing process. (S221).

次いで、色変更手段11eは、S221で対象とした画素が、その画素に隣接する画素に対して、S164で作成したボロノイ図40上で所定の範囲内であるか否かを判断する(S222)。ここで、S222における「隣接する画素」は、既にS221で対象とされた画素のみから選択される。したがって、特定領域画素のうち最初の画素については、未だ「隣接する画素」が無いので、S222における判断ができない。このような場合、色変更手段11eは、所定の範囲内であるとS222において判断するようになっている。また、「所定の範囲」とは、各画素に対応する代表色41が所属するボロノイ領域42同士が例えば2つ隣以内の位置関係にあることである。2つ隣以内の位置関係とは、対象のボロノイ領域42同士が同一のボロノイ領域42であるか、直接隣り合うボロノイ領域42であるか、他の1つのボロノイ領域42を挟んで隣り合うボロノイ領域42であるかの何れかの位置関係である。なお、所定の範囲は、設定次第である。また、所定の範囲は、利用者が選択した画像種類に応じて異なっていても良い。   Next, the color changing unit 11e determines whether or not the pixel targeted in S221 is within a predetermined range on the Voronoi diagram 40 created in S164 with respect to the pixel adjacent to the pixel (S222). . Here, the “adjacent pixels” in S222 are selected from only the pixels already targeted in S221. Therefore, the first pixel of the specific region pixels does not have “adjacent pixels” yet, and therefore cannot be determined in S222. In such a case, the color changing unit 11e determines in S222 that it is within the predetermined range. The “predetermined range” means that the Voronoi regions 42 to which the representative colors 41 corresponding to each pixel belong are in a positional relationship within two neighbors, for example. The positional relationship within two neighbors means that the target Voronoi regions 42 are the same Voronoi regions 42, directly adjacent Voronoi regions 42, or adjacent Voronoi regions 42 with another one Voronoi region 42 in between. 42 is any positional relationship. Note that the predetermined range depends on the setting. Further, the predetermined range may be different depending on the image type selected by the user.

色変更手段11eは、所定の範囲内ではないとS222において判断すると、所定の範囲内になるように、対象の画素に対応する代表色41を変更する(S223)。すなわち、色変更手段11eは、これら2つの画素をボロノイ図40上で結んだ線分が重なるボロノイ領域42のうち、「隣接する画素」が所属するボロノイ領域42に対して所定の範囲内のボロノイ領域42を選択し、選択したボロノイ領域42の代表色41を対象の画素に対応する代表色41とする。例えば、各画素に対応する代表色41が所属するボロノイ領域42同士が2つ隣以内の位置関係にあることが「所定の範囲」である場合、色変更手段11eは、対象のボロノイ領域42同士が所定の範囲内でないとき、対象のボロノイ領域42同士が同一のボロノイ領域42であるか、直接隣り合うか、他の1つのボロノイ領域42を挟んで隣り合うかの何れかの位置関係になるように、対象の画素に対応する代表色41を変更する。なお、対象のボロノイ領域42同士を同一のボロノイ領域42、直接隣り合うボロノイ領域42、他の1つのボロノイ領域42を挟んで隣り合うボロノイ領域42の何れの位置関係にするかは、設定次第である。また、対象のボロノイ領域42同士を同一のボロノイ領域42、直接隣り合うボロノイ領域42、他の1つのボロノイ領域42を挟んで隣り合うボロノイ領域42の何れの位置関係にするかは、利用者が選択した画像種類に応じて異なっていても良い。   If it is determined in S222 that the color changing unit 11e is not within the predetermined range, the color changing unit 11e changes the representative color 41 corresponding to the target pixel so as to be within the predetermined range (S223). That is, the color changing unit 11e has a Voronoi within a predetermined range with respect to the Voronoi region 42 to which the “adjacent pixel” belongs, among the Voronoi regions 42 where the line segments connecting these two pixels on the Voronoi diagram 40 overlap. The region 42 is selected, and the representative color 41 of the selected Voronoi region 42 is set as the representative color 41 corresponding to the target pixel. For example, when it is “predetermined range” that the Voronoi regions 42 to which the representative color 41 corresponding to each pixel belongs are in a positional relationship within two neighbors, the color changing unit 11e determines that the target Voronoi regions 42 Is not within the predetermined range, the target Voronoi regions 42 are the same Voronoi region 42, directly adjacent to each other, or adjacent to each other with another one Voronoi region 42 interposed therebetween. In this way, the representative color 41 corresponding to the target pixel is changed. It should be noted that whether the target Voronoi regions 42 are the same Voronoi region 42, the directly adjacent Voronoi region 42, or the adjacent Voronoi region 42 across another one Voronoi region 42 depends on the setting. is there. Also, the user determines whether the target Voronoi regions 42 are in the same Voronoi region 42, the directly adjacent Voronoi region 42, or the adjacent Voronoi region 42 with the other one Voronoi region 42 in between. It may differ depending on the selected image type.

次いで、色変更手段11eは、特定領域の全ての画素を対象にしたか否かを判断する(S224)。また、色変更手段11eは、所定の範囲内であるとS222において判断した場合、対象の画素に対応する代表色41を変更せずに、S224の処理を実行する。   Next, the color changing unit 11e determines whether or not all the pixels in the specific area are targeted (S224). In addition, when it is determined in S222 that the color changing unit 11e is within the predetermined range, the color changing unit 11e performs the process of S224 without changing the representative color 41 corresponding to the target pixel.

色変更手段11eは、特定領域の画素のうち未だ対象にしていない画素があるとS224において判断すると、未だ対象にしていない画素についてS221の処理に戻る。   If the color changing unit 11e determines in S224 that there is a pixel that is not yet targeted among the pixels in the specific area, the process returns to S221 for the pixel that is not yet targeted.

一方、色変更手段11eは、特定領域の全ての画素を対象にしたとS224において判断すると、図11に示す色変更処理を終了する。   On the other hand, when the color changing unit 11e determines in S224 that all the pixels in the specific area are targeted, the color changing process shown in FIG. 11 is terminated.

図6に示すように、制御部11は、S145の色変更処理を終了すると、S182において代表色41に変換した全体画像に、S145の色変更処理において必要に応じて代表色41を変更された特定領域画像を上書き合成する(S146)。つまり、制御部11は、代表色41で表された全体画像であって、特定領域画像の代表色41が必要に応じて変更されている全体画像を生成する。   As shown in FIG. 6, when the color changing process in S145 is completed, the control unit 11 changes the representative color 41 to the whole image converted into the representative color 41 in S182 as necessary in the color changing process in S145. The specific area image is overwritten and synthesized (S146). That is, the control unit 11 generates an entire image that is represented by the representative color 41 and in which the representative color 41 of the specific area image is changed as necessary.

そして、制御部11は、S146で合成した画像をLab値からRGB値に変換する(S147)。   Then, the control unit 11 converts the image synthesized in S146 from the Lab value to the RGB value (S147).

次いで、制御部11は、予めROMに記憶されているカラールックアップテーブルに基づいて、S147においてRGB値に変換した画素をRGB値からCMYK値に変換する(S148)。   Next, the control unit 11 converts the pixel converted to the RGB value in S147 from the RGB value to the CMYK value based on the color lookup table stored in advance in the ROM (S148).

次いで、制御部11は、S148においてCMYK値に変換した全ての画素に基づいてプリンタ部15によって用紙に印刷を実行させ(S149)、図6に示すコピー処理を終了する。   Next, the control unit 11 causes the printer unit 15 to perform printing on a sheet based on all the pixels converted into CMYK values in S148 (S149), and ends the copy process illustrated in FIG.

図2に示すように、制御部11は、S105のコピー処理を終了すると、図3(b)に示すコピー動作画面をモニタ14に閉じさせて(S106)、図2に示す処理を終了する。   As shown in FIG. 2, when the copy process of S105 is finished, the control unit 11 closes the copy operation screen shown in FIG. 3B on the monitor 14 (S106), and finishes the process shown in FIG.

以上に説明したように、複合機10は、隣接する画素がボロノイ図40上で所定の範囲内になるように、画素に対応する代表色41を変更するので、入力された画像を従来より自然な画像に変換することができる。   As described above, the multifunction machine 10 changes the representative color 41 corresponding to the pixel so that the adjacent pixel is within a predetermined range on the Voronoi diagram 40, so that the input image is more natural than before. Can be converted into a simple image.

また、複合機10は、利用者によって選択された色を代表色とするだけでなく、その色と白色との間の1以上の色を自動的に代表色として追加するので、入力された画像を更に自然な画像に変換することができる。   Further, the multifunction device 10 not only sets the color selected by the user as a representative color, but also automatically adds one or more colors between the color and white as the representative color, so that the input image Can be converted into a more natural image.

また、複合機10は、ボロノイ図40を用いて各画素を最も近い代表色に変換するので、入力された画像の各画素に対して全ての代表色との距離を求めて各画素を最も近い代表色に変換する構成と比較して、高速に処理することができる。   Further, since the multifunction machine 10 converts each pixel to the nearest representative color using the Voronoi diagram 40, the distance between all the representative colors is obtained for each pixel of the input image, and each pixel is nearest. Compared with the configuration for converting to a representative color, processing can be performed at high speed.

また、複合機10は、スキャナ部16から入力された画像の各画素を、RGB色空間上の値から、画像の出力装置に依存せずに人間の感覚で表されるLab色空間上の値に変換した後、Lab色空間上で最も近い代表色に変換するので、プリンタ部15によって実際に印刷される画像が装置によって異なってしまうことを防止することができる。   In addition, the multifunction device 10 converts each pixel of the image input from the scanner unit 16 from a value in the RGB color space to a value in the Lab color space expressed by a human sense without depending on the image output device. Then, the image is converted to the closest representative color in the Lab color space, so that the image actually printed by the printer unit 15 can be prevented from being different depending on the apparatus.

なお、本実施の形態においては、コピーのジョブについて説明しているが、印刷を実行するジョブであれば他のジョブであっても良い。例えば、図示していない外部の装置からネットワークI/F部17を介して受信された印刷データのジョブであっても良い。   In the present embodiment, a copy job has been described. However, any other job may be used as long as it is a job for executing printing. For example, a print data job received from an external device (not shown) via the network I / F unit 17 may be used.

また、本実施の形態においては、入力される画像の色空間がRGB色空間であり、出力される画像の色空間がCMYK色空間であるが、入力される画像の色空間や出力される画像の色空間は、これらに限られるものではない。   In this embodiment, the color space of the input image is the RGB color space, and the color space of the output image is the CMYK color space. However, the color space of the input image and the output image are the same. The color space is not limited to these.

また、本実施の形態においては、均等色空間としてLab色空間が使用されているが、Lab色空間以外の均等色空間が使用されるようになっていても良い。例えば、均等色空間としてLuv色空間が使用されるようになっていても良い。   In this embodiment, the Lab color space is used as the uniform color space. However, a uniform color space other than the Lab color space may be used. For example, the Luv color space may be used as the uniform color space.

また、本実施の形態においては、利用者によって選択可能な画像種類が写真画像およびテキスト画像であるが、これら以外の画像種類が利用者によって選択可能になっていても良い。   In this embodiment, the image types that can be selected by the user are a photographic image and a text image, but other image types may be selectable by the user.

また、本発明の画像形成装置は、本実施の形態において複合機について説明しているが、コピー機、プリンタなどの複合機以外の画像形成装置であっても良い。   The image forming apparatus according to the present invention has been described with respect to a multifunction peripheral in the present embodiment, but may be an image forming apparatus other than a multifunction peripheral such as a copier or a printer.

また、本発明の画像処理プログラムを実行するコンピュータとして、本実施の形態において画像形成装置について説明しているが、画像形成装置以外のコンピュータであっても良い。例えば、汎用のパーソナルコンピュータに本発明の画像処理プログラムを実行させても良い。   Further, although the image forming apparatus has been described in the present embodiment as a computer that executes the image processing program of the present invention, a computer other than the image forming apparatus may be used. For example, a general-purpose personal computer may execute the image processing program of the present invention.

10 複合機(画像形成装置)
11a 選択色受付手段
11b 色算出手段
11c ボロノイ図作成手段
11d 色変換手段
11e 色変更手段
12 記憶部(代表色記憶手段)
40 ボロノイ図
41 代表色
10 MFP (image forming device)
11a Selected color receiving means 11b Color calculating means 11c Voronoi diagram creating means 11d Color converting means 11e Color changing means 12 Storage section (representative color storing means)
40 Voronoi diagram 41 Representative colors

Claims (3)

代表色を記憶する代表色記憶手段と、前記代表色記憶手段によって記憶されている前記代表色を母点としたボロノイ図を均等色空間上に作成するボロノイ図作成手段と、入力された画像の各画素を前記ボロノイ図に基づいて最も近い前記代表色に変換する色変換手段と、前記画素に対応する前記代表色を変更する色変更手段とを備えている画像形成装置であって、
前記色変更手段は、隣接する前記画素が前記ボロノイ図上で所定の範囲内になるように、前記画素に対応する前記代表色を変更することを特徴とする画像形成装置。
Representative color storage means for storing representative colors, Voronoi diagram creation means for creating a Voronoi diagram with the representative color stored in the representative color storage means as a base point in a uniform color space, and input image An image forming apparatus comprising: a color conversion unit that converts each pixel to the closest representative color based on the Voronoi diagram; and a color change unit that changes the representative color corresponding to the pixel,
The image forming apparatus, wherein the color changing unit changes the representative color corresponding to the pixel so that the adjacent pixel is within a predetermined range on the Voronoi diagram.
利用者によって選択された色を受け付ける選択色受付手段と、前記選択色受付手段によって受け付けられた色と白色との間の1以上の色を算出する色算出手段とを備えており、
前記代表色記憶手段は、前記選択色受付手段によって受け付けられた色と、前記色算出手段によって算出された色とを前記代表色として記憶することを特徴とする請求項1に記載の画像形成装置。
A selection color reception unit that receives a color selected by a user; and a color calculation unit that calculates one or more colors between the color received by the selection color reception unit and white,
The image forming apparatus according to claim 1, wherein the representative color storage unit stores the color received by the selected color reception unit and the color calculated by the color calculation unit as the representative color. .
代表色を記憶する代表色記憶手段と、前記代表色記憶手段によって記憶されている前記代表色を母点としたボロノイ図を均等色空間上に作成するボロノイ図作成手段と、入力された画像の各画素を前記ボロノイ図に基づいて最も近い前記代表色に変換する色変換手段と、前記画素に対応する前記代表色を変更する色変更手段としてコンピュータを機能させるための画像処理プログラムであって、
前記色変更手段は、隣接する前記画素が前記ボロノイ図上で所定の範囲内になるように、前記画素に対応する前記代表色を変更することを特徴とする画像処理プログラム。
Representative color storage means for storing representative colors, Voronoi diagram creation means for creating a Voronoi diagram with the representative color stored in the representative color storage means as a base point in a uniform color space, and input image An image processing program for causing a computer to function as a color conversion unit that converts each pixel into the closest representative color based on the Voronoi diagram, and a color change unit that changes the representative color corresponding to the pixel,
The image processing program, wherein the color changing unit changes the representative color corresponding to the pixel so that the adjacent pixel is within a predetermined range on the Voronoi diagram.
JP2010074376A 2010-03-29 2010-03-29 Image forming apparatus and image processing program Expired - Fee Related JP5183660B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010074376A JP5183660B2 (en) 2010-03-29 2010-03-29 Image forming apparatus and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010074376A JP5183660B2 (en) 2010-03-29 2010-03-29 Image forming apparatus and image processing program

Publications (2)

Publication Number Publication Date
JP2011211287A true JP2011211287A (en) 2011-10-20
JP5183660B2 JP5183660B2 (en) 2013-04-17

Family

ID=44941933

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010074376A Expired - Fee Related JP5183660B2 (en) 2010-03-29 2010-03-29 Image forming apparatus and image processing program

Country Status (1)

Country Link
JP (1) JP5183660B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04127775A (en) * 1990-09-19 1992-04-28 Sony Corp Picture data processing method
JPH05290133A (en) * 1992-04-08 1993-11-05 Fujitsu Ltd Color image processor
JPH10134167A (en) * 1996-11-01 1998-05-22 Nippon Telegr & Teleph Corp <Ntt> Method and device for generating local color space representative color list
JP2007086907A (en) * 2005-09-20 2007-04-05 Fuji Xerox Co Ltd Image processor, image processing method, and program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04127775A (en) * 1990-09-19 1992-04-28 Sony Corp Picture data processing method
JPH05290133A (en) * 1992-04-08 1993-11-05 Fujitsu Ltd Color image processor
JPH10134167A (en) * 1996-11-01 1998-05-22 Nippon Telegr & Teleph Corp <Ntt> Method and device for generating local color space representative color list
JP2007086907A (en) * 2005-09-20 2007-04-05 Fuji Xerox Co Ltd Image processor, image processing method, and program

Also Published As

Publication number Publication date
JP5183660B2 (en) 2013-04-17

Similar Documents

Publication Publication Date Title
JP6217339B2 (en) Print control apparatus, print control method, and program
JP2021093719A (en) Image processing apparatus, image processing method, and program
JP5135362B2 (en) Image forming apparatus and image processing program
CN110248043B (en) Image processing apparatus and image forming apparatus
JP5732184B2 (en) Color image forming apparatus and image forming program
JP2015055686A (en) Image processor, image processing system and image processing method
JP2013256073A (en) Data generation device, image forming apparatus, and data generation program
JP2015002442A (en) Image processing apparatus and method
JP5183660B2 (en) Image forming apparatus and image processing program
EP3584761A1 (en) Image forming apparatus capable of changing thickness of character, control method therefor, and storage medium storing control program therefor
JP5485202B2 (en) Image forming apparatus and image processing program
JP6558888B2 (en) Apparatus, printing apparatus, printing control method, and program
JP5346848B2 (en) Image forming apparatus and image processing program
JP2010274616A (en) Image processing system, image processing device, image forming apparatus and program
JP2009284488A (en) Image processing system and method
JP5772253B2 (en) Image processing apparatus and program
JP7331595B2 (en) Color conversion parameter generation device, color conversion parameter generation method and program
JP5957979B2 (en) Image processing method, image processing program, and image forming apparatus
JP7442988B2 (en) Image forming apparatus, its control method and program
JP2014076624A (en) Preview image generation device, method and computer program for preview image generation
JP5250584B2 (en) Image forming apparatus and image processing program
US7978368B2 (en) System and method for visualization of black-component gamut sculpting
JP2012247924A (en) Image processing apparatus, image processing method, and program
JP2010149408A (en) Image processing apparatus, image processing method, image processing program
JP6079157B2 (en) Drawing processing apparatus and image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20120222

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121213

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130115

R150 Certificate of patent or registration of utility model

Ref document number: 5183660

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

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees