JP2011211287A - Image forming apparatus and image processing program - Google Patents
Image forming apparatus and image processing program Download PDFInfo
- 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
Links
Images
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Color, Gradation (AREA)
Abstract
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).
特許文献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.
以下、本発明の一実施の形態について、図面を用いて説明する。 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
制御部11は、CPU(Central Processing Unit)と、本発明の画像処理プログラムなどのプログラムや各種のデータを予め記憶しているROM(Read Only Memory)と、CPUの作業領域として用いられるRAM(Random Access Memory)となどによって構成されている。CPUは、ROMに記憶されているプログラムを実行することによって制御部11を動作させる演算処理装置である。RAMは、CPUによってプログラムが実行されるときにプログラムや各種のデータを一時的に記憶するようになっている。
The
ここで、制御部11は、画像処理プログラムを実行することによって、後述するように、利用者によって選択された色を代表色として受け付けるようになっており、選択色受付手段11aとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、利用者によって選択された色と白色との間の1以上の色を代表色として算出するようになっており、色算出手段11bとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、記憶部12によって記憶されている代表色を母点としたボロノイ図をLab色空間上に作成するようになっており、ボロノイ図作成手段11cとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、入力された画像の各画素をボロノイ図に基づいて最も近い代表色に変換するようになっており、色変換手段11dとして機能するようになっている。また、制御部11は、画像処理プログラムを実行することによって、後述するように、画素に対応する代表色を変更するようになっており、色変更手段11eとして機能するようになっている。
Here, by executing the image processing program, the
記憶部12は、制御部11を構成するRAMなどによって構成されている。ここで、記憶部12は、制御部11が画像処理プログラムを実行することによって、後述するように、代表色を記憶するようになっており、本発明の代表色記憶手段を構成している。
The
操作部13は、モニタ14とともにタッチパネルを形成するボタンや、操作パネル上のボタンなどの入力デバイスから構成されている。
The
モニタ14は、例えばLCD(Liquid Crystal Display)などの表示デバイスから構成されている。
The
プリンタ部15は、図示していない外部の装置から後述するネットワークI/F部17を介して受信された印刷データのジョブや、スキャナ部16によって生成された画像データのジョブなどの各種のジョブを印刷する印刷デバイスである。
The
ネットワークI/F部17は、例えば、スキャナ部16によって生成された画像データをLANを介して外部の装置に送信したり、プリンタ部15で印刷されるための印刷データをLANを介して外部の装置から受信したりする。
The network I /
次に、複合機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
図2は、利用者によってコピーの指示が与えられたときの制御部11の動作のフローチャートである。
FIG. 2 is a flowchart of the operation of the
図2に示すように、制御部11は、まず、図3(a)に示すコピー動作画面をモニタ14に表示させる(S101)。
As shown in FIG. 2, the
図3(a)は、利用者によって代表色が選択される前のモニタ14に表示されるコピー動作画面を示す図である。図3(b)は、利用者によって代表色が選択された後のモニタ14に表示されるコピー動作画面を示す図である。
FIG. 3A shows a copy operation screen displayed on the
図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
図2に示すように、制御部11は、S101の処理の後、コピー動作画面の「代表色選択」ボタン23が利用者によって押されたか否かを判断する(S102)。
As shown in FIG. 2, the
制御部11は、コピー動作画面の「代表色選択」ボタン23が利用者によって押されたとS102において判断すると、図4に示す代表色選択処理を実行する(S103)。
If the
図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
図5は、モニタ14に表示される代表色選択画面を示す図である。
FIG. 5 is a diagram showing a representative color selection screen displayed on the
図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
図4に示すように、制御部11は、S121の処理の後、代表色選択画面のカラーパレット31から利用者によって代表色が選択されたか否かを判断する(S122)。
As shown in FIG. 4, after the process of S121, the
制御部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
制御部11は、代表色選択画面のカラーパレット31から利用者によって代表色が選択されていないとS122において判断すると、代表色選択画面のラジオボタン32a、32bから利用者によって画像種類が選択されたか否かを判断する(S124)。
If the
制御部11は、代表色選択画面のラジオボタン32a、32bから利用者によって画像種類が選択されたとS124において判断すると、利用者によって選択された画像種類を記憶部12に記憶させた後(S125)、再びS122の処理に戻る。
When the
一方、制御部11は、代表色選択画面のラジオボタン32a、32bから利用者によって画像種類が選択されていないとS124において判断すると、代表色選択画面の「OK」ボタン33が利用者によって押されたか否かを判断する(S126)。
On the other hand, when the
制御部11は、代表色選択画面の「OK」ボタン33が利用者によって押されていないとS126において判断すると、再びS122の処理に戻る。
If the
一方、制御部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”
図2に示すように、制御部11は、S103の代表色選択処理を終了すると、再びS102の処理に戻る。
As illustrated in FIG. 2, when the representative color selection process of S103 is completed, the
制御部11は、コピー動作画面の「代表色選択」ボタン23が利用者によって押されていないとS102において判断すると、コピー動作画面の「コピー開始」ボタン24が利用者によって押されたか否かを判断する(S104)。
If the
制御部11は、コピー動作画面の「コピー開始」ボタン24が利用者によって押されていないとS104において判断すると、再びS102の処理に戻る。
If the
一方、制御部11は、コピー動作画面の「コピー開始」ボタン24が利用者によって押されたとS104において判断すると、図6に示すコピー処理を実行する(S105)。
On the other hand, if the
図6は、コピー処理のフローチャートである。 FIG. 6 is a flowchart of the copy process.
図6に示すように、制御部11は、コピー処理において、まず、図7に示すボロノイ図作成処理を実行する(S141)。
As shown in FIG. 6, in the copy process, the
図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
追加の代表色の算出方法としては、例えば、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
次いで、制御部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
なお、ボロノイ図とは、空間中に存在する各母点から最も近い空間を線や面などの超平面で区切った図である。つまり、ボロノイ図は、距離空間内の有限部分集合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
図6に示すように、制御部11は、S141のボロノイ図作成処理を終了すると、スキャナ部16によって原稿の全ての画素の読み込み(S142)、図9に示す色変換処理を実行する(S143)。
As shown in FIG. 6, when the Voronoi diagram creation process of S141 is completed, the
図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
次いで、制御部11の機能の1つである色変換手段11dは、S181においてLab値に変換した画素を、S164で作成したボロノイ図40に基づいて、最も近い代表色に変換して(S182)、図9に示す色変換処理を終了する。つまり、制御部11は、S164で作成したボロノイ図40の複数のボロノイ領域42のうち、S181においてLab値に変換した画素が含まれる1つのボロノイ領域42を求め、S181においてLab値に変換した画素をそのボロノイ領域42に含まれる代表色41に変換する。
Next, the
なお、画素がボロノイ境界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
図6に示すように、制御部11は、S143の色変換処理を終了すると、図10に示す特定領域画像抽出処理を実行する(S144)。
As shown in FIG. 6, when the color conversion process of S143 is completed, the
図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
次いで、制御部11の色変換手段11dは、S201において抽出された特定領域画像の各画素を、S164で作成したボロノイ図40に基づいて、最も近い代表色に変換して(S202)、図10に示す特定領域画像抽出処理を終了する。
Next, the
図6に示すように、制御部11は、S144の特定領域抽出処理を終了すると、図11に示す色変更処理を実行する(S145)。
As shown in FIG. 6, when the specific area extraction process of S144 is completed, the
図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
次いで、色変更手段11eは、S221で対象とした画素が、その画素に隣接する画素に対して、S164で作成したボロノイ図40上で所定の範囲内であるか否かを判断する(S222)。ここで、S222における「隣接する画素」は、既にS221で対象とされた画素のみから選択される。したがって、特定領域画素のうち最初の画素については、未だ「隣接する画素」が無いので、S222における判断ができない。このような場合、色変更手段11eは、所定の範囲内であるとS222において判断するようになっている。また、「所定の範囲」とは、各画素に対応する代表色41が所属するボロノイ領域42同士が例えば2つ隣以内の位置関係にあることである。2つ隣以内の位置関係とは、対象のボロノイ領域42同士が同一のボロノイ領域42であるか、直接隣り合うボロノイ領域42であるか、他の1つのボロノイ領域42を挟んで隣り合うボロノイ領域42であるかの何れかの位置関係である。なお、所定の範囲は、設定次第である。また、所定の範囲は、利用者が選択した画像種類に応じて異なっていても良い。
Next, the
色変更手段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
次いで、色変更手段11eは、特定領域の全ての画素を対象にしたか否かを判断する(S224)。また、色変更手段11eは、所定の範囲内であるとS222において判断した場合、対象の画素に対応する代表色41を変更せずに、S224の処理を実行する。
Next, the
色変更手段11eは、特定領域の画素のうち未だ対象にしていない画素があるとS224において判断すると、未だ対象にしていない画素についてS221の処理に戻る。
If the
一方、色変更手段11eは、特定領域の全ての画素を対象にしたとS224において判断すると、図11に示す色変更処理を終了する。
On the other hand, when the
図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
そして、制御部11は、S146で合成した画像をLab値からRGB値に変換する(S147)。
Then, the
次いで、制御部11は、予めROMに記憶されているカラールックアップテーブルに基づいて、S147においてRGB値に変換した画素をRGB値からCMYK値に変換する(S148)。
Next, the
次いで、制御部11は、S148においてCMYK値に変換した全ての画素に基づいてプリンタ部15によって用紙に印刷を実行させ(S149)、図6に示すコピー処理を終了する。
Next, the
図2に示すように、制御部11は、S105のコピー処理を終了すると、図3(b)に示すコピー動作画面をモニタ14に閉じさせて(S106)、図2に示す処理を終了する。
As shown in FIG. 2, when the copy process of S105 is finished, the
以上に説明したように、複合機10は、隣接する画素がボロノイ図40上で所定の範囲内になるように、画素に対応する代表色41を変更するので、入力された画像を従来より自然な画像に変換することができる。
As described above, the multifunction machine 10 changes the
また、複合機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
なお、本実施の形態においては、コピーのジョブについて説明しているが、印刷を実行するジョブであれば他のジョブであっても良い。例えば、図示していない外部の装置からネットワーク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 /
また、本実施の形態においては、入力される画像の色空間が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
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に記載の画像形成装置。 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.
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)
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 |
-
2010
- 2010-03-29 JP JP2010074376A patent/JP5183660B2/en not_active Expired - Fee Related
Patent Citations (4)
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 |