JP4368833B2 - Image processing apparatus, image processing method, image forming apparatus, program, and recording medium - Google Patents

Image processing apparatus, image processing method, image forming apparatus, program, and recording medium Download PDF

Info

Publication number
JP4368833B2
JP4368833B2 JP2005209151A JP2005209151A JP4368833B2 JP 4368833 B2 JP4368833 B2 JP 4368833B2 JP 2005209151 A JP2005209151 A JP 2005209151A JP 2005209151 A JP2005209151 A JP 2005209151A JP 4368833 B2 JP4368833 B2 JP 4368833B2
Authority
JP
Japan
Prior art keywords
color
data
designated
output
image data
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.)
Active
Application number
JP2005209151A
Other languages
Japanese (ja)
Other versions
JP2007028336A (en
Inventor
岳 古市
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2005209151A priority Critical patent/JP4368833B2/en
Publication of JP2007028336A publication Critical patent/JP2007028336A/en
Application granted granted Critical
Publication of JP4368833B2 publication Critical patent/JP4368833B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、カラー画像を処理する画像処理装置とこの画像処理装置を備えた画像形成装置と、その画像処理方法に関するものである。   The present invention relates to an image processing apparatus that processes a color image, an image forming apparatus including the image processing apparatus, and an image processing method thereof.

近年、OA機器のデジタル化が急速に進展し、またカラー画像出力の需要が増してきたことにより、電子写真方式のデジタルカラー複写機やインクジェット方式・熱転写方式のカラープリンタ等が広く一般に普及してきている。例えば、デジタルカメラやスキャナ等の入力機器より入力された画像情報、あるいは、コンピュータ上で作成された画像情報がこれらの出力機器を用いて出力されている。これらの入出力機器においては、入力された画像情報に対して、常に色再現の安定した画像を出力することが必要であり、デジタル画像処理技術の色変換(色補正)処理が重要な役割を果たしている。   In recent years, digitalization of office automation equipment has rapidly progressed, and the demand for color image output has increased. As a result, electrophotographic digital color copiers, ink jet and thermal transfer color printers, etc. have become widespread. Yes. For example, image information input from an input device such as a digital camera or a scanner, or image information created on a computer is output using these output devices. In these input / output devices, it is necessary to always output an image with stable color reproduction for input image information, and color conversion (color correction) processing of digital image processing technology plays an important role. Plays.

上記デジタルカラー複写機・複合機においては、フルカラーの画像、モノクロの画像を出力する機能の他、二色刷りを行うことができる機能が備えられているものがある。例えば、黒文字の原稿の一部に赤ペンでの添削や、赤朱肉により捺印されたもの、あるいは、一部分を赤色で強調した広告などを赤黒の二色を用いて出力するものである。二色刷りでは、フルカラーのような色再現性を重視することはないものの、色ムラや色とびが発生してしまい、二色刷りとしての色再現性を損ねてしまう場合がある。そこで、二色刷りの原稿の再現性を向上させ、より二色に見える画像を提供する方法として、特許文献1の技術が提案されている。   Some of the digital color copiers / multifunction peripherals are provided with a function of performing two-color printing in addition to a function of outputting a full-color image or a monochrome image. For example, a part of a black text manuscript is corrected with a red pen, printed with red vermilion, or an advertisement with a part highlighted in red using two colors of red and black. In two-color printing, although color reproducibility as in full color is not emphasized, color unevenness and color skipping may occur, and color reproducibility as two-color printing may be impaired. Therefore, the technique of Patent Document 1 has been proposed as a method for improving the reproducibility of a two-color original and providing an image that looks more two-color.

特許文献1では、スキャナなどで原稿を読み取ったデジタル信号(R,G,B)を、座標変換回路を用いて色相(H)、彩度(S)、明度(L)の3座標値に変換し、所望の処理に応じてH、S、Lの値を二色刷りの印刷結果が得られるように変更した後、座標逆変換を行い再びR,G,Bの座標軸に戻すことにより、二色刷りを実現している。
特開平11−55539号公報(1999(平成11)年2月26日公開) 特開2004−155015号公報(2004(平成16年)6月3日公開)
In Patent Document 1, a digital signal (R, G, B) obtained by reading a document with a scanner or the like is converted into three coordinate values of hue (H), saturation (S), and lightness (L) using a coordinate conversion circuit. Then, after changing the values of H, S, and L so that a two-color printing result can be obtained according to the desired processing, two-color printing is performed by performing reverse coordinate conversion and returning to the R, G, and B coordinate axes again. Is realized.
Japanese Patent Laid-Open No. 11-55539 (published on February 26, 1999) JP 2004-155015 A (published June 3, 2004 (2004))

しかしながら、特許文献1の技術では、読み取ったデジタル信号(R,G,B)を色相(H),彩度(S),明度(L)に変換するための座標変換回路が必要であり、演算処理とハードウェアの規模が大きいという問題がある。   However, the technique of Patent Document 1 requires a coordinate conversion circuit for converting the read digital signal (R, G, B) into hue (H), saturation (S), and lightness (L). There is a problem that the scale of processing and hardware is large.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、二色出力が可能でハードウェア規模の小さい画像処理装置、ならびに画像形成方法、画像形成装置、プログラム、および記録媒体を実現することにある。   The present invention has been made in view of the above problems, and an object thereof is an image processing apparatus capable of two-color output and having a small hardware scale, and an image forming method, an image forming apparatus, a program, and a recording medium. Is to realize.

本発明の画像処理装置は、上記課題を解決するために、色空間が第1色、第2色および第3色からなる3つの色成分を用いた3次元デカルト座標で表される第1の表色系のカラー画像データを、複数の色成分よりなる第2の表色系のカラー画像データに変換する画像処理装置において、上記第1の表色系のカラー画像データを、上記色空間において、無彩色軸と上記無彩色軸上以外にある上記色空間の上記第1色の頂点とを結んでできる三角平面上に写像することにより、無彩色と上記第1色の頂点に関連付けられた色とからなる二色の画像データに変換するデータ変換手段と、上記二色の画像データを、上記第2の表色系のカラー画像データに変換する色変換演算手段とを備えており、上記データ変換手段は、上記第1色の出力値として、上記第1色の階調データをそのまま出力し、上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データより大きい場合には、上記第2色および上記第3色のそれぞれの出力値として第1色の階調データを出力し、上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データ以下である場合には、上記第2色および上記第3色のそれぞれの出力値として上記平均値を出力することにより、上記第1の表色系のカラー画像データを上記三角平面上に写像することを特徴としている。
本発明の画像処理装置は、上記課題を解決するために、色空間が3つの色成分を用いた3次元デカルト座標で表される第1の表色系のカラー画像データを、複数の色成分よりなる第2の表色系のカラー画像データに変換する画像処理装置において、上記第1の表色系のカラー画像データを、上記色空間において、無彩色軸と上記無彩色軸上以外にある上記色空間の1つの頂点とを結んでできる三角平面上に写像することにより、無彩色と上記頂点に関連付けられた色とからなる二色の画像データに変換するデータ変換手段と、上記二色の画像データを、上記第2の表色系のカラー画像データに変換する色変換演算手段とを備えていることを特徴としている。
In order to solve the above-described problem, the image processing apparatus of the present invention has a first color space represented by three-dimensional Cartesian coordinates using three color components including a first color, a second color, and a third color. In an image processing apparatus for converting color image data of a color system into color image data of a second color system composed of a plurality of color components, the color image data of the first color system is converted in the color space. By mapping on the triangular plane formed by connecting the achromatic color axis and the vertex of the first color in the color space other than on the achromatic color axis, the achromatic color and the vertex of the first color are associated with each other. Data conversion means for converting into two-color image data comprising colors, and color conversion calculation means for converting the two-color image data into color image data of the second color system, and The data conversion means outputs the first color output value as follows: When the gradation data of the first color is output as it is and the average value of the gradation data of the second color and the gradation data of the third color is larger than the gradation data of the first color, The first color gradation data is output as the output values of the second color and the third color, and the average value of the second color gradation data and the third color gradation data is the first color. If it is equal to or lower than the color gradation data, the average value is output as the output value of each of the second color and the third color, whereby the color image data of the first color system is converted to the triangle. It is characterized by mapping on a plane.
In order to solve the above problems, an image processing apparatus according to the present invention converts color image data of a first color system represented by a three-dimensional Cartesian coordinate system using three color components into a plurality of color components. In the image processing apparatus for converting to color image data of the second color system comprising the color image data of the first color system other than on the achromatic color axis and the achromatic color axis in the color space A data conversion means for converting into two-color image data comprising an achromatic color and a color associated with the vertex by mapping on a triangular plane formed by connecting one vertex of the color space; and the two colors And color conversion calculation means for converting the image data into color image data of the second color system.

上記の発明によれば、データ変換手段は、第1の表色系のカラー画像データを、無彩色軸と上記無彩色軸上以外にある色空間の1つの頂点とを結んでできる三角平面上に写像することにより、二色の画像データに変換するので、第1の表色系のカラー画像データに対して、加算器、シフト器(べき乗の乗算)、および比較器のみの構成で直接データ変換を行うことができる。従って、データ変換を行うためのハードウェア規模が小さくなる。   According to the above invention, the data conversion means is on a triangular plane formed by connecting the color image data of the first color system with the achromatic color axis and one vertex of the color space other than the achromatic color axis. Since the image data is converted into two-color image data by mapping to the first color system, the direct color data is composed of only the adder, shifter (power multiplication), and comparator for the color image data of the first color system. Conversion can be performed. Therefore, the hardware scale for performing data conversion is reduced.

また、第1の表色系のカラー画像データは、上述のように無彩色軸と色空間の1つの頂点(一つの主要色)とを結んだ三角平面上にすべて写像されるため、その三角平面内は黒および一つの主要色の二色だけの画像データを表すこととなる。従って、データ変換手段で処理されたカラー画像データに対して、フルカラーモードにおける色補正テーブルもしくは係数パラメータ(マスキング係数やニューラルネットワークにおける重み係数)を共用することができ、二色刷り専用の色補正テーブルや係数パラメータが不要となる。この結果、メモリの削減を行うことができる。また、フルカラーモードと同じ色補正テーブルもしくは係数パラメータを用いることで、視覚的に良好な画質を実現することが可能になる。   Further, since the color image data of the first color system is all mapped on the triangular plane connecting the achromatic color axis and one vertex (one main color) of the color space as described above, the triangular color image data is mapped. In the plane, image data of only two colors of black and one main color are represented. Accordingly, the color correction table or coefficient parameter (masking coefficient or weighting coefficient in the neural network) in the full color mode can be shared for the color image data processed by the data conversion means, and the color correction table dedicated to two-color printing, Coefficient parameters are not required. As a result, memory can be reduced. Further, by using the same color correction table or coefficient parameter as in the full color mode, it is possible to realize visually good image quality.

以上により、二色出力が可能でハードウェア規模の小さい画像処理装置を実現することができるという効果を奏する。   As described above, there is an effect that an image processing apparatus capable of two-color output and having a small hardware scale can be realized.

本発明の画像処理装置は、上記課題を解決するために、上記データ変換手段は、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択することを特徴としている。
本発明の画像処理装置は、上記課題を解決するために、上記データ変換手段は、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の上記1つの頂点を選択することを特徴としている。
In the image processing apparatus of the present invention, in order to solve the above-described problem, the data conversion means includes all six colors composed of primary colors and secondary colors predetermined for the first color system. Selecting a vertex of the first color from the vertices of the color space based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system. It is characterized by.
In the image processing apparatus of the present invention, in order to solve the above-described problem, the data conversion means includes all six colors composed of primary colors and secondary colors predetermined for the first color system. The one vertex of the color space is selected based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system.

上記の発明によれば、ユーザーなどにより予め定められた第1の表色系の1次色および2次色の、全六色の中から、写像先の三角平面を形成する1つの頂点を、指定入力色設定信号で指定することができる。   According to the above invention, one vertex forming the triangular plane of the mapping destination is selected from all six colors of the primary color and secondary color of the first color system predetermined by the user or the like. It can be specified by the specified input color setting signal.

従って、例えば、第2の表色系のカラー画像データとして黒と赤とからなる二色の画像データを得たい場合に、第1の表色系のカラー画像データに対して上記1つの頂点に対応する色を、その二色の画像データに合わせて抽出することができる。   Therefore, for example, when it is desired to obtain two-color image data composed of black and red as the color image data of the second color system, the one vertex is obtained with respect to the color image data of the first color system. Corresponding colors can be extracted in accordance with the image data of the two colors.

以上により、ユーザーの好みの色を無彩色と対をなす色として強調することができるという効果を奏する。   As described above, there is an effect that the user's favorite color can be emphasized as a color paired with the achromatic color.

また、指定入力色設定信号を用いてユーザーの好みの色を設定するだけであるので、ハードウェア構成が簡単になるという効果を奏する。   In addition, since the user's favorite color is simply set using the designated input color setting signal, the hardware configuration is simplified.

本発明の画像処理装置は、上記課題を解決するために、上記データ変換手段は、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴としている。
本発明の画像処理装置は、上記課題を解決するために、上記データ変換手段は、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記頂点に関連付けられた上記色を決定することを特徴としている。
In the image processing apparatus of the present invention, in order to solve the above-described problem, the data conversion means includes all six colors composed of primary colors and secondary colors predetermined for the second color system. A color associated with the vertex of the first color is determined based on a designated output color setting signal for designating any one of the colors for the color image data of the second color system. .
In the image processing apparatus of the present invention, in order to solve the above-described problem, the data conversion means includes all six colors composed of primary colors and secondary colors predetermined for the second color system. The color associated with the vertex is determined based on a designated output color setting signal for designating any one of the colors for the color image data of the second color system.

上記の発明によれば、写像先の三角平面を形成する1つの頂点に対応する色がどのような色に決まっていても、その色を、ユーザーなどにより予め定められた第2の表色系の1次色および2次色の、全六色の中から、指定出力色設定信号で指定した色として出力することができる。   According to the above invention, no matter what color the color corresponding to one vertex forming the triangular plane of the mapping destination is determined, the color is determined by the second color system predetermined by the user or the like. Can be output as a color designated by a designated output color setting signal from among all six primary colors and secondary colors.

従って、例えば、第1の表色系のカラー画像データに対して上記1つの頂点に対応する色が赤以外の色となっていても、第2の表色系のカラー画像データとして黒と赤とからなる二色の画像データを得たい場合に、上記1つの頂点に対応する色を、その二色の画像データに合わせて変換して出力することができる。   Therefore, for example, even if the color corresponding to the one vertex is a color other than red for the color image data of the first color system, black and red are used as the color image data of the second color system. When it is desired to obtain two-color image data consisting of the above, the color corresponding to the one vertex can be converted and output in accordance with the two-color image data.

以上により、ユーザーの好みの色を無彩色と対をなす色として強調することができるという効果を奏する。   As described above, there is an effect that the user's favorite color can be emphasized as a color paired with the achromatic color.

また、指定出力色設定信号を用いてユーザーの好みの色を設定するだけであるので、ハードウェア構成が簡単になるという効果を奏する。   Further, since the user's favorite color is only set using the designated output color setting signal, the hardware configuration is simplified.

本発明の画像処理装置は、上記課題を解決するために、上記データ変換手段は、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択し、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴としている。
本発明の画像処理装置は、上記課題を解決するために、上記データ変換手段は、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の上記1つの頂点を選択し、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記頂点に関連付けられた上記色を決定することを特徴としている。
In the image processing apparatus of the present invention, in order to solve the above-described problem, the data conversion means includes all six colors composed of primary colors and secondary colors predetermined for the first color system. Selecting a vertex of the first color from the vertices of the color space based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system; One of all six colors consisting of primary colors and secondary colors predetermined for the second color system is designated for the color image data of the second color system. A color associated with the vertex of the first color is determined based on the designated output color setting signal.
In the image processing apparatus of the present invention, in order to solve the above-described problem, the data conversion means includes all six colors composed of primary colors and secondary colors predetermined for the first color system. Selecting one vertex of the color space based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system, and the second color system Based on a designated output color setting signal for designating any one of all six colors consisting of predetermined primary colors and secondary colors for the color image data of the second color system. The color associated with the vertex is determined.

上記の発明によれば、ユーザーなどにより予め定められた第1の表色系の1次色および2次色の、全六色の中から、写像先の三角平面を形成する1つの頂点を、指定入力色設定信号で指定することができる。また、写像先の三角平面を形成する1つの頂点に対応する色がどのような色に決まっていても、その色を、ユーザーなどにより予め定められた第2の表色系の1次色および2次色の、全六色の中から、指定出力色設定信号で指定した色として出力することができる。   According to the above invention, one vertex forming the triangular plane of the mapping destination is selected from all six colors of the primary color and secondary color of the first color system predetermined by the user or the like. It can be specified by the specified input color setting signal. Further, no matter what color the color corresponding to one vertex forming the triangular plane of the mapping destination is determined, the color is changed to the primary color of the second color system predetermined by the user or the like. The secondary colors can be output as a color designated by the designated output color setting signal from all six colors.

従って、例えば、指定入力色をシアンとし、指定出力色をマゼンタとすれば、第1の表色系よりなる画像データのシアン成分を抽出し、その色成分を第2の表色系よりなる画像データのマゼンタ成分として、黒とマゼンタの二色の画像データに変換することができるというように、入力と出力との様々な組み合わせが可能になる。   Therefore, for example, if the designated input color is cyan and the designated output color is magenta, the cyan component of the image data having the first color system is extracted, and the color component is an image having the second color system. As the magenta component of the data, various combinations of input and output are possible so that the image data can be converted into two-color image data of black and magenta.

以上により、ユーザーの好みの色を無彩色と対をなす色として強調することができるという効果を奏する。   As described above, there is an effect that the user's favorite color can be emphasized as a color paired with the achromatic color.

本発明の画像形成装置は、上記課題を解決するために、上記画像処理装置を備え、入力された画像の画像データに対して上記画像処理装置で画像処理を行って、画像として形成することを特徴としている。   In order to solve the above problems, an image forming apparatus according to the present invention includes the above-described image processing apparatus, and performs image processing on the image data of the input image by the image processing apparatus to form an image. It is a feature.

上記の発明によれば、前記画増処理装置により画像処理された画像データを用いて二色刷りを行うことができる。従って、ハードウェアの規模を抑制することができ、また、フルカラーモードと同じ色補正処理を用いることにより視覚的に良好な品質の良い画像を出力することのできる画像形成装置を提供することができるという効果を奏する。   According to the above invention, it is possible to perform two-color printing using the image data processed by the image enlargement processing device. Accordingly, it is possible to provide an image forming apparatus capable of suppressing the scale of hardware and outputting a visually good quality image by using the same color correction processing as in the full color mode. There is an effect.

本発明の画像処理方法は、上記課題を解決するために、色空間が第1色、第2色および第3色からなる3つの色成分を用いた3次元デカルト座標で表される第1の表色系のカラー画像データを、複数の色成分よりなる第2の表色系のカラー画像データに変換する画像処理方法において、上記第1の表色系のカラー画像データを、上記色空間において、無彩色軸と上記無彩色軸上以外にある上記色空間の上記第1色の頂点とを結んでできる三角平面上に写像することにより、無彩色と上記第1色の頂点に関連付けられた色とからなる二色の画像データに変換するデータ変換ステップと、上記二色の画像データを、上記第2の表色系のカラー画像データに変換する色変換演算ステップとを行い、上記データ変換ステップにおいて、上記第1色の出力値として、上記第1色の階調データをそのまま出力し、上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データより大きい場合には、上記第2色および上記第3色のそれぞれの出力値として第1色の階調データを出力し、上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データ以下である場合には、上記第2色および上記第3色のそれぞれの出力値として上記平均値を出力することにより、上記第1の表色系のカラー画像データを上記三角平面上に写像することを特徴としている。
本発明の画像処理方法は、上記課題を解決するために、色空間が3つの色成分を用いた3次元デカルト座標で表される第1の表色系のカラー画像データを、複数の色成分よりなる第2の表色系のカラー画像データに変換する画像処理方法において、上記第1の表色系のカラー画像データを、上記色空間において、無彩色軸と上記無彩色軸上以外にある上記色空間の1つの頂点とを結んでできる三角平面上に写像することにより、無彩色と上記頂点に関連付けられた色とからなる二色の画像データに変換するデータ変換ステップと、上記二色の画像データを、上記第2の表色系のカラー画像データに変換する色変換演算ステップとを行うことを特徴としている。
In order to solve the above-described problem, the image processing method of the present invention has a first color space represented by three-dimensional Cartesian coordinates using three color components including a first color, a second color, and a third color. An image processing method for converting color image data of a color system into color image data of a second color system comprising a plurality of color components, wherein the color image data of the first color system is converted in the color space By mapping on the triangular plane formed by connecting the achromatic color axis and the vertex of the first color in the color space other than on the achromatic color axis, the achromatic color and the vertex of the first color are associated with each other. A data conversion step for converting the image data into two-color image data comprising colors, and a color conversion operation step for converting the two-color image data into color image data of the second color system, and the data conversion In the step, the first color When the gradation data of the first color is output as it is and the average value of the gradation data of the second color and the gradation data of the third color is larger than the gradation data of the first color Outputs gradation data of the first color as output values of the second color and the third color, and an average value of the gradation data of the second color and the gradation data of the third color is When the gradation data is less than or equal to the first color gradation data, the first color system color image data is output by outputting the average value as the output value of each of the second color and the third color. Is mapped onto the triangular plane.
In order to solve the above problems, the image processing method of the present invention converts color image data of a first color system represented by a three-dimensional Cartesian coordinate system using three color components into a plurality of color components. In the image processing method for converting to color image data of the second color system comprising the color image data of the first color system other than on the achromatic color axis and the achromatic color axis in the color space A data conversion step for converting into two-color image data comprising an achromatic color and a color associated with the vertex by mapping on a triangular plane formed by connecting one vertex of the color space; and the two colors And a color conversion calculation step for converting the image data into color image data of the second color system.

上記の発明によれば、データ変換ステップでは、第1の表色系のカラー画像データを、無彩色軸と上記無彩色軸上以外にある色空間の1つの頂点とを結んでできる三角平面上に写像することにより、二色の画像データに変換するので、第1の表色系のカラー画像データに対して、加算処理、シフト処理(べき乗の乗算)、および比較処理のみで直接データ変換を行うことができる。従って、小さなハードウェア規模でデータ変換を行うことができる。   According to the above invention, in the data conversion step, the color image data of the first color system is on a triangular plane formed by connecting the achromatic color axis and one vertex of the color space other than the achromatic color axis. Since the image data is converted into two-color image data, direct data conversion is performed on the first color system color image data only by addition processing, shift processing (power multiplication), and comparison processing. It can be carried out. Therefore, data conversion can be performed with a small hardware scale.

また、第1の表色系のカラー画像データは、上述のように無彩色軸と色空間の1つの頂点(一つの主要色)とを結んだ三角平面上にすべて写像されるため、その三角平面内は黒および一つの主要色の二色だけの画像データを表すこととなる。従って、データ変換ステップで処理されたカラー画像データに対して、フルカラーモードにおける色補正テーブルもしくは係数パラメータ(マスキング係数やニューラルネットワークにおける重み係数)を共用することができ、二色刷り専用の色補正テーブルや係数パラメータが不要となる。この結果、メモリの削減を行うことができる。また、フルカラーモードと同じ色補正テーブルもしくは係数パラメータを用いることで、視覚的に良好な画質を実現することが可能になる。   Further, since the color image data of the first color system is all mapped on the triangular plane connecting the achromatic color axis and one vertex (one main color) of the color space as described above, the triangular color image data is mapped. In the plane, image data of only two colors of black and one main color are represented. Therefore, the color correction table or coefficient parameter (masking coefficient or weighting coefficient in the neural network) in the full color mode can be shared for the color image data processed in the data conversion step, and the color correction table dedicated to two-color printing, Coefficient parameters are not required. As a result, memory can be reduced. Further, by using the same color correction table or coefficient parameter as in the full color mode, it is possible to realize visually good image quality.

以上により、二色出力を行うための、小さなハードウェア規模でデータ変換を行うことができる画像処理方法を実現することができるという効果を奏する。   As described above, it is possible to realize an image processing method capable of performing data conversion with a small hardware scale for performing two-color output.

本発明の画像処理方法は、上記課題を解決するために、上記データ変換ステップにおいて、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択することを特徴としている。
本発明の画像処理方法は、上記課題を解決するために、上記データ変換ステップにおいて、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の上記1つの頂点を選択することを特徴としている。
In order to solve the above problems, the image processing method of the present invention includes all six colors consisting of primary colors and secondary colors predetermined for the first color system in the data conversion step. Selecting a vertex of the first color from the vertices of the color space based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system. It is characterized by.
In order to solve the above problems, the image processing method of the present invention includes all six colors consisting of primary colors and secondary colors predetermined for the first color system in the data conversion step. The one vertex of the color space is selected based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system.

上記の発明によれば、ユーザーなどにより予め定められた第1の表色系の1次色および2次色の、全六色の中から、写像先の三角平面を形成する1つの頂点を、指定入力色設定信号で指定することができる。   According to the above invention, one vertex forming the triangular plane of the mapping destination is selected from all six colors of the primary color and secondary color of the first color system predetermined by the user or the like. It can be specified by the specified input color setting signal.

従って、例えば、第2の表色系のカラー画像データとして黒と赤とからなる二色の画像データを得たい場合に、第1の表色系のカラー画像データに対して上記1つの頂点に対応する色を、その二色の画像データに合わせて抽出することができる。   Therefore, for example, when it is desired to obtain two-color image data composed of black and red as the color image data of the second color system, the one vertex is obtained with respect to the color image data of the first color system. Corresponding colors can be extracted in accordance with the image data of the two colors.

以上により、ユーザーの好みの色を無彩色と対をなす色として強調することができるという効果を奏する。   As described above, there is an effect that the user's favorite color can be emphasized as a color paired with the achromatic color.

また、指定入力色設定信号を用いてユーザーの好みの色を設定するだけであるので、ハードウェア構成が簡単になるという効果を奏する。   In addition, since the user's favorite color is simply set using the designated input color setting signal, the hardware configuration is simplified.

本発明の画像処理方法は、上記課題を解決するために、上記データ変換ステップにおいて、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴としている。
本発明の画像処理方法は、上記課題を解決するために、上記データ変換ステップにおいて、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記頂点に関連付けられた上記色を決定することを特徴としている。
In order to solve the above problems, the image processing method of the present invention includes all six colors consisting of primary colors and secondary colors predetermined for the second color system in the data conversion step. A color associated with the vertex of the first color is determined based on a designated output color setting signal for designating any one of the colors for the color image data of the second color system. .
In order to solve the above problems, the image processing method of the present invention includes all six colors consisting of primary colors and secondary colors predetermined for the second color system in the data conversion step. The color associated with the vertex is determined based on a designated output color setting signal for designating any one of the colors for the color image data of the second color system.

上記の発明によれば、写像先の三角平面を形成する1つの頂点に対応する色がどのような色に決まっていても、その色を、ユーザーなどにより予め定められた第2の表色系の1次色および2次色の、全六色の中から、指定出力色設定信号で指定した色として出力することができる。   According to the above invention, no matter what color the color corresponding to one vertex forming the triangular plane of the mapping destination is determined, the color is determined by the second color system predetermined by the user or the like. Can be output as a color designated by a designated output color setting signal from among all six primary colors and secondary colors.

従って、例えば、第1の表色系のカラー画像データに対して上記1つの頂点に対応する色が赤以外の色となっていても、第2の表色系のカラー画像データとして黒と赤とからなる二色の画像データを得たい場合に、上記1つの頂点に対応する色を、その二色の画像データに合わせて変換して出力することができる。   Therefore, for example, even if the color corresponding to the one vertex is a color other than red for the color image data of the first color system, black and red are used as the color image data of the second color system. When it is desired to obtain two-color image data consisting of the above, the color corresponding to the one vertex can be converted and output in accordance with the two-color image data.

以上により、ユーザーの好みの色を無彩色と対をなす色として強調することができるという効果を奏する。   As described above, there is an effect that the user's favorite color can be emphasized as a color paired with the achromatic color.

また、指定出力色設定信号を用いてユーザーの好みの色を設定するだけであるので、ハードウェア構成が簡単になるという効果を奏する。   Further, since the user's favorite color is only set using the designated output color setting signal, the hardware configuration is simplified.

本発明の画像処理方法は、上記課題を解決するために、上記データ変換ステップにおいて、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択し、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴としている。
本発明の画像処理方法は、上記課題を解決するために、上記データ変換ステップにおいて、上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の上記1つの頂点を選択し、上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記頂点に関連付けられた上記色を決定することを特徴としている。
In order to solve the above problems, the image processing method of the present invention includes all six colors consisting of primary colors and secondary colors predetermined for the first color system in the data conversion step. Selecting a vertex of the first color from the vertices of the color space based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system; One of all six colors consisting of primary colors and secondary colors predetermined for the second color system is designated for the color image data of the second color system. A color associated with the vertex of the first color is determined based on the designated output color setting signal.
In order to solve the above problems, the image processing method of the present invention includes all six colors consisting of primary colors and secondary colors predetermined for the first color system in the data conversion step. Selecting one vertex of the color space based on a designated input color setting signal for designating any one of the colors for the color image data of the first color system, and the second color system Based on a designated output color setting signal for designating any one of all six colors consisting of predetermined primary colors and secondary colors for the color image data of the second color system. The color associated with the vertex is determined.

上記の発明によれば、ユーザーなどにより予め定められた第1の表色系の1次色および2次色の、全六色の中から、写像先の三角平面を形成する1つの頂点を、指定入力色設定信号で指定することができる。また、写像先の三角平面を形成する1つの頂点に対応する色がどのような色に決まっていても、その色を、ユーザーなどにより予め定められた第2の表色系の1次色および2次色の、全六色の中から、指定出力色設定信号で指定した色として出力することができる。   According to the above invention, one vertex forming the triangular plane of the mapping destination is selected from all six colors of the primary color and secondary color of the first color system predetermined by the user or the like. It can be specified by the specified input color setting signal. Further, no matter what color the color corresponding to one vertex forming the triangular plane of the mapping destination is determined, the color is changed to the primary color of the second color system predetermined by the user or the like. The secondary colors can be output as a color designated by the designated output color setting signal from all six colors.

従って、例えば、指定入力色をシアンとし、指定出力色をマゼンタとすれば、第1の表色系よりなる画像データのシアン成分を抽出し、その色成分を第2の表色系よりなる画像データのマゼンタ成分として、黒とマゼンタの二色の画像データに変換することができるというように、入力と出力との様々な組み合わせが可能になる。   Therefore, for example, if the designated input color is cyan and the designated output color is magenta, the cyan component of the image data having the first color system is extracted, and the color component is an image having the second color system. As the magenta component of the data, various combinations of input and output are possible so that the image data can be converted into two-color image data of black and magenta.

以上により、ユーザーの好みの色を無彩色と対をなす色として強調することができるという効果を奏する。   As described above, there is an effect that the user's favorite color can be emphasized as a color paired with the achromatic color.

本発明のプログラムは、上記課題を解決するために、上記画像処理装置を動作させるプログラムであって、コンピュータを上記の各手段として機能させるプログラムである。   In order to solve the above-described problems, the program of the present invention is a program for operating the image processing apparatus and causing the computer to function as each of the above-described means.

上記の発明によれば、コンピュータで上記画像処理装置の各手段を実現することによって、上記画像処理装置を実現することができるという効果を奏する。   According to the above invention, it is possible to realize the image processing apparatus by realizing each unit of the image processing apparatus with a computer.

本発明の記録媒体は、上記課題を解決するために、上記プログラムを記録したコンピュータ読取り可能な記録媒体である。   In order to solve the above problems, a recording medium of the present invention is a computer-readable recording medium on which the above program is recorded.

上記の発明によれば、記録媒体から読み出されたプログラムによって、上記画像処理装置をコンピュータ上に実現することができるという効果を奏する。   According to the above invention, there is an effect that the image processing apparatus can be realized on the computer by the program read from the recording medium.

本発明の画像処理装置は、以上のように、データ変換手段と、色変換演算手段とを備えているので、二色出力が可能でハードウェア規模の小さい画像処理装置を実現することができるという効果を奏する。   As described above, the image processing apparatus according to the present invention includes the data conversion unit and the color conversion calculation unit, so that an image processing apparatus capable of outputting two colors and having a small hardware scale can be realized. There is an effect.

本発明の一実施形態について図1ないし図14に基づいて説明すると以下の通りである。   An embodiment of the present invention will be described below with reference to FIGS.

図7に、本実施の形態に係るカラー画像処理装置を備えるデジタルカラー複写機の構成をブロック図にて示す。   FIG. 7 is a block diagram showing the configuration of a digital color copying machine including the color image processing apparatus according to the present embodiment.

図7に示すように、デジタルカラー複写機1は、カラー画像入力装置2、カラー画像処理装置3、カラー画像出力装置4、および、操作パネル5を備えている。   As shown in FIG. 7, the digital color copying machine 1 includes a color image input device 2, a color image processing device 3, a color image output device 4, and an operation panel 5.

カラー画像処理装置2は、カラー画像入力装置2から入力されるカラー画像データの画像処理を行って、カラー画像出力装置4に画像処理後の画像データを出力するものであり、A/D変換部31、シェーディング補正部32、入力階調補正部33、領域分離処理部34、色補正部35、黒生成下色除去部36、空間フィルタ処理部37、出力階調補正部38、および階調再現処理部39を備えている。操作パネル5は、デジタルカラー複写機1の動作モードを設定する設定ボタンやテンキー、液晶ディスプレイなどで構成される表示部を備えたものである。   The color image processing device 2 performs image processing of color image data input from the color image input device 2 and outputs the image data after the image processing to the color image output device 4, and includes an A / D conversion unit. 31, shading correction unit 32, input tone correction unit 33, region separation processing unit 34, color correction unit 35, black generation and under color removal unit 36, spatial filter processing unit 37, output tone correction unit 38, and tone reproduction A processing unit 39 is provided. The operation panel 5 includes a display unit configured by setting buttons, numeric keys, a liquid crystal display, and the like for setting the operation mode of the digital color copying machine 1.

カラー画像入力装置(画像読取手段)2は、例えばCCD(Charge Coupled Device )を備えたスキャナ部より構成され、原稿からの反射光像を、RGB(R:赤・G:緑・B:青)のアナログ信号としてCCDにて読み取って、カラー画像処理装置3に入力するものである。   The color image input device (image reading means) 2 is composed of, for example, a scanner unit equipped with a CCD (Charge Coupled Device), and the reflected light image from the original is converted into RGB (R: red, G: green, B: blue). The analog signal is read by the CCD and input to the color image processing apparatus 3.

カラー画像入力装置2にて読み取られたアナログ信号は、カラー画像処理装置3内を、A/D変換部31〜階調再現処理部39に順に送られ、CMYKのデジタルカラー信号として、カラー画像出力装置4へ出力される。   The analog signal read by the color image input device 2 is sequentially sent through the color image processing device 3 to the A / D conversion unit 31 to the gradation reproduction processing unit 39, and is output as a CMYK digital color signal. It is output to the device 4.

A/D(アナログ/デジタル)変換部31は、RGBのアナログ信号をデジタル信号に変換するもので、シェーディング補正部32は、A/D変換部31より送られてきたデジタルのRGB信号に対して、カラー画像入力装置2の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すものである。   The A / D (analog / digital) converter 31 converts RGB analog signals into digital signals, and the shading correction unit 32 applies the digital RGB signals sent from the A / D converter 31. The color image input device 2 is subjected to processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system.

入力階調補正部33は、シェーディング補正部32にて各種の歪みが取り除かれたRGB信号(RGBの反射率信号)に対して、カラーバランスを整えると同時に、濃度信号などカラー画像処理装置3に採用されている画像処理システムの扱い易い信号に変換する処理を施すものである。   The input tone correction unit 33 adjusts the color balance of the RGB signal (RGB reflectance signal) from which various distortions have been removed by the shading correction unit 32, and at the same time provides the color image processing device 3 with a density signal or the like. A process of converting the signal into an easy-to-handle signal of the employed image processing system is performed.

領域分離処理部34は、RGB信号より、入力画像中の各画素を文字領域、網点領域、写真領域の何れかに分離するものである。領域分離処理部34は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を、黒生成下色除去部36、空間フィルタ処理部37、および階調再現処理部39へと出力すると共に、入力階調補正部33より出力された入力信号をそのまま後段の色補正部35に出力する。   The region separation processing unit 34 separates each pixel in the input image into one of a character region, a halftone dot region, and a photograph region from the RGB signal. Based on the separation result, the region separation processing unit 34 sends a region identification signal indicating to which region the pixel belongs to the black generation and under color removal unit 36, the spatial filter processing unit 37, and the gradation reproduction processing unit 39. In addition to the output, the input signal output from the input tone correction unit 33 is output to the subsequent color correction unit 35 as it is.

色補正部35は、色再現の忠実化実現のために、不要吸収成分を含むCMY(C:シアン・M:マゼンタ・Y:イエロー)色材の分光特性に基づいた色濁りを取り除く処理を行うものである。   The color correction unit 35 performs processing for removing color turbidity based on the spectral characteristics of CMY (C: cyan, M: magenta, Y: yellow) color materials including unnecessary absorption components in order to realize faithful color reproduction. Is.

黒生成下色除去部36は、色補正後のCMYの3色信号から黒(K)信号を生成する黒生成、元のCMY信号から黒生成で得たK信号を差し引いて新たなCMY信号を生成する処理を行うものであって、CMYの3色信号はCMYKの4色信号に変換される。   The black generation and under color removal unit 36 generates black (K) signals from the CMY three-color signals after color correction, and subtracts the K signals obtained by black generation from the original CMY signals to generate new CMY signals. The CMY three-color signal is converted into a CMYK four-color signal.

黒生成処理の一例として、スケルトンブラックによる黒生成を行なう方法(一般的方法)がある。この方法では、スケルトンカーブの入出力特性をy=f(x)、入力されるデータをC,M,Y,出力されるデータをC',M',Y',K'、UCR(Under Color Removal)率をα(0<α<1)とすると、黒生成/下色除去処理は以下の式1で表わされる。   As an example of the black generation process, there is a method (general method) for generating black by skeleton black. In this method, the input / output characteristic of the skeleton curve is y = f (x), the input data is C, M, Y, the output data is C ′, M ′, Y ′, K ′, UCR (Under Color Assuming that the (removal) rate is α (0 <α <1), the black generation / under color removal processing is expressed by the following equation (1).

Figure 0004368833
Figure 0004368833

空間フィルタ処理部37は、黒生成下色除去部36より入力されるCMYK信号の画像データに対して、領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正することによって出力画像のぼやけや粒状性劣化を防ぐように処理するものであって、階調再現処理部39も、空間フィルタ処理部37と同様に、CMYK信号の画像データに対して、領域識別信号を基に所定の処理を施すものである。   The spatial filter processing unit 37 performs spatial filter processing by a digital filter on the image data of the CMYK signal input from the black generation and under color removal unit 36 based on the region identification signal, and corrects the spatial frequency characteristics. The gradation reproduction processing unit 39 performs processing so as to prevent blurring of the output image and deterioration of graininess, and the tone reproduction processing unit 39, like the spatial filter processing unit 37, uses region identification signals based on the CMYK signal image data. Is subjected to predetermined processing.

例えば、領域分離処理部34にて文字に分離された領域は、特に黒文字或いは色文字の再現性を高めるために、空間フィルタ処理部37による空間フィルタ処理における鮮鋭強調処理で高周波数の強調量が大きくされる。同時に、階調再現処理部39においては、高域周波数の再現に適した高解像度のスクリーンでの二値化または多値化処理が選択される。   For example, the region separated into characters by the region separation processing unit 34 has a high frequency enhancement amount in the sharp enhancement processing in the spatial filter processing by the spatial filter processing unit 37 in order to improve the reproducibility of black characters or color characters in particular. Increased. At the same time, the gradation reproduction processing unit 39 selects binarization or multi-value processing on a high-resolution screen suitable for high-frequency reproduction.

また、領域分離処理部34にて網点に分離された領域に関しては、空間フィルタ処理部37において、入力網点成分を除去するためのローパス・フィルタ処理が施される。そして、出力階調補正部38では、濃度信号などの信号をカラー画像出力装置4の特性値である網点面積率に変換する出力階調補正処理を行った後、階調再現処理部39で、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理(中間調生成)が施される。領域分離処理部34にて写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化または多値化処理が行われる。   Further, with respect to the region separated into halftone dots by the region separation processing unit 34, the spatial filter processing unit 37 performs low-pass filter processing for removing the input halftone component. The output tone correction unit 38 performs output tone correction processing for converting a signal such as a density signal into a halftone dot area ratio that is a characteristic value of the color image output device 4, and then the tone reproduction processing unit 39. Then, gradation reproduction processing (halftone generation) is performed so that the image is finally separated into pixels and each gradation is reproduced. For the region separated into photographs by the region separation processing unit 34, binarization or multi-value processing is performed on the screen with an emphasis on gradation reproducibility.

上述した各処理が施された画像データは、一旦記憶手段に記憶され、所定のタイミングで読み出されてカラー画像出力装置4に入力される。このカラー画像出力装置4は、画像データを記録媒体(例えば紙等)上に出力するもので、例えば、電子写真方式やインクジェット方式を用いたカラー画像形成装置等を挙げることができるが特に限定されるものではない。尚、以上の処理は不図示のCPU(Central Processing Unit)により制御される。   The image data subjected to the above-described processes is temporarily stored in the storage means, read out at a predetermined timing, and input to the color image output device 4. The color image output device 4 outputs image data onto a recording medium (for example, paper). Examples of the color image output device 4 include a color image forming device using an electrophotographic method or an inkjet method, but are not particularly limited. It is not something. The above processing is controlled by a CPU (Central Processing Unit) (not shown).

次に、上記カラー画像処理装置3における色補正部35の構成に関して説明する。図2に、色補正部35の構成を示す。   Next, the configuration of the color correction unit 35 in the color image processing apparatus 3 will be described. FIG. 2 shows the configuration of the color correction unit 35.

色補正部35は、入力RGBデータを第1の表色系とし、出力CMYデータを第2の表色系とする。また、色補正部35で行う色補正処理は、第1の表色系の色空間が3次元デカルト座標で表されることを前提にしている。ここでは第2の表色系も3次元デカルト座標で表される。また、本実施形態では、第1の表色系および第2の表色系において、CMYを1次色とし、RGBを2次色とするCMY表色系を仮定しているが、RGBを1次色、CMYを2次色とするRGB表色系を仮定してもよい。いずれにおいても、1次色(3色)のうちの2色を混合して得られる色が2次色であり、2次色(3色)のうちの2色を混合して得られる色が1次色である。また、第1の表色系はRGBに限らずCMYでもよい。第2の表色系はCMYに限らずRGBでもよく、例えば、RGB出力装置としてピクロトグラフィーが挙げられる。また、第2の表色系は一般に複数の色成分からなっていてよい。   The color correction unit 35 uses the input RGB data as the first color system and the output CMY data as the second color system. The color correction processing performed by the color correction unit 35 is based on the premise that the color space of the first color system is represented by three-dimensional Cartesian coordinates. Here, the second color system is also expressed in three-dimensional Cartesian coordinates. In this embodiment, in the first color system and the second color system, the CMY color system is assumed in which CMY is a primary color and RGB is a secondary color. An RGB color system in which the secondary color and CMY are secondary colors may be assumed. In any case, the color obtained by mixing two of the primary colors (three colors) is a secondary color, and the color obtained by mixing two of the secondary colors (three colors) is Primary color. Further, the first color system is not limited to RGB but may be CMY. The second color system is not limited to CMY, but may be RGB. For example, the RGB output device includes pictography. Further, the second color system may generally consist of a plurality of color components.

色補正部35は、1次元ルックアップテーブル(以下、1D−LUTと称する。)51(51r・51g・51b)、データ変換部(データ変換手段)52、および、色変換演算部(色変換演算手段)53を備えている。   The color correction unit 35 includes a one-dimensional lookup table (hereinafter referred to as 1D-LUT) 51 (51r, 51g, 51b), a data conversion unit (data conversion unit) 52, and a color conversion calculation unit (color conversion calculation). Means) 53 is provided.

1D−LUT51は、1次元のルックアップテーブル(LUT:Look Up Table)を用いて、入力RGB信号(以下、信号とデータとを同じ意味で使用する。)をR信号に変換する。1D−LUT51rはR信号に対応して、1D−LUT51gはG信号に対応して、1D−LUT51bはB信号に対応して、それぞれ設けられている。1次元のLUTは入力画像データのコントラストを調整したり、入力RGB信号を、後段の色変換演算部53において、第2の表色系の画像データであるCMYデータに変換したりする際、両表色系間の非線形性を補正することで、計算誤差の増加を防ぐ働きがある。 The 1D-LUT 51 converts an input RGB signal (hereinafter, the signal and data are used in the same meaning) into an R 1 G 1 B 1 signal by using a one-dimensional lookup table (LUT: Look Up Table). To do. The 1D-LUT 51r is provided corresponding to the R signal, the 1D-LUT 51g is provided corresponding to the G signal, and the 1D-LUT 51b is provided corresponding to the B signal. When the one-dimensional LUT adjusts the contrast of the input image data or converts the input RGB signal into CMY data, which is the second color system image data, in the subsequent color conversion calculation unit 53, both By correcting the non-linearity between the color systems, it works to prevent an increase in calculation error.

具体的な処理は、入力RGB信号の値に基づき、1次元のLUTのアドレスを参照して、そのアドレスに格納されている別のRGBデータを取得し、後段に出力するというものである。この場合、入力は0〜255の8ビットのRGB信号を扱っているが、RGB信号を補色反転した擬似CMY信号であってもよい。また、入力がRGB信号で、1次元LUTの出力が擬似CMY信号であってもよい。   A specific process is to refer to the address of the one-dimensional LUT based on the value of the input RGB signal, acquire another RGB data stored at the address, and output it to the subsequent stage. In this case, the input deals with an 8-bit RGB signal of 0 to 255, but it may be a pseudo CMY signal obtained by inverting the RGB signal. Further, the input may be an RGB signal, and the output of the one-dimensional LUT may be a pseudo CMY signal.

なお、本実施の形態において、1D−LUT51は必ずしも色補正部35に設ける必要はない。表色系の非線形性の補正は、色補正部35の前段に1D−LUT51を設けて行っても良く、コントラストの調整は、入力階調補正部33で行うことも可能である。   In the present embodiment, the 1D-LUT 51 is not necessarily provided in the color correction unit 35. The correction of the non-linearity of the color system may be performed by providing the 1D-LUT 51 in the preceding stage of the color correction unit 35, and the contrast adjustment can also be performed by the input tone correction unit 33.

本実施の形態のデジタルカラー複写機1は二色刷りが可能であり、データ変換部52は、二色刷りモードでは、上記1D−LUT51によって1次元のLUTで変換された信号(R信号)を二色刷り印刷を行うための別の信号(R信号)に変換する。フルカラーモードの場合には、この変換処理を行わない。 The digital color copying machine 1 according to the present embodiment can perform two-color printing. In the two-color printing mode, the data conversion unit 52 converts the signal (R 1 G 1 B 1) converted by the 1D-LUT 51 into a one-dimensional LUT. Signal) is converted into another signal (R 2 G 2 B 2 signal) for two-color printing. In the full color mode, this conversion process is not performed.

色変換演算部53(3次元補間演算部)は、上記データ変換部52で変換された信号(R信号)を、3次元LUTを参照しながら、補間演算によりC信号に変換する。色変換演算部53は、例えば、色変換マスキング、ニューラルネットワーク、補間演算を用いないダイレクトLUTなど、他の色変換演算を行う構成であっても構わない。 The color conversion calculation unit 53 (three-dimensional interpolation calculation unit) performs C 3 M 3 by interpolation calculation on the signal (R 2 G 2 B 2 signal) converted by the data conversion unit 52 while referring to the three-dimensional LUT. converted into Y 3 signals. The color conversion calculation unit 53 may be configured to perform other color conversion calculations such as color conversion masking, neural network, and direct LUT that does not use interpolation calculation.

次に、二色刷りに関する、上記色補正部35のデータ変換部52の構成および動作について、実施例を挙げて説明する。   Next, the configuration and operation of the data conversion unit 52 of the color correction unit 35 relating to two-color printing will be described with examples.

〔実施例1〕
本実施例では、入力画像データはRGBで8ビット(0〜255)、出力画像データもCMYKで8ビット(0〜255)の場合で、入力画像データRGBにおける赤成分を抽出し、赤および黒だけで印刷する場合について説明をする。
[Example 1]
In this embodiment, when the input image data is 8 bits (0 to 255) in RGB and the output image data is 8 bits (0 to 255) in CMYK, the red component in the input image data RGB is extracted, and red and black A case where printing is performed only will be described.

まず、入力画像データRGBは図2の1D−LUT51により、1次元のLUTを用いてRデータに変換される。次いで、Rデータは図2のデータ変換部52に入力される。このデータ変換部52では、図1のフロー図のように処理される。 First, the input image data RGB is converted into R 1 G 1 B 1 data using a one-dimensional LUT by the 1D-LUT 51 of FIG. Next, the R 1 G 1 B 1 data is input to the data converter 52 in FIG. The data converter 52 performs processing as shown in the flowchart of FIG.

図1のフロー図において、S1でデータ変換部52にRデータが入力されると、S2では、入力画像データRのうち赤成分であるRデータはそのままRデータとし、Gデータ(緑成分)とBデータ(青成分)とで平均を取る処理を行う。これをハードウェアで実現する場合には、加算して右に1ビットシフトすればよい。 In the flowchart of FIG. 1, when R 1 G 1 B 1 data is input to the data conversion unit 52 in S1, the R 1 data that is the red component of the input image data R 1 G 1 B 1 remains as it is in S2. R 2 data is processed, and an average process is performed on G 1 data (green component) and B 1 data (blue component). When this is realized by hardware, it is sufficient to add and shift one bit to the right.

図3はCMYの色空間(入力画像データはRGBデータであるが、CMYを1次色としているので、第1の表色系の色空間はCMY空間となる。)を表しているが、上記S2により、図3(c)における面RYWMを上部にして見た図3(a)のように、すべてのRデータは平面KRWC上に写像される。これはすべてのRデータが無彩色軸(K−W)を挟んで、RとCとの色相に写像したことになる。ここで、図3(c)は図2の色変換演算部53における3次元LUTを概念的に表したものであり、入力空間はRGBである。 FIG. 3 shows a CMY color space (input image data is RGB data, but CMY is a primary color, so the color space of the first color system is a CMY space). By S2, all the R 1 G 1 B 1 data is mapped onto the plane KRWC as shown in FIG. 3A when the surface RYWM in FIG. This means that all R 1 G 1 B 1 data are mapped to the hues of R and C across the achromatic color axis (K-W). Here, FIG. 3C conceptually shows the three-dimensional LUT in the color conversion operation unit 53 of FIG. 2, and the input space is RGB.

次に図1のS3では、Rデータと平均されたG(もしくはB)データとの大小を比較し、R−K再現領域の判定を行う。R−K再現領域の判定では、
(1)GデータがRデータより大きい場合には、点(R,G,B)は三角平面KRW領域外にあると判定する。
Next, in S3 of FIG. 1, the R 2 data and the averaged G 2 (or B 2 ) data are compared in size, and the RK reproduction region is determined. In the determination of the RK reproduction area,
(1) When the G 2 data is larger than the R 2 data, it is determined that the point (R 2 , G 2 , B 2 ) is outside the triangular plane KRW region.

(2)GデータがRデータ以下である場合には、点(R,G,B)は三角平面KRW領域内にあると判定する。 (2) When the G 2 data is equal to or less than the R 2 data, it is determined that the point (R 2 , G 2 , B 2 ) is in the triangular plane KRW region.

この三角平面KRWは、無彩色軸と、該無彩色軸上以外のCMY色空間の頂点の1つであるRの頂点とを結んで形成されるものである。上記頂点はR以外でもよいが、本実施例ではRに定められている場合について説明し、その他の場合については実施例2で説明する。   This triangular plane KRW is formed by connecting the achromatic color axis and the vertex of R, which is one of the vertices of the CMY color space other than the achromatic color axis. The vertex may be other than R, but in this embodiment, a case where the vertex is determined as R will be described, and other cases will be described in Embodiment 2.

この結果、図3(c)の平面KRWCにおいて判定が(1)である場合には、図1でS4へ進み、図3(b)のようにハッチングを施した領域外(三角平面KRW領域外)の点である点(R,G,B)をRW(もしくはKC)に平行に無彩色軸(K−W)上に写像する(図3(b)の矢印が示す方向に写像する。)。すなわち、GデータとBデータとはすべてRデータと同じになる。そして図1でS5へ進んで、Rを出力する。また、図3(c)の平面KRWCにおいて判定が(2)である場合には、ハッチングを施した領域内(三角平面KRW領域内)は既にRとKとで構成される領域内なので、図1で直接S5へ進み、Rデータをそのまま出力する。なお、GデータとRデータとが等しい場合は、上記のどちらの条件であっても、結果は同じであり、点(R,G,B)は無彩色軸上にあるが、この例では、判定(2)に含ませてある。 As a result, when the determination is (1) in the plane KRWC of FIG. 3C, the process proceeds to S4 in FIG. 1, and outside the hatched area (outside the triangular plane KRW area as shown in FIG. 3B) ) (R 2 , G 2 , B 2 ) on the achromatic axis (KW) parallel to RW (or KC) (mapped in the direction indicated by the arrow in FIG. 3B) To do.) That is, G 2 data and B 2 data are all the same as R 2 data. Then proceed with 1 to S5, and outputs the R 2 G 2 B 2. Further, when the determination is (2) in the plane KRWC in FIG. 3C, the hatched area (in the triangular plane KRW area) is already within the area composed of R and K. 1. Proceed directly to S5 at 1, and output R 2 G 2 B 2 data as it is. When the G 2 data and the R 2 data are equal, the result is the same regardless of the above conditions, and the point (R 2 , G 2 , B 2 ) is on the achromatic color axis. In this example, it is included in the determination (2).

データとGデータ(もしくはBデータ)との大小関係から、平面KRWCにおいてなぜ三角平面KRW領域内外の判定ができるのかを図6を用いて説明する。図6(c)はRGB色空間の斜視図であり、図6(a)は図6(c)の平面KRYGを示す図であり、図6(b)は図6(c)の平面KRMBを示す図である。 With reference to FIG. 6, why the inside / outside of the triangular plane KRW region can be determined in the plane KRWC based on the magnitude relationship between the R 2 data and the G 2 data (or B 2 data) will be described. 6C is a perspective view of the RGB color space, FIG. 6A is a diagram showing the plane KRYG in FIG. 6C, and FIG. 6B is a diagram showing the plane KRMB in FIG. 6C. FIG.

まず、平面KRYGに注目すると、RデータとGデータとの大小により、図6(a)のようにR>Gの領域とR<Gの領域とに分かれる。次に、平面KRMBに注目すると、RデータとBデータの大小により、図6(b)のようにR>Bの領域とR<Bの領域とに分かれる。よって、図6(c)の三角平面KRW内の領域は、R>GかつR>Bであり、三角平面KRW外(三角平面KWC内)の領域は、R<GかつR<Bである。ここで、図1のS2から常にGデータとBデータとは同値であるため、GデータとBデータととのいずれか一方とRデータとを比較すれば、点(R,G,B)が三角平面KRW内にあるかどうかを判定することができることになる。 First, paying attention to the plane KRYG, it is divided into a region of R> G and a region of R <G as shown in FIG. 6A depending on the size of the R data and the G data. Next, paying attention to the plane KRMB, it is divided into a region of R> B and a region of R <B as shown in FIG. 6B depending on the size of the R data and B data. Therefore, the region in the triangular plane KRW in FIG. 6C is R> G and R> B, and the region outside the triangular plane KRW (in the triangular plane KWC) is R <G and R <B. Here, since the G 2 data and the B 2 data are always the same value from S2 in FIG. 1, if either the G 2 data or the B 2 data is compared with the R 2 data, the point (R 2 , G 2 , B 2 ) can be determined whether they are in the triangular plane KRW.

最終的に、すべての入力Rデータは図3(c)のように三角平面KRW上に写像される。これは入力画像データがハッチングを施した領域に写像されることで、すべてのRデータは赤成分および黒成分だけになる。これが図2の色変換演算部53に入力されると、赤成分と黒成分とで印刷されるCが求まり、図7の黒生成下色除去部36や後述する図8の色補正部71c内の黒生成/下色除去処理により印刷可能なCMYKデータに変換され、二色刷りとして印刷されることになる。 Finally, all input R 1 G 1 B 1 data is mapped onto the triangular plane KRW as shown in FIG. This is because the input image data is mapped to the hatched area, and all the R 1 G 1 B 1 data has only a red component and a black component. When this is input to the color conversion operation unit 53 of FIG. 2, C 3 M 3 Y 3 printed with the red component and the black component is obtained, and the black generation and under color removal unit 36 of FIG. 7 and FIG. It is converted into printable CMYK data by the black generation / under color removal processing in the color correction unit 71c, and is printed as a two-color print.

具体的な例を図4、図5を用いて説明する。まず、図4において、入力画像データRが(0,0,255)の場合(青色)は、図1のS2よりR=0、G=B=(0+255)/2=127.5であり、小数点以下が切り捨てされて127となる。これは、図4の点P8(0,0,255)が点P9(0,127,127)に写像されることを示している。次に、図1のS3を実行すると、G=127はR=0より大きいことから、R−K再現領域の判定は前述の(1)となり、図1のS4でR=G=B=0になる。これは図4の点P9(0,127,127)が点P10(0,0,0)に写像されることを示している。よって、入力画像データR=(0,0,255)は(0,0,0)の無彩色軸に写像されたことになる。これは、入力画像データRのR成分が他のG成分やB成分より小さいため、赤領域の色相でないことから、黒成分(無彩色)として印刷することになるためである。 A specific example will be described with reference to FIGS. First, in FIG. 4, when the input image data R 1 G 1 B 1 is (0, 0, 255) (blue), R 2 = 0 and G 2 = B 2 = (0 + 255) / from S2 in FIG. 2 = 127.5, and the decimal part is rounded down to 127. This indicates that the point P8 (0, 0, 255) in FIG. 4 is mapped to the point P9 (0, 127, 127). Next, when S3 of FIG. 1 is executed, since G 2 = 127 is larger than R 2 = 0, the determination of the RK reproduction region becomes (1) described above, and R 2 = G 2 in S4 of FIG. = B 2 = 0. This indicates that the point P9 (0, 127, 127) in FIG. 4 is mapped to the point P10 (0, 0, 0). Therefore, the input image data R 1 G 1 B 1 = (0, 0, 255) is mapped to the achromatic axis of (0, 0, 0). This is because the R component of the input image data R 1 G 1 B 1 is smaller than the other G components and B components, so that it is not the hue of the red region, and is therefore printed as a black component (achromatic color). .

次に、別の例を、図5を用いて説明する。入力画像データRが(255,0,255)の場合(マゼンタ)、同様にして、R=255、G=B=(0+255)/2≒127となる。これは、図5の点P11(255,0,255)が点P12(255,127,127)に写像されることになる。そして、RとGとの大小関係から、R−K再現領域の判定は前述の(2)となり、最終的にRは(255,127,127)になり、R−W上の色を表すことになる。 Next, another example will be described with reference to FIG. When the input image data R 1 G 1 B 1 is (255, 0, 255) (magenta), R 2 = 255 and G 2 = B 2 = (0 + 255) / 2≈127 in the same manner. This means that the point P11 (255, 0, 255) in FIG. 5 is mapped to the point P12 (255, 127, 127). From the magnitude relationship between R 2 and G 2 , the determination of the RK reproduction region is (2) described above, and finally R 2 G 2 B 2 is (255, 127, 127), and R− It represents the color on W.

これらのことから、全てのRデータは、前述したように、三角平面KRWに写像されるために、色変換演算部53では赤成分と黒成分とだけの二色刷りが実現できることになる。 As described above, since all the R 1 G 1 B 1 data is mapped onto the triangular plane KRW as described above, the color conversion calculation unit 53 can realize two-color printing using only the red component and the black component. become.

更に、図2の色変換演算部53における3次元LUTは、予めフルカラー用として作成された色補正テーブルであるので、色再現性が視覚的(例えば、無彩軸上は人間の輝度感度に類似しているなど)に良好である。そのため、このフルカラー用テーブルを使用し、図3(c)の色空間(テーブル構成)における一部の三角平面を使用することで、視覚的に良好な二色刷りの画像を生成することが可能になる。よって、フルカラーモードであっても、二色刷りモードであっても、使用するテーブルを共用することが可能になる。そして、フルカラーモードの場合には、図2のデータ変換部52は何も処理を行わず(すなわち、入力画像データのRをそのままRデータとして出力する。)、二色刷りの場合には、データ変換部52は上記のように動作することで、2つのモードによる処理を容易に実現することが可能になる。 Further, since the three-dimensional LUT in the color conversion calculation unit 53 in FIG. 2 is a color correction table created for full color in advance, the color reproducibility is visually (for example, similar to human luminance sensitivity on the achromatic axis). Is good). Therefore, by using this full-color table and using some triangular planes in the color space (table configuration) of FIG. 3C, it is possible to generate a visually good two-color image. Become. Therefore, it is possible to share the table to be used regardless of whether it is the full color mode or the two-color printing mode. In the case of the full color mode, the data conversion unit 52 in FIG. 2 does not perform any processing (that is, outputs R 1 G 1 B 1 of the input image data as R 2 G 2 B 2 data as it is). In the case of two-color printing, the data converter 52 operates as described above, so that the processing in the two modes can be easily realized.

なお、他の主要色(GBCMYのいずれか)とKとで二色刷りを行う場合には、すべてのRGBデータがそれぞれ三角平面KGW,KBW,KCW,KMW,KYWに写像すれば実現することが可能であり、それを実現するデータ変換部の構成は実施例2で説明する。   In addition, when two-color printing is performed with another main color (any of GBCMY) and K, it can be realized by mapping all RGB data onto the triangular planes KGW, KBW, KCW, KMW, and KYW, respectively. The configuration of the data conversion unit that realizes this will be described in the second embodiment.

ここでは、本実施例でこれまで説明してきたデータ変換を行うデータ変換部52の構成について説明する。図12は図2におけるデータ変換部52内の構成を表している。データ変換部52は、平均化処理部52a、比較器52b、および、セレクタ52cを備えている。   Here, the configuration of the data conversion unit 52 that performs the data conversion described so far in the present embodiment will be described. FIG. 12 shows the configuration within the data converter 52 in FIG. The data converter 52 includes an averaging processor 52a, a comparator 52b, and a selector 52c.

平均化処理部52aは、加算器61とビットシフト62とを備えており、G信号とB信号との平均値を求める。加算器61は、GデータとBデータとを加算し、加算結果としてデータE11を出力する。ビットシフト62は、データE11を右に1ビットずらすことで、GデータとBデータとの平均値であるデータE12を求めて出力する。これは図1のS2に処理に該当する。これにより、図3(c)のKWRCで構成される四角平面にすべてのデータが写像されることになる。 Averaging unit 52a has an adder 61 and bit shift 62, the average value of the G 1 signal and B 1 signal. The adder 61 adds the G 1 data and B 1 data, and outputs the data E11 as the addition result. Bit shift 62, by shifting 1 bit data E11 to the right, it obtains and outputs the data E12 is the average value of the G 1 data and B 1 data. This corresponds to the process in S2 of FIG. As a result, all data is mapped onto the square plane formed by KWRC in FIG.

比較器52bは、RデータとデータE12との大小を比較して、その結果を1ビットのデータE13で出力する。これは図1のS3に該当し、図3(c)の三角平面KRW内外の判定を行うものである。 The comparator 52b compares the magnitudes of the R 1 data and data E12, and outputs the result by 1 bit data E13. This corresponds to S3 in FIG. 1, and the inside / outside determination of the triangular plane KRW in FIG. 3C is performed.

セレクタ52cは比較器52bにより生成されたデータE13を制御信号として、RデータとデータE12とのいずれかを選択し、データE14として出力する。これは図1のS3の判定結果の処理S4に該当し、三角平面KRW外のデータは無彩色に写像し、三角平面KRW内のデータはそのまま出力することになる。 The selector 52c as the control signal data E13 generated by the comparator 52 b, selects one of the R 1 data and data E12, and outputs it as data E14. This corresponds to the determination result processing S4 of S3 in FIG. 1, and data outside the triangular plane KRW is mapped to an achromatic color, and data within the triangular plane KRW is output as it is.

最終的に、入力のRデータはRデータになり、セレクタ52cより出力されたデータE14は分配されてGデータ、Bデータになる。これにより図1と同様の処理が実現されることになる。 Finally, the input R 1 data becomes R 2 data, and the data E14 output from the selector 52c is distributed to become G 2 data and B 2 data. As a result, the same processing as in FIG. 1 is realized.

〔実施例2〕
本実施例では、色補正部35の構成はほぼ図2と同じであるが、データ変換部52にユーザー設定信号が入力される点が異なる。1D−LUT51および色変換演算部53の動作は実施例1と同様である。本実施例でも、入力画像データが8ビット(0〜255)のRGBデータであり、出力画像データが8ビット(0〜255)のCMYKデータである場合について説明する。
[Example 2]
In this embodiment, the configuration of the color correction unit 35 is almost the same as that in FIG. 2 except that a user setting signal is input to the data conversion unit 52. The operations of the 1D-LUT 51 and the color conversion calculation unit 53 are the same as those in the first embodiment. Also in this embodiment, a case will be described in which the input image data is 8-bit (0-255) RGB data and the output image data is 8-bit (0-255) CMYK data.

実施例1では、入力画像データからR成分を抽出し、出力画像データをR−Kで印刷する場合のみを説明した。しかし、実際の二色刷りはR−Kで印刷するとは限らない。ユーザーによっては、様々な組み合わせが必要な場合がある。   In the first embodiment, only the case where the R component is extracted from the input image data and the output image data is printed by RK has been described. However, actual two-color printing is not always performed by RK. Depending on the user, various combinations may be required.

本実施例では、ユーザーが原稿から抽出したい色(RGBCMYのいずれか)を選択し、指定した色を印刷する際にどの色(RGBCMYのいずれか)で印刷したいかを選択することのできる構成について説明する。ユーザーが原稿から抽出したい色として選択したものを指定入力色とし、ユーザーが印刷したい色として選択したものを指定出力色とする。これらの色指定を行うことで、例えば、R成分をRで印刷することは勿論、R成分をGで印刷したり、C成分をRで印刷したりすることができ、ユーザーのニーズを満たすことが可能である。   In this embodiment, the user can select a color (any one of RGBCMY) to be extracted from a document, and can select which color (any of RGBCMY) is desired to be printed when printing a designated color. explain. The color selected by the user as the color desired to be extracted from the document is designated as the designated input color, and the color selected by the user as the color desired to be printed is designated as the designated output color. By specifying these colors, for example, the R component can be printed with R, the R component can be printed with G, and the C component can be printed with R, which satisfies the user's needs. Is possible.

図13、(b)は実施例2の処理をフローで表したものである。大きく分けると入力切替処理、平均化処理、指定入力色および指定出力色に基づく切替処理、三角平面への写像処理、および、出力切替処理に分けられる。   FIG. 13B is a flowchart showing the processing of the second embodiment. Broadly divided into input switching processing, averaging processing, switching processing based on designated input colors and designated output colors, mapping processing to a triangular plane, and output switching processing.

S201でデータ変換部52にRデータが入力されると、まず、入力切替処理(S202〜S206)を実行する。入力切替処理では、ユーザーの指定入力色に基づいて、Rデータから内部データDデータへと、一時的にデータの切り替えを行う。内部データD、D、Dは、Rデータ、Gデータ、Bデータが上記指定入力色に応じた順序で割り当てられたデータであり、その後の演算処理は内部データD、D、Dを用いて行われる。 When R 1 G 1 B 1 data is input to the data conversion unit 52 in S201, input switching processing (S202 to S206) is first executed. In the input switching process, data is temporarily switched from R 1 G 1 B 1 data to internal data D 1 D 2 D 3 data based on the user's designated input color. The internal data D 1 , D 2 , D 3 are data in which R 1 data, G 1 data, B 1 data are assigned in the order according to the specified input color, and the subsequent arithmetic processing is internal data D 1 , This is performed using D 2 and D 3 .

入力切替処理を行う理由は、ユーザーがRGBCMYのいずれの色を指定入力色で選択しても、その後の平均化処理で同一の処理ができるようにするためである。ユーザーが2次色(R、G、Bのいずれか1つを指す。ここでは、CMYを(1次色)としているのでRGBが2次色になる。)を指定した場合、指定した色が主要色としてDデータに代入される。そして、それ以外の二色は補助色として、DデータとDデータとに別々に代入される。逆に、ユーザーが1次色(C、M、Yのいずれか)を指定した場合、指定した色の補色(例えば、ユーザーがCを指定した場合、Cの補色R)が補助色として、Dデータに代入される。そして、指定した色を生成する2つの2次色(例えば、ユーザーがCを指定した場合、Cは2次色のGとBとにより生成される)が主要色としてDデータとDデータとに別々に代入される。 The reason for performing the input switching process is to allow the same process to be performed in the subsequent averaging process regardless of which color of RGBCMY is selected by the user as the designated input color. When the user designates a secondary color (refers to any one of R, G, and B. Here, CMY is (primary color), so RGB is a secondary color), the designated color is is substituted into D 1 data as primary color. And, the other two colors as an auxiliary color are separately assigned to the D 2 data and D 3 data. Conversely, when the user designates a primary color (C, M, or Y), the complementary color of the designated color (for example, when the user designates C, the complementary color R of C) is used as the auxiliary color. Assigned to 1 data. Then, two secondary colors that generate the specified color (for example, if the user specifies C, C is generated by the secondary colors G and B) are D 2 data and D 3 data as the main colors. Are assigned separately.

例えば、ユーザーの指定入力色がGである場合には、Gデータは主要色であるためDデータに代入され、それ以外は補助色であるためRデータとBデータとはDデータとDデータとに別々に代入される。ユーザーの指定入力色がMである場合には、RデータとBデータとは主要色であるためそれぞれDデータとDデータに代入され、Gデータは補助色であるためDデータに代入される。結果的に、ユーザーの指定入力色がGもしくはMである場合には、R、G、BデータがそれぞれD、D、Dデータに代入されることになる(後述のS205)。同様にして、ユーザーの指定入力色がRもしくはCである場合には、R、G、BデータがそれぞれD、D、Dデータに代入されることになり(後述のS206)、ユーザーの指定入力色がBもしくはYである場合には、R、G、BデータがそれぞれD、D、Dデータに代入される(後述のS204)ことになる。こうしてRデータはDデータに切り替わる。 For example, when the user's designated input color is G, the G 1 data is the primary color and is substituted for the D 1 data, and the other colors are auxiliary colors, so the R 1 data and the B 1 data are D 2. They are separately assigned to the data and D 3 data. When the user's designated input color is M, R 1 data and B 1 data are the primary colors, and are thus substituted for D 2 data and D 3 data, respectively, and G 1 data is an auxiliary color, so D 1 Assigned to the data. As a result, when the user's designated input color is G or M, R 1 , G 1 , and B 1 data are respectively substituted for D 2 , D 1 , and D 3 data (S205 described later) ). Similarly, when the user's designated input color is R or C, R 1 , G 1 , B 1 data are respectively substituted for D 1 , D 2 , D 3 data (S206 described later) ), When the user's designated input color is B or Y, R 1 , G 1 , B 1 data is substituted for D 2 , D 3 , D 1 data, respectively (S 204 described later). In this way, R 1 G 1 B 1 data is switched to D 1 D 2 D 3 data.

これを図13で説明すると、S202で指定入力色がRもしくはCであるか否かを判断し、RもしくはCである場合にはS206へ進んで、DデータにRデータを、DデータにGデータを、DデータにBデータをそれぞれ代入する。S202でRもしくはCでない場合にはS203へ進み、指定入力色がGもしくはMであるか否かを判断する。GもしくはMである場合にはS205へ進んで、DデータにGデータを、DデータにRデータを、DデータにBデータをそれぞれ代入する。S203でGもしくはMでない場合にはS204へ進んで、DデータにBデータを、DデータにRデータを、DデータにGデータをそれぞれ代入する。 This will be described with reference to FIG. 13. In S202, it is determined whether or not the designated input color is R or C. If R or C, the process proceeds to S206, where R 1 data is added to D 1 data, and D 2 is input. the G 1 data to the data, if the values are the B 1 data D 3 data. If it is not R or C in S202, the process proceeds to S203, and it is determined whether the designated input color is G or M. Proceed in the S205 when is G or M, the G 1 data D 1 data, the R 1 data to the D 2 data, substitutes D 3 data B 1 data, respectively. If not G or M to proceeds to step S204 in S203, the B 1 data D 1 data, the R 1 data to the D 2 data, if the values are the G 1 data D 3 data.

次に、平均化処理(S207)を実行する。平均化処理では、DデータとDデータとを加算し、加算結果であるDデータを2で除算(または、右に1ビットシフト)することで、DデータとDデータとの平均値であるDデータを求める。このDデータを算出することで、KとWと指定入力色とその補色とにより囲まれる平面に全てのRGBデータが写像されることになる。ここで、ユーザーの指定入力色が2次色である場合は、Dデータが主要色であり、指定入力色が1次色である場合は、Dデータが主要色である。 Next, an averaging process (S207) is executed. In the averaging process, D 2 data and D 3 data are added, and D 4 data that is the addition result is divided by 2 (or shifted to the right by 1 bit) to obtain the D 2 data and D 3 data. Request D 5 data are average values. By calculating the D 5 data, all of the RGB data is to be mapped to a plane surrounded by K and W and the specified input color and its complementary color. Here, if the user-specified input color is a secondary color is D 1 data main color, if the specified input color is the primary color, D 5 data are primary colors.

次に、図13における指定入力色および指定出力色に基づく切替処理(S208〜S214)を実行する。この切替処理では、指定入力色が1次色であるか2次色であるか、指定出力色が1次色であるか2次色であるかにより、DデータおよびDデータからDデータおよびD10データへとデータの切り替えを行う。これを行うことで、指定入力色として指定した1次色を2次色で印刷することやその逆も可能になる。 Next, switching processing (S208 to S214) based on the designated input color and the designated output color in FIG. 13 is executed. In this switching process, D 1 data and D 5 data to D 9 are selected depending on whether the designated input color is a primary color or a secondary color, and whether the designated output color is a primary color or a secondary color. to switch data to the data and the D 10 data. By doing this, it is possible to print the primary color designated as the designated input color as a secondary color and vice versa.

なお、ユーザーの指定出力色が2次色である場合は、Dデータは主要色、D10データは補助色であり、ユーザーの指定出力色が1次色である場合は、D10データは主要色、Dデータは補助色になる。そして、出力側の主要色を入力側の主要色とすることにより、1次色の指定入力色を2次色の指定出力色で印刷することやその逆も可能となる。 Incidentally, if the specified output color of the user is a secondary color, D 9 data primary color, D 10 data is supporting colors, if the user specified output color is the primary color, D 10 data primary colors, D 9 data will supporting colors. Then, by setting the primary color on the output side as the primary color on the input side, it is possible to print the designated input color of the primary color as the designated output color of the secondary color and vice versa.

例えば、ユーザーの指定入力色が2次色で、指定出力色も2次色である場合は、入力側ではDデータが主要色であり、出力側ではDデータが主要色であるため、DデータにDデータが代入される(後述のS211)。ユーザーの指定入力色が2次色で、指定出力色が1次色である場合は、入力側ではDデータが主要色であり、出力側ではD10データが主要色であるため、D10データにDデータが代入される(後述のS212)。同様に、ユーザーの指定入力色が1次色で、指定出力色が2次色である場合は、入力側ではDデータが主要色であり、出力側ではDデータが主要色であるため、DデータにDデータが代入される(後述のS213)。ユーザーの指定入力色が1次色で、指定出力色も1次色である場合は、入力側はDデータが主要色であり、出力側ではD10データが主要色であるため、D10データにDデータが代入される(後述のS214)。 For example, since the user's designated input color is a secondary color, if the specified output color is also secondary color is the input side is D 1 data primary color, the output-side D 9 data is primary color, D 1 data is assigned to D 9 data (S211 to be described later). Because the user's designated input color is a secondary color, if the specified output color is the primary color, the input side is the main color D 1 data, the output-side D 10 data is the primary color, D 10 D 1 data is substituted into the data (S212 to be described later). Similarly, at user-specified input color is a primary color, if the specified output color is a secondary color, the input side is the main color D 5 data, since the output-side D 9 data is main colors , D 5 data is substituted for D 9 data (S213 to be described later). Because the user's designated input color is a primary color, if it is also the primary color specified output color is input is the main color D 5 data, the output-side D 10 data is the primary color, D 10 D 5 data is substituted for the data (S214 to be described later).

上記処理を図13で説明すると、S208で指定入力色が2次色であるか否かを判断し、2次色であればS209へ進み、2次色でなければS210へ進む。S209では指定出力色が2次色であるか否かを判断し、2次色であればS211へ進んでDデータにDデータを代入し、2次色でなければS212へ進んでD10データにDデータを代入する。S210では指定出力色は2次色であるか否かを判断し、2次色であればS213へ進んでDデータにDデータを代入し、2次色でなければS214へ進んでD10データにDデータを代入する。 The above process will be described with reference to FIG. 13. In S208, it is determined whether or not the designated input color is a secondary color. If it is a secondary color, the process proceeds to S209. If not, the process proceeds to S210. Designated output color at S209 it is determined whether a secondary color, substituting D 1 data D 9 data proceeds to S211 if secondary color, the process proceeds to S212 if not secondary color D 10 data is substituted for D 1 data. Specified output color step S210 determines whether the secondary color, substituting D 5 data to D 9 data proceeds to S213 if secondary color, the process proceeds to S214 if not secondary color D 10 data substituting D 5 data.

次に、三角平面への写像処理を実行する。この写像処理(S215〜S220)では、点(D,D,D)が、KとWと指定入力色とその補色とにより囲まれる四角平面において、KとWと指定入力色とで囲まれる三角平面の内外のいずれにあるかの判定を行い、KとWと指定出力色とで囲まれる三角平面への写像を行う。三角平面内外の判定は、入力側の主要色(Dデータ)と補助色(Dデータ)との大小比較によって行われる。 Next, mapping processing to a triangular plane is executed. In this mapping process (S215 to S220), the points (D 1 , D 5 , D 5 ) are represented by K, W, and the designated input color in a square plane surrounded by K, W, the designated input color, and its complementary color. It is determined whether it is inside or outside the enclosed triangular plane, and mapping to the triangular plane enclosed by K, W, and the specified output color is performed. Determination of the triangular plane and out is carried out by comparison between the input side of the primary colors (D 1 data) and the auxiliary color (D 5 data).

指定出力色が2次色である場合は、前記S211あるいは前記S213からS215へ進む。前記S211および前記S213では、出力側の主要色はDデータであるため、指定入力色が2次色であればDデータに常にDデータが代入されており(S211)、指定入力色が1次色であればDデータに常にDデータが代入されている(S213)。S215では、DデータがDデータより大きいか否かを判断する。 If the designated output color is a secondary color, the process proceeds from S211 or S213 to S215. Wherein the S211 and the S213, since the primary color on the output side is D 9 data constantly is substituted D 1 data to D 9 data if specified input color is a secondary color (S211), specify the input color There is always D 5 data substituted into D 9 data if primary color (S213). In S215, D 1 data determines whether greater than D 5 data.

ここで、指定入力色が2次色である場合(S211からS215へ進んだ場合)に、Dデータ(主要色)がDデータ(補助色)よりも小さい場合には、S217へ進んで、DデータをDデータと同じ値として点(D,D,D)を無彩色に写像する。すなわち、出力側の補助色(D10データ)にはDデータを代入する。逆に、Dデータ(主要色)がDデータ(補助色)以上である場合には、S218へ進んで、Dデータ(補助色)にはそのままの値を使用する。すなわち、出力側の補助色(D10データ)にはDデータを代入する。 Here, if the specified input color is a secondary color (if proceeds from S211 to S215), when D 1 data (the main color) D 5 data (complementary color) is smaller than, the program proceeds to a S217 , maps D 5 data achromatic point (D 1, D 5, D 5) as the same value as the D 1 data. That is, the output side of the supporting colors (D 10 data) is substituted for D 1 data. Conversely, D 1 data (main color Division) is a D 5 Data (complementary color) or more, the routine proceeds to S218, using the raw values to D 5 data (auxiliary color). That is, the output side of the supporting colors (D 10 data) Substituting D 5 data.

次に、指定入力色が1次色の場合(S213からS215へ進んだ場合)に、Dデータ(主要色)がDデータ(補助色)以下である場合には、S218へ進んで、DデータをDデータと同じ値として点(D,D,D)を無彩色に写像する。そのため、出力側の補助色(D10データ)にはDデータを代入する。逆に、Dデータ(主要色)がDデータ(補助色)より大きい場合には、S217へ進んで、Dデータにはそのままの値を使用し、出力側の補助色(D10データ)にはDデータを代入する(ステップS217)。 Then, if the specified input color is the primary color (if proceeds from S213 to S215), when D 5 data (primary color) is D 1 data (complementary color) or less, the process proceeds to S218, the D 1 data maps achromatic point (D 1, D 5, D 5) as the same value as D 5 data. Therefore, the output side of the supporting colors (D 10 data) Substituting D 5 data. On the contrary, when D 5 data (main color) is greater than D 1 data (auxiliary color), the program proceeds to a S217, using the raw values to D 1 data, the output side of the auxiliary color (D 10 data ) the substitutes D 1 data (step S217).

指定出力色が1次色である場合も上記と同様の処理がなされ、指定入力色が2次色である場合には、DデータがDデータより小さいか否かを判断するS216からS220へ進んで、出力側の補助色(Dデータ)にはDデータを代入し、指定入力色が1次色である場合には、S216からS219へ進んで、出力側の補助色(Dデータ)にはDデータを代入する。 When the designated output color is the primary color, the same process as described above is performed. When the designated input color is the secondary color, it is determined whether or not the D 1 data is smaller than the D 5 data. proceed to substitutes D 5 data on the output side of the auxiliary color (D 9 data), if the specified input color is the primary color, the process proceeds from S216 to S219, the output side of the auxiliary color (D the 9 data) is substituted for D 1 data.

最後に、出力切替処理(ステップS221〜S225)を実行する。この出力切替処理では、指定出力色に基づいてD、D10データからRデータへとデータの切り替えを行う。前述の通り、ユーザーの指定出力色が2次色である場合は、Dデータが主要色で、D10データが補助色であり、ユーザーの指定出力色が1次色である場合は、D10データが主要色で、Dデータが補助色である。そして、ユーザーの指定出力色を主要色とすることで、所望の二色データに変換されることになる。 Finally, output switching processing (steps S221 to S225) is executed. In this output switching process, data is switched from D 9 and D 10 data to R 2 G 2 B 2 data based on the designated output color. As described above, if the specified output color of the user is a secondary color, D 9 data in primary colors, a D 10 data supporting colors, if the user specified output color is the primary color, D 10 data in primary colors, D 9 data is supporting colors. Then, the designated output color of the user is set as the main color, so that it is converted into desired two-color data.

例えば、ユーザーの指定出力色がR(2次色)である場合は、Rデータに主要色であるDデータを代入し、GデータとBデータとに補助色であるD10データを代入すると、GデータとBデータとは常に同じ値であり、RデータはGデータ(もしくはBデータ)以上であることから、KとRとの二色画像データに変換される(R=G(=B)ではKになり、それ以外はRになるため)。ユーザーの指定出力色がC(1次色)である場合は、GデータとBデータとに主要色であるD10データを代入し、Rデータに補助色であるDデータを代入すると、GデータとBデータとは常に同じ値であり、Gデータ(もしくはBデータ)はRデータ以上であることから、KとCとの二色画像データに変換される(R=G(=B)ではKになり、それ以外はCになるため)。この2つの例は、指定出力色がRとCとで異なるが、処理の内容は同一となる(後述のS225)。ユーザーの指定出力色がGもしくはM、BもしくはYの場合も上記と同様の処理がなされる(後述のS224、S223)。 For example, if the user-specified output color is R (2 primary color) substitutes the D 9 data is the primary color R 2 data, D 10 data is an auxiliary color and G 2 data and B 2 data When G is substituted, G 2 data and B 2 data are always the same value, and R 2 data is equal to or greater than G 2 data (or B 2 data), so it is converted into two-color image data of K and R. (Because R 2 = G 2 (= B 2 ) becomes K, and otherwise R becomes). If the user specified output color is C (1 primary colors), by substituting D 10 data is the primary color and G 2 data and B 2 data, substitutes D 9 data is an auxiliary color R 2 Data Then, since the G 2 data and the B 2 data are always the same value, and the G 2 data (or B 2 data) is equal to or higher than the R 2 data, it is converted into two-color image data of K and C ( R 2 = G 2 (= B 2 ) becomes K, otherwise it becomes C). In these two examples, the designated output colors are different between R and C, but the processing contents are the same (S225 described later). The same process is performed when the user-designated output color is G or M, B or Y (S224 and S223 described later).

上記の処理を図14で説明すると、S221で指定出力色がRもしくはCであるか否かを判断し、RもしくはCであればS225へ進み、RデータにDデータを代入し、GデータにD10データを代入し、BデータにD10データを代入する。S221でRもしくはCでなければS222へ進んで、指定出力色がGもしくはMであるか否かを判断する。GもしくはMであればS224へ進み、RデータにD10を代入し、GデータにDを代入し、BデータにD10データを代入する。S222でGもしくはMでなければS223へ進み、RデータにD10を代入し、GデータにD10を代入し、BデータにDを代入する。 To explain the above processing in FIG. 14, designated output color is determined whether the R or C in S221, the process proceeds to S225 if R or C, substituting D 9 data into R 2 data, G substituting D 10 data into second data, it substitutes the D 10 data to B 2 data. If it is not R or C in S221, the process proceeds to S222, and it is determined whether or not the designated output color is G or M. If G or M proceeds to S224, and assigns the D 10 to R 2 data, substitutes D 9 to G 2 data, it substitutes the D 10 data to B 2 data. S222, the processing advances to G or M unless S223 substitutes D 10 to R 2 data, substitutes D 10 to G 2 data, substitutes D 9 to B 2 data.

出力切替処理が終了すると、S226でRデータを出力する。 When the output switching process is completed, R 2 G 2 B 2 data is output in S226.

このようにして、ユーザーの指定入力色と指定出力色とが異なる場合でも、二色刷りが可能である。   In this way, even when the user's designated input color is different from the designated output color, two-color printing is possible.

次に、これまで説明してきた本実施例のデータ変換を行うデータ変換部の詳細な構成について説明する。図9は図2おけるデータ変換部52内の構成を表している。   Next, a detailed configuration of the data conversion unit that performs data conversion of the present embodiment described so far will be described. FIG. 9 shows a configuration in the data conversion unit 52 in FIG.

データ変換部52は、多入出力セレクタ520a、平均化処理部520b、比較器520c、制御信号生成部520d、セレクタ520e、セレクタ520f、および、多入出力セレクタ520gを備えている。   The data conversion unit 52 includes a multi-input / output selector 520a, an averaging processing unit 520b, a comparator 520c, a control signal generation unit 520d, a selector 520e, a selector 520f, and a multi-input / output selector 520g.

多入出力セレクタ520aは、ユーザー設定信号(指定入力色設定信号)s1により指示される指定入力色(RGBCMYのいずれか)に基づいて、RデータのDデータへの切り替えを行う。ユーザーの指定入力色がRである場合には、Rデータ、Gデータ、BデータはそれぞれDデータ、Dデータ、Dデータとして出力される。また、ユーザーの指定入力色がGである場合には、Gデータ、Rデータ、BデータがそれぞれDデータ、Dデータ、Dデータとして出力される。そして、ユーザーの指定入力色がBである場合には、Bデータ、Rデータ、GデータがそれぞれDデータ、Dデータ、Dデータとして出力される。このようにユーザーの指定入力色が2次色である場合は、指定入力色がD信号として出力されるようになる。ユーザーの指定入力色がCである場合はRを指定入力色としたときと同じ切替処理が、ユーザーの指定入力色がMである場合はGを指定入力色としたときと同じ切替処理が、ユーザーの指定入力色がYである場合はBを指定入力色としたときと同じ切替処理がなされる。この対応を表1に示す。これは図13の入力切替処理に相当する。 The multi-input / output selector 520a selects the D 1 D 2 D 3 data of the R 1 G 1 B 1 data based on the designated input color (any of RGBCMY) designated by the user setting signal (designated input color setting signal) s1. Switch to. When the user's designated input color is R, R 1 data, G 1 data, and B 1 data are output as D 1 data, D 2 data, and D 3 data, respectively. When the user's designated input color is G, G 1 data, R 1 data, and B 1 data are output as D 1 data, D 2 data, and D 3 data, respectively. When the user's designated input color is B, B 1 data, R 1 data, and G 1 data are output as D 1 data, D 2 data, and D 3 data, respectively. In this case user-specified input color is a secondary color as the designated input color is to be output as D 1 signal. When the user's designated input color is C, the same switching process as when R is the designated input color, and when the user's designated input color is M, the same switching process as when G is the designated input color, When the user's designated input color is Y, the same switching process is performed as when B is designated as the designated input color. This correspondence is shown in Table 1. This corresponds to the input switching process of FIG.

Figure 0004368833
Figure 0004368833

平均化処理部520bは、加算器610とビットシフト620とを備えており、DデータとDデータとの平均値を求める。加算器610は、DデータとDデータとを加算し、加算結果をDデータとして出力する。そして、ビットシフト620がDデータを右に1ビットずらすことで、DデータとDデータとの平均値を求めて、これをデータDとして出力する。これは図13の平均化処理に相当する。これにより、KとWとユーザーによる指定入力色とその補色とで構成される四角平面にすべてのデータが写像されることになる。 Averaging unit 520b is provided with an adder 610 and the bit shift 620, the average value of D 2 data and D 3 data. The adder 610 adds the D 2 data and D 3 data, and outputs the addition result as D 4 data. Then, the bit shift 620 by shifting one bit to the right D 4 data, an average value of the D 2 data and D 3 data, and outputs it as data D 5. This corresponds to the averaging process of FIG. As a result, all data is mapped onto a square plane composed of K, W, a user-specified input color and its complementary color.

比較器520cは、Dデータと平均化処理により得られたDデータとの大小を比較して、その結果を1ビット信号のDデータで出力する。例えば、DデータがDデータ以上であれば、1、そうでなければ、0を、Dデータとして出力する。 The comparator 520c compares the D 1 data with the D 5 data obtained by the averaging process, and outputs the result as D 6 data of a 1-bit signal. For example, D 1 data is equal to D 5 data above, 1, otherwise 0, and outputs as D 6 data.

制御信号生成部520dは、比較器520cから出力されたDデータとユーザー設定信号(指定入力色設定信号、兼、指定出力色設定信号)s2により指示される指定入力色の種類および指定出力色の種類に基づいて、セレクタ520eに対する1ビットの制御信号D、および、セレクタ520fに対する1ビットの制御信号Dを生成する。 Control signal generating unit 520d, the comparator 520c output from the D 6 data and user setting signal (designated input color setting signal, and the designated output color setting signal) specified type of input color indicated by s2 and the specified output color 1-bit control signal D 7 for the selector 520e and 1-bit control signal D 8 for the selector 520f are generated.

制御信号生成部520dのさらに詳細な図を図10に示す。制御信号生成部520dはセレクタ531およびセレクタ532を備えている。セレクタ520eのための制御信号Dはセレクタ531より出力され、セレクタ520fのための制御信号Dはセレクタ532より出力される。そして、セレクタ531とセレクタ532は、制御信号s2のうち、指定出力色の種類を表す信号(指定出力色設定信号)s2bに基づいて、Dデータと、制御信号s2のうちの指定入力色の種類を表す信号(指定入力色設定信号)s2aとのいずれかを選択する。信号s2aは指定入力色が1次色であるか2次色であるかを示すビット信号であり、2次色である場合は「0」、1次色である場合は「1」であるものとする。信号s2bは、指定出力色が1次色であるか2次色であるかを示すビット信号であり、2次色である場合は「0」、1次色である場合は「1」であるものとする。 A more detailed view of the control signal generator 520d is shown in FIG. The control signal generation unit 520 d includes a selector 531 and a selector 532. A control signal D 7 for the selector 520 e is output from the selector 531, and a control signal D 8 for the selector 520 f is output from the selector 532. The selector 531 and the selector 532 of the control signal s2, based on a signal representing the type of the specified output color (specified output color setting signal) s2b, and D 6 data of the designated input color of the control signal s2 One of the signals indicating the type (designated input color setting signal) s2a is selected. The signal s2a is a bit signal indicating whether the designated input color is a primary color or a secondary color, and is “0” if it is a secondary color and “1” if it is a primary color. And The signal s2b is a bit signal indicating whether the designated output color is a primary color or a secondary color, and is “0” if it is a secondary color and “1” if it is a primary color. Shall.

セレクタ531は、指定出力色が2次色である場合(信号s2b:0)に、信号s2aをDデータとして選択する。よって、前段での比較器520cでの比較結果を表すDデータに影響されず、出力が常に固定される。逆に指定出力色が1次色である場合(信号s2b:1)は、DデータがDデータとして選択され、出力が前段の比較器520cでの比較結果に依存するようになる。セレクタ532は、指定出力色が2次色である場合(信号s2b:0)は、DデータをDデータとして選択し、指定出力色が1次色である場合(信号s2b:1)は、信号s2aをDデータとして選択する。すなわち、セレクタ531と逆の動作を行う。これらをまとめたものが表2である。そして、そのデータD・Dを制御信号として受けてセレクタ520e・520fは表3のように動作する。このようにすることにより、ユーザーの指定入力色と指定出力色とが違う場合の組み合わせも実現できるようになる。これは図13の指定入力色および指定出力色に基づく切替処理と、三角平面への写像処理とに相当する。 The selector 531, if the specified output color is a secondary color (signal s2b: 0), the select signals s2a as D 7 data. Thus, without being influenced by D 6 data representing the comparison result in the comparator 520c in the preceding stage, the output is always fixed. Conversely if the specified output color is the primary color (signal s2b: 1) is, D 6 data is selected as the D 7 data, output becomes dependent on the comparison result in the preceding stage of the comparator 520c. If the selector 532, specified output color is a secondary color (signal s2b: 0) selects the D 6 data as D 8 data, if the specified output color is the primary color (signal s2b: 1) the , selects signals s2a as D 8 data. That is, the operation reverse to that of the selector 531 is performed. These are summarized in Table 2. The selector 520e · 520f receives the data D 7 · D 8 as a control signal operates as shown in Table 3. In this way, a combination in the case where the user's designated input color is different from the designated output color can be realized. This corresponds to the switching process based on the designated input color and the designated output color in FIG. 13 and the mapping process to the triangular plane.

Figure 0004368833
Figure 0004368833

Figure 0004368833
Figure 0004368833

セレクタ520eは制御信号生成部520dにより生成された制御信号のDデータにより、DデータとDデータとのいずれかを選択し、Dデータとして出力する。例えば、Dデータが0であればDデータを、Dデータが1であればDデータを出力する。 The selector 520e by D 7 data of the control signal generated by the control signal generating unit 520d, and select one of the D 1 data and the D 5 data, and outputs it as D 9 data. For example, the D 1 data if D 7 data 0, D 7 data outputs the D 5 data if 1.

セレクタ520fは制御信号生成部520dにより生成された制御信号のDデータにより、DデータとDデータとのいずれかを選択し、D10データとして出力する。例えば、Dデータが0であればDデータを、Dデータが1であればDデータを出力する。 The selector 520f by D 8 data of the control signal generated by the control signal generating unit 520d, and select one of the D 1 data and the D 5 data, and outputs it as D 10 data. For example, the D 1 data if D 8 data 0, D 8 data outputs the D 5 data if 1.

多入出力セレクタ520gは、ユーザー設定信号(指定出力色設定信号)s3が指示する指定出力色(RGBCMYのいずれか)により、Dデータおよび2つのD10データの切り替えを行う。ユーザーの指定出力色がRの場合、Dデータ、D10データ、D10データはそれぞれRデータ、Gデータ、Bデータとして出力される。また、ユーザーの指定出力色がGの場合、Dデータ、D10データ、D10データはそれぞれGデータ、Rデータ、Bデータとして出力される。そして、ユーザーの指定出力色がBの場合、Dデータ、D10データ、D10データはそれぞれBデータ、Rデータ、Gデータとして出力される。そして、ユーザーの指定出力色がCの場合はRを指定出力色としたときと同じ処理、ユーザーの指定出力色がMの場合はGを指定出力色としたときと同じ処理、ユーザーの指定出力色がYの場合はBを指定出力色としたときと同じ処理がなされる(表4参照)。これは図14の出力切替処理に相当する。 Multi-input multi-output selector 520g is the user setting signal (designated output color setting signal) s3 is designated to direct output color (either RGBCMY), for switching the D 9 data and two D 10 data. When the user's designated output color is R, D 9 data, D 10 data, and D 10 data are output as R 2 data, G 2 data, and B 2 data, respectively. Also, if the user-specified output color is G, D 9 data, D 10 data, D 10 data each G 2 data, R 2 data is output as B 2 data. When the user's designated output color is B, D 9 data, D 10 data, and D 10 data are output as B 2 data, R 2 data, and G 2 data, respectively. When the user's designated output color is C, the same processing as when R is designated as the designated output color. When the user's designated output color is M, the same processing as when G is designated as the designated output color. When the color is Y, the same processing is performed as when B is the designated output color (see Table 4). This corresponds to the output switching process of FIG.

Figure 0004368833
Figure 0004368833

最終的に、ユーザーの指定入力色とKとWとで囲まれる三角平面は、ユーザーの指定出力色とKとWとで囲まれる三角平面に写像されることになる。このように構成することにより、RGBCMYにおけるユーザーの指定入力色と指定出力色との全組み合わせを実現することが可能になる。   Eventually, the triangular plane surrounded by the user's designated input color and K and W is mapped to the triangular plane surrounded by the user's designated output color and K and W. With this configuration, all combinations of the user's designated input color and designated output color in RGBCMY can be realized.

ここで、具体的に数値を用いた例を示す。ユーザーの指定入力色とユーザー指定出力色とで選択できるのはRGBCMYのいずれかであり、その全組み合わせは36通りある。RGBCMYはそれぞれ1次色か2次色かに分けることができるので、36通りの組み合わせは大きく分けると以下の1)から4)の組み合わせに振り分けることが可能である。そして、1)から4)のそれぞれの場合において、具体的な例を上げて、まとめたものを表5に示す。
1)指定入力色は2次色で、指定出力も2次色である場合。
2)指定入力色は1次色で、指定出力も1次色である場合。
3)指定入力色は2次色で、指定出力は1次色である場合。
4)指定入力色は1次色で、指定出力は2次色である場合。
Here, an example using numerical values is shown. The user-specified input color and user-specified output color can be selected from RGBCMY, and there are 36 combinations. Since RGBCMY can be classified into primary colors or secondary colors, the 36 combinations can be divided into the following combinations 1) to 4). And in each case of 1) to 4), Table 5 shows a summary of specific examples.
1) The designated input color is a secondary color and the designated output is also a secondary color.
2) The designated input color is the primary color and the designated output is also the primary color.
3) The designated input color is a secondary color and the designated output is a primary color.
4) The designated input color is a primary color and the designated output is a secondary color.

Figure 0004368833
Figure 0004368833

1)について具体的に説明する。指定入力色がR(2次色)で、指定出力色もR(2次色)の場合で、入力画像データRGBを(255,0,0)とする。すなわち、(R,G,B)=(255,0,0)である。この場合、Dデータは255、Dデータ、Dデータはそれぞれ0となり、Dデータ、Dデータは平均化処理され、Dデータは0になる。次に、DデータとDデータとを比較器520cで処理し、D<Dの場合はDデータを0とし、それ以外は1を出力するようにすると、この場合、Dデータは1になる。指定入力色と指定出力色とが共に2次色なので、Dデータは0になり、DデータにはDデータが、すなわちRである255が選択される。そして、DデータにはDデータが選択され、Dデータが1であることから、D10データにはDデータ(=0)が選択される。今、指定出力色がRであるので、出力RGBデータ(R,G,B)として(255,0,0)が出力される。これはR成分が他の成分より大きく、KWR三角平面内に存在しているので、入力そのものが出力されたことを意味している。 1) will be described in detail. When the designated input color is R (secondary color) and the designated output color is R (secondary color), the input image data RGB is (255, 0, 0). That is, (R 1 , G 1 , B 1 ) = (255, 0, 0). In this case, D 1 data is 255, D 2 data, and D 3 data are each 0, D 2 data and D 3 data are averaged, and D 5 data is 0. Then treated with a comparator 520c and D 1 data and the D 5 data, the case of D 1 <D 5 and 0 to D 6 data, but otherwise outputs a 1, this case, D 6 The data becomes 1. Since the specified input color and the specified output color is both secondary color, D 7 data becomes 0, the D 9 data D 1 data, i.e. 255 is R is selected. Then, the D 8 data D 6 data is selected, since D 6 data is 1, the D 10 data D 5 data (= 0) is selected. Since the designated output color is now R, (255, 0, 0) is output as the output RGB data (R 2 , G 2 , B 2 ). This means that the input itself is output because the R component is larger than the other components and exists in the KWR triangular plane.

次に別の例を説明する。指定入力色がB(2次色)で、指定出力色がM(1次色)の場合で、入力画像データRGBを(255,255,0)とする。すなわち、(R,G,B)=(255,255,0)である。この場合、Dデータは0、Dデータ、Dデータはそれぞれ255となり、Dデータ、Dデータは平均されD=255になる。次に、DデータとDデータとの大小関係から、Dデータは0になる(D<Dの場合はDデータを0とし、それ以外は1としている)。指定入力色が2次色で、指定出力色が1次色であるため、DデータにはDデータが選択され、Dデータは0になる。DデータとDデータとは共に0であるため、DデータもD10データもDデータとなり、出力RGB信号(R,G,B)は(0,0,0)になる。これはB成分がないので、すべて無彩色に写像されたことを意味している。 Next, another example will be described. When the designated input color is B (secondary color) and the designated output color is M (primary color), the input image data RGB is (255, 255, 0). That is, (R 1 , G 1 , B 1 ) = (255, 255, 0). In this case, the D 1 data is 0, the D 2 data, and the D 3 data are 255, respectively, and the D 2 data and the D 3 data are averaged to be D 5 = 255. Next, because of the magnitude relationship between the D 1 data and the D 5 data, the D 6 data becomes 0 (when D 1 <D 5 , the D 6 data is set to 0, and the other is set to 1). In specifying the input color is a secondary color, because the specified output color is the primary color, D 6 data is selected to D 7 data, D 8 data becomes 0. Since the D 6 data and the D 8 data are both 0, D 9 data also D 10 data also becomes D 1 data, output RGB signals (R 2, G 2, B 2) to (0,0,0) Become. This means that all are mapped to an achromatic color because there is no B component.

以上、色補正部35のデータ変換部52の構成および動作についての実施例を説明した。   The embodiment of the configuration and operation of the data conversion unit 52 of the color correction unit 35 has been described above.

次に二色刷りモードの選択方法について説明する。
1)まず、二色刷りモードの選択方法について説明する。
Next, a method for selecting the two-color printing mode will be described.
1) First, a method for selecting the two-color printing mode will be described.

1−A)二色刷りモードを自動で選択する例(例えば特許文献2参照)
二色刷りモードを選択し、更に、ユーザーの手を煩わせることなく、自動で選択する場合において説明する。ユーザーは予め、二色刷りモードを選択し、自動判定なるものを選択する(画像形成装置の操作パネルより入力する)。この場合、ACS(Auto Color Select:自動色判定)判定部は、図7の入力階調補正部33に備えられているものとする。ACS判定部では、予め原稿におけるRGBCMYの各色成分の割合を算出し、最も多い色成分を判定する。原稿において、最も多い色成分を主要な色(RGBCMYのいずれか)とし、抽出したい色と指定し、その色を印刷するようにする。そして、最も多い色成分以外の成分は、モノクロで印刷することで、二色刷りが実現できる。これによりユーザーがどの色をどの色で印刷したいか指定するのが省けることになる。
1-A) Example of automatically selecting the two-color printing mode (see, for example, Patent Document 2)
An explanation will be given of the case where the two-color printing mode is selected and the automatic selection is made without bothering the user. The user selects a two-color printing mode in advance and selects an automatic determination (input from the operation panel of the image forming apparatus). In this case, it is assumed that an ACS (Auto Color Select) determination unit is provided in the input tone correction unit 33 of FIG. The ACS determination unit calculates the ratio of each RGBCMY color component in the document in advance and determines the most color components. In the document, the most common color component is set as the main color (any of RGBCMY), the color to be extracted is designated, and the color is printed. The two-color printing can be realized by printing the components other than the most color components in monochrome. This saves the user from specifying which color he wants to print in which color.

実施例1の場合では、R成分だけをACS判定部で算出し、R成分がある閾値(ユーザーが任意に決定するものでも、予めレジスタで設定されているものでもよい)より多い場合(例えば、原稿全体に対して、7割以上がR成分である場合)、R−Kとして二色刷りを行う。   In the case of the first embodiment, only the R component is calculated by the ACS determination unit, and the R component is larger than a certain threshold value (which may be arbitrarily determined by the user or set in a register in advance) (for example, When 70% or more of the entire original is an R component), two-color printing is performed as RK.

上記説明では、入力階調補正部33にACS判定部を設ける例を示したが、入力階調補正部33の前段に、入力画像データから複数の特徴量を抽出し、入力された原稿が文字原稿、文字/印刷写真原稿、文字/印画紙写真原稿あるいは印刷写真原稿等の何れであるかを判定する原稿種別自動判別部を設け、これらの機能の1つとして、二色を自動的に判定する機能を備えるようにしても良い。   In the above description, an example in which the ACS determination unit is provided in the input tone correction unit 33 is shown. However, a plurality of feature amounts are extracted from the input image data before the input tone correction unit 33, and the input document is a character. An automatic document type discriminating section is provided for determining whether a document, text / print photo document, text / print paper photo document, or print photo document, etc., and one of these functions automatically determines two colors. You may make it provide the function to perform.

1−B)マニュアルで選択する例:モードおよび色の選択方法(実施例2のみ該当)
図7における操作パネル5において、ユーザーは複数の印刷モード(文字モード、文字印刷写真モード、印画紙写真モードなど)の中から二色刷りモードを選択する。図11は二色刷りモード時の操作パネル5での簡単な表示例である。ユーザーは図11を表示する操作パネル5に対して、原稿から抽出したい色(RGBCMYのいずれか)を指定入力色の欄から選択する(例えば、操作パネルをタッチパネルで構成しておく。)。これが指定入力色となる。上記と同様にして、ユーザーは指定した色を印刷する際にどの色(RGBCMYのいずれか)で印刷したいか指定出力色の欄から選択する。これらを指定することで、例えば、R成分をRで印刷することは勿論、R成分をGで印刷したり、C成分をRで印刷したりすることができ、指定入力色以外の成分は、モノクロで印刷することから、二色刷りが実現できる。操作パネル5で設定された内容は設定信号として図7の色補正部35に入力される。色補正部35では設定信号に基づいて、実施例2の内容の処理を行う。
2)次に、プリンタドライバの例について説明する。
1-B) Manual selection example: Mode and color selection method (only applicable in Example 2)
On the operation panel 5 in FIG. 7, the user selects a two-color printing mode from among a plurality of printing modes (character mode, character printing photo mode, photographic paper photo mode, etc.). FIG. 11 is a simple display example on the operation panel 5 in the two-color printing mode. The user selects a color (any one of RGBCMY) to be extracted from the manuscript from the designated input color column on the operation panel 5 displaying FIG. 11 (for example, the operation panel is configured with a touch panel). This is the designated input color. Similarly to the above, when printing the designated color, the user selects which color (any of RGBCMY) to print from the designated output color column. By designating these, for example, the R component can be printed with R, the R component can be printed with G, and the C component can be printed with R. Since it prints in monochrome, two-color printing can be realized. The content set on the operation panel 5 is input to the color correction unit 35 in FIG. 7 as a setting signal. The color correction unit 35 performs processing of the contents of the second embodiment based on the setting signal.
2) Next, an example of a printer driver will be described.

コンピュータで作成した文書や編集した画像データをプリンタで出力する場合は、プリンタドライバの設定画面で入力色や出力色の指定や、自動で二色を選択するのか否かを設定することができる。例えば、ディスプレイに図11と同様の設定画面を表示し、マウスを用いて、原稿から抽出したい色を指定入力色の欄から、印刷したい色を指定出力色の欄からそれぞれ選択すれば良い。これらを指定することで、例えば、R成分をRで印刷することは勿論、R成分をGで印刷したり、C成分をRで印刷したりすることができ、指定入力色以外の成分は、モノクロで印刷することから、二色刷りが実現できる。プリンタドライバの設定画面で設定された内容は設定信号として色補正部(図8参照)に入力される。   When a document created on a computer or edited image data is output by a printer, it is possible to specify input colors and output colors on the setting screen of the printer driver, and set whether or not two colors are automatically selected. For example, a setting screen similar to that shown in FIG. 11 may be displayed on the display, and the mouse may be used to select a color to be extracted from the original from the designated input color column and a color to be printed from the designated output color column. By designating these, for example, the R component can be printed with R, the R component can be printed with G, and the C component can be printed with R. Since it prints in monochrome, two-color printing can be realized. The contents set on the setting screen of the printer driver are input to the color correction unit (see FIG. 8) as a setting signal.

図8にコンピュータ70の構成例を示す。コンピュータ70は、プリンタドライバ71、通信ポートドライバ72、および、通信ポート73を備えている。さらに、プリンタドライバ71は、色補正部71a、階調再現処理部71b、および、プリンタ言語翻訳部71cを備えている。コンピュータ70において各種のアプリケーションプログラムを実行することにより生成された画像データは、プリンタドライバ71に供給され、色補正部71aで色補正処理が行われ、次いで階調再現処理部71bで中間調生成処理がなされる。尚、色補正部71aの色補正処理には黒生成/下色除去処理も含まれる。   FIG. 8 shows a configuration example of the computer 70. The computer 70 includes a printer driver 71, a communication port driver 72, and a communication port 73. Further, the printer driver 71 includes a color correction unit 71a, a gradation reproduction processing unit 71b, and a printer language translation unit 71c. Image data generated by executing various application programs in the computer 70 is supplied to the printer driver 71, color correction processing is performed by the color correction unit 71a, and then halftone generation processing is performed by the tone reproduction processing unit 71b. Is made. The color correction processing of the color correction unit 71a includes black generation / under color removal processing.

上記処理がなされた画像データは、プリンタ言語翻訳部71cでプリンタ言語に変換され、通信ポートドライバ72・通信ポート(RS232C・LAN等)73を順に介してプリンタ(画像出力装置)74に入力される。プリンタ74は、プリンタ機能の他にコピー機能およびファックス機能を有するデジタル複合機であっても良い。   The image data subjected to the above processing is converted into a printer language by the printer language translation unit 71c, and is input to the printer (image output device) 74 through the communication port driver 72 and the communication port (RS232C, LAN, etc.) 73 in order. . The printer 74 may be a digital complex machine having a copy function and a fax function in addition to the printer function.

これらが選択された後、実施例1または実施例2のような二色刷り処理が行われる。   After these are selected, the two-color printing process as in Example 1 or Example 2 is performed.

以上のように、本発明によれば、ハードウェア規模が小さいながら、良好な二色刷り画質を提供することができるようになる。   As described above, according to the present invention, it is possible to provide a good two-color image quality with a small hardware scale.

データ変換部52では、3次元LUTの全データを無彩色軸と主要色(RGBCMYのいずれか1つ)いずれか1つの頂点とを結んだ三角形に写像することで二色化を行う。更に、ユーザーの指定入力色(RGBCMYのいずれか)を抽出し、全データを指定した入力色と無彩色軸とで囲まれた三角平面に写像し、ユーザーの指定出力色(RGBCMYのいずれか1つ)から、指定した出力色と無彩色軸に囲まれた三角平面に写像することにより、二色化をすることが可能である。   The data converter 52 performs dichroism by mapping all data of the three-dimensional LUT into a triangle connecting the achromatic color axis and any one of the main colors (any one of RGBCMY). Furthermore, the user's designated input color (any of RGBCMY) is extracted, and all the data is mapped onto a triangular plane surrounded by the designated input color and the achromatic color axis, and the user's designated output color (any one of RGBCMY) 2), it can be converted into two colors by mapping to a triangular plane surrounded by the designated output color and the achromatic axis.

また、入力画像データRGBに対して従来技術のように座標変換を行う必要がなく、加算器、シフト器(べき乗の乗算)で構成された平均化処理部と、比較器と、セレクタとだけで構成されたデータ変換部を用いることで、従来技術の座標変換回路よりもハードウェア規模が小さくなる。   Further, there is no need to perform coordinate transformation on the input image data RGB as in the prior art, and only an averaging processing unit composed of an adder and a shifter (power multiplication), a comparator, and a selector. By using the configured data conversion unit, the hardware scale becomes smaller than that of the conventional coordinate conversion circuit.

また、データ変換部52で処理されたRGBデータに対して、フルカラーモードにおける色補正テーブルもしくは係数パラメータ(マスキング係数やニューラルネットワークにおける重み係数)を共用することができる(二色刷り専用の色補正テーブルや係数パラメータが必要ない)ため、メモリの削減につながる。また、このようにフルカラーモードと同じ色補正テーブルもしくは係数パラメータを用いることで、視覚的に良好な画質を実現することが可能になる。   In addition, a color correction table or coefficient parameter (masking coefficient or weighting coefficient in a neural network) in the full color mode can be shared for the RGB data processed by the data converter 52 (a color correction table dedicated to two-color printing, (No coefficient parameter is required), leading to a reduction in memory. In addition, by using the same color correction table or coefficient parameter as in the full color mode as described above, it is possible to realize visually good image quality.

最後に、カラー画像処理装置3の各ブロック、特に色補正部35は、ハードウェアロジックによって構成してもよいし、次のようにCPUを用いてソフトウェアによって実現してもよい。   Finally, each block of the color image processing apparatus 3, in particular, the color correction unit 35 may be configured by hardware logic, or may be realized by software using a CPU as follows.

すなわち、カラー画像処理装置3は、各機能を実現する制御プログラムの命令を実行するCPU(central processing unit)、上記プログラムを格納したROM(read only memory)、上記プログラムを展開するRAM(random access memory)、上記プログラムおよび各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の目的は、上述した機能を実現するソフトウェアであるカラー画像処理装置3の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記カラー画像処理装置3に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。   That is, the color image processing apparatus 3 includes a CPU (central processing unit) that executes instructions of a control program that realizes each function, a ROM (read only memory) that stores the program, and a RAM (random access memory) that expands the program. ), A storage device (recording medium) such as a memory for storing the program and various data. An object of the present invention is a recording medium on which a program code (execution format program, intermediate code program, source program) of a control program of the color image processing apparatus 3 which is software for realizing the above-described functions is recorded so as to be readable by a computer. Can also be achieved by reading the program code recorded on the recording medium and executing it by the computer (or CPU or MPU).

上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ系、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD/CD−R等の光ディスクを含むディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM/EPROM/EEPROM/フラッシュROM等の半導体メモリ系などを用いることができる。   Examples of the recording medium include a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a floppy (registered trademark) disk / hard disk, and an optical disk such as a CD-ROM / MO / MD / DVD / CD-R. Card system such as IC card, IC card (including memory card) / optical card, or semiconductor memory system such as mask ROM / EPROM / EEPROM / flash ROM.

上記記録媒体は、デジタルカラー画像形成装置やコンピュータシステムに備えられるプログラム読み取り装置により読み取られることで上述した画像処理方法が実行される。
コンピュータシステムは、フラットベッドスキャナ・フィルムスキャナ・デジタルカメラなどの画像入力装置、所定のプログラムがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ・液晶ディスプレイなどの画像表示装置およびコンピュータの処理結果を紙などに出力するプリンタより構成される。
The recording medium is read by a program reading device provided in a digital color image forming apparatus or a computer system, whereby the above-described image processing method is executed.
The computer system includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs various processes such as the above image processing method by loading a predetermined program, and a CRT display that displays the processing results of the computer. An image display device such as a liquid crystal display and a printer that outputs the processing results of the computer to paper or the like.

また、カラー画像処理装置3を、ネットワークを介してサーバーなどに接続するための通信手段としてのネットワークカードやモデムなどを備えることにより通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークとしては、特に限定されず、例えば、インターネット、イントラネット、エキストラネット、LAN、ISDN、VAN、CATV通信網、仮想専用網(virtual private network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、通信ネットワークを構成する伝送媒体としては、特に限定されず、例えば、IEEE1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL回線等の有線でも、IrDAやリモコンのような赤外線、Bluetooth(登録商標)、802.11無線、HDR、携帯電話網、衛星回線、地上波デジタル網等の無線でも利用可能である。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   Further, the color image processing apparatus 3 is configured to be connectable to a communication network by including a network card, a modem, or the like as a communication means for connecting to a server or the like via a network, and the program code is transmitted via the communication network. May be supplied. The communication network is not particularly limited. For example, the Internet, intranet, extranet, LAN, ISDN, VAN, CATV communication network, virtual private network, telephone line network, mobile communication network, satellite communication. A net or the like is available. Further, the transmission medium constituting the communication network is not particularly limited. For example, even in the case of wired such as IEEE 1394, USB, power line carrier, cable TV line, telephone line, ADSL line, etc., infrared rays such as IrDA and remote control, Bluetooth ( (Registered trademark), 802.11 wireless, HDR, mobile phone network, satellite line, terrestrial digital network, and the like can also be used. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

本発明は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope shown in the claims. That is, embodiments obtained by combining technical means appropriately modified within the scope of the claims are also included in the technical scope of the present invention.

本発明はデジタルカラー複写機に好適に使用することができる。   The present invention can be suitably used for a digital color copying machine.

本発明の実施形態における第1の実施例を示すものであり、画像処理装置が行う画像処理方法の流れを示すフローチャートである。FIG. 3 is a flowchart illustrating a first example in the embodiment of the present invention and illustrating a flow of an image processing method performed by the image processing apparatus. 本発明の実施形態を示すものであり、画像処理装置の色補正部の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a color correction unit of an image processing apparatus according to an embodiment of the present invention. (a)ないし(c)は、図1の画像処理方法を色空間を用いて示す図である。(A) thru | or (c) is a figure which shows the image processing method of FIG. 1 using color space. 図1の画像処理方法の一例を色空間を用いて示す図である。It is a figure which shows an example of the image processing method of FIG. 1 using color space. 図1の画像処理方法の他の例を色空間を用いて示す図である。It is a figure which shows the other example of the image processing method of FIG. 1 using color space. (a)ないし(c)は、図1の画像処理方法が可能であることを色空間を用いて示す図である。(A) thru | or (c) is a figure which shows that the image processing method of FIG. 1 is possible using color space. 本発明の実施形態を示すものであり、画像処理装置と、該画像処理装置を備えた画像形成装置の構成を示すブロック図である1 is a block diagram illustrating an image processing apparatus and an image forming apparatus including the image processing apparatus according to an embodiment of the present invention. 本発明の画像処理装置および画像処理方法をコンピュータで実現するための構成を示すブロック図である。It is a block diagram which shows the structure for implement | achieving the image processing apparatus and image processing method of this invention with a computer. 本発明の実施形態における第2の実施例を示すものであり、図2の色補正部が備えるデータ変換部の構成を示すブロック図である。FIG. 5 is a block diagram illustrating a configuration of a data conversion unit included in the color correction unit of FIG. 2, illustrating a second example of the embodiment of the present invention. 図9のデータ変換部が備える制御信号生成部の構成を示すブロック図である。It is a block diagram which shows the structure of the control signal generation part with which the data conversion part of FIG. 9 is provided. 本発明の実施形態を示すものであり、二色刷りモード時の操作パネルでの表示例を示す図である。FIG. 4 is a diagram illustrating an example of display on an operation panel in a two-color printing mode according to an embodiment of the present invention. 本発明の実施形態における第1の実施例を示すものであり、図2の色補正部が備えるデータ変換部の構成を示すブロック図である。FIG. 3 is a block diagram illustrating a first example of the embodiment of the present invention and illustrating a configuration of a data conversion unit included in the color correction unit of FIG. 2. 本発明の実施形態における第2の実施例を示すものであり、画像処理装置が行う画像処理方法の流れを示すフローチャートの一部である。7 illustrates a second example of the embodiment of the present invention and is a part of a flowchart illustrating a flow of an image processing method performed by the image processing apparatus. 図13のフローチャートの残り部分を示す図である。It is a figure which shows the remaining part of the flowchart of FIG.

符号の説明Explanation of symbols

1 画像形成装置
3 カラー画像処理装置(画像処理装置)
52 データ変換部(データ変換手段)
53 色変換演算部(色変換演算手段)
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 3 Color image processing apparatus (image processing apparatus)
52 Data converter (data converter)
53 color conversion calculation unit (color conversion calculation means)

Claims (11)

色空間が第1色、第2色および第3色からなる3つの色成分を用いた3次元デカルト座標で表される第1の表色系のカラー画像データを、複数の色成分よりなる第2の表色系のカラー画像データに変換する画像処理装置において、
上記第1の表色系のカラー画像データを、上記色空間において、無彩色軸と上記無彩色軸上以外にある上記色空間の上記第1色の頂点とを結んでできる三角平面上に写像することにより、無彩色と上記第1色の頂点に関連付けられた色とからなる二色の画像データに変換するデータ変換手段と、
上記二色の画像データを、上記第2の表色系のカラー画像データに変換する色変換演算手段とを備えており、
上記データ変換手段は、
上記第1色の出力値として、上記第1色の階調データをそのまま出力し、
上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データより大きい場合には、上記第2色および上記第3色のそれぞれの出力値として第1色の階調データを出力し、上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データ以下である場合には、上記第2色および上記第3色のそれぞれの出力値として上記平均値を出力することにより、上記第1の表色系のカラー画像データを上記三角平面上に写像することを特徴とする画像処理装置。
The color image data of the first color system represented by three-dimensional Cartesian coordinates using three color components of which the color space is composed of the first color, the second color and the third color is the first color image data composed of a plurality of color components. In an image processing apparatus for converting to color image data of 2 color system,
Mapping the color image data of the first color system on a triangular plane formed by connecting the achromatic color axis and the vertex of the first color of the color space other than the achromatic color axis in the color space. A data conversion means for converting into a two-color image data composed of an achromatic color and a color associated with the vertex of the first color ;
Color conversion calculation means for converting the two-color image data into color image data of the second color system ,
The data conversion means is
As the output value of the first color, the gradation data of the first color is output as it is,
When the average value of the second color gradation data and the third color gradation data is larger than the first color gradation data, the output values of the second color and the third color, respectively. If the average value of the second color gradation data and the third color gradation data is less than or equal to the first color gradation data, the first color gradation data is output as An image processing apparatus for mapping the color image data of the first color system on the triangular plane by outputting the average value as an output value of each of the second color and the third color .
上記データ変換手段は、
上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択することを特徴とする請求項1に記載の画像処理装置。
The data conversion means is
One of all six colors consisting of primary colors and secondary colors predetermined for the first color system is designated for the color image data of the first color system. 2. The image processing apparatus according to claim 1, wherein a vertex of the first color is selected from each vertex of the color space based on a designated input color setting signal.
上記データ変換手段は、
上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴とする請求項1に記載の画像処理装置。
The data conversion means is
One of all six colors consisting of primary colors and secondary colors predetermined for the second color system is designated for the color image data of the second color system. The image processing apparatus according to claim 1, wherein a color associated with a vertex of the first color is determined based on a designated output color setting signal.
上記データ変換手段は、
上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択し、
上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴とする請求項1に記載の画像処理装置。
The data conversion means is
One of all six colors consisting of primary colors and secondary colors predetermined for the first color system is designated for the color image data of the first color system. Based on the designated input color setting signal, the vertex of the first color is selected from the vertices of the color space,
One of all six colors consisting of primary colors and secondary colors predetermined for the second color system is designated for the color image data of the second color system. The image processing apparatus according to claim 1, wherein a color associated with a vertex of the first color is determined based on a designated output color setting signal.
請求項1ないし4のいずれか1項に記載の画像処理装置を備え、入力された画像の画像データに対して上記画像処理装置で画像処理を行って、画像として形成することを特徴とする画像形成装置。   An image comprising the image processing device according to claim 1, wherein the image processing device performs image processing on image data of an input image to form an image. Forming equipment. 色空間が第1色、第2色および第3色からなる3つの色成分を用いた3次元デカルト座標で表される第1の表色系のカラー画像データを、複数の色成分よりなる第2の表色系のカラー画像データに変換する画像処理方法において、
上記第1の表色系のカラー画像データを、上記色空間において、無彩色軸と上記無彩色軸上以外にある上記色空間の上記第1色の頂点とを結んでできる三角平面上に写像することにより、無彩色と上記第1色の頂点に関連付けられた色とからなる二色の画像データに変換するデータ変換ステップと、
上記二色の画像データを、上記第2の表色系のカラー画像データに変換する色変換演算ステップとを行い、
上記データ変換ステップにおいて、
上記第1色の出力値として、上記第1色の階調データをそのまま出力し、
上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データより大きい場合には、上記第2色および上記第3色のそれぞれの出力値として第1色の階調データを出力し、上記第2色の階調データと上記第3色の階調データとの平均値が上記第1色の階調データ以下である場合には、上記第2色および上記第3色のそれぞれの出力値として上記平均値を出力することにより、上記第1の表色系のカラー画像データを上記三角平面上に写像することを特徴とする画像処理方法。
The color image data of the first color system represented by three-dimensional Cartesian coordinates using three color components of which the color space is composed of the first color, the second color, and the third color is the first color image data composed of a plurality of color components. In the image processing method for converting into color image data of 2 color system,
Mapping the color image data of the first color system on a triangular plane formed by connecting the achromatic color axis and the vertex of the first color of the color space other than the achromatic color axis in the color space. A data conversion step of converting into a two-color image data composed of an achromatic color and a color associated with the vertex of the first color ;
Performing a color conversion operation step of converting the two-color image data into color image data of the second color system;
In the data conversion step,
As the output value of the first color, the gradation data of the first color is output as it is,
When the average value of the second color gradation data and the third color gradation data is larger than the first color gradation data, the output values of the second color and the third color, respectively. If the average value of the second color gradation data and the third color gradation data is less than or equal to the first color gradation data, the first color gradation data is output as An image processing method characterized by mapping the color image data of the first color system on the triangular plane by outputting the average value as an output value of each of the second color and the third color .
上記データ変換ステップにおいて、
上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択することを特徴とする請求項6に記載の画像処理方法。
In the data conversion step,
One of all six colors consisting of primary colors and secondary colors predetermined for the first color system is designated for the color image data of the first color system. 7. The image processing method according to claim 6, wherein a vertex of the first color is selected from each vertex of the color space based on a designated input color setting signal.
上記データ変換ステップにおいて、
上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴とする請求項6に記載の画像処理方法。
In the data conversion step,
One of all six colors consisting of primary colors and secondary colors predetermined for the second color system is designated for the color image data of the second color system. The image processing method according to claim 6, wherein a color associated with the vertex of the first color is determined based on a designated output color setting signal.
上記データ変換ステップにおいて、
上記第1の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第1の表色系のカラー画像データに対して指定する指定入力色設定信号に基づいて、上記色空間の各頂点の中から上記第1色の頂点を選択し、
上記第2の表色系に対して予め定められた1次色および2次色からなる、全六色のうちのいずれか一色を上記第2の表色系のカラー画像データに対して指定する指定出力色設定信号に基づいて、上記第1色の頂点に関連付けられた色を決定することを特徴とする請求項6に記載の画像処理方法。
In the data conversion step,
One of all six colors consisting of primary colors and secondary colors predetermined for the first color system is designated for the color image data of the first color system. Based on the designated input color setting signal, the vertex of the first color is selected from the vertices of the color space,
One of all six colors consisting of primary colors and secondary colors predetermined for the second color system is designated for the color image data of the second color system. The image processing method according to claim 6, wherein a color associated with the vertex of the first color is determined based on a designated output color setting signal.
請求項1ないし4のいずれか1項に記載の画像処理装置を動作させるプログラムであって、コンピュータを上記の各手段として機能させるためのプログラム。   A program for operating the image processing apparatus according to any one of claims 1 to 4, wherein the program causes a computer to function as each means described above. 請求項10に記載のプログラムを記録したコンピュータ読取り可能な記録媒体。   The computer-readable recording medium which recorded the program of Claim 10.
JP2005209151A 2005-07-19 2005-07-19 Image processing apparatus, image processing method, image forming apparatus, program, and recording medium Active JP4368833B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005209151A JP4368833B2 (en) 2005-07-19 2005-07-19 Image processing apparatus, image processing method, image forming apparatus, program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005209151A JP4368833B2 (en) 2005-07-19 2005-07-19 Image processing apparatus, image processing method, image forming apparatus, program, and recording medium

Publications (2)

Publication Number Publication Date
JP2007028336A JP2007028336A (en) 2007-02-01
JP4368833B2 true JP4368833B2 (en) 2009-11-18

Family

ID=37788482

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005209151A Active JP4368833B2 (en) 2005-07-19 2005-07-19 Image processing apparatus, image processing method, image forming apparatus, program, and recording medium

Country Status (1)

Country Link
JP (1) JP4368833B2 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4708460B2 (en) 2008-08-27 2011-06-22 シャープ株式会社 Display control apparatus, image forming apparatus, display device control method, control program, and recording medium
JP4763026B2 (en) 2008-08-27 2011-08-31 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP4610644B2 (en) 2008-08-27 2011-01-12 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP4763027B2 (en) 2008-08-27 2011-08-31 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP4865771B2 (en) 2008-08-27 2012-02-01 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP2010183456A (en) 2009-02-06 2010-08-19 Sharp Corp Image processor, image reading processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4764938B2 (en) 2009-04-07 2011-09-07 シャープ株式会社 Image processing apparatus, image forming apparatus, image processing apparatus control method, program, and recording medium
CN102529405B (en) * 2010-12-24 2014-07-23 北大方正集团有限公司 Double-color double-sided printing method and device
JP5736894B2 (en) * 2011-03-28 2015-06-17 富士ゼロックス株式会社 Two-color image signal generation device, image forming system, and two-color image signal generation program
JP6315284B2 (en) * 2015-04-28 2018-04-25 京セラドキュメントソリューションズ株式会社 Image forming apparatus
JP7085129B2 (en) * 2018-06-25 2022-06-16 京セラドキュメントソリューションズ株式会社 Color conversion processing device, color conversion processing method and image forming device

Also Published As

Publication number Publication date
JP2007028336A (en) 2007-02-01

Similar Documents

Publication Publication Date Title
JP4368833B2 (en) Image processing apparatus, image processing method, image forming apparatus, program, and recording medium
US8259357B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
US7940434B2 (en) Image processing apparatus, image forming apparatus, method of image processing, and a computer-readable storage medium storing an image processing program
JP4139834B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and computer-readable recording medium recording image processing program
JP3989738B2 (en) Image forming method, image forming apparatus, program, and recording medium
JP4700721B2 (en) Image processing device
JP4865771B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP4568748B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
EP1708481B1 (en) Two-dimensional gray component replacement
JP5095667B2 (en) Output instruction apparatus, image forming system, output instruction method, control program, and recording medium therefor
JP2010258799A (en) Image processing apparatus and image forming apparatus equipped with the same, image processing method, control program, and recording medium
JP4226278B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium recording the same
US7072072B1 (en) Color rendering optimized for text and line art
JP2906974B2 (en) Color image processing method and apparatus
JP2005057598A (en) Color image forming device and color image processor
JP2006011754A (en) Image processing device and image processing method
JP4101741B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5122507B2 (en) Image processing apparatus, image forming apparatus, image processing method, program, and recording medium
JPH11177825A (en) Image processor
JP2001352456A (en) Image-processing method and image-processing unit, and image-forming device provided with them
JP4176656B2 (en) Image processing apparatus, image processing method, image forming apparatus, image processing program, and recording medium recording the program
JP4499685B2 (en) Image processing apparatus, image forming apparatus including the same, image processing method, image processing program, and recording medium
JP4085937B2 (en) Color image processing device
JP4118823B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2021180377A (en) Image processing device, control method of the same, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090312

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090616

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090730

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

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

R150 Certificate of patent or registration of utility model

Ref document number: 4368833

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130904

Year of fee payment: 4