Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4274043B2 - Image processing apparatus, image forming apparatus, image processing method, and program - Google Patents
[go: Go Back, main page]

JP4274043B2 - Image processing apparatus, image forming apparatus, image processing method, and program - Google Patents

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

Info

Publication number
JP4274043B2
JP4274043B2 JP2004142252A JP2004142252A JP4274043B2 JP 4274043 B2 JP4274043 B2 JP 4274043B2 JP 2004142252 A JP2004142252 A JP 2004142252A JP 2004142252 A JP2004142252 A JP 2004142252A JP 4274043 B2 JP4274043 B2 JP 4274043B2
Authority
JP
Japan
Prior art keywords
color
representative
distance
image
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.)
Expired - Fee Related
Application number
JP2004142252A
Other languages
Japanese (ja)
Other versions
JP2005328145A (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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2004142252A priority Critical patent/JP4274043B2/en
Publication of JP2005328145A publication Critical patent/JP2005328145A/en
Application granted granted Critical
Publication of JP4274043B2 publication Critical patent/JP4274043B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

本発明は、いわゆる限定色化処理に係り、特に、限定色化処理が施された画像データの画像品質を向上させるための技術に関する。   The present invention relates to so-called limited color processing, and more particularly to a technique for improving the image quality of image data subjected to limited color processing.

画像データのデータ量を低減させるために、いわゆる限定色化処理が行われる。ここで限定色化処理とは、多色(例えば約1677万色)で形成された画像データの各画素の色を、もとの画像データよりも少ない数(例えば256色)の色(以下、これを「代表色」と表記する)に置き換える処理のことである。
限定色化処理において用いられる手法としては、例えば徹底探索法(Exhaustive search method)がある。これは、各画素をすべての代表色と比較し、その色差、すなわちある色空間における注目画素と代表色との距離が最小となる代表色に変換するものである(例えば非特許文献1参照)。
In order to reduce the amount of image data, so-called limited color processing is performed. In this case, the limited colorization processing means that the color of each pixel of image data formed with multiple colors (for example, about 16.77 million colors) is smaller in number (for example, 256 colors) than the original image data (hereinafter referred to as “color”). This is replaced with “representative color”).
As a method used in the limited color processing, for example, there is an exhaustive search method. In this method, each pixel is compared with all the representative colors, and converted into a representative color having the smallest color difference, that is, the distance between the pixel of interest and the representative color in a certain color space (see, for example, Non-Patent Document 1). .

この限定色化処理をスキャナ等により読み取られた画像データに対して行うことで、画像データに混入する裏写り成分やノイズ成分を除去ないし低減することが可能となり、画像品質の劣化を抑えることができる。
図9は、限定色化処理による画像品質の劣化の抑制を説明するために示した、ある原稿の一部分と、この部分を読み取ることで得られた画像データの拡大図である。同図において、原稿は一様に白である。このとき、画像データの画素Pは白として記録されているが、画素PNはノイズが混入したために、例えば濃度10%のグレーとして記録されている。このような画像データに対して、例えば白(W)、シアン(C)、マゼンタ(M)、イエロー(Y)、黒(K)、レッド(R)、グリーン(G)、ブルー(B)の8色を代表色として用いた限定色化処理を施すと、画素PNはその色差が最小となる代表色、すなわち白に変換され、結果として原稿が本来有していた色を復元し、ノイズ成分を除去することが可能となっている。また、裏写り成分についても、限定色化処理によって同様に除去することができる。
By performing this limited color processing on the image data read by the scanner or the like, it is possible to remove or reduce the show-through component and noise component mixed in the image data, thereby suppressing deterioration in image quality. it can.
FIG. 9 is an enlarged view of a part of a document and image data obtained by reading this part, in order to explain suppression of image quality deterioration due to the limited color processing. In the figure, the original is uniformly white. At this time, the pixel P of the image data is recorded as white, but the pixel PN is recorded as gray having a density of 10%, for example, because noise is mixed therein. For such image data, for example, white (W), cyan (C), magenta (M), yellow (Y), black (K), red (R), green (G), and blue (B). When limited color processing using eight colors as representative colors is performed, the pixel PN is converted to a representative color that minimizes the color difference, that is, white, and as a result, the original color of the original is restored, and noise is restored. It is possible to remove components. Also, the show-through component can be similarly removed by the limited color processing.

画像品質の劣化防止を目的に限定色化処理を行う場合には、用いられる代表色はなるべく少ないことが望ましい。なぜならば、代表色を増やせば、上述したようなノイズを原稿が本来有していた色に復元しにくくなるからである。例えば、上述した図9の場合において、代表色に濃度15%のグレーが含まれていれば、濃度10%の画素PNは本来の白ではなく濃度15%のグレーに変換されてしまい、ノイズを除去するどころかむしろ強調させてしまう結果となる。
したがって、このような目的で限定色化処理を行う場合には、用いられる代表色は、原稿の色(用紙の色)と用いられている色材(トナー等)の色を含んだ数色〜十数色程度が好適であり、この代表色の最適な組合せは実験的ないし経験的に求めることができる(以下、このような複数の代表色のことを総称して「カラーテーブル」と呼ぶ)。
In the case of performing the limited color processing for the purpose of preventing the deterioration of the image quality, it is desirable that as few representative colors as possible be used. This is because increasing the representative colors makes it difficult to restore the above-described noise to the original color of the original. For example, in the case of FIG. 9 described above, if it contains gray density of 15% of the representative color, a concentration of 10% of the pixel P N is will be converted to gray levels of 15% rather than the original white noise Rather than removing it, the result is rather emphasized.
Therefore, when the limited color processing is performed for such a purpose, the representative colors used are several colors including the color of the original (paper color) and the color material (toner etc.) used. About ten or more colors are preferable, and the optimum combination of the representative colors can be obtained experimentally or empirically (hereinafter, such a plurality of representative colors are collectively referred to as a “color table”). .

しかし、カラーテーブルを構成する代表色の数が少なくなるにつれ、限定色化処理を施した画像データはグレーバランスが崩れやすくなるという問題が生じることが明らかとなった。その原因としては、例えば以下の2点が挙げられる。
第一には、ある色空間にカラーテーブルを構成する代表色を配置したとすると、代表色が少ない場合には無彩色の軸に対する対称性を維持することが困難となる点が挙げられる。一例としてRGB色空間で説明すると、無彩色の軸とはRGB色空間上でR=G=Bとなる座標点を結んだ直線で表されるが、上述のように代表色が著しく少ない場合には、代表色がこの直線に対して均等に配置される可能性は低くなる。その結果、このようなカラーテーブルを用いて限定色化処理が行われた画像データは、グレーバランスが崩れる可能性が高くなる。
However, as the number of representative colors constituting the color table decreases, it has become clear that there is a problem that the gray balance of the image data subjected to the limited color processing tends to be lost. As the cause, for example, there are the following two points.
First, if the representative colors constituting the color table are arranged in a certain color space, it is difficult to maintain symmetry with respect to the axis of the achromatic color when there are few representative colors. As an example, in the RGB color space, the axis of the achromatic color is represented by a straight line connecting coordinate points where R = G = B in the RGB color space. The possibility that the representative colors are evenly arranged with respect to this straight line is low. As a result, there is a high possibility that the image data subjected to the limited color processing using such a color table will lose the gray balance.

第二には、画像データにおける低彩度の画素、すなわちグレーに近い色相の画素については、上述の限定色化処理によって有彩色の代表色に変換されやすい点が挙げられる。
図10はこの問題を説明するために示した、ある色空間における3つの代表色の模式図である。同図において、CK,CW,及びCBrは、それぞれ黒、白、ブラウンの代表色を示しており、Pは限定色化処理を行うべき画素を示している。また、線分lは代表色CK,CWを結ぶ直線であり、この線分lは無彩色を示している。画素Pは線分lの近傍にあるから、この画素Pは人間の目に「わずかにブラウンがかったグレー」として知覚される色である。しかし、この画素Pに対して、上述のように単純に代表色との距離だけを基準とした限定色化処理を行うと、この画素Pはブラウンに変換されてしまうこととなり、人間の知覚とのずれを生む。加えて、このようにRGB色空間上で線分lの近傍にある画素、すなわち視覚的に無彩色に近い画素が有彩色に変換されることにより、グレーバランスが崩れることとなる。
Secondly, a low-saturation pixel in the image data, that is, a pixel having a hue close to gray, can be easily converted to a chromatic representative color by the above-described limited color processing.
FIG. 10 is a schematic diagram of three representative colors in a certain color space, which is shown to explain this problem. In the figure, C K , C W , and C Br indicate the representative colors of black, white, and brown, respectively, and P indicates a pixel to be subjected to the limited color processing. A line segment l is a straight line connecting the representative colors C K and C W , and the line segment l indicates an achromatic color. Since the pixel P is in the vicinity of the line segment l, the pixel P is a color that is perceived as “slightly brownish gray” by the human eye. However, if this pixel P is simply subjected to the limited colorization process based on only the distance from the representative color as described above, this pixel P will be converted to brown, Create a gap. In addition, since the pixels in the vicinity of the line segment l in the RGB color space, that is, the pixels that are visually close to the achromatic color are converted into chromatic colors, the gray balance is lost.

P.Heckbert, "Color Image Quantization for Frame Buffer Display", ComputerGraphics, vol.16, p.297-304, 1982P. Heckbert, "Color Image Quantization for Frame Buffer Display", ComputerGraphics, vol.16, p.297-304, 1982

本発明は上述の課題に鑑みてなされたものであり、その目的は、画像データに対して、良好なグレーバランスを保持しつつ限定色化処理を行うための技術を提供することにある。   The present invention has been made in view of the above-described problems, and an object of the present invention is to provide a technique for performing limited color processing on image data while maintaining a good gray balance.

上述の目的を達成するために、本発明は、画像を表す画像データを取得する画像取得手段と、複数の代表色を記憶する記憶手段と、前記画像取得手段によって取得された画像データに含まれる画素の色を、前記記憶手段によって記憶されている複数の代表色のそれぞれと比較し、その色差が最小となる第1の代表色を特定する代表色特定手段と、ある色空間において前記画像データに含まれる画素の色を示す座標点と、該色空間において複数の無彩色を連ねて表されたグレー軸との距離に基づいて第1の距離情報を算出する第1の距離算出手段と、前記色空間において前記画像データに含まれる画素の色を示す座標点と、前記代表色特定手段により特定された前記第1の代表色を示す座標点との距離に基づいて第2の距離情報を算出する第2の距離算出手段と、前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合に、前記画素の色を前記グレー軸上ないし前記第1の代表色よりも前記グレー軸に近接する第2の代表色に変換する色変換手段とを備える画像処理装置を提供する。
このような画像処理装置によれば、画像データに限定色化処理を施す際に、グレーに近い色相の画素が有彩色に変換されてしまうことを防ぐことができ、グレーバランスを良好に保持することが可能となる。
In order to achieve the above object, the present invention is included in image acquisition means for acquiring image data representing an image, storage means for storing a plurality of representative colors, and image data acquired by the image acquisition means. Representative color specifying means for comparing the color of a pixel with each of a plurality of representative colors stored in the storage means and specifying a first representative color having the smallest color difference; and the image data in a certain color space First distance calculation means for calculating first distance information based on a distance between a coordinate point indicating the color of the pixel included in the color axis and a gray axis represented by a plurality of achromatic colors in the color space; a coordinate point indicating the color of a pixel included in the image data in the color space, the second distance information based on the distance between the coordinate points indicating the first representative color identified by the representative color specifying means Second to calculate A distance calculation means, wherein when the value of the first distance information is smaller than the value of the second distance information, the color of the pixel, the gray axis than on the gray axis to the first representative color There is provided an image processing apparatus comprising color conversion means for converting to a second representative color adjacent to the image processing apparatus.
According to such an image processing device, it is possible to prevent a pixel having a hue close to gray from being converted to a chromatic color when performing the limited color processing on the image data, and to maintain a good gray balance. It becomes possible.

また、本発明の画像処理装置は、より好適な態様として、前記第1の距離算出手段は、前記複数の代表色に無彩色の代表色が含まれる場合に、無彩色の代表色に基づいてグレー軸を決定する。
これにより、グレーに近い色相の画素が無彩色の代表色に変換されるため、グレーバランスを良好に保持することが可能となる。
In a more preferred aspect of the image processing apparatus of the present invention, the first distance calculation unit is configured to use an achromatic representative color when the plurality of representative colors include an achromatic representative color. Determine the gray axis.
As a result, the pixels having a hue close to gray are converted into achromatic representative colors, so that it is possible to maintain a good gray balance.

また、本発明の画像処理装置は、より好適な態様として、前記複数の代表色は、無彩色の代表色を含み、前記第1の距離算出手段は、前記記憶手段に記憶された無彩色の代表色に基づいてグレー軸を決定し、前記座標点と該グレー軸との距離に基づいて第1の距離情報を算出する。
より好適には、前記複数の代表色は、白及び黒の代表色を含む。
また、さらに好適には、前記複数の代表色は、白、黒、及びグレーの代表色を含む。
これにより、グレーに近い色相の画素が無彩色の代表色に変換されるため、グレーバランスを良好に保持することが可能となる。
In a more preferred aspect of the image processing apparatus of the present invention, the plurality of representative colors include an achromatic representative color, and the first distance calculation means includes the achromatic color stored in the storage means. A gray axis is determined based on the representative color, and first distance information is calculated based on the distance between the coordinate point and the gray axis.
More preferably, the plurality of representative colors include white and black representative colors.
More preferably, the plurality of representative colors include white, black, and gray representative colors.
As a result, the pixels having a hue close to gray are converted into achromatic representative colors, so that it is possible to maintain a good gray balance.

また、本発明の画像処理装置は、より好適な態様として、前記色変換手段は、前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合には、前記画素の色を、前記グレー軸上ないしその近傍にある代表色のうち、該画素との色差が最小となる代表色を前記第2の代表色とする
これにより、画像データのグレーバランスを保持しつつ、さらに高精度な限定色化処理を行うことが可能となる。
In a more preferred aspect of the image processing apparatus of the present invention, the color conversion unit may be configured such that when the value of the first distance information is smaller than the value of the second distance information, the color of the pixel Of the representative colors on or near the gray axis, the representative color having the smallest color difference from the pixel is defined as the second representative color .
As a result, it is possible to perform a more accurate limited color process while maintaining the gray balance of the image data.

また、本発明の画像処理装置は、前記第1の距離算出手段は、前記画像取得手段により取得された画像データに基づいてグレー軸を決定し、前記座標点と該グレー軸との距離に基づいて第1の距離情報を算出することも可能である。
あるいは、本発明の画像処理装置は、前記第1の距離算出手段は、あらかじめ記憶された無彩色を示すデータを用いてグレー軸を決定し、前記座標点と該グレー軸との距離に基づいて第1の距離情報を算出することも可能である。
In the image processing apparatus of the present invention, the first distance calculation unit determines a gray axis based on the image data acquired by the image acquisition unit, and is based on a distance between the coordinate point and the gray axis. It is also possible to calculate the first distance information.
Alternatively, in the image processing apparatus of the present invention, the first distance calculating unit determines a gray axis using data indicating achromatic colors stored in advance, and based on a distance between the coordinate point and the gray axis. It is also possible to calculate the first distance information.

また、本発明は、画像処理装置が、画像を表す画像データを取得する画像取得ステップと、前記画像取得ステップにおいて取得された画像データに含まれる画素の色を、あらかじめ記憶された複数の代表色のそれぞれと比較し、その色差が最小となる第1の代表色を特定する代表色特定ステップと、ある色空間において前記画像データに含まれる画素の色を示す座標点と、該色空間において複数の無彩色を連ねて表されたグレー軸との距離に基づいて第1の距離情報を算出する第1の距離算出ステップと、前記色空間において前記画像データに含まれる画素の色を示す座標点と、前記代表色特定手段により特定された前記第1の代表色を示す座標点との距離に基づいて第2の距離情報を算出する第2の距離算出ステップと、前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合に、前記画素の色を前記グレー軸上ないし前記第1の代表色よりも前記グレー軸に近接する第2の代表色に変換する色変換ステップとを備える画像処理方法として提供することも可能である。 In addition, the present invention provides an image acquisition step in which the image processing apparatus acquires image data representing an image, and pixel colors included in the image data acquired in the image acquisition step. A representative color specifying step for specifying the first representative color having the smallest color difference, a coordinate point indicating the color of the pixel included in the image data in a certain color space, and a plurality of coordinate points in the color space. A first distance calculation step for calculating first distance information based on a distance from a gray axis expressed by connecting achromatic colors of the color coordinates; and a coordinate point indicating a color of a pixel included in the image data in the color space When the second distance calculating step of calculating a second distance information based on the distance between the coordinate points indicating the first representative color identified by the representative color specifying means, the first distance information If the value is less than the value of the second distance information, and converts the color of the pixel, the second representative color said than on the gray axis to the first representative color close to the gray axis It is also possible to provide an image processing method including a color conversion step.

また、本発明は、コンピュータを、画像を表す画像データを取得する画像取得手段と、複数の代表色を記憶手段に記憶させる記憶制御手段と、前記画像取得手段によって取得された画像データに含まれる画素の色を、前記記憶手段によって記憶されている複数の代表色のそれぞれと比較し、その色差が最小となる第1の代表色を特定する代表色特定手段と、ある色空間において前記画像データに含まれる画素の色を示す座標点と、該色空間において複数の無彩色を連ねて表されたグレー軸との距離に基づいて第1の距離情報を算出する第1の距離算出手段と、前記色空間において前記画像データに含まれる画素の色を示す座標点と、前記代表色特定手段により特定された前記第1の代表色を示す座標点との距離に基づいて第2の距離情報を算出する第2の距離算出手段と、前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合に、前記画素の色を前記グレー軸上ないし前記第1の代表色よりも前記グレー軸に近接する第2の代表色に変換する色変換手段として機能させるためのプログラムとして提供することも可能である。 Further, the present invention is included in the image data acquired by the image acquisition unit that acquires image data representing an image, the storage control unit that stores a plurality of representative colors in the storage unit, and the image acquisition unit. Representative color specifying means for comparing the color of a pixel with each of a plurality of representative colors stored in the storage means and specifying a first representative color having the smallest color difference; and the image data in a certain color space First distance calculation means for calculating first distance information based on a distance between a coordinate point indicating the color of the pixel included in the color axis and a gray axis represented by a plurality of achromatic colors in the color space; a coordinate point indicating the color of a pixel included in the image data in the color space, the second distance information based on the distance between the coordinate points indicating the first representative color identified by the representative color specifying means Calculation A second distance calculating means for, if the value of the first distance information is smaller than the value of the second distance information, the color of the pixel, from on the gray axis to the first representative color Can also be provided as a program for functioning as color conversion means for converting to the second representative color close to the gray axis .

以下では、本発明の一実施形態に係る画像処理装置の構成及びその動作について説明する。なお、本実施形態の説明においては、色空間としてRGB色空間を用いる。ここでRGB色空間とは、レッド(R)、グリーン(G)、ブルー(B)を軸とした直交座標系で表される色空間である。例えば、このRGB色空間上で「レッド」、「グリーン」、「ブルー」、「黒」、「白」を示す座標値は、それぞれ(1,0,0),(0,1,0),(0,0,1),(0,0,0),(1,1,1)である。また、これらの座標値のことを、以下では適宜「RGB値」と呼ぶ。   Hereinafter, the configuration and operation of an image processing apparatus according to an embodiment of the present invention will be described. In the description of the present embodiment, the RGB color space is used as the color space. Here, the RGB color space is a color space represented by an orthogonal coordinate system with red (R), green (G), and blue (B) as axes. For example, coordinate values indicating “red”, “green”, “blue”, “black”, and “white” on the RGB color space are (1, 0, 0), (0, 1, 0), (0, 0, 1), (0, 0, 0), (1, 1, 1). In addition, these coordinate values are hereinafter referred to as “RGB values” as appropriate.

(1)構成
図1は、本発明の一実施形態に係る画像処理装置1の構成を示したブロック図である。同図に示されているように、本実施形態の画像処理装置1は、制御部11と、HDD(Hard Disk Drive)12と、入力IF(Interface)13と、出力IF14とを備えたコンピュータである。画像処理装置1は画像読取装置2と画像形成装置3とに接続されている。
(1) Configuration FIG. 1 is a block diagram showing a configuration of an image processing apparatus 1 according to an embodiment of the present invention. As shown in FIG. 1, the image processing apparatus 1 according to the present embodiment is a computer including a control unit 11, an HDD (Hard Disk Drive) 12, an input IF (Interface) 13, and an output IF 14. is there. The image processing apparatus 1 is connected to an image reading apparatus 2 and an image forming apparatus 3.

制御部11はCPU(Central Processing Unit)111やROM(Read Only Memory)112,RAM(Random Access Memory)113等を備えており、入力された画像データに対して後述する画像処理を行うための各種の演算を実行する。このとき、画像データはRAM113に一時記憶される。また、ROM112には後述する閾値ThW及びThK等の各種の値が記憶されている。HDD12は記憶装置であり、画像処理を実行するためのプログラムPRGと、後述する限定色化処理の際に用いられるカラーテーブルTBLとを記憶している。入力IF13は画像読取装置2から画像データを取得し、出力IF14は画像処理装置1によって画像処理が行われた画像データを画像形成装置3へと出力する。 The control unit 11 includes a CPU (Central Processing Unit) 111, a ROM (Read Only Memory) 112, a RAM (Random Access Memory) 113, and the like, and performs various types of image processing to be described later on input image data. Execute the operation. At this time, the image data is temporarily stored in the RAM 113. The ROM 112 stores various values such as threshold values Th W and Th K described later. The HDD 12 is a storage device, and stores a program PRG for executing image processing and a color table TBL used in the limited colorization processing described later. The input IF 13 acquires image data from the image reading device 2, and the output IF 14 outputs the image data subjected to image processing by the image processing device 1 to the image forming device 3.

ここで、カラーテーブルTBLについて説明する。
図2は本実施形態におけるカラーテーブルTBLを模式的に示した図である。同図に示されているように、カラーテーブルTBLはシアン(C)、マゼンタ(M)、イエロー(Y)、レッド(R)、グリーン(G)、ブルー(B)、水色(Lb)、橙(O)、黄緑(Yg)、茶(Br)、濃緑(Dg)、藍(Db)、白(W)、黒(K)の14色の代表色によって構成されており、これらの色を示すRGB値がHDD12に記憶されている。なお、これらの代表色を示すRGB値を、以下においてはそれぞれC0,C1,C2,…,C13と表記する。
Here, the color table TBL will be described.
FIG. 2 is a diagram schematically showing the color table TBL in the present embodiment. As shown in the figure, the color table TBL is cyan (C), magenta (M), yellow (Y), red (R), green (G), blue (B), light blue (Lb), orange. (O), yellowish green (Yg), brown (Br), dark green (Dg), indigo (Db), white (W), and black (K). The indicated RGB values are stored in the HDD 12. In the following, the RGB values indicating these representative colors are expressed as C 0 , C 1 , C 2 ,..., C 13 , respectively.

画像読取装置2はいわゆるスキャナであり、図示せぬプラテン、光源、光学系、受光素子、及び信号処理部を備え、プラテン上に載置された原稿に光源が光を照射し、その反射光を光学系を介して受光素子が受光して画像信号を出力し、この画像信号に対して信号処理部がシェーディング補正等の各種の信号処理を施して、これを画像データとして画像処理装置1に供給する。画像形成装置3は例えば電子写真方式のプリンタであり、画像処理装置1により出力された画像データに応じたトナー像を形成し、これを用紙上に定着させることで画像を形成する。   The image reading apparatus 2 is a so-called scanner, and includes a platen, a light source, an optical system, a light receiving element, and a signal processing unit (not shown). The light source irradiates light on a document placed on the platen, and the reflected light is emitted. The light receiving element receives light through the optical system and outputs an image signal. The signal processing unit performs various signal processing such as shading correction on the image signal, and supplies the signal to the image processing apparatus 1 as image data. To do. The image forming apparatus 3 is, for example, an electrophotographic printer, and forms an image by forming a toner image corresponding to the image data output from the image processing apparatus 1 and fixing the toner image on a sheet.

(2)動作
続いて、上述の構成のもとで画像処理装置1が実行する画像処理について説明する。なお、本処理は、画像処理装置1の制御部11がプログラムPRGを実行することにより実現される処理である。
図3は、本実施形態の画像処理装置1が実行する画像処理を示したフローチャートである。同図に示されているように、まず、画像処理装置1の制御部11は、画像読取装置2から供給される画像データを入力IF13を介して取得する(ステップS1)。このとき画像読取装置2から供給される画像データには、AD変換やガンマ変換、またはシェーディング補正等の各種の処理が施されている。そして、制御部11はこの画像データに対して限定色化処理を行う(ステップS2)。
図4はこの限定色化処理を示したフローチャートである。同図に示されているように、まず、制御部11はHDD12に記憶されているカラーテーブルTBLを参照し、この代表色のRGB値C0,C1,C2,…,C13をRAM113に一時記憶する(ステップS21)。続いて制御部11は、これらの代表色の中から明度が最大となる代表色を特定し、これをmax(Cn)とする(ステップS22)。
(2) Operation Next, image processing performed by the image processing apparatus 1 under the above-described configuration will be described. This process is a process realized by the control unit 11 of the image processing apparatus 1 executing the program PRG.
FIG. 3 is a flowchart showing image processing executed by the image processing apparatus 1 of the present embodiment. As shown in the figure, first, the control unit 11 of the image processing apparatus 1 acquires the image data supplied from the image reading apparatus 2 via the input IF 13 (step S1). At this time, the image data supplied from the image reading apparatus 2 is subjected to various processes such as AD conversion, gamma conversion, or shading correction. And the control part 11 performs a limited colorization process with respect to this image data (step S2).
FIG. 4 is a flowchart showing this limited color processing. As shown in the figure, first, the control unit 11 refers to the color table TBL stored in the HDD 12, RGB value C 0 of the representative color, C 1, C 2, ..., a C 13 RAM 113 Is temporarily stored (step S21). Subsequently, the control unit 11 specifies a representative color having the maximum brightness from these representative colors, and sets this as max (C n ) (step S22).

次に、制御部11はこの代表色max(Cn)の白色度を判定する(ステップS23)。具体的には、制御部11は完全な白、すなわち座標値で示せば(1,1,1)となる点と代表色max(Cn)のRGB値を比較し、その差分DWを求める。ここで、差分DWは白のRGB値と代表色max(Cn)のRGB値の、R,G,Bの各座標における差分の総和として与えられる。すなわち、max(Cn)のRGB値を(r1,g1,b1)とすれば、DW=(1−r1)+(1−g1)+(1−b1)である。
そして、制御部11はこの差分を所定の閾値ThWと比較し、ThW>DWであればこの代表色max(Cn)を白であると見なし、白色フラグFlagWの値を「1」とする。一方、ThW≦DWであればこの代表色max(Cn)を白色ではないと見なし、白色フラグFlagWの値を「0」とする。本実施形態においては、max(Cn)は白であるから、白色フラグFlagWの値は「1」である。
Next, the control unit 11 determines the whiteness of the representative color max (C n ) (step S23). Specifically, the control unit 11 compares the RGB value of the representative color max (C n ) with a point that is completely white, that is, (1, 1, 1) if indicated by coordinate values, and obtains the difference D W. . Here, the difference D W is given as the sum of the differences between the R, G, and B coordinates of the RGB value of white and the RGB value of the representative color max (C n ). That is, assuming that the RGB value of max (C n ) is (r 1 , g 1 , b 1 ), D W = (1−r 1 ) + (1−g 1 ) + (1−b 1 ). .
Then, the control unit 11 compares this difference with a predetermined threshold value Th W, and if Th W > D W , the representative color max (C n ) is regarded as white and the value of the white flag FlagW is set to “1”. And On the other hand, if Th W ≦ D W , the representative color max (C n ) is regarded as not white, and the value of the white flag FlagW is set to “0”. In the present embodiment, since max (C n ) is white, the value of the white flag FlagW is “1”.

続いて、制御部11はRAM13に記憶された代表色の中から明度が最小となる代表色を特定し、これをmin(Cn)とする(ステップS24)。そして制御部11は、上述のステップS23とほぼ同様の要領で代表色min(Cn)の黒色度を判定する(ステップS25)。具体的には、制御部11は完全な黒、すなわち座標値で示せば(0,0,0)となる点と代表色min(Cn)のRGB値を比較し、その差分DKを求める。ここで、差分DKは黒のRGB値と代表色min(Cn)のRGB値の、R,G,Bの各座標における差分の総和として与えられる。すなわち、min(Cn)のRGB値を(r2,g2,b2)とすれば、DK=(0−r2)+(0−g2)+(0−b2)である。
そして、制御部11はこの差分を所定の閾値ThKと比較し、ThK>DKであればこの代表色min(Cn)を黒であると見なし、黒色フラグFlagKの値を「1」とする。一方、ThK≦DKであればこの代表色min(Cn)を黒色ではないと見なし、黒色フラグFlagKの値を「0」とする。本実施形態においては、min(Cn)は黒であるから、黒色フラグFlagKの値は「1」である。
Subsequently, the control unit 11 specifies a representative color having the minimum brightness from the representative colors stored in the RAM 13, and sets this as min (C n ) (step S24). Then, the control unit 11 determines the blackness of the representative color min (C n ) in substantially the same manner as in step S23 described above (step S25). Specifically, the control unit 11 compares the RGB value of the representative color min (C n ) with the complete black, that is, the point that becomes (0, 0, 0) in terms of coordinate values, and obtains the difference D K. . Here, the difference D K is given as the sum of the differences between the R, G, and B coordinates of the black RGB value and the RGB value of the representative color min (C n ). That is, if the RGB value of min (C n ) is (r 2 , g 2 , b 2 ), D K = (0−r 2 ) + (0−g 2 ) + (0−b 2 ). .
Then, the control unit 11 compares this difference with a predetermined threshold value Th K, and if Th K > D K , the representative color min (C n ) is regarded as black, and the value of the black flag FlagK is set to “1”. And On the other hand, if Th K ≦ D K , the representative color min (C n ) is regarded as not black, and the value of the black flag FlagK is set to “0”. In the present embodiment, since min (C n ) is black, the value of the black flag FlagK is “1”.

このように、白色フラグFlagW及び黒色フラグFlagKを求めたら、続いて制御部11はこの白色フラグFlagW及び黒色フラグFlagKの値がともに「1」であるか否かを判断する(ステップS26)。すなわちここでは、制御部11はカラーテーブルTBLに白及び黒と見なせる代表色が含まれるか否かを判断している。
制御部11は、この判断結果に応じて異なる色変換処理を行う。本実施形態においては、白色フラグFlagW及び黒色フラグFlagKの値はともに「1」であり、上述の判断結果は肯定的である(ステップS26;YES)。よって、ここではまずステップS27の色変換処理Aから説明する。
As described above, when the white flag FlagW and the black flag FlagK are obtained, the control unit 11 subsequently determines whether or not the values of the white flag FlagW and the black flag FlagK are both “1” (step S26). That is, here, the control unit 11 determines whether or not the color table TBL includes representative colors that can be regarded as white and black.
The control unit 11 performs different color conversion processing according to the determination result. In the present embodiment, the values of the white flag FlagW and the black flag FlagK are both “1”, and the above determination result is affirmative (step S26; YES). Therefore, here, the color conversion process A in step S27 will be described first.

図5はステップS27の色変換処理Aを示したフローチャートである。同図に示されているように、まず、制御部11は、RGB色空間において上述の代表色max(Cn)及びmin(Cn)を通過する直線を決定する(ステップS271)。この直線は代表色max(Cn)とmin(Cn)、すなわち白と黒を通過するので、この直線上の任意の点は無彩色(白、黒、またはグレー)を示していることになる。以下においては、この直線のことを「グレー軸」と呼ぶ。
次に、制御部11は画像データに含まれるある画素Pとこのグレー軸との距離DGを算出する(ステップS272)。続いて、制御部11は画素PとカラーテーブルTBLにおけるすべての代表色との距離、すなわち色差を算出し、その色差が最小となる代表色Cnと画素Pとの間の距離をDCとする(ステップS273)。そして、制御部11はこの距離DGと距離DCの大小を比較する(ステップS274)。なお、距離DGと距離DCの比較に際しては、距離DGに対して重み付けを行うために所定の係数aを乗じる。係数aの値は実験的ないし経験的に求められる値であるが、ここでは「1」とする。
FIG. 5 is a flowchart showing the color conversion process A in step S27. As shown in the figure, the control unit 11 first determines a straight line that passes through the representative colors max (C n ) and min (C n ) in the RGB color space (step S271). Since this straight line passes through the representative colors max (C n ) and min (C n ), that is, white and black, any point on this straight line indicates an achromatic color (white, black, or gray). Become. Hereinafter, this straight line is referred to as a “gray axis”.
Next, the control unit 11 calculates the distance D G of this gray axis and a pixel P included in the image data (step S272). Then, the distance between all the representative color control unit 11 in the pixel P and a color table TBL, namely to calculate the color difference, the distance between the representative color C n and the pixel P of the color difference is minimum and D C (Step S273). Then, the control unit 11 compares the distance D G with the distance D C (Step S274). In comparing the distance D G and the distance D C , a predetermined coefficient a is multiplied to weight the distance D G. The value of the coefficient a is a value obtained experimentally or empirically, but is set to “1” here.

制御部11は、上述の比較結果に応じて異なる処理を行う。まず、画素Pとグレー軸との距離DGが、画素Pとの色差が最小となる代表色Cnとの距離DCよりも小さい場合には(ステップS274;YES)、制御部11はこの画素Pの色をグレー軸上で最近接の代表色の色に変換する(ステップS275)。すなわち、本実施形態においては、画素Pは白または黒に変換される。
一方、画素Pとグレー軸との距離DGが、画素Pとの色差が最小となる代表色Cnとの距離DC以上である場合には(ステップS274;NO)、制御部11はこの画素Pの色を画素Pと色差が最小となる代表色Cnの色に変換する(ステップS276)。
The control unit 11 performs different processing according to the above comparison result. First, when the distance D G between the pixel P and the gray axis is smaller than the distance D C with respect to the representative color C n that minimizes the color difference from the pixel P (step S274; YES), the control unit 11 performs this operation. The color of the pixel P is converted to the closest representative color on the gray axis (step S275). That is, in the present embodiment, the pixel P is converted to white or black.
On the other hand, when the distance D G between the pixel P and the gray axis is not less than the distance D C with respect to the representative color C n that minimizes the color difference from the pixel P (step S274; NO), the control unit 11 The color of the pixel P is converted to the color of the representative color C n that minimizes the color difference from the pixel P (step S276).

これらの変換を図を用いて説明すると、次のようになる。
図6及び図7は、画素P(または画素P’)とグレー軸、及び画素Pとの色差が最小となる代表色Cnを例示した図である。まず、図6に示されているように、画素Pとグレー軸との距離はDGで表されており、画素Pと代表色Cnとの距離はDCで表されている。このときDG>DCだから、画素Pは代表色Cnに変換される。
一方、図7の例においては、DG<DCとなっているので、画素P’は代表色Cnではなく無彩色の代表色に変換される。ここで、画素P’と代表色C12(すなわち白),C13(すなわち黒)の距離を比較すると、画素P’は代表色C12により近いので、この場合画素P’は白に変換される。
These conversions will be described with reference to the drawings as follows.
FIGS. 6 and 7 are diagrams illustrating the representative color C n that minimizes the color difference between the pixel P (or pixel P ′) and the gray axis, and the pixel P. FIG. First, as shown in FIG. 6, the distance between the pixel P and the gray axis is represented by D G , and the distance between the pixel P and the representative color C n is represented by D C. At this time, since D G > D C , the pixel P is converted to the representative color C n .
On the other hand, in the example of FIG. 7, since D G <D C , the pixel P ′ is converted to an achromatic representative color instead of the representative color C n . Here, comparing the distance between the pixel P ′ and the representative colors C 12 (ie, white) and C 13 (ie, black), the pixel P ′ is closer to the representative color C 12 , and in this case, the pixel P ′ is converted to white. The

このようにして画素Pの色が変換されたら、制御部11は画像データのすべての画素について上述の処理を行ったか否かを判断し(ステップS277)、未処理の画素が残っている間は(ステップS277;NO)上述の処理をステップS272から繰り返し、すべての画素について上述の処理を終了させたら(ステップS277;YES)、本処理を終了させて図4のフローチャートに戻る。   When the color of the pixel P is thus converted, the control unit 11 determines whether or not the above-described processing has been performed for all the pixels of the image data (step S277), and while the unprocessed pixels remain, (Step S277; NO) When the above process is repeated from Step S272 and the above process is completed for all pixels (Step S277; YES), this process is terminated and the process returns to the flowchart of FIG.

一方、ステップS26における判断結果が否定的となる場合には(ステップS26;NO)、制御部11は上述の色変換処理Aとは異なる色変換処理Bを実行する。
この色変換処理Bが上述の色変換処理Aと異なる点は、グレー軸の設定の有無にある。上述したように、色変換処理Bが行われるのは代表色の中に白または黒と見なせる代表色が含まれない場合である。このような場合には、画像データのある画素の色を白または黒に変換することがないので、そもそも色変換処理Aのような処理を行う必要がない。以上を踏まえた上で、以下ではこの色変換処理Bについて説明する。
On the other hand, when the determination result in step S26 is negative (step S26; NO), the control unit 11 executes a color conversion process B different from the color conversion process A described above.
This color conversion process B is different from the color conversion process A described above in whether or not a gray axis is set. As described above, the color conversion process B is performed when a representative color that can be regarded as white or black is not included in the representative color. In such a case, the color of a certain pixel in the image data is not converted to white or black, so that it is not necessary to perform a process like the color conversion process A in the first place. Based on the above, the color conversion process B will be described below.

図8はステップS28の色変換処理Bを示したフローチャートである。同図に示されているように、制御部11は画像データに含まれるある画素PとカラーテーブルTBLにおけるすべての代表色との距離、すなわち色差を算出し、この色差が最小となる代表色Cnを特定する(ステップS281)。続いて制御部11は、この画素Pの色をステップS281において特定された代表色Cnに変換する(ステップS282)。そして、このように画素Pの色が変換されたら、制御部11は画像データのすべての画素について上述の処理を行ったか否かを判断し(ステップS283)、未処理の画素が残っている間は(ステップS283;NO)上述の処理をステップS281から繰り返し、すべての画素について上述の処理を終了させたら(ステップS283;YES)、本処理を終了させて図4のフローチャートに戻る。 FIG. 8 is a flowchart showing the color conversion process B in step S28. As shown in the figure, the control unit 11 calculates the distance, that is, the color difference between a certain pixel P included in the image data and all the representative colors in the color table TBL, and the representative color C that minimizes this color difference. n is specified (step S281). Subsequently, the control unit 11 converts the color of the pixel P to the representative color C n identified in step S281 (step S282). When the color of the pixel P is thus converted, the control unit 11 determines whether or not the above-described processing has been performed on all the pixels of the image data (step S283), and while the unprocessed pixels remain. (Step S283; NO) The above process is repeated from Step S281, and when the above process is completed for all pixels (Step S283; YES), this process is terminated and the process returns to the flowchart of FIG.

以上により限定色化処理の説明が終了したので、ここで図3のフローチャートに戻り、本実施形態の画像処理の説明を続ける。
ステップS2の限定色化処理が終了したら、続いて制御部11は色空間の変換を行う(ステップS3)。本実施形態においては、ここまで用いていたRGB色空間から画像形成装置2で用いられるCMYK色空間へと変換が行われる。その後、制御部11は画像データのハーフトーン領域に対してスクリーン処理を行う(ステップS4)。スクリーン処理が終了したら、制御部11は出力IF14を介してこの画像データを画像形成装置3へと出力する(ステップS5)。
Since the description of the limited color processing is thus completed, the description returns to the flowchart of FIG. 3 and the description of the image processing of the present embodiment is continued.
When the limited color processing in step S2 is completed, the control unit 11 subsequently performs color space conversion (step S3). In the present embodiment, conversion from the RGB color space used so far to the CMYK color space used in the image forming apparatus 2 is performed. Thereafter, the control unit 11 performs screen processing on the halftone area of the image data (step S4). When the screen process is completed, the control unit 11 outputs the image data to the image forming apparatus 3 via the output IF 14 (step S5).

以上が本実施形態の画像処理装置1が実行する画像処理である。このように、画像読取装置2によって読み取られた画像データに対して上述の画像処理を行うことで、以下の効果が得られる。
まず、本実施形態の画像処理装置1が上述の限定色化処理を行うことで、画像データのデータ量を低減させつつ、画像データに混入した裏写り成分やノイズ成分を良好に除去ないし低減させることが可能となり、画像品質の劣化を抑えることが可能となる。
加えて、本実施形態の限定色化処理によれば、代表色に白及び黒と見なされる色が含まれている場合にはグレー軸を算出し、これと注目画素との距離を比較することにより、従来有彩色の代表色に変換されていた低彩度の画素をグレー軸上の無彩色に変換することが可能となる。その結果、少ない色数で限定色化処理を行った場合においても、従来のようにグレーバランスが崩れることがなく、より高品質な画像データを得ることが可能となった。
また、本実施形態の限定色化処理によれば、スキャナ等の画像読取装置の色収差やMTF(Modulation Transfer Function)特性、あるいは色変換特性等によってグレーバランスの崩れた画像データが入力されてきた場合においても、グレー軸付近の低彩度の画素をグレー軸上の無彩色に変換することができるため、このような画像データが入力された場合であっても、グレーバランスをある程度正常に戻すことが可能となる。
The image processing executed by the image processing apparatus 1 according to this embodiment has been described above. In this way, the following effects can be obtained by performing the above-described image processing on the image data read by the image reading device 2.
First, the image processing apparatus 1 according to the present embodiment performs the above-described limited colorization process, thereby reducing or reducing the show-through component and noise component mixed in the image data while reducing the data amount of the image data. This makes it possible to suppress degradation of image quality.
In addition, according to the limited color processing of the present embodiment, when the representative colors include colors that are considered white and black, the gray axis is calculated and the distance between this and the target pixel is compared. Thus, it becomes possible to convert a low-saturation pixel that has been converted into a representative chromatic color into an achromatic color on the gray axis. As a result, even when the limited color processing is performed with a small number of colors, the gray balance is not lost as in the prior art, and it is possible to obtain higher quality image data.
In addition, according to the limited color processing of the present embodiment, when image data whose gray balance is lost due to chromatic aberration, MTF (Modulation Transfer Function) characteristics, or color conversion characteristics of an image reading apparatus such as a scanner is input. In this case, since low-saturation pixels near the gray axis can be converted to achromatic colors on the gray axis, even if such image data is input, the gray balance is restored to a certain level. Is possible.

(3)変形例
なお、本発明の適用は上述した実施形態に限られるものではなく、種々の変形が可能である。以下にその例を示す。
上述の実施形態においては、画像処理装置1には画像読取装置2から画像データが入力され、処理後の画像データを画像形成装置3に出力すると説明した。しかし、本発明の画像処理装置はこのような態様には限定されず、例えば一般のコンピュータから画像データが入力される態様であってもよく、また画像データを記憶装置等に出力する態様であってもよい。また、このような場合においては、図3に示されたフローチャートの各ステップのうち、色空間変換(ステップS3)やスクリーン処理(ステップS4)は適宜省略することも可能である。
(3) Modifications The application of the present invention is not limited to the above-described embodiment, and various modifications can be made. An example is shown below.
In the above-described embodiment, it has been described that image data is input to the image processing apparatus 1 from the image reading apparatus 2 and the processed image data is output to the image forming apparatus 3. However, the image processing apparatus of the present invention is not limited to such an aspect, and may be an aspect in which image data is input from, for example, a general computer, or an aspect in which the image data is output to a storage device or the like. May be. In such a case, among the steps of the flowchart shown in FIG. 3, the color space conversion (step S3) and the screen processing (step S4) can be omitted as appropriate.

また、上述の実施形態においては、本発明の画像処理は画像処理装置1がプログラムPRGを実行することで実現されると説明した。しかし、本発明はこのような態様に限定されるものではなく、例えば画像処理装置は、上述の画像処理の各ステップの機能を実現可能な電子回路を備える構成であってもよい。また、上述の機能を備えたASIC(Application Specific Integrated Circuit)によって実現されることももちろん可能である。
また、上述の実施形態においては、本発明は画像処理装置1によって実施されると説明したが、本発明は、例えば上述の実施形態における画像処理装置1,画像読取装置2,及び画像形成装置3の機能を機能を併せ持った、いわゆる複写機等の画像形成装置によって実施されることももちろん可能である。
In the above-described embodiment, it has been described that the image processing of the present invention is realized by the image processing apparatus 1 executing the program PRG. However, the present invention is not limited to such an aspect. For example, the image processing apparatus may be configured to include an electronic circuit that can realize the functions of the respective steps of the image processing described above. Of course, it can also be realized by an ASIC (Application Specific Integrated Circuit) having the above-described functions.
In the above-described embodiment, the present invention has been described as being implemented by the image processing apparatus 1. However, the present invention is, for example, the image processing apparatus 1, the image reading apparatus 2, and the image forming apparatus 3 in the above-described embodiment. Needless to say, the present invention can be implemented by an image forming apparatus such as a so-called copying machine having both functions.

また、上述の実施形態においては、RGB色空間を用いて説明がなされているが、本発明はこのような態様に限定されるものではなく、種々の色空間を用いることが可能である。例えば、L*a*b*色空間やL*u*v*色空間であってもよい。   In the above-described embodiment, the description is made using the RGB color space. However, the present invention is not limited to such an aspect, and various color spaces can be used. For example, an L * a * b * color space or an L * u * v * color space may be used.

また、上述の実施形態においては、画像処理装置1はHDD12にカラーテーブルTBLを記憶していると説明した。しかし、本発明はこのような態様に限定されるものではなく、例えば入力された画像データを解析し、その画像データに応じた代表色を特定し、代表色を示すデータをその都度生成するものであってもよい。このようにすれば、カラーテーブルを記憶しておく必要がない。   In the above-described embodiment, the image processing apparatus 1 has been described as storing the color table TBL in the HDD 12. However, the present invention is not limited to such an embodiment. For example, input image data is analyzed, a representative color corresponding to the image data is specified, and data indicating the representative color is generated each time. It may be. In this way, there is no need to store a color table.

あるいは、画像処理装置は代表色の異なる複数のカラーテーブルを記憶しており、入力された画像データに応じて最適なカラーテーブルを選択して限定色化処理を行うものであってもよい。具体的な処理としては、例えば、画像データの各画素のRGB値を算出し、これらの画素を代表色に変換する処理を各カラーテーブルに対して行ったときに、その色差の合計が最も小さくなるようなカラーテーブルを選択して限定色化処理を行うものである。このようにすれば、より高い精度で原画像を復元することが可能となる。   Alternatively, the image processing apparatus may store a plurality of color tables having different representative colors, and select the optimum color table according to the input image data and perform the limited color processing. As specific processing, for example, when the RGB value of each pixel of the image data is calculated and the processing for converting these pixels into the representative color is performed on each color table, the sum of the color differences is the smallest. The color table is selected and the limited color processing is performed. In this way, it is possible to restore the original image with higher accuracy.

なお、このとき、代表色は上述のようにシアン(C)、マゼンタ(M)、イエロー(Y)、レッド(R)、グリーン(G)、ブルー(B)、水色(Lb)、橙(O)、黄緑(Yg)、茶(Br)、濃緑(Dg)、藍(Db)、白(W)、黒(K)の14色に限定されるものではなく、その他の色を代表色とすることも可能であり、また代表色を増減させることももちろん可能である。また、このような動作を可能とするために、画像処理装置にユーザによる操作を受け付ける操作部を設けて、入力される画像データの種類に応じてユーザが複数のカラーテーブルのなかから最適なものを選択できるようにしてもよい。このようにすれば、より高い精度で原画像を復元しつつも、処理時間を低減することが可能となる。   At this time, the representative colors are cyan (C), magenta (M), yellow (Y), red (R), green (G), blue (B), light blue (Lb), orange (O) as described above. ), Yellow green (Yg), brown (Br), dark green (Dg), indigo (Db), white (W), black (K), and other colors are representative colors. It is also possible to increase or decrease the representative color. In order to enable such an operation, the image processing apparatus is provided with an operation unit that accepts an operation by the user, and the user can select an optimal one from a plurality of color tables according to the type of input image data. May be selected. In this way, it is possible to reduce the processing time while restoring the original image with higher accuracy.

また、上述の実施形態においては、グレー軸は白及び黒を通る直線として説明された。しかし、図4のフローチャートのステップS23における白色度の判定、及びステップS25の黒色度の判定において説明されているように、ここで判定されている白及び黒の代表色は、必ずしも完全な白(RGB値が(1,1,1)となる白)及び完全な黒(RGB値が(0,0,0)となる黒)である必要はない。本発明は、上述の白ないし黒が厳密には無彩色ではなかったとしても、これらが無彩色であった場合と同等の効果が得られるものである。   In the above-described embodiment, the gray axis is described as a straight line passing through white and black. However, as described in the whiteness determination in step S23 and the blackness determination in step S25 in the flowchart of FIG. 4, the representative colors of white and black determined here are not necessarily completely white ( It is not necessary that the RGB value is (1, 1, 1) white) and the complete black (RGB value is (0, 0, 0) black). In the present invention, even if the above-described white or black is not strictly achromatic, the same effect as that obtained when these are achromatic can be obtained.

また、上述の実施形態においては、グレー軸上に存在する代表色は白と黒の2色のみであったが、その他の代表色がグレー軸上にあってもよい。例えば、白と黒の中間、すなわち濃度50%のグレーを代表色に追加すれば、グレー軸近傍にある中濃度領域(25〜75%)の有彩色をグレーに変換することができるため、白ないし黒に変換するよりも高精度の限定色化処理を行うことが可能となる。
なお、これらの代表色はグレー軸上に存在すると説明したが、必ずしもグレー軸上に存在する必要はなく、代表色がグレー軸の近傍に存在するものであっても、本発明の所期の効果を奏するものである。
In the above-described embodiment, the representative colors existing on the gray axis are only two colors, white and black, but other representative colors may be on the gray axis. For example, if the middle color between white and black, that is, gray having a density of 50% is added to the representative color, the chromatic color in the middle density area (25 to 75%) near the gray axis can be converted to gray. In addition, it is possible to perform the limited color processing with higher accuracy than the conversion to black.
In addition, although it has been described that these representative colors exist on the gray axis, it is not always necessary to exist on the gray axis, and even if the representative color exists in the vicinity of the gray axis, There is an effect.

また、上述の実施形態においては、図5のフローチャートのステップS274において、距離DGに対して重み付けを行うために所定の係数aを乗じるを説明した。しかしながら、距離DGに対してではなく距離DCに対して重み付けを行うことももちろん可能である。また、このステップS274においては、距離DG(aDG)と距離DCが同値であった場合にはステップS276の処理を行うと説明されているが、これらが同値であった場合にはステップS275の処理を行うものとしてもよい。 Further, in the above-described embodiment, at step S274 of the flowchart of FIG. 5, it has been described multiplying a predetermined coefficient a in order to perform the weighted distance D G. However, it is of course possible to weight not the distance D G but the distance D C. Further, in this step S274, it is described that the process of step S276 is performed when the distance D G (aD G ) and the distance D C have the same value. It is good also as what performs the process of S275.

また、上述の実施形態においては、グレー軸は代表色に基づいて決定されるものであると説明したが、このような態様に限定されるものではない。例えば、入力された画像データを解析し、この画像データにおいて明度が最大となる画素を白、また明度が最小となる画素を黒と見なし、これらに基づいてグレー軸を決定するものであってもよい。あるいは、入力された画像データのある色空間における分布(ヒストグラム)を求め、高明度領域における最頻値を白、また低明度領域における最頻値を黒と見なし、これらに基づいてグレー軸を決定するものであってもよい。また、グレー軸はあらかじめHDD12等に記憶された無彩色を示すデータに基づいて決定されてもよい。   In the above-described embodiment, the gray axis is determined based on the representative color. However, the present invention is not limited to such an aspect. For example, the input image data is analyzed, and the pixel having the maximum brightness in this image data is regarded as white and the pixel having the minimum brightness is regarded as black, and the gray axis is determined based on these. Good. Alternatively, the distribution (histogram) of the input image data in a certain color space is obtained, the mode value in the high brightness area is regarded as white, and the mode value in the low brightness area is regarded as black, and the gray axis is determined based on these. You may do. The gray axis may be determined based on data indicating an achromatic color stored in advance in the HDD 12 or the like.

本発明の一実施形態に係る画像処理装置の構成を示したブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. 同実施形態におけるカラーテーブルを模式的に示した図である。It is the figure which showed typically the color table in the same embodiment. 同実施形態の画像処理装置が実行する画像処理を示したフローチャートである。5 is a flowchart illustrating image processing executed by the image processing apparatus according to the embodiment. 同画像処理における限定色化処理を示したフローチャートである。It is the flowchart which showed the limited color processing in the same image processing. 同画像処理における色変換処理Aを示したフローチャートである。It is the flowchart which showed the color conversion process A in the same image processing. 同実施形態における、ある画素とグレー軸、及びこの画素との色差が最小となる代表色を例示した図である。FIG. 4 is a diagram illustrating a representative color that minimizes a color difference between a pixel and a gray axis and the pixel in the embodiment. 同実施形態における、ある画素とグレー軸、及びこの画素との色差が最小となる代表色を例示した図である。FIG. 4 is a diagram illustrating a representative color that minimizes a color difference between a pixel and a gray axis and the pixel in the embodiment. 同画像処理における色変換処理Bを示したフローチャートである。It is the flowchart which showed the color conversion process B in the same image processing. 限定色化処理による画像品質の劣化の抑制を説明するために示した、ある原稿の一部分と、この部分を読み取ることで得られた画像データの拡大図である。FIG. 3 is an enlarged view of a part of a certain original and image data obtained by reading this part, for explaining suppression of deterioration in image quality due to limited color processing. ある色空間における3つの代表色の模式図である。It is a schematic diagram of three representative colors in a certain color space.

符号の説明Explanation of symbols

1…画像処理装置、2…画像読取装置、3…画像形成装置、11…制御部、111…CPU,112…ROM,113…RAM,12…HDD,13…入力IF,14…出力IF。 DESCRIPTION OF SYMBOLS 1 ... Image processing apparatus, 2 ... Image reading apparatus, 3 ... Image forming apparatus, 11 ... Control part, 111 ... CPU, 112 ... ROM, 113 ... RAM, 12 ... HDD, 13 ... Input IF, 14 ... Output IF.

Claims (11)

画像を表す画像データを取得する画像取得手段と、
複数の代表色を記憶する記憶手段と、
前記画像取得手段によって取得された画像データに含まれる画素の色を、前記記憶手段によって記憶されている複数の代表色のそれぞれと比較し、その色差が最小となる第1の代表色を特定する代表色特定手段と、
ある色空間において前記画像データに含まれる画素の色を示す座標点と、該色空間において複数の無彩色を連ねて表されたグレー軸との距離に基づいて第1の距離情報を算出する第1の距離算出手段と、
前記色空間において前記画像データに含まれる画素の色を示す座標点と、前記代表色特定手段により特定された前記第1の代表色を示す座標点との距離に基づいて第2の距離情報を算出する第2の距離算出手段と、
前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合に、前記画素の色を前記グレー軸上ないし前記第1の代表色よりも前記グレー軸に近接する第2の代表色に変換する色変換手段と
を備える画像処理装置。
Image acquisition means for acquiring image data representing an image;
Storage means for storing a plurality of representative colors;
The pixel color included in the image data acquired by the image acquisition unit is compared with each of the plurality of representative colors stored in the storage unit, and the first representative color that minimizes the color difference is specified. Representative color specifying means;
First distance information is calculated based on a distance between a coordinate point indicating the color of a pixel included in the image data in a certain color space and a gray axis represented by connecting a plurality of achromatic colors in the color space. 1 distance calculation means;
A coordinate point indicating the color of a pixel included in the image data in the color space, the second distance information based on the distance between the coordinate points indicating the first representative color identified by the representative color specifying means A second distance calculating means for calculating;
When the value of the first distance information is smaller than the value of the second distance information, the color of the pixel is set to the second on the gray axis or closer to the gray axis than the first representative color. An image processing apparatus comprising: color conversion means for converting to a representative color.
前記第1の距離算出手段は、
前記複数の代表色に無彩色の代表色が含まれる場合に、無彩色の代表色に基づいてグレー軸を決定する
請求項1記載の画像処理装置。
The first distance calculating means includes
The image processing apparatus according to claim 1, wherein a gray axis is determined based on the representative color of the achromatic color when the representative color of the achromatic color is included in the plurality of representative colors.
前記複数の代表色は、無彩色の代表色を含み、
前記第1の距離算出手段は、前記記憶手段に記憶された無彩色の代表色に基づいてグレー軸を決定し、前記座標点と該グレー軸との距離に基づいて第1の距離情報を算出する
請求項1記載の画像処理装置。
The plurality of representative colors include achromatic representative colors,
The first distance calculation means determines a gray axis based on the achromatic representative color stored in the storage means, and calculates first distance information based on the distance between the coordinate point and the gray axis. The image processing apparatus according to claim 1.
前記複数の代表色は、白及び黒の代表色を含む
請求項2記載の画像処理装置。
The image processing apparatus according to claim 2, wherein the plurality of representative colors include white and black representative colors.
前記複数の代表色は、白、黒、及びグレーの代表色を含む
請求項2記載の画像処理装置。
The image processing apparatus according to claim 2, wherein the plurality of representative colors include representative colors of white, black, and gray.
前記色変換手段は、
前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合には、前記画素の色を、前記グレー軸上ないしその近傍にある代表色のうち、該画素との色差が最小となる代表色を前記第2の代表色とする
請求項4ないし5記載の画像処理装置。
The color conversion means includes
When the value of the first distance information is smaller than the value of the second distance information, the color difference between the pixel and the representative color on or around the gray axis is the color difference of the pixel. 6. The image processing apparatus according to claim 4 , wherein the second representative color is a minimum representative color.
前記第1の距離算出手段は、
前記画像取得手段により取得された画像データに基づいてグレー軸を決定し、前記座標点と該グレー軸との距離に基づいて第1の距離情報を算出する
請求項1記載の画像処理装置。
The first distance calculating means includes
The image processing apparatus according to claim 1, wherein a gray axis is determined based on image data acquired by the image acquisition unit, and first distance information is calculated based on a distance between the coordinate point and the gray axis.
前記第1の距離算出手段は、
あらかじめ記憶された無彩色を示すデータを用いてグレー軸を決定し、前記座標点と該グレー軸との距離に基づいて第1の距離情報を算出する
請求項1記載の画像処理装置。
The first distance calculating means includes
The image processing apparatus according to claim 1, wherein a gray axis is determined using data indicating an achromatic color stored in advance, and first distance information is calculated based on a distance between the coordinate point and the gray axis.
請求項1ないし8のいずれかに記載の画像処理装置を備える画像形成装置。An image forming apparatus comprising the image processing apparatus according to claim 1. 画像処理装置が、
画像を表す画像データを取得する画像取得ステップと、
前記画像取得ステップにおいて取得された画像データに含まれる画素の色を、あらかじめ記憶された複数の代表色のそれぞれと比較し、その色差が最小となる第1の代表色を特定する代表色特定ステップと、
ある色空間において前記画像データに含まれる画素の色を示す座標点と、該色空間において複数の無彩色を連ねて表されたグレー軸との距離に基づいて第1の距離情報を算出する第1の距離算出ステップと、
前記色空間において前記画像データに含まれる画素の色を示す座標点と、前記代表色特定手段により特定された前記第1の代表色を示す座標点との距離に基づいて第2の距離情報を算出する第2の距離算出ステップと、
前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合に、前記画素の色を前記グレー軸上ないし前記第1の代表色よりも前記グレー軸に近接する第2の代表色に変換する色変換ステップと
を備える画像処理方法。
The image processing device
An image acquisition step of acquiring image data representing the image;
A representative color specifying step of comparing the color of the pixel included in the image data acquired in the image acquisition step with each of a plurality of representative colors stored in advance and specifying a first representative color having the smallest color difference When,
First distance information is calculated based on a distance between a coordinate point indicating the color of a pixel included in the image data in a certain color space and a gray axis represented by connecting a plurality of achromatic colors in the color space. 1 distance calculation step;
A coordinate point indicating the color of a pixel included in the image data in the color space, the second distance information based on the distance between the coordinate points indicating the first representative color identified by the representative color specifying means A second distance calculating step for calculating;
When the value of the first distance information is smaller than the value of the second distance information, the color of the pixel is set to the second on the gray axis or closer to the gray axis than the first representative color. An image processing method comprising: a color conversion step for converting to a representative color.
コンピュータを、
画像を表す画像データを取得する画像取得手段と、
複数の代表色を記憶手段に記憶させる記憶制御手段と、
前記画像取得手段によって取得された画像データに含まれる画素の色を、前記記憶手段によって記憶されている複数の代表色のそれぞれと比較し、その色差が最小となる第1の代表色を特定する代表色特定手段と、
ある色空間において前記画像データに含まれる画素の色を示す座標点と、該色空間において複数の無彩色を連ねて表されたグレー軸との距離に基づいて第1の距離情報を算出する第1の距離算出手段と、
前記色空間において前記画像データに含まれる画素の色を示す座標点と、前記代表色特定手段により特定された前記第1の代表色を示す座標点との距離に基づいて第2の距離情報を算出する第2の距離算出手段と、
前記第1の距離情報の値が前記第2の距離情報の値よりも小さい場合に、前記画素の色を前記グレー軸上ないし前記第1の代表色よりも前記グレー軸に近接する第2の代表色に変換する色変換手段
として機能させるためのプログラム。
Computer
Image acquisition means for acquiring image data representing an image;
Storage control means for storing a plurality of representative colors in the storage means;
The pixel color included in the image data acquired by the image acquisition unit is compared with each of the plurality of representative colors stored in the storage unit, and the first representative color that minimizes the color difference is specified. Representative color specifying means;
First distance information is calculated based on a distance between a coordinate point indicating the color of a pixel included in the image data in a certain color space and a gray axis represented by connecting a plurality of achromatic colors in the color space. 1 distance calculation means;
A coordinate point indicating the color of a pixel included in the image data in the color space, the second distance information based on the distance between the coordinate points indicating the first representative color identified by the representative color specifying means A second distance calculating means for calculating;
When the value of the first distance information is smaller than the value of the second distance information, the color of the pixel is set to the second on the gray axis or closer to the gray axis than the first representative color. A program for functioning as a color conversion means for converting to a representative color.
JP2004142252A 2004-05-12 2004-05-12 Image processing apparatus, image forming apparatus, image processing method, and program Expired - Fee Related JP4274043B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004142252A JP4274043B2 (en) 2004-05-12 2004-05-12 Image processing apparatus, image forming apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004142252A JP4274043B2 (en) 2004-05-12 2004-05-12 Image processing apparatus, image forming apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2005328145A JP2005328145A (en) 2005-11-24
JP4274043B2 true JP4274043B2 (en) 2009-06-03

Family

ID=35474171

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004142252A Expired - Fee Related JP4274043B2 (en) 2004-05-12 2004-05-12 Image processing apparatus, image forming apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP4274043B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4835865B2 (en) * 2006-08-08 2011-12-14 富士ゼロックス株式会社 Image processing apparatus and image processing program
JP5846363B2 (en) 2011-09-02 2016-01-20 富士ゼロックス株式会社 Image processing apparatus and image processing program
JP6164007B2 (en) * 2013-09-27 2017-07-19 セイコーエプソン株式会社 Program for selecting usable color, method thereof, and image display apparatus
JP6358146B2 (en) * 2015-03-31 2018-07-18 ブラザー工業株式会社 Image processing program, image processing apparatus, and image processing method

Also Published As

Publication number Publication date
JP2005328145A (en) 2005-11-24

Similar Documents

Publication Publication Date Title
US7382915B2 (en) Color to grayscale conversion method and apparatus
JP6031286B2 (en) Image processing apparatus and image processing method
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP2018036960A (en) Image similarity level calculation device, image processing device, image processing method and recording medium
US10848644B2 (en) Image processing apparatus, image processing method, and non-transitory computer-readable storage medium
JP2012121265A (en) Image forming apparatus and control method thereof
CN102055882B (en) Image processing apparatus, image forming apparatus and image processing method
US8270029B2 (en) Methods, apparatus and systems for using black-only on the neutral axis in color management profiles
US9646367B2 (en) Image processing apparatus and image processing method each with a function of applying edge enhancement to input image data
JP7447193B2 (en) Image processing device and image processing method
JP4381360B2 (en) Image processing method, image processing apparatus, image forming apparatus, computer program, and recording medium
JP4274043B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
US9245211B2 (en) Image processing apparatus, method of controlling the same, and program
JP4305274B2 (en) Image processing apparatus, image forming apparatus, image processing method, and program
JP5863723B2 (en) Image processing apparatus and image forming apparatus
JP6995594B2 (en) Information processing equipment, information processing methods and programs
JP2018033043A (en) Image forming apparatus, control method, and program
US10026152B2 (en) Image processing apparatus for providing visibility of an image while maintaining color in a natural state
JP2008182633A (en) Image processing apparatus
JP4480677B2 (en) Image correction method, program, and apparatus
JP6020042B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP7495660B2 (en) Image processing device and computer program
JP7135575B2 (en) Image processing device, image reading device and program
JP2006024097A (en) Apparatus and method for measuring sharpness, apparatus and method for processing image, sharpness measuring program, image processing program, and storage medium
JP6834701B2 (en) Image processing equipment and computer programs

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070419

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081105

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20081125

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090119

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

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

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120313

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130313

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130313

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20140313

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees