JP2006074809A - Image processor and image processing method - Google Patents

Image processor and image processing method Download PDF

Info

Publication number
JP2006074809A
JP2006074809A JP2005277640A JP2005277640A JP2006074809A JP 2006074809 A JP2006074809 A JP 2006074809A JP 2005277640 A JP2005277640 A JP 2005277640A JP 2005277640 A JP2005277640 A JP 2005277640A JP 2006074809 A JP2006074809 A JP 2006074809A
Authority
JP
Japan
Prior art keywords
color
image data
image processing
data
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2005277640A
Other languages
Japanese (ja)
Other versions
JP4127281B2 (en
Inventor
Shigeaki Sumiya
繁明 角谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005277640A priority Critical patent/JP4127281B2/en
Publication of JP2006074809A publication Critical patent/JP2006074809A/en
Application granted granted Critical
Publication of JP4127281B2 publication Critical patent/JP4127281B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To suppress deterioration in image quality caused by a quantization error caused by the conversion of the number of gradations in converting the number of gradations by assigning image data to a lattice point preset in a color space. <P>SOLUTION: A color space is divided in advance to set lattice points and in a gradation number pre-converting unit 140, original color image data ORG are assigned to near lattice points. In such a case, a quantization error is incurred by assigning the original image data to the lattice points however the data are assigned so that the error becomes less than a predetermined value in average, thereby preserving final image colors. When setting the lattice points, a density area is divided smaller as progressing toward a low density area, to minimize deterioration in image quality caused by the quantization error. Furthermore, smoothing is performed after the pre-conversion of the gradation number, thereby reducing influences of the quantization error and improving image quality. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像処理装置および画像処理方法に関し、特に、入力されるカラー画像データに対し、色補正処理を行い、出力する画像処理装置およびその方法に関する。   The present invention relates to an image processing apparatus and an image processing method, and more particularly to an image processing apparatus and method for performing color correction processing on input color image data and outputting the same.

従来より、カラー原稿等を、スキャナ等の画像入力部を用いて読み取り、読み取られた画像データを、例えばCRTなどのディスプレイや、カラープリンタ等を用いて再生表示させる画像処理装置が知られている。   2. Description of the Related Art Conventionally, there has been known an image processing apparatus that reads a color original using an image input unit such as a scanner, and reproduces and displays the read image data using a display such as a CRT or a color printer. .

ディスプレイやカラープリンタなどの画像出力装置は、それぞれ特有の色再現特性を有するから、スキャナ等を用いて入力したカラー画像の色を、出力装置の特性によらず良好に再生するため、使用する画像出力装置の色再現特性に合わせて色補正処理を行う手法が提案されている。このような色補正手法の一つとして、特開昭63−2669号公報に示されたものがある。この従来技術では、レッド(以下、Rと記す)、グリーン(以下、Gと記す)、ブルー(以下、Bと記す)の3色成分の全ての組み合わせに対応したRGB3次元の色補正テーブルを用意している。この色補正テーブルには、3次元座標で表わされた色空間内の総ての位置についての色補正内容を予め記憶している。画像処理装置は、この色補正テーブルを参照することによって色補正を行なう。   Since image output devices such as displays and color printers have specific color reproduction characteristics, the colors used for the color image input using a scanner or the like are reproduced well regardless of the characteristics of the output device. A method of performing color correction processing in accordance with the color reproduction characteristics of the output device has been proposed. One such color correction technique is disclosed in Japanese Patent Application Laid-Open No. 63-2669. In this prior art, an RGB three-dimensional color correction table corresponding to all combinations of three color components of red (hereinafter referred to as R), green (hereinafter referred to as G), and blue (hereinafter referred to as B) is prepared. is doing. This color correction table stores in advance color correction contents for all positions in the color space represented by three-dimensional coordinates. The image processing apparatus performs color correction by referring to the color correction table.

この色補正手法は、使用する色補正テーブルの記憶容量が膨大なものとなってしまうため、実用性が十分ではなかった。例えば、入力される原カラー画像データがR,G,B各色毎に8ビット(256階調)の階調数をもつ場合、色数は256の3乗で約1678万色にもなる。色補正後のデータも同じく8ビットだとすると、R,G,B3色分では、色補正テーブルとして48メガバイトもの記憶容量が必要となる。   This color correction method is not practical enough because the storage capacity of the color correction table to be used becomes enormous. For example, when the input original color image data has a gradation number of 8 bits (256 gradations) for each of R, G, and B colors, the number of colors is 256 to the power of about 16.78 million colors. If the data after color correction is also 8 bits, a storage capacity of 48 megabytes is required as a color correction table for R, G, B3 colors.

他方、色補正テーブルの大容量化を回避するために、色補正テーブルを限られた格子点に対応するデータのみから構成し、格子点間の色データについては、格子点のデータを利用して補間演算を行なって、色補正処理を行なうものも提案されている(例えば、特開平4−144481号公報、特開平4−185075号公報)。この手法によれば、色補正テーブルの記憶容量を低減することはできるが、補間演算にかなりの時間を要してしまう。特に、最近のように取り扱う画像データの解像度が高くなり、かつ各画素についての階調表現が細かくなると、一枚の画像を出力するのに要する演算時間は長くなり、画像出力が完了するまでの待ち時間が極めて長くなってしまう。かといって、補間演算を簡略なものとすれば、色の再現性が落ちてしまう。   On the other hand, in order to avoid an increase in the capacity of the color correction table, the color correction table is composed only of data corresponding to limited grid points, and for the color data between grid points, the grid point data is used. There have also been proposed ones that perform color correction processing by performing an interpolation calculation (for example, Japanese Patent Laid-Open Nos. HEI 14414481 and H4-185075). According to this method, the storage capacity of the color correction table can be reduced, but considerable time is required for the interpolation calculation. In particular, when the resolution of image data handled as recently becomes higher and the gradation expression for each pixel becomes finer, the computation time required to output one image becomes longer, and the image output is completed. The waiting time becomes extremely long. However, if the interpolation operation is simplified, the color reproducibility is lowered.

そこで、本願出願人は、色補正テーブルの容量を増大することなく、かつ色補正の補間演算の長大な時間を必要としない画像処理の手法を提案している(例えば、特開平7−30772号公報参照)。この画像処理の手法は、色空間を所定の間隔で分割し、分割して得られた格子点についてのみ色補正データを用意すると共に、格子点以外の画像データに対しては、その近傍のいずれかの格子点に割り付け、補間演算なしで色補正を行なうというものである。この場合、本来の画像データをその近傍の格子点に割り付けるから、格子点への割付を行なうたびに誤差が生じる。そこで、画像を構成する各画素の画像データを順次処理する際、この誤差が平均的にはできるだけ小さくなるように、格子点への割り付けを行なうのである。   Accordingly, the applicant of the present application has proposed an image processing technique that does not require a large amount of time for color correction interpolation calculation without increasing the capacity of the color correction table (for example, Japanese Patent Laid-Open No. 7-30772). See the official gazette). This image processing method divides the color space at a predetermined interval, prepares color correction data only for the lattice points obtained by the division, and for image data other than the lattice points, These are assigned to grid points and color correction is performed without interpolation. In this case, since the original image data is allocated to the neighboring grid points, an error occurs every time the grid points are allocated. Therefore, when the image data of each pixel constituting the image is sequentially processed, the assignment to the grid points is performed so that this error becomes as small as possible on average.

上記画像処理の手法は、一つ一つの画素に着目すれば、その色には誤差が存在するが、一定の範囲では誤差を解消しており、出力された画像の品質を低下させることなく、画像処理に要する演算時間を大幅に短くするという優れたものであるが、画像を出力する画像出力装置が表現可能な階調数が低い場合、例えばインクジェットプリンタのように、2値的な表現しかできない場合、画像の濃度が低い領域では、画質がやや低下してしまうということがあった。ドット密度が小さくドットがまばらに分布する低濃度領域では、少しのノイズ(格子点への割り付けにより生じる量子化誤差)でも、ドットの出現位置が大きくずれてしまうからである。   In the above image processing method, if attention is paid to each pixel, there is an error in its color, but the error is eliminated in a certain range, without reducing the quality of the output image, Although it is excellent in that the calculation time required for image processing is significantly shortened, when the number of gradations that can be expressed by the image output apparatus that outputs the image is low, for example, only binary expression like an ink jet printer is possible. If this is not possible, the image quality may be slightly degraded in areas where the image density is low. This is because, in a low density region where the dot density is small and the dots are sparsely distributed, even if a little noise (quantization error caused by allocation to the lattice points), the appearance position of the dots is greatly shifted.

また、上記の画像処理では、原画像で同色の画素が近接していても、両画素は異なる格子点に割り当てられることがあるから、色補正テーブルの記憶容量を低減するために、色空間の分割を荒くし、格子点の数を減らすと、出力された両画素の色の隔たりが大きく、結果的に画像の品質を低下させることがあった。   In the above image processing, even if pixels of the same color are close to each other in the original image, both pixels may be assigned to different grid points. Therefore, in order to reduce the storage capacity of the color correction table, If the division is made rough and the number of grid points is reduced, the color separation between the output pixels is large, and as a result, the quality of the image may be lowered.

本発明は、これらの問題を解決し、色補正のための演算処理を増やすことなく、低濃度領域を中心に出力画像の品質を更に向上させることを目的とする。   An object of the present invention is to solve these problems and further improve the quality of an output image centering on a low density area without increasing the number of arithmetic processes for color correction.

前記目的を達成する本発明の第1の画像処理装置は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、補正済みのカラー画像データとして出力する色補正手段と
を備えたことを要旨とする。
The first image processing apparatus of the present invention that achieves the above-described object provides:
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value using a predetermined number of gradations;
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Grid point information storage means for storing the coordinate values of grid points obtained by performing for each dimension for the color space;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
The gist of the present invention is to provide color correction means for reading out correction data of lattice points corresponding to the converted coordinate values from the color correction table and outputting them as corrected color image data.

また、この画像処理装置に対応した第一の画像処理方法は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、補正済みのカラー画像データとして出力する
ことを要旨としている。
The first image processing method corresponding to this image processing apparatus is
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value using a predetermined number of gradations,
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Storing the coordinate value of the grid point obtained by performing for each dimension for the color space,
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
The gist is to read out correction data of lattice points corresponding to the converted coordinate values from the color correction table and output the corrected color image data.

この画像処理装置および画像処理方法では、二次元以上の色空間における座標値を表現する階調数より少ない階調数によりこの色空角を分割し、各次元についてこの分割を行なうことにより得られた格子点の座標値を記憶し、更にこの各格子点に対応してカラー画像データの色に関する補正データを記憶した色補正データを用意している。画像の各画素について、座標値を所定の階調数を用いて表現したカラー画像データを入力し、この座標値を、格子点からの隔たりが平均的には所定値以下となる手法に従って、格子点の座標値に変換する。かかる変換により、複数の格子点データを用いた複雑な補間演算を行なう必要がない。しかも、格子点の分割は、低濃度領域で細かくなされているので、低濃度領域での色補正テーブルのデータの間隔も細かくなっている。したがって、入力データの座標値を格子点の座標値に変換する際の量子化誤差が、それが問題となる低濃度領域で小さくなり、画質の劣化が抑制される。この結果、画像出力装置に合わせた色補正演算を高速で行ない、良好な色再生が得られ、かつ画像の品質の劣化が抑制されることになる。   In this image processing apparatus and image processing method, it is obtained by dividing the color sky angle by the number of gradations smaller than the number of gradations expressing the coordinate value in the color space of two or more dimensions, and performing the division for each dimension. The coordinate values of the grid points are stored, and color correction data storing correction data relating to the color of the color image data corresponding to each grid point is prepared. For each pixel of the image, color image data expressing coordinate values using a predetermined number of gradations is input, and this coordinate value is converted into a grid according to a method in which the distance from the grid point is less than or equal to the predetermined value on average. Convert to the coordinate value of a point. Such conversion eliminates the need for performing a complex interpolation operation using a plurality of grid point data. In addition, since the grid points are divided finely in the low density region, the interval of the data of the color correction table in the low density region is also fine. Therefore, the quantization error when converting the coordinate value of the input data into the coordinate value of the lattice point becomes small in the low density region where it becomes a problem, and deterioration of the image quality is suppressed. As a result, the color correction calculation adapted to the image output apparatus is performed at high speed, good color reproduction is obtained, and deterioration of the image quality is suppressed.

本願発明における低濃度領域とは、画像出力装置に出力されるドットの密度が低い領域を言う。例えば、最終的な画像の出力がドットのオン・オフにより階調を表現するインクジェットプリンタである場合には、CMYなどのインクのドットの密度か低い領域を言う。また、出力装置がCRT等である場合には、白ドットに着目すれば白ドットがまばらに分布する領域(画像全体では高濃度領域)であり、黒ドットに着目すれば黒ドットがまばらに分布する領域(画像全体では低濃度領域)である。また、後述するように、同一色について濃度の高いインクと濃度の低いインクを備え、濃ドットと淡ドットを打ち分けるようなプリンタであれば、淡ドットがまばらに分布する領域(画像全体では低濃度領域)のみならず、濃ドットがまばらに分布する領域も、そのインクについての低濃度領域に該当する。   The low density region in the present invention refers to a region where the density of dots output to the image output apparatus is low. For example, when the final image output is an ink jet printer that expresses gradation by turning dots on and off, it means an area where the density of ink dots such as CMY is low. In addition, when the output device is a CRT or the like, white dots are sparsely distributed if attention is paid to white dots (black dots are sparsely distributed if attention is paid to black dots). This is a region to be used (low density region in the entire image). In addition, as will be described later, if the printer has high density ink and low density ink for the same color and separates dark dots from light dots, the area where light dots are sparsely distributed (low in the entire image). Not only the density area) but also the area where dark dots are sparsely distributed corresponds to the low density area for the ink.

なお、二次元以上の色空間としては、RGBやCMY系の色空間のみならず、XYZ表色系で表わされた色空間、L*a*b*表色系、L*C*h表色系、マンセル表色系など、種々の色空間を考えることができる。階調数としては、これらの座標値がnビット数のディジタルな情報により表現されている場合には、2のn乗(例えば8ビットなら256)の階調により表現されることが多いが、100階調とか17階調とか、2のn乗以外の階調数であっても差し支えない。上記の構成では、格子点の座標を、低濃度領域では細かく分割するものとしているが、色補正手段より補正された後のカラー画像データの各色成分の階調の間隔が低濃度領域で狭くなるように、選ぶことも好適である。これにより、色補正後のデータにおける低濃度領域でのプレ階調数変換の量子化誤差が小さくなるため、色空間を少ない階調数で分割したことによる画質の劣化を、より確実に抑制することができる。   Note that the color space of two or more dimensions includes not only RGB and CMY color spaces, but also a color space represented by an XYZ color system, an L * a * b * color system, and an L * C * h table. Various color spaces such as a color system and Munsell color system can be considered. As the number of gradations, when these coordinate values are expressed by digital information of n bits, they are often expressed by gradations of 2 n (for example, 256 for 8 bits). There may be 100 gradations, 17 gradations, or the number of gradations other than 2 to the power of n. In the above configuration, the coordinates of the grid points are finely divided in the low density region, but the gradation interval of each color component of the color image data after being corrected by the color correction unit is narrowed in the low density region. Thus, it is also preferable to select. As a result, the quantization error of the pre-gradation number conversion in the low density area in the data after color correction is reduced, so that the deterioration in image quality due to the division of the color space with a small number of gradations is more reliably suppressed. be able to.

この画像処理により出力される画像データの階調数は、画像出力装置に適した最終的な階調数よりも多いことが望ましい。その場合、この画像データは最終的な階調数へと更に階調数変換された後に画像出力装置に与えられることになるが、上記の格子点への割付による階調数変換の量子化誤差は、出力装置に適した最終的な階調数への変換の際に生じる誤差に比べると小さくなる。結果として、格子点への割り付けによる階調数変換を導入したことによる画質の劣化が抑制される。   It is desirable that the number of gradations of the image data output by this image processing is larger than the final number of gradations suitable for the image output apparatus. In this case, this image data is further converted to the final number of gradations and then supplied to the image output device. However, the quantization error in the gradation number conversion due to the assignment to the grid points described above. Is smaller than the error that occurs during the conversion to the final number of gradations suitable for the output device. As a result, image quality deterioration due to the introduction of tone number conversion by assignment to grid points is suppressed.

上述した画像座標値の格子点の座標値への変換は、誤差拡散の手法を用いて行なうことができる。また、分散型ディザの閾値マトリックスを用いた組織的ディザ法により格子点の座標を変換することも可能である。これらの手法によれば、量子化誤差を適正に分散することができる。   The above-described conversion of the image coordinate values into the coordinate values of the grid points can be performed using an error diffusion technique. It is also possible to convert the coordinates of lattice points by a systematic dither method using a distributed dither threshold matrix. According to these methods, the quantization error can be appropriately dispersed.

また、色空間の取り方の一つとして、RGBやCMY系のように、複数の基本色の濃度の組み合わせによりカラー画像データを構成する場合には、色空間における座標値を表現する階調数は、カラー画像データの各色成分の濃度に直接対応する形式となり、その色補正テーブルは、カラー画像データの各色成分の階調、即ち濃度に関する情報を記憶していることになる。この場合には、格子点情報は、カラー画像データの各色成分の階調の間隔が、所定の低濃度領域において他の濃度領域よりも狭くなるように、色空間の所定の低濃度領域を分割したものとすればよい。   In addition, as one of the methods for taking a color space, when color image data is configured by combining a plurality of basic color densities, such as RGB and CMY, the number of gradations expressing coordinate values in the color space Is a format that directly corresponds to the density of each color component of the color image data, and the color correction table stores information on the gradation, that is, density, of each color component of the color image data. In this case, the grid point information divides a predetermined low density area of the color space so that the gradation interval of each color component of the color image data is narrower than the other density areas in the predetermined low density area. What should I do?

カラー画像データの色の補正を行なうための色補正テーブルは、補正データとして、カラー画像データを最終的に処理する画像出力装置の色再現特性に適合したものを記憶することができる。色補正の目的には、様々なものが考えられるが、こうした用途のうち、画像出力装置の色再現特性に併せた補正は、画像の処理においてしばしば必要となるもののひとつである。   A color correction table for correcting the color of the color image data can store correction data that is suitable for the color reproduction characteristics of the image output apparatus that finally processes the color image data. Various purposes can be considered for color correction. Of these uses, correction in accordance with the color reproduction characteristics of the image output apparatus is one of the things that are often required in image processing.

本発明の第2の画像処理装置は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出す色補正データ読出手段と、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを最終的な補正済みのカラー画像データとして出力する色補正手段と
を備えことを要旨とする。
The second image processing apparatus of the present invention is
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value using a predetermined number of gradations;
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Grid point information storage means for storing the coordinate values of grid points obtained by performing for each dimension for the color space;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction data reading means for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table;
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. A value corresponding to the main color is read out, interpolation is performed using both values, and the correction data obtained by replacing the correction data for the main color with the interpolation result is output as final corrected color image data. And a color correcting means for performing the above.

この画像処理装置に対応した画像処理方法は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを最終的な補正済みのカラー画像データとして出力すること
を要旨としている。
An image processing method corresponding to this image processing apparatus is as follows:
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value using a predetermined number of gradations,
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Storing the coordinate value of the grid point obtained by performing for each dimension for the color space,
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
Read out the correction data of the grid points corresponding to the converted coordinate values from the color correction table,
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. A value corresponding to the main color is read out, interpolation is performed using both values, and the correction data obtained by replacing the correction data for the main color with the interpolation result is output as final corrected color image data. The gist is to do.

この画像処理装置および画像処理方法によれば、第一の画像処理装置および画像処理方法と同様、低濃度領域での画像の品質の劣化の少ない良好な結果が得られる。更に、第二の技術では、色補正テーブルから読み出した補正データを用いて、主要色のみ補間を行なうために、演算の複雑化を実質的に引き起こすこなく、色空間内の座標値の格子点の座標値への変換を行なうことによる画質の劣化を抑制できる。この補間の処理は、プレ階調数変換の量子化誤差の影響が問題となる低濃度領域だけで行なってもよい。   According to the image processing apparatus and the image processing method, as in the first image processing apparatus and the image processing method, it is possible to obtain a good result with little deterioration of the image quality in the low density region. Furthermore, in the second technique, since only the main color is interpolated using the correction data read from the color correction table, the grid points of the coordinate values in the color space are not substantially caused to complicate the calculation. Degradation of image quality due to conversion to the coordinate value of can be suppressed. This interpolation processing may be performed only in the low density region where the influence of the quantization error of the pre-gradation number conversion is a problem.

主要色についてのみ行なわれる補間の処理としては、線形補間などの単純に一次元の補間演算とすることができる。座標値の変換は、本来格子点からの隔たりが平均的には所定値以下となるよう行なわれているから、単純な補間演算でも、その効果は十分に得られるからである。もとより、隣接する他の格子点の座標値を用いた高次の補間演算を行なうことも差し支えない。   As an interpolation process performed only for the main color, a simple one-dimensional interpolation operation such as linear interpolation can be performed. This is because the conversion of the coordinate value is originally performed so that the distance from the grid point is on average equal to or less than a predetermined value, and thus even a simple interpolation operation can sufficiently obtain the effect. Of course, it is possible to perform a higher-order interpolation operation using the coordinate values of other adjacent grid points.

こうした画像処理装置において、カラー画像データの座標値が、カラー画像データの各色成分の濃度に対応した値として定義されており、前記格子点変換手段が、格子点座標の変換を階調数変換として行なう第1の階調数変換手段であり、
更に、前記色補正手段より出力された補正済みのカラー画像データの各色成分毎の階調数を、画像出力装置に適した階調数に階調数変換する第2の階調数変換手段を備え、
前記第1の階調数変換手段による座標値の変換によって得られる階調数が、前記第2の階調数変換手段により変換された後の階調数より大きいものとすることができる。
In such an image processing apparatus, the coordinate value of the color image data is defined as a value corresponding to the density of each color component of the color image data, and the lattice point conversion means converts the conversion of the lattice point coordinates as the gradation number conversion. First gradation number conversion means to perform,
Furthermore, a second gradation number conversion means for converting the gradation number for each color component of the corrected color image data output from the color correction means into a gradation number suitable for the image output apparatus. Prepared,
The number of gradations obtained by the coordinate value conversion by the first gradation number conversion means may be greater than the number of gradations after being converted by the second gradation number conversion means.

本発明の第3の画像処理装置は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出す色補正データ読出手段と、
該色補正データ読出手段が読み出した各画素の補正データを、該各画素の近傍の画素の補正データに基づいて平均化する処理を行なう平均化処理手段と
を備えたことを要旨としている。
The third image processing apparatus of the present invention
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value with a predetermined number of gradations;
A grid in which the color space is divided by the number of gradations smaller than the number of gradations expressing the coordinate value, and the coordinate values of the grid points obtained by performing the division for each dimension are stored for the color space. Point information storage means;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction data reading means for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table;
The gist of the invention is that it comprises an averaging processing means for performing a process of averaging the correction data of each pixel read by the color correction data reading means based on the correction data of the pixels in the vicinity of each pixel.

また、この画像処理装置に対応した画像処理方法は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、
該読み出した各画素の補正データを、該各画素の近傍の画素の補正データに基づいて平均化する処理を行なうこと
を要旨としている。
An image processing method corresponding to this image processing apparatus is as follows:
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value with a predetermined number of gradations,
Dividing the color space by the number of gradations smaller than the number of gradations representing the coordinate value, storing the coordinate values of grid points obtained by performing the division for each dimension for the color space;
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
Read out the correction data of the grid points corresponding to the converted coordinate values from the color correction table,
The gist is to perform the process of averaging the read correction data of each pixel based on the correction data of the pixels in the vicinity of each pixel.

この画像処理装置および画像処理方法によれば、色空間内の座標値を格子点の座標値に変換する手法により、従来の複雑な補間演算を省略することができ、良好な色再生が得られる。更に、色補正後の補正データに対して、近傍の画素の補正データに基づく平均化の処理(スムージング処理)を施すことにより、各画素の座標値を格子点の座標値に変換したことによる画質の劣化を抑制できる。このスムージング処理は、かかる座標値の変換の量子化誤差の影響が問題となる低濃度領域だけで行なってもよい。   According to the image processing apparatus and the image processing method, the conventional complicated interpolation calculation can be omitted by the method of converting the coordinate value in the color space into the coordinate value of the grid point, and good color reproduction can be obtained. . Further, the image quality obtained by converting the coordinate value of each pixel into the coordinate value of the grid point by performing an averaging process (smoothing process) based on the correction data of the neighboring pixels with respect to the correction data after color correction. Can be prevented. This smoothing process may be performed only in the low density region where the influence of the quantization error of the coordinate value conversion is a problem.

この画像処により出力される画像データの階調数は、画像出力装置に適した最終的な階調数よりも多いことが望ましい。その場合、この画像データは最終的な階調数へと更に階調数変換された後に画像出力装置に与えられることになるが、上記の格子点への割付による階調数変換の量子化誤差は、出力装置に適した最終的な階調数への変換により小さくなる。結果として、格子点への割り付けによる階調数変換を導入したことによる画質の劣化が抑制される。この点は、第1の画像処理装置および画像処理方法と同様である。   It is desirable that the number of gradations of the image data output by this image processing is larger than the final number of gradations suitable for the image output apparatus. In this case, this image data is further converted to the final number of gradations and then supplied to the image output device. However, the quantization error in the gradation number conversion due to the assignment to the grid points described above. Is reduced by the conversion to the final number of gradations suitable for the output device. As a result, image quality deterioration due to the introduction of tone number conversion by assignment to grid points is suppressed. This is the same as the first image processing apparatus and the image processing method.

上述した画像座標値の格子点の座標値への変換は、誤差拡散の手法を用いて行なうことができる。また、分散型ディザの閾値マトリックスを用いて格子点の座標を変換することも可能である。これらの手法によれば、量子化誤差を適正に分散することができる。更に、いずれの手法を用いるかを画像の性質などに基づいて切り換える構成とすることも可能である。誤差拡散の手法は、誤差の分散性に優れるが、一般に演算処理が増える。他方、高速処理の点では、分散型ディザの手法が勝る。したがって、両者の手法を切り換えて、それぞれの特徴を生かすことも望ましい。この場合、上記の平均化処理は、誤差拡散の手法が用いられる場合でかつ画像データの濃度が低い領域で行なうものとすることもできる。   The above-described conversion of the image coordinate values into the coordinate values of the grid points can be performed using an error diffusion technique. It is also possible to convert the coordinates of lattice points using a threshold matrix of distributed dither. According to these methods, the quantization error can be appropriately dispersed. Furthermore, it is possible to adopt a configuration in which which method is used is switched based on the properties of the image. The error diffusion method is excellent in error dispersion, but generally requires more arithmetic processing. On the other hand, the distributed dither method is superior in terms of high-speed processing. Therefore, it is also desirable to switch between both methods and take advantage of their respective characteristics. In this case, the averaging process may be performed in a region where an error diffusion technique is used and the density of the image data is low.

上記の平均化の処理を行なう場合の平均化の対象となる画素としては、様々なものを考えることができる。例えば、平均化の処理を行なう場合の近傍の画素を、カラー画像データを入力する方向に沿った隣接画素とすることができる。通常は画像データの入力順に画像の処理を行なうので、その入力方向に沿った隣接画素とすれば、処理が容易となる。入力方向に沿った隣接画素としては、入力する方向において手前側の画素を用いることもできるし、後ろ側の画素を用いることもできる。更に、前後に両側の隣接画素との平均を取ることも可能である。また、平均化の処理を行なう近傍の画素としては、カラー画像データを入力する方向に隣接する画素およびこの方向に交差する方向の画素を用いることもできる。なお、平均化の処理としては、単純な平均値の他に所定の重み付けを行なった加重平均値を用いることも可能である。   Various pixels can be considered as pixels to be averaged when the above averaging process is performed. For example, neighboring pixels when the averaging process is performed can be adjacent pixels along the direction in which the color image data is input. Normally, since the image processing is performed in the order of image data input, if the adjacent pixels are in the input direction, the processing becomes easy. As an adjacent pixel along the input direction, a pixel on the near side in the input direction can be used, or a pixel on the rear side can be used. Furthermore, it is possible to take an average of adjacent pixels on both sides in front and rear. In addition, as neighboring pixels on which the averaging process is performed, pixels adjacent to the direction in which color image data is input and pixels in a direction intersecting with this direction can also be used. As the averaging process, it is possible to use a weighted average value obtained by performing predetermined weighting in addition to a simple average value.

ここで、カラー画像データの座標値が、該カラー画像データの各色成分の濃度に対応した値として定義されており、前記格子点変換手段が、格子点座標の変換が階調数変換として行なう第1の階調数変換手段であり、更に、前記色補正手段より出力された補正済みのカラー画像データの各色成分毎の階調数を、画像出力装置に適した階調数に階調数変換する第2の階調数変換手段を備え、前記第1の階調数変換手段による座標値の変換によって得られる階調数が、前記第2の階調数変換手段により変換された後の階調数より大きいものとすることがでる。この場合には、第1の階調数変換手段による量子化誤差が、第2の階調数変換手段による階調数の変換により小さくされ、前者の量子化誤差による画質の劣化の影響は小さくなる。   Here, the coordinate value of the color image data is defined as a value corresponding to the density of each color component of the color image data, and the grid point conversion means performs the conversion of the grid point coordinates as the gradation number conversion. 1 gradation number conversion means, and further converts the gradation number for each color component of the corrected color image data output from the color correction means into a gradation number suitable for the image output apparatus. Second gradation number conversion means for converting the gradation number obtained by the coordinate value conversion by the first gradation number conversion means after the conversion by the second gradation number conversion means. It can be larger than the logarithm. In this case, the quantization error by the first gradation number conversion means is reduced by the conversion of the gradation number by the second gradation number conversion means, and the influence of image quality degradation due to the former quantization error is small. Become.

ここで、第2の階調数変換手段を、2値化を行ない、2値化されたドットの分布密度により階調を表現する手段とし、平均化処理手段を、2値化されたドットの密度が所定値以下の場合に、平均化の処理を行なう手段とすることができる。2値化を行なう画像出力装置の場合には、ドットの密度により濃度を表現するので、密度が所定値以下の場合に平均化を行なうものとすれば、低濃度領域での画像品質の劣化を防止することができる。   Here, the second gradation number converting means is a means for performing binarization and expressing the gradation by the distribution density of the binarized dots, and the averaging processing means is for the binarized dots. When the density is equal to or lower than a predetermined value, it can be a means for performing an averaging process. In the case of an image output apparatus that performs binarization, the density is expressed by the density of the dots. Therefore, if the averaging is performed when the density is equal to or less than a predetermined value, the image quality in the low density area is degraded. Can be prevented.

更に、こうした画像処理装置において平均化処理手段に、色補正データ読出手段により読み出した色補正データを、隣接する画素の色補正データとを比較する手段を設け、比較された両色補正データの相違が所定値以下の場合に、平均化の処理を行なうものとすることができる。平均化の処理は、一律に行なえば画像のシャープさを失う結果になりやすい。もともとエッジのある場所では、隣接する画素の色は大きく隔たっていることが多いから、色補正データの相違が所定値以下の場合に平均化を行なうものとすれば、画像本来のエッジでは平均化の処理は行なわれず、画質のなめらかさとシャープさを両立させることができる。   Further, in such an image processing apparatus, the averaging processing means is provided with means for comparing the color correction data read by the color correction data reading means with the color correction data of the adjacent pixels, and the difference between the compared two color correction data. When is equal to or less than a predetermined value, an averaging process can be performed. If the averaging process is performed uniformly, the sharpness of the image tends to be lost. Since the color of adjacent pixels is often largely separated at the place where there is an edge from the beginning, if averaging is performed when the difference in color correction data is less than or equal to a predetermined value, averaging is performed at the original edge of the image. This processing is not performed, and both smoothness of image quality and sharpness can be achieved.

また、こうした平均化の処理を行なうか否かは、カラー画像データを構成する各色の少なくとも一つの色について判断するものとし、この色についての判断に基づいて各色毎に平均化の処理を行なうものとしても良い。   Whether or not to perform the averaging process is determined for at least one of the colors constituting the color image data, and the averaging process is performed for each color based on the determination of the color. It is also good.

あるいは、近接する画素について入力されたカラー画像データの色空間内での隔たりが所定距離以下であると推定される場合に、平均化の処理を行なうものとしても良い。   Alternatively, the averaging process may be performed when it is estimated that the distance in the color space of the color image data input for adjacent pixels is equal to or less than a predetermined distance.

カラー画像データの色空間内での隔たりが所定距離以下であるか否かの推定は、様々な判断手法を考えることができる。例えば、近接する画素について格子点変換手段により変換された後の格子点が少なくとも隣接する場合に、この近接する画素間の隔たりが所定距離以下であるとの推定することができる。また、近接する画素についてのカラー画像データが、共に、格子点情報記憶手段が記憶している格子点が形成する単位空間に含まれる場合に、近接する画素間の隔たりが所定距離以下であるとの推定することもできる。原画像において同一またはほぼ同じ色であった画素が、格子点変換手段により変換された結果、異なる格子点に割り当てられた場合に、平均化の処理を行なうことが、画像の細かさや解像度を失うことなく画質の改善を図ることになるからである。   Various judgment methods can be considered for estimating whether or not the separation of the color image data in the color space is a predetermined distance or less. For example, when at least adjacent lattice points converted by the lattice point converting means for adjacent pixels are adjacent to each other, it can be estimated that the distance between the adjacent pixels is equal to or less than a predetermined distance. Further, when the color image data for adjacent pixels is included in the unit space formed by the lattice points stored in the lattice point information storage means, the distance between adjacent pixels is equal to or less than a predetermined distance. Can also be estimated. When pixels having the same or almost the same color in the original image are assigned to different grid points as a result of conversion by the grid point conversion means, the averaging process loses the fineness and resolution of the image. This is because the image quality can be improved without any problems.

カラー画像データにおける近接する画素の色空間内での隔たりが所定距離以下であると推定された場合に、平均化の処理についての他の実行条件の成立を判断し、該近接する二つの画素の隔たりが所定距離以下であると判断され、かつ他の実行条件が成立していると判断した場合のみ、前記平均化の処理を行なうものとすることができる。他の実行条件としては、画像データが所定の濃度以下である場合等、種々の条件を考えることができる。   When it is estimated that the distance in the color space of adjacent pixels in the color image data is less than or equal to a predetermined distance, it is determined whether other execution conditions for the averaging process are satisfied, and the two adjacent pixels are The averaging process can be performed only when it is determined that the distance is equal to or less than the predetermined distance and other execution conditions are satisfied. As other execution conditions, various conditions can be considered such as when the image data is below a predetermined density.

こうした平均化処理を行なう画像処理装置においても、格子点情報記憶手段が、格子点の座標を、色空間の所定の低濃度領域では他の領域よりも色空間を細かく分割して記憶するものとすることができる。この結果、低濃度領域での画質は一層良好なものとなる。   Also in an image processing apparatus that performs such averaging processing, the grid point information storage means stores the coordinates of grid points in a predetermined low density area of the color space by dividing the color space more finely than other areas. can do. As a result, the image quality in the low density region is further improved.

更に、本発明の第4の画像処理装置は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出す色補正データ読出手段と、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを出力する色補正手段と
を備えたことを要旨とする。
Furthermore, the fourth image processing apparatus of the present invention provides:
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value with a predetermined number of gradations;
A grid in which the color space is divided by the number of gradations smaller than the number of gradations expressing the coordinate value, and the coordinate values of the grid points obtained by performing the division for each dimension are stored for the color space. Point information storage means;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction data reading means for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table;
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. Color correction means for reading out a value corresponding to the main color, performing interpolation using both values, and outputting the correction data obtained by replacing the correction data for the main color with the interpolation result. The gist.

また、この画像処理装置に対応した画像処理方法は、
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを出力し
を要旨としている。
An image processing method corresponding to this image processing apparatus is as follows:
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value with a predetermined number of gradations,
Dividing the color space by the number of gradations smaller than the number of gradations representing the coordinate value, storing the coordinate values of grid points obtained by performing the division for each dimension for the color space;
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
Read out the correction data of the grid points corresponding to the converted coordinate values from the color correction table,
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. The gist is to read out the value corresponding to the main color, perform interpolation using both values, and output the correction data in which the correction data for the main color is replaced with the interpolation result.

この画像処理の手法によれば、主要色についてのみ補間演算を行なうので、演算量が少なくて済み、かつ補間により主要色についての量子化誤差を解消する。したがって、処理速度を徒に低下することなく、視認される画質の劣化を最小限に押さえことができる。   According to this image processing method, the interpolation calculation is performed only for the main color, so that the calculation amount is small, and the quantization error for the main color is eliminated by the interpolation. Therefore, it is possible to minimize degradation of visually recognized image quality without reducing the processing speed.

なお、上述した低濃度領域で細かく分割された格子点を用いた格子点変換と、主要色についての補間処理と、近接する格子点間における平均化処理とを、併せて行なうことも可能である。この場合には、それぞれの利点を生かして、演算に要する時間を短くでき、かつ格子点変換による画質の劣化を最小限に押さえることができる。   In addition, it is also possible to perform the lattice point conversion using the lattice points finely divided in the low density region, the interpolation processing for the main color, and the averaging processing between adjacent lattice points in combination. . In this case, by taking advantage of the respective advantages, the time required for calculation can be shortened, and deterioration in image quality due to grid point conversion can be minimized.

次に、本発明の画像処理装置の好適な実施形態を、図面に基づき詳細に説明する。図1には、本発明の第1の実施の形態としての画像処理装置30を中心とするカラー画像処理システムの一例が示されている。この画像処理システムでは、スキャナなどの画像入力装置10から出力される原カラー画像データORGは、画像処理装置30へ入力される。画像処理装置30により処理された画像データは、最終的にはプリンタなどの画像出力装置20に出力され、ここで最終的な画像が得られる。実施の形態の説明が多岐に亘るため、
(1)画像処理装置のハードウェア
(2)画像処理の概要−その1
の順に説明し、更にここで、第1ないし第2実施例について説明する。その後、(3)画像処理の概要−その2
として、第3ないし第6実施例について説明する。
Next, a preferred embodiment of the image processing apparatus of the present invention will be described in detail with reference to the drawings. FIG. 1 shows an example of a color image processing system centering on an image processing apparatus 30 as a first embodiment of the present invention. In this image processing system, original color image data ORG output from an image input device 10 such as a scanner is input to the image processing device 30. The image data processed by the image processing device 30 is finally output to the image output device 20 such as a printer, where a final image is obtained. Since the description of the embodiment is diverse,
(1) Hardware of image processing apparatus (2) Outline of image processing-1
The first and second embodiments will now be described. After that, (3) Outline of Image Processing-Part 2
The third to sixth embodiments will be described as follows.

(1)画像処理装置のハードウェア
画像処理装置30は、入力された原カラー画像データORGを画像出力装置20の色再現特性に合わせる画像処理として、色補正と階調数変換を行なっている。色補正は、例えばガンマ補正など、画像出力装置の出力特性を補正する処理である。また、階調数変換とは、画像入力装置10から出力されるカラー画像データORGの出力可能な階調数に比べ、画像出力装置20の出力可能な階調数が小さい場合には、色補正されたカラー画像データを、画像出力装置20に合わせた最終的な階調数に変換する処理である。例えば、スキャナ等から読み込んだ画像データORGが、R,G,Bの各色について階調数が256(8ビット分)であり、画像出力装置20が、インクのオン・オフによる表現を行なうインクジェットプリンタであって、最終的な階調数が2であるという構成があり得る。この場合、画像処理装置30は、256階調の画像データを2階調に変換し、最終カラー画像データFNLとして画像出力装置20へ向け出力する。なお、以上の説明では、一括して階調数変換と呼んだが、実際には、入力した原カラー画像データORGを色補正前に階調数の少ない格子点に割り付けることにより階調数を低減するプレ階調数変換と、色補正された後のデータをプリンタの表現可能な階調数に合わせて2値化するいわゆるハーフトーン処理による階調数変換とを行なっている。以下の説明では、前者をプレ階調数変換と、後者をポスト階調数変換と呼ぶ。各階調数変換については、後で詳しく説明する。
(1) Hardware of Image Processing Device The image processing device 30 performs color correction and tone number conversion as image processing that matches the input original color image data ORG with the color reproduction characteristics of the image output device 20. The color correction is a process for correcting the output characteristics of the image output apparatus such as gamma correction. The gradation number conversion is color correction when the number of gradations that can be output by the image output apparatus 20 is smaller than the number of gradations that can be output by the color image data ORG output from the image input apparatus 10. This is a process of converting the color image data that has been processed into a final number of gradations that matches the image output device 20. For example, the image data ORG read from a scanner or the like has 256 gradations (for 8 bits) for each color of R, G, and B, and the image output apparatus 20 performs expression by turning on / off ink. In addition, there can be a configuration in which the final number of gradations is two. In this case, the image processing apparatus 30 converts the image data of 256 gradations into 2 gradations, and outputs it to the image output apparatus 20 as final color image data FNL. In the above description, the tone number conversion is collectively called, but actually, the number of gradations is reduced by assigning the input original color image data ORG to a grid point having a small number of tone levels before color correction. Pre-gradation number conversion to be performed and gradation number conversion by so-called halftone processing that binarizes the data after color correction in accordance with the gradation number that can be expressed by the printer. In the following description, the former is called pre-gradation conversion and the latter is called post-gradation conversion. Each gradation number conversion will be described in detail later.

図2には、図1に示すカラー画像処理システムの具体的な構成例を示すブロック図である。ここでは、画像入力装置10としては、原稿からカラー画像を光学的に読み取るスキャナ12が用いられている。スキャナ12は、読み取ったカラー画像データを、R,G,Bの3色の色成分からなる原カラー画像データORGとして出力する。なお、実施例では、R,G,Bの各色は、各8ビットのディジタルデータで表現されており、階調数は256である。このケースでは、スキャナ12は、R,G,Bの3原色により原カラー画像データを表現するものとしており、各画素の色は、R,G,Bの各色を座標軸とする三次元の色空間内のどこに位置するかという形式、即ち座標値により表現されているが、他の形式、例えばL*a*b*などいかなる表色系を採用しても、ある画素の色は、その色空間内のどこに位置するか、即ち座標値として表現することができる。   FIG. 2 is a block diagram showing a specific configuration example of the color image processing system shown in FIG. Here, as the image input device 10, a scanner 12 that optically reads a color image from a document is used. The scanner 12 outputs the read color image data as original color image data ORG composed of three color components R, G, and B. In the embodiment, each color of R, G, and B is expressed by 8-bit digital data, and the number of gradations is 256. In this case, the scanner 12 expresses primary color image data with the three primary colors R, G, and B, and the color of each pixel is a three-dimensional color space having the R, G, and B colors as coordinate axes. The position of the pixel is expressed by a coordinate position value, that is, a coordinate value. However, even if any other color system such as L * a * b * is adopted, the color of a pixel is in its color space. It can be expressed as a coordinate value where it is located.

なお、画像入力装置10としては、このようなスキャナ12以外に、例えば、ビデオカメラ、コンピュータグラフィック作成用のホストコンピュータ、その他の手段を用いることができる。   In addition to the scanner 12, for example, a video camera, a host computer for creating computer graphics, and other means can be used as the image input device 10.

また、実施例の画像処理システムでは、画像出力装置20として、画素単位での階調制御ができないカラープリンタ22が用いられている。このカラープリンタ22では、スキャナ12から出力される原カラー画像データORGの各色成分の階調数を、各画素のオン/オフに対応した2階調にまで減らす2値化処理が必要となることは前述した。   In the image processing system of the embodiment, a color printer 22 that cannot perform gradation control in units of pixels is used as the image output device 20. The color printer 22 needs to perform binarization processing that reduces the number of gradations of each color component of the original color image data ORG output from the scanner 12 to two gradations corresponding to on / off of each pixel. Mentioned above.

なお、画像出力装置20としては、これ以外に、例えばカラーディスプレイ21等も用いることができる。コンピュータ用のカラーディスプレイ21などでは、通常の家庭用TVに比べ、表示可能な階調数が小さなものが多い。このようなカラーディスプレイ21を用いる場合でも、原カラー画像データORGの階調数を、当該ディスプレイ21に対応した階調数に変換してやる必要がある。   In addition to this, for example, a color display 21 or the like can also be used as the image output device 20. Many color displays 21 for computers, for example, have a smaller number of displayable gradations than ordinary home TVs. Even when such a color display 21 is used, it is necessary to convert the number of gradations of the original color image data ORG into the number of gradations corresponding to the display 21.

次に、画像処理装置30に相当する具体的な構成について説明する。図2では、画像処理装置30として、コンピュータ90を用いた構成を示している。このコンピュータ90の内部には、図示しないCPU,RAM,ROM等が備えられており、所定のオペレーティングシステムの元で、アプリケーションプログラム95が動作している。オペレーティングシステムには、ビデオドライバ91やプリンタドライバ96が組み込まれており、アプリケーションプログラム95からはこれらのドライバを介して、最終カラー画像データFNLが出力されることになる。画像のレタッチなどを行なうアプリケーションプログラム95は、スキャナ12から画像を読み込み、これに対して所定の処理を行ないつつビデオドライバ91を介してCRTディスプレイ93に画像を表示している。このアプリケーションプログラム95が、印刷命令を発行すると、コンピュータ90のプリンタドライバ96が、画像情報をアプリケーションプログラム95から受け取り、これをプリンタ22が印字可能な信号(ここではCMYについての2値化された信号)に変換している。図2に示した例では、プリンタドライバ96の内部には、アプリケーションプログラム95が扱っているカラー画像データをドット単位の画像データに変換するラスタライザ97、ドット単位の画像データに対して画像出力装置(ここではプリンタ22)が使用するインク色CMYおよび発色の特性に応じた色補正を行なう色補正モジュール98、色補正モジュール98が参照する色補正テーブルCT、色補正された後の画像情報からドット単位でのインクの有無によってある面積での濃度を表現するいわゆるハーフトーンの画像情報を生成するハーフトーンモジュール99が備えられている。   Next, a specific configuration corresponding to the image processing apparatus 30 will be described. FIG. 2 shows a configuration using a computer 90 as the image processing apparatus 30. The computer 90 is provided with a CPU, RAM, ROM, etc. (not shown), and an application program 95 operates under a predetermined operating system. A video driver 91 and a printer driver 96 are incorporated in the operating system, and the final color image data FNL is output from the application program 95 via these drivers. An application program 95 that performs image retouching and the like reads an image from the scanner 12, performs predetermined processing on the image, and displays the image on the CRT display 93 via the video driver 91. When the application program 95 issues a print command, the printer driver 96 of the computer 90 receives image information from the application program 95 and receives a signal that can be printed by the printer 22 (here, a binarized signal for CMY). ). In the example shown in FIG. 2, the printer driver 96 includes a rasterizer 97 that converts color image data handled by the application program 95 into image data in dot units, and an image output device (for image data in dot units). Here, the color correction module 98 for performing color correction in accordance with the ink colors CMY and color development characteristics used by the printer 22), the color correction table CT referred to by the color correction module 98, and the image information after color correction, in dot units. There is provided a halftone module 99 for generating so-called halftone image information expressing the density in a certain area depending on the presence or absence of ink.

既述したプレ階調数変換は、色補正モジュール98により、ポスト階調数変換は、ハーフトーンモジュール99により行なわれる。色補正モジュール98での処理が、格子点変換処理に相当する。   The pre-gradation conversion described above is performed by the color correction module 98, and the post-gradation conversion is performed by the halftone module 99. The processing in the color correction module 98 corresponds to lattice point conversion processing.

次に、出力装置であるプリンタ22の構造について簡単に説明する。図3は、プリンタ22の概略構成図である。図示するように、このプリンタ22は、紙送りモータ23によって用紙Pを搬送する機構と、キャリッジモータ24によってキャリッジ31をプラテン26の軸方向に往復動させる機構と、キャリッジ31に搭載された印字ヘッド28を駆動してインクの吐出およびドット形成を制御する機構と、これらの紙送りモータ23,キャリッジモータ24,印字ヘッド28および操作パネル32との信号のやり取りを司る制御回路40とから構成されている。   Next, the structure of the printer 22 as an output device will be briefly described. FIG. 3 is a schematic configuration diagram of the printer 22. As shown in the figure, the printer 22 includes a mechanism for transporting the paper P by the paper feed motor 23, a mechanism for reciprocating the carriage 31 in the axial direction of the platen 26 by the carriage motor 24, and a print head mounted on the carriage 31. And a control circuit 40 that controls the exchange of signals with the paper feed motor 23, the carriage motor 24, the print head 28, and the operation panel 32. Yes.

このプリンタ22のキャリッジ31には、黒インク用のカートリッジ71とシアン,マゼンタ,イエロの3色のインクを収納したカラーインク用カートリッジ72が搭載可能である。キャリッジ31の下部の印字ヘッド28には計4個のインク吐出用ヘッド61ないし64が形成されており、キャリッジ31の底部には、この各色用ヘッドにインクタンクからのインクを導く導入管65(図4参照)が立設されている。キャリッジ31に黒インク用のカートリッジ71およびカラーインク用カートリッジ72を上方から装着すると、各カートリッジに設けられた接続孔に導入管が挿入され、各インクカートリッジから吐出用ヘッド61ないし64へのインクの供給が可能となる。   The carriage 31 of the printer 22 can be mounted with a black ink cartridge 71 and a color ink cartridge 72 containing three colors of cyan, magenta, and yellow. A total of four ink ejection heads 61 to 64 are formed on the print head 28 below the carriage 31. An introduction pipe 65 (leading ink from the ink tank to the color heads is provided on the bottom of the carriage 31. (See FIG. 4). When the black ink cartridge 71 and the color ink cartridge 72 are mounted on the carriage 31 from above, an introduction tube is inserted into a connection hole provided in each cartridge, and ink from each ink cartridge to the ejection heads 61 to 64 is inserted. Supply becomes possible.

インクが吐出される機構を簡単に説明する。図4に示すように、インク用カートリッジ71,72がキャリッジ31に装着されると、毛細管現象を利用してインク用カートリッジ内のインクが導入管65を介して吸い出され、キャリッジ31下部に設けられた印字ヘッド28の各色ヘッド61ないし64に導かれる。なお、初めてインクカートリッジが装着されたときには、専用のポンプによりインクを各色ヘッド61ないし64に吸引する動作が行なわれるが、本実施例では吸引のためのポンプ、吸引時に印字ヘッド28を覆うキャップ等の構成については図示および説明を省略する。   A mechanism for ejecting ink will be briefly described. As shown in FIG. 4, when the ink cartridges 71 and 72 are mounted on the carriage 31, the ink in the ink cartridge is sucked out via the introduction tube 65 using the capillary phenomenon, and is provided at the lower portion of the carriage 31. The print heads 28 are guided to the respective color heads 61 to 64. When the ink cartridge is first installed, an operation of sucking ink to each of the color heads 61 to 64 is performed by a dedicated pump. In this embodiment, a pump for suction, a cap for covering the print head 28 at the time of suction, etc. The illustration and description of this configuration are omitted.

各色ヘッド61ないし64には、図4に示したように、各色毎に32個のノズルnが設けられており、各ノズル毎に電歪素子の一つであって応答性に優れたピエゾ素子PEが配置されている。ピエゾ素子PEとノズルnとの構造を詳細に示したのが、図5である。図示するように、ピエゾ素子PEは、ノズルnまでインクを導くインク通路80に接する位置に設置されている。ピエゾ素子PEは、周知のように、電圧の印加により結晶構造が歪み、極めて高速に電気−機械エネルギの変換を行なう素子である。本実施例では、ピエゾ素子PEの両端に設けられた電極間に所定時間幅の電圧を印加することにより、図5下段に示すように、ピエゾ素子PEが電圧の印加時間だけ伸張し、インク通路80の一側壁を変形させる。この結果、インク通路80の体積は、ピエゾ素子PEの伸張に応じて収縮し、この収縮分に相当するインクが、粒子Ipとなって、ノズルnの先端から高速に吐出される。このインク粒子Ipがプラテン26に装着された用紙Pに染み込むことにより、印刷が行なわれることになる。   As shown in FIG. 4, each of the color heads 61 to 64 is provided with 32 nozzles n for each color, and is one of the electrostrictive elements for each nozzle and has excellent responsiveness. PE is arranged. FIG. 5 shows the structure of the piezo element PE and the nozzle n in detail. As shown in the drawing, the piezo element PE is installed at a position in contact with the ink passage 80 that guides ink to the nozzle n. As is well known, the piezo element PE is an element that transforms electro-mechanical energy at a very high speed because the crystal structure is distorted by application of a voltage. In the present embodiment, by applying a voltage having a predetermined time width between the electrodes provided at both ends of the piezo element PE, the piezo element PE extends for the voltage application time as shown in the lower part of FIG. One side wall of 80 is deformed. As a result, the volume of the ink passage 80 contracts according to the expansion of the piezo element PE, and the ink corresponding to the contraction becomes particles Ip and is ejected from the tip of the nozzle n at high speed. Printing is performed by the ink particles Ip soaking into the paper P mounted on the platen 26.

以上説明したハードウェア構成を有するプリンタ22は、紙送りモータ23によりプラテン26その他のローラを回転して用紙Pを搬送しつつ、キャリッジ31をキャリッジモータ24により往復動させ、同時に印字ヘッド28の各色ヘッド61ないし64のピエゾ素子PEを駆動して、各色インクの吐出を行ない、用紙P上に多色の画像を形成する。   In the printer 22 having the hardware configuration described above, the carriage 31 is reciprocated by the carriage motor 24 while simultaneously rotating the platen 26 and other rollers by the paper feed motor 23 to convey the paper P, and at the same time, each color of the print head 28. The piezo elements PE of the heads 61 to 64 are driven to discharge each color ink and form a multicolor image on the paper P.

用紙Pを搬送する機構は、紙送りモータ23の回転をプラテン26のみならず、図示しない用紙搬送ローラに伝達するギヤトレインを備える(図示省略)。また、キャリッジ31を往復動させる機構は、プラテン26の軸と並行に架設されキャリッジ31を摺動可能に保持する摺動軸34と、キャリッジモータ24との間に無端の駆動ベルト36を張設するプーリ38と、キャリッジ31の原点位置を検出する位置検出センサ39等から構成されている。   The mechanism for transporting the paper P includes a gear train (not shown) that transmits the rotation of the paper feed motor 23 not only to the platen 26 but also to a paper transport roller (not shown). Further, the mechanism for reciprocating the carriage 31 has an endless drive belt 36 stretched between the carriage motor 24 and a slide shaft 34 that is mounted in parallel with the axis of the platen 26 and slidably holds the carriage 31. And a position detection sensor 39 for detecting the origin position of the carriage 31.

制御回路40の内部には、図示しないCPUなどが備えられているが、プリンタ22の出力特性に応じた色補正などは、コンピュータ90内部で処理されており、プリンタ22では、階調数の変換や色補正などに関する処理は一切行なわれていない。プリンタ22の内部で実行される処理は、コンピュータ90から出力されるデータを受け取って、上述した紙送りとキャリッジ31の往復動作に同期して、印字ヘッド28の各色ピエゾ素子PEを駆動するだけである。したがって、プリンタ22の制御回路40の詳細な説明やその処理については、説明を省略する。   The control circuit 40 includes a CPU (not shown). However, color correction according to the output characteristics of the printer 22 is processed in the computer 90, and the printer 22 converts the number of gradations. No processing related to color correction is performed. The processing executed inside the printer 22 is simply to receive the data output from the computer 90 and drive each color piezo element PE of the print head 28 in synchronization with the paper feed and the reciprocation of the carriage 31 described above. is there. Therefore, a detailed description of the control circuit 40 of the printer 22 and its processing are omitted.

(2)画像処理の概要
次に、画像処理の概要について説明する。本実施の形態で採用した画像処理は、プレ階調数変換、色補正、ホスト階調数変換と多岐に亘る。また、それらの処理のバリエーションも、誤差拡散法、平均誤差最小法、組織的ディザ法、あるいはソフトウェアによる色補正,ハードウェアによる色補正など、極めて多いので、説明の便を図って、次の順に説明する。
[A]画像処理のアウトライン
[B]第1ないし第7実施例に共通する画像処理の概要
[C]第1ないし第3実施例に共通する画像処理の詳細
[D]第1ないし第3実施例
[E]第4ないし第7実施例に共通する画像処理の詳細
[F]第4ないし第7実施例
(2) Outline of Image Processing Next, an outline of image processing will be described. The image processing employed in this embodiment includes a wide range of pre-gradation conversion, color correction, and host gradation conversion. There are also many variations of these processes, such as error diffusion method, average error minimum method, systematic dither method, software color correction, hardware color correction, etc. explain.
[A] Outline of image processing [B] Outline of image processing common to first to seventh embodiments [C] Details of image processing common to first to third embodiments [D] First to third embodiments Example [E] Details of image processing common to the fourth to seventh embodiments [F] Fourth to seventh embodiments

[A]画像処理のアウトライン
コンピュータ90内部の色補正モジュール98が参照する補正テーブルCTは、図6に示すように、R,G,Bの3色から構成される3次元色空間を格子状に分割した色テーブルである。このテーブルCTは、プリンタドライバ96がオペレーティングシステムに組み込まれる際、例えばハードディスクから読み出され、コンピュータのRAMに展開される。この色テーブルの各格子点には、例えばスキャナ12などの読み取り用カラー原稿と、例えばカラープリンタ22を用いて記録紙上に印字された出力カラー画像とが等しい色になるように、各格子点のR,G,Bの階調値データを階調値変換したCMY色の階調補正データが記憶されている。
[A] Outline of Image Processing As shown in FIG. 6, the correction table CT referred to by the color correction module 98 in the computer 90 has a three-dimensional color space composed of three colors R, G, and B in a grid pattern. This is a divided color table. The table CT is read from, for example, a hard disk when the printer driver 96 is incorporated in the operating system, and is expanded in the RAM of the computer. For each grid point of this color table, for example, a color document for reading such as the scanner 12 and an output color image printed on a recording sheet using, for example, the color printer 22 have the same color. CMY color gradation correction data obtained by converting the gradation value data of R, G, and B is stored.

コンピュータ90は、スキャナ12から入力される原カラー画像データORGに対し、補正テーブルCTに記憶された補正データを用い補正処理を行ない(プレ階調数変換)、さらに色補正されたカラーデータを、例えばカラープリンタ22などの画像出力装置20の階調数Nに合わせた最終的な階調数に変換するポスト階調数変換処理を行なうことは、上述した通りである。このようにして変換処理された最終的なカラー画像データFNLは、そのままカラープリンタ22へ向け出力してもよく、また、コンピュータ90のメモリ内に、一画面分の最終カラー画像データFNLとして記憶し、その後カラープリンタ22に出力するようにしてもよい。   The computer 90 performs correction processing on the original color image data ORG input from the scanner 12 using correction data stored in the correction table CT (pre-gradation number conversion), and further performs color correction on the color data. For example, as described above, the post-gradation number conversion process for converting to the final gradation number corresponding to the gradation number N of the image output device 20 such as the color printer 22 is performed. The final color image data FNL thus converted may be output to the color printer 22 as it is, and is stored in the memory of the computer 90 as final color image data FNL for one screen. Thereafter, the data may be output to the color printer 22.

[B]第1ないし第8実施例に共通する画像処理の概要
図7には、コンピュータ90の色補正モジュール98とハーフトーンモジュール99とにより実現される画像処理装置30の機能ブロック図が示されている。この画像処理装置30は、図7では、プレ階調数変換部140と、色補正部142と、ポスト階調数変換部146と、前述した色補正テーブルCTを格納した色補正テーブルメモリ134とから構成されるものとしている。まず、前記色補正テーブルメモリ134に記憶された補正データについて説明する。
[B] Overview of Image Processing Common to First to Eighth Embodiments FIG. 7 shows a functional block diagram of an image processing apparatus 30 realized by the color correction module 98 and the halftone module 99 of the computer 90. ing. In FIG. 7, the image processing apparatus 30 includes a pre-gradation number conversion unit 140, a color correction unit 142, a post-gradation number conversion unit 146, and a color correction table memory 134 that stores the color correction table CT described above. It is composed of First, correction data stored in the color correction table memory 134 will be described.

図6に示したよう、入力される原カラー画像データORGは、R,G,Bの各色成分に対応した座標軸をもつ色空間における座標値として定義される。各座標軸は、各色成分の階調数を座標値として設定している。そして、この色空間を格子状に分割して、各格子点300毎に、各色成分の補正データを格納している。   As shown in FIG. 6, the input original color image data ORG is defined as coordinate values in a color space having coordinate axes corresponding to R, G, and B color components. Each coordinate axis sets the number of gradations of each color component as a coordinate value. Then, this color space is divided into grids, and correction data for each color component is stored for each grid point 300.

色補正テーブルメモリ134内に格納する補正データの決定手法にはいろいろある。それを決定し、テーブルCT内に格納する工程に関して簡単に説明する。通常は、まず、対象とする出力系(例えばカラープリンタ22)にいろいろなR,G,B値を与えて実際に出力された結果を色測定する。そして、出力系に与えたR,G,Bの値と、出力結果を測定して得られたR,G,Bの値との対応関係を調べる。なお、プリンタ22における実際のインク色はCMYであるが、ここでは説明を簡略にするため、総てR,G,Bで扱う。R,G,BからC,M,Yへの変換についても、後で詳しく説明する。   There are various methods for determining correction data to be stored in the color correction table memory 134. The process of determining it and storing it in the table CT will be briefly described. Usually, first, various R, G, and B values are given to a target output system (for example, the color printer 22), and the actual output result is subjected to color measurement. Then, the correspondence relationship between the R, G, and B values given to the output system and the R, G, and B values obtained by measuring the output result is examined. The actual ink color in the printer 22 is CMY, but here it is handled in R, G, and B for the sake of simplicity. The conversion from R, G, B to C, M, Y will also be described in detail later.

次に、その対応関係を逆にみて、対応する色を得たい場合に必要なR,G,Bの各色成分の階調数補正データを各格子点300毎に調べ、これを補正データとして色補正テーブルメモリ134内に格納する。   Next, the correspondence relationship is reversed, and the tone number correction data for each of the R, G, and B color components necessary for obtaining the corresponding color is checked for each grid point 300, and this is used as the correction data. Stored in the correction table memory 134.

このようにして色補正テーブルメモリ134内には、各格子点300毎に対応する色補正結果が記憶されることとなる。前記色空間は、分割数が多いほど画質が向上するが、半面、色補正テーブルメモリ134の容量が大きくなるので、色補正テーブルの容量と画質のバランスから適当な分割数を決定する。   In this way, the color correction result corresponding to each grid point 300 is stored in the color correction table memory 134. In the color space, the image quality improves as the number of divisions increases. However, since the capacity of the color correction table memory 134 increases, an appropriate number of divisions is determined from the balance between the color correction table capacity and the image quality.

実施形態の画像処理装置30は、このようにして色補正テーブルメモリ134内に記憶された補正データを用い、原カラー画像データORGに対する画像処理を次のようにして行う。   The image processing apparatus 30 according to the embodiment uses the correction data stored in the color correction table memory 134 in this way, and performs image processing on the original color image data ORG as follows.

まず、プレ階調数変換部140は、所定の階調数変換手法を用い、原カラー画像データORGのR,G,Bの色成分の階調数を、図6に示す色空間内の最適格子点の階調座標値に変換するプレ階調数変換を行なう。そして、変換されたデータを格子点カラー画像データGCDとして色補正部142へ向け出力する。ここでは、原カラー画像データORGの各色成分を、RがNr階調、GがNg階調、BがNb階調になるよう、プレ階調数変換を行ない、その結果を、Rk、Gk、BKとして出力する。   First, the pre-gradation number conversion unit 140 uses a predetermined gradation number conversion method to set the number of gradations of the R, G, and B color components of the original color image data ORG to the optimum in the color space shown in FIG. Pre-gradation number conversion is performed to convert the gradation coordinate values of the grid points. The converted data is output to the color correction unit 142 as lattice point color image data GCD. Here, the number of pre-gradations is converted so that each color component of the original color image data ORG is Nr gradation, G is Ng gradation, and B is Nb gradation, and the result is expressed as Rk, Gk, Output as BK.

なお、プレ階調数変換部140における、階調数の変換の手法としては、多値の誤差拡散法、平均誤差最小法や、多値の組織的ディザ法等各種の手法が採用できる。その詳細については、後述する。   Note that as the method of converting the number of gradations in the pre-gradation number conversion unit 140, various methods such as a multi-value error diffusion method, an average error minimum method, and a multi-value systematic dither method can be employed. Details thereof will be described later.

色補正部142は、入力される格子点カラー画像データGCDに対応した格子点の階調補正データを、色補正テーブルメモリ134から読み出す。そして、格子点カラー画像データGCDの色成分Rk、Gk、Bkの階調数を補正し、色補正データCCDとしてポスト階調数変換部146へ向け出力する。ここでは、色補正データCCDの各色成分のデータをRc 、Gc 、Bc と表す。   The color correction unit 142 reads, from the color correction table memory 134, gradation correction data of lattice points corresponding to the input lattice point color image data GCD. Then, the number of gradations of the color components Rk, Gk, and Bk of the lattice point color image data GCD is corrected and output to the post gradation number conversion unit 146 as color correction data CCD. Here, the data of each color component of the color correction data CCD is represented as Rc, Gc, Bc.

そして、ポスト階調数変換部146は、色補正部142から得られた色補正データCCDを、誤差拡散法または平均誤差最小法によって、最終的に変換したい階調数までポスト階調数変換し、これを各色データがRp、Gp、Bp で表される最終カラー画像データFNLとして出力する。   Then, the post gradation number conversion unit 146 converts the color correction data CCD obtained from the color correction unit 142 to the post gradation number to be finally converted by the error diffusion method or the average error minimum method. This is output as final color image data FNL in which each color data is represented by Rp, Gp, Bp.

したがって、この最終カラー画像データFNLを、例えばカラープリンタ22へ向け出力することにより、カラープリンタ22は、記録紙上に良好な色再現性を有するカラー画像をプリントアウトすることができる。   Therefore, by outputting the final color image data FNL to, for example, the color printer 22, the color printer 22 can print out a color image having good color reproducibility on the recording paper.

以上の構成のうち、色空間を格子状に分割して、各格子点毎に色補正データを記録した色補正テーブルメモリ134を用意することに関しては、従来から知られている(例えば特開平7−30772号)。即ち、この画像処理装置30は、色補正テーブルメモリ134を参照する前に、プレ階調数変換部140を用い、入力される原カラー画像データORGが色補正テーブルメモリ134の格子点上の色データとなるようプレ階調数変換を行ない、その後色補正テーブルメモリ134を参照して色補正を行ない、更にポスト階調数変換(例えばハーフトーニングの処理)を行なうのである。これにより、色補正テーブルCTを参照する際の複雑な補間演算を省略し、色補正処理に要する演算時間を大幅に短縮することができるのである。   Among the configurations described above, it has been conventionally known to divide a color space into a grid and prepare a color correction table memory 134 in which color correction data is recorded for each grid point (for example, Japanese Patent Laid-Open No. Hei 7). -30772). That is, the image processing apparatus 30 uses the pre-gradation number conversion unit 140 before referring to the color correction table memory 134, and the input original color image data ORG is a color on a grid point of the color correction table memory 134. The pre-gradation conversion is performed so that the data becomes data, color correction is performed with reference to the color correction table memory 134, and post-gradation conversion (for example, halftoning processing) is performed. As a result, a complicated interpolation calculation when referring to the color correction table CT can be omitted, and the calculation time required for the color correction process can be greatly shortened.

上述した各処理について更に説明を補足する。まず、プレ階調数変換部140でのプレ階調数変換処理に、誤差拡散法または平均誤差最小法を用いた場合を例にとり説明する。いま、スキャナ12から入力される原カラー画像データORG中に、R=12、G=20、B=24という階調をもった色領域が一定面積連続すると仮定する。そして、この色領域のカラーデータが、画像処理装置30へ入力される場合を想定する。   The explanation will be further supplemented for each of the processes described above. First, the case where the error diffusion method or the average error minimum method is used for the pre-gradation number conversion processing in the pre-gradation number conversion unit 140 will be described as an example. Now, it is assumed that color regions having gradations of R = 12, G = 20, and B = 24 in the original color image data ORG input from the scanner 12 are continuous for a certain area. Assume that the color data of this color region is input to the image processing apparatus 30.

図8には、この原カラー画像データORGの色空間内における座標位置近傍の8個の格子点が示されている。各格子点は、図8に示す立方体の各頂点に位置し、その座標位置は次式(1)で表されるとする。   FIG. 8 shows eight grid points near the coordinate position in the color space of the original color image data ORG. Each lattice point is located at each vertex of the cube shown in FIG. 8, and the coordinate position is expressed by the following equation (1).

Figure 2006074809
Figure 2006074809

色補正テーブルメモリ134内には、各格子点300の色データに対する、R,G,Bの各色成分の色補正値が用意されている。また、図8に示した例では、原画像データORGは、(R,G,B)=(12,20,24)という座標値で表わされるデータとしている。   In the color correction table memory 134, color correction values of R, G, and B color components for the color data of each grid point 300 are prepared. In the example shown in FIG. 8, the original image data ORG is data represented by coordinate values of (R, G, B) = (12, 20, 24).

補間演算を行なう従来技術を用いて色補正処理を行なう場合には、原画像データORGの色空間内における座標位置近傍の8個の格子点における色データの補正値を参照する。そして、参照した8個の色補正値を用い、原カラー画像データORGの座標位置と各格子点との距離に応じた重み付き平均を求める補間演算処理を実行し、色補正処理を行なっている。図8に示す例では、原カラー画像データORGの座標位置から、各格子点までは等距離に設定したので、補間演算では、8個の格子点の色補正値を単純平均し、R,G,Bの各色成分の補正データを求めることになる。   When the color correction process is performed using the conventional technique for performing the interpolation calculation, the color data correction values at eight lattice points in the vicinity of the coordinate position in the color space of the original image data ORG are referred to. Then, using the eight color correction values referred to, an interpolation calculation process is performed to obtain a weighted average according to the distance between the coordinate position of the original color image data ORG and each grid point, thereby performing the color correction process. . In the example shown in FIG. 8, since the coordinate positions of the original color image data ORG and each grid point are set at equal distances, the interpolation calculation simply averages the color correction values of the eight grid points, and R, G , B color correction data is obtained.

これに対し、本発明の色補正処理は、次のような手順で行われる。まず、プレ階調数変換部140は、入力された原カラー画像データORGが、8つの格子点上のいずれかの色データになるように、誤差拡散法や平均誤差最小法を用いて、プレ階調数変換を行う。次に、色補正部142は、色補正テーブルメモリ134を参照し、色補正処理を行う。   On the other hand, the color correction process of the present invention is performed in the following procedure. First, the pre-gradation number conversion unit 140 uses an error diffusion method or a minimum average error method so that the input original color image data ORG becomes any color data on eight grid points. Tone number conversion is performed. Next, the color correction unit 142 refers to the color correction table memory 134 and performs color correction processing.

実施形態のプレ階調数変換部140で用いる誤差拡散法や平均誤差最小法は、ある領域の局所的な色の平均値がなるべく原画像データに等しくなるように、一つ一つのデータを近傍の格子点のデータ値に変換していくように働く。したがって、原カラー画像データORGの座標位置が各格子点に対し等距離となっている図8の例では、プレ階調数変換を行なった結果は、8個の格子点データそれぞれがほぼ8分の1ずつの等しい割合で混在した色領域が得られる。この結果、プレ階調数変換処理された色データに、色補正テーブルCTを参照した色補正を行った結果、8個の格子点色の色補正値がほぼ等しい確率で混在した色領域が得られることになる。   The error diffusion method and the average error minimum method used in the pre-gradation number conversion unit 140 according to the embodiment are arranged so that each piece of data is adjacent so that the average value of local colors in a certain region is as equal to the original image data as possible. It works to convert to the data value of the grid point. Therefore, in the example of FIG. 8 where the coordinate position of the original color image data ORG is equidistant with respect to each grid point, the result of the pre-gradation conversion is that each of the 8 grid point data is approximately 8 minutes. A color area mixed at an equal ratio of 1 is obtained. As a result, as a result of performing color correction with reference to the color correction table CT on the color data that has been subjected to the pre-gradation number conversion process, a color region in which the color correction values of the eight grid point colors are mixed with almost equal probability is obtained. Will be.

このように、従来の補間演算を行なった色補正処理と、本実施の形態の色補正処理とにより得られた結果は、適当な面積での色の平均値をとって比べた場合には、ほぼ等しくなる。すなわち、この色補正部142では、各画素単位ではプレ階調数変換することによって生じる量子化ノイズが加わることになるが、それにもかかわらず、局所的な平均値をとってみた場合には、従来の補間演算を行なった場合と、ほとんど同等の色補正結果が得られることになる。   As described above, the results obtained by the color correction processing performed by the conventional interpolation calculation and the color correction processing of the present embodiment are compared when the average value of the colors in an appropriate area is compared. Almost equal. That is, in this color correction unit 142, quantization noise generated by converting the number of pre-gradations in each pixel unit is added, but nevertheless, when taking a local average value, A color correction result almost equivalent to that obtained when the conventional interpolation calculation is performed can be obtained.

なお、画像出力装置20の表現可能な階調数が十分に多い場合には、前述したプレ階調数変換処理によって生じた量子化ノイズによる画質低下が問題となる。本実施の形態の場合は、さらにこのプレ階調数変換処理の後に、ポスト階調数変換部146を用い、色補正された画像データを、画像出力装置20の表現可能な階調数に対応した最終的な階調数まで変換するポスト階調数変換処理を行なうので、ここでも、階調数変換に伴う量子化ノイズが発生する。したがって、前処理段階でのプレ階調数変換で生じる量子化ノイズを、最終段階でのポスト階調数変換で生じる量子化ノイズに比べ、十分に小さくできれば、実用上は問題にならないことになる。このため、実施形態の装置では、プレ階調数変換部140の変換可能な階調数が、ポスト階調数変換部146の変換可能な階調数よりも、十分大きくなるよう形成され、これにより、プレ階調数変換処理に伴う画質の低下を防止している。   When the number of gradations that can be expressed by the image output apparatus 20 is sufficiently large, there is a problem of image quality degradation due to quantization noise caused by the above-described pre-gradation number conversion process. In the case of the present embodiment, after the pre-gradation number conversion process, the post-gradation number conversion unit 146 is used to correspond the color-corrected image data to the number of gradations that can be expressed by the image output device 20. Since the post-gradation number conversion process for converting to the final gradation number is performed, the quantization noise associated with the gradation number conversion also occurs here. Therefore, if the quantization noise generated by the pre-gradation number conversion at the pre-processing stage can be sufficiently reduced as compared with the quantization noise generated by the post-gradation number conversion at the final stage, there will be no practical problem. . Therefore, in the apparatus of the embodiment, the number of gradations that can be converted by the pre-gradation number conversion unit 140 is formed to be sufficiently larger than the number of gradations that can be converted by the post-gradation number conversion unit 146. Therefore, the deterioration of the image quality accompanying the pre-gradation number conversion process is prevented.

特に、本実施形態では、ポスト階調数変換部146での階調数変換に、誤差拡散法または平均誤差最小法を用いるため、プレ階調数変換、ポスト階調数変換の双方を通じて 、領域の局所的な平均値を取った場合の誤差を最小にしようとする機構が働くことになる。このため、プレ階調数変換処理における変換可能な階調数を、実施形態のようにポスト階調数変換処理における変換可能な階調数より十分に大きく取ることにより、色補正テーブルの複数の格子点を参照し、補間演算を行なう従来の補正処理に比べ、全く遜色のない画質を得ることができる。   In particular, in this embodiment, since the error diffusion method or the average error minimum method is used for the tone number conversion in the post tone number conversion unit 146, the region is obtained through both the pre-tone number conversion and the post-tone number conversion. A mechanism for minimizing the error when the local average value of the value is taken will work. Therefore, the number of gradations that can be converted in the pre-gradation number conversion process is sufficiently larger than the number of gradations that can be converted in the post-gradation number conversion process as in the embodiment, thereby Compared with the conventional correction processing in which a grid point is referred to and an interpolation operation is performed, an image quality that is completely comparable can be obtained.

実際に、原カラー画像データORGの各色成分が256階調の場合に、プレ階調数変換部140での変換可能な階調数を各色成分とも32,ポスト階調数変換部146での変換可能な階調数を各色成分とも2とし、色補正および階調数変換を行なった結果、従来のように、補間演算を行なって色補正を行った後に、2階調化した結果と全く識別することができない程度の、良好な再生画像を得られることが確認された。さらに、プレ階調数変換処理での変換可能な階調数を8階調位まで減らしても、実用上問題のない画質が得られることが確認された。   Actually, when each color component of the original color image data ORG has 256 gradations, the number of gradations that can be converted by the pre-gradation number conversion unit 140 is 32 for each color component, and the conversion by the post-gradation number conversion unit 146. The number of possible gradations is set to 2 for each color component, and color correction and gradation number conversion are performed. As a result, after interpolation correction is performed and color correction is performed as in the conventional case, the result is completely distinguished from the result of two gradations. It was confirmed that an excellent reproduction image that cannot be obtained can be obtained. Further, it has been confirmed that even if the number of gradations that can be converted in the pre-gradation number conversion process is reduced to about 8 gradations, an image quality having no practical problem can be obtained.

前述したように、プレ階調数変換処理における変換階調数を小さくするほど、色補正テーブルメモリ134のメモリ容量は小さくできる。例えば、色補正部142での色補正後の出力データが、色成分数でm、各色成分ごとにnビットのデータであったとすると、色補正テーブルメモリ134に必要なメモリ容量は、プレ階調数変換処理での変換可能な階調数が各色L階調(qビット)である場合には、次式で表される。   As described above, the memory capacity of the color correction table memory 134 can be reduced as the number of converted gradations in the pre-gradation number conversion process is reduced. For example, if the output data after color correction in the color correction unit 142 is m color components and n-bit data for each color component, the memory capacity required for the color correction table memory 134 is pre-gradation. When the number of gradations that can be converted in the number conversion process is each color L gradation (q bits), it is expressed by the following equation.

Figure 2006074809
Figure 2006074809

色成分数mが3、各色成分毎に8ビット(1バイト)、階調数が各色32階調(5ビット)であるとすると、
Q=3×8×2^(5×3)
=98304×8[ビット]
=96K[byte ]
なお、1K[byte ]は1024[byte ]である。
Assuming that the number m of color components is 3, 8 bits (1 byte) for each color component, and the number of gradations is 32 gradations (5 bits) for each color.
Q = 3 × 8 × 2 ^ (5 × 3)
= 98304 × 8 [bits]
= 96K [bytes]
Note that 1K [bytes] is 1024 [bytes].

同様にして、プレ階調数変換可能な階調数が各色とも16階調の場合、8階調の場合のそれぞれについて、色補正テーブルのメモリ容量を計算すると、16階調の場合は、12Kバイト、8階調の場合は1.5Kバイトという少ないメモリ容量で済むことになる。これに対して、原画像データが各色8ビット(256階調)の場合に、表現しうる総ての原カラー画像データORGに対して色補正テーブルを用意しようとすれば、16Mバイト程度のデータが必要になってしまう。   Similarly, when the number of gradations that can be converted to the number of pre-gradations is 16 gradations for each color, the memory capacity of the color correction table is calculated for each of the 8 gradations. In the case of bytes and 8 gradations, a memory capacity as small as 1.5 Kbytes is sufficient. On the other hand, when the original image data is 8 bits (256 gradations) for each color, if an attempt is made to prepare a color correction table for all the original color image data ORG that can be expressed, the data is about 16 Mbytes. Will be needed.

以上の説明では、プレ階調数変換部140での階調数変換の手法に、誤差拡散法や、平均誤差最小法を用いた場合を例にとり説明したが、プレ階調数変換部140は、これ以外に、例えば組織的ディザ法等、他の手法を用いて階調数変換をすることもできる。   In the above description, the case where the error diffusion method or the average error minimum method is used as the gradation number conversion method in the pre-gradation number conversion unit 140 has been described as an example. In addition to this, the number of gradations can be converted using other methods such as a systematic dither method.

この場合には,プレ階調数変換部140では、領域の局所的な平均値をとった場合の誤差を最少にしようとする機構が働かなくなるので、誤差拡散の手法を用いた場合より画質が劣化する可能性がある。これは、原画像データの階調数が256であるのを8階調まで減らすような大幅な階調数変換を行なうような場合に問題となる可能性がある。しかし、原画像データの表現に用いられる階調数と、プレ階調数変換部140での変換可能な階調数との差があまり大きくない場合、例えば、原カラー画像データORGの階調数が64であるのを、プレ階調数変換処理で32階調や16階調に減らすような場合や、あるいは出力装置に十分に高解像度で、量子化ノイズの空間周波数が十分に高くなる場合には、ここで生じる量子化ノイズの影響は、実際に様々な画像を出力してみるとそれ程問題にならなかった。このような場合には、誤差拡散法の代わりに、組織的ディザ法などのより簡易な階調数変換手法を採用してもよい。組織的ディザ法等の簡易な階調数変換手法を採用した場合には、階調数変換に要する演算時間を短縮することができる。   In this case, in the pre-gradation number conversion unit 140, the mechanism for minimizing the error when the local average value of the region is taken does not work, so that the image quality is higher than when the error diffusion method is used. There is a possibility of deterioration. This may cause a problem in the case of performing a large gradation number conversion that reduces the number of gradations of the original image data from 256 to 8 gradations. However, when the difference between the number of gradations used for representing the original image data and the number of gradations that can be converted by the pre-gradation number conversion unit 140 is not so large, for example, the number of gradations of the original color image data ORG. Is reduced to 32 or 16 gradations by pre-gradation number conversion processing, or when the spatial frequency of quantization noise is sufficiently high with sufficiently high resolution for the output device Therefore, the influence of the quantization noise generated here was not so much a problem when actually outputting various images. In such a case, a simpler tone number conversion method such as a systematic dither method may be employed instead of the error diffusion method. When a simple gradation number conversion method such as systematic dithering is employed, the calculation time required for gradation number conversion can be shortened.

[C]第1ないし第3実施例に共通する画像処理の詳細
次に、上記実施の形態としての画像処理装置のより具体的な実施例を説明する。ここでは、図2に示すスキャナ12から、R,G,B各色が8ビット、256階調の原カラー画像データORGが画像処理装置30としてのコンピュータ90に入力され、コンピュータ90のプリンタドライバ96が、この原カラー画像データORGを画像処理して、最終カラー画像データFNLをカラープリンタ22へ出力する場合を想定する。ここで使用されるカラープリンタ22は、シ アンC,マゼンダM,イエローYの3色インクを用いて各色ドットのオン(ドット有り)/オフ(ドットなし)の2階調で印字するものを用いる。プリンタ22における印刷の具体的な構成は、既に説明した。
[C] Details of Image Processing Common to First to Third Examples Next, a more specific example of the image processing apparatus as the above embodiment will be described. Here, the original color image data ORG having 8 bits for each of R, G, and B and 256 gradations is input to the computer 90 as the image processing apparatus 30 from the scanner 12 shown in FIG. Assume that the original color image data ORG is processed and the final color image data FNL is output to the color printer 22. The color printer 22 used here is one that prints with two gradations of ON (dotted) / OFF (no dot) of each color dot using three color inks of cyan C, magenta M, and yellow Y. . The specific configuration of printing in the printer 22 has already been described.

図9には、この場合に使用される画像処理装置30の具体的なブロック図が示されている。プレ階調数変換部140、色補正部142は、入力される原カラー画像データORGを色補正し、さらにR,G,BからC,M,Yへ表色系を変換し、色補正データCCDとして出力する。そして、前記色補正データCCDを、ポスト階調数変換部146を用いプリンタ22の表示可能な階調数に対応して2値化し、最終カラー画像データFNLとして出力する。   FIG. 9 shows a specific block diagram of the image processing apparatus 30 used in this case. The pre-gradation number conversion unit 140 and the color correction unit 142 perform color correction on the input original color image data ORG, further convert the color system from R, G, B to C, M, Y, and color correction data Output as CCD. Then, the color correction data CCD is binarized corresponding to the number of gradations that can be displayed by the printer 22 using the post gradation number conversion unit 146, and is output as final color image data FNL.

ここにおいて、前記色補正テーブルメモリ134には、補正データが次のようにして設定されている。補正データの決定のために、まず、図9に示した画像処理装置からポスト階調数変換部146(図2に示すハーフトーンモジュール99)のみを取り出して、対象となるカラープリンタ22を組み合わせた系を構成する。そして、いろいろなC,M,Y値をポスト階調数変換部146に与えて2値化した後、対象とするカラープリンタ22に出力した結果を色測定する。そして、ポスト階調数変換部146に与えたC,M,Y値と、カラープリンタ22の出力結果を測定したR,G,B値の対応関係を調べる。   Here, correction data is set in the color correction table memory 134 as follows. In order to determine correction data, first, only the post-gradation number conversion unit 146 (halftone module 99 shown in FIG. 2) is extracted from the image processing apparatus shown in FIG. 9, and the target color printer 22 is combined. Configure the system. Then, various C, M, and Y values are given to the post-gradation number conversion unit 146 to be binarized, and then the result output to the target color printer 22 is subjected to color measurement. Then, the correspondence relationship between the C, M, and Y values given to the post tone number conversion unit 146 and the R, G, and B values obtained by measuring the output result of the color printer 22 is examined.

次に、その対応関係を逆にみて、色空間内の格子点色データに対応するR,G,B値の色を得たい場合に必要なC,M,Y値を求め、それを色補正データとして色補正テーブルメモリ134内に設定する。実際の画像処理に先立って、以上の処理を行ない、色補正テーブルCTを用意するのである。   Next, the correspondence relationship is reversed, and C, M, and Y values necessary for obtaining colors of R, G, and B values corresponding to the grid point color data in the color space are obtained, and the color correction is performed. Data is set in the color correction table memory 134 as data. Prior to actual image processing, the above processing is performed to prepare the color correction table CT.

そして、プレ階調数変換部140は、入力される原カラー画像データORGのR0,G0,B0の各色成分を、RおよびGは16階調、Bは8階調に階調数変換し、格子点カラー画像データGCDとしてPk ,Gk ,Bk の各色成分を出力する。これは、図7に示す実施形態におけるNr ,Ng がそれぞれ16、Nb が8の場合の例となる。このために本実施形態では、誤差拡散法または平均誤差最小法による多値化を行なうが、この多値化工程自体は既存の手法を用いればよい。   The pre-gradation number conversion unit 140 converts the color components of R0, G0, and B0 of the input original color image data ORG into 16 gradations and B is 8 gradations. Each color component of Pk, Gk, Bk is output as grid point color image data GCD. This is an example when Nr and Ng are 16 and Nb is 8 in the embodiment shown in FIG. For this purpose, in the present embodiment, multilevel conversion is performed by an error diffusion method or an average error minimum method, but this multilevel conversion process itself may use an existing method.

次に、多値化の具体例を、B成分を8階調化する場合を例にとり説明する。いま、原カラー画像データORGのB成分が、2進数8ビットで表現されており、その階調数が0〜255までの256階調であるとし、これをプレ階調数変換部140を用い、次に示す8種類(i=0,1・・・7)の格子点色データpre_Bに8値化する場合を想定する。   Next, a specific example of multi-value processing will be described by taking a case where the B component is converted to 8 gradations as an example. Now, it is assumed that the B component of the original color image data ORG is expressed by binary 8 bits, and the number of gradations is 256 gradations from 0 to 255. Assume that the following eight types (i = 0, 1,...) Of lattice point color data pre_B are converted into eight values.

pre_B[0],pre_B[1],…,pre_B[7]
具体的には、原カラー画像データORGのB成分は次のようにプレ階調数変換されるものとする。この例では、8個の値はほぼ等間隔されているが、後述する第1,第2実施例では、低濃度領域ほど細かく設定されている。
pre_B [0], pre_B [1], ..., pre_B [7]
Specifically, the B component of the original color image data ORG is converted to the number of pre-gradations as follows. In this example, the eight values are substantially equally spaced, but in the first and second embodiments to be described later, the lower concentration region is set more finely.

pre_B[0]=0;
pre_B[1]=36;
pre_B[2]=73;
pre_B[3]=109;
pre_B[4]=146;
pre_B[5]=182;
pre_B[6]=219;
pre_B[7]=255;
なお、以下の説明では、格子点色データをpre[i]と略記することがある。
pre_B [0] = 0;
pre_B [1] = 36;
pre_B [2] = 73;
pre_B [3] = 109;
pre_B [4] = 146;
pre_B [5] = 182;
pre_B [6] = 219;
pre_B [7] = 255;
In the following description, lattice point color data may be abbreviated as pre [i].

また、プレ階調処理のために用いる7種類のしきい値を次のように定義する。
slsh_B[0],slsh_B[1],…,slsh_B[6]
Also, seven types of threshold values used for pre-gradation processing are defined as follows.
slsh_B [0], slsh_B [1],..., slsh_B [6]

そして、各しきい値を、次のように設定する。
pre_B[i]<slsh_B[i]<pre_B[i+1]
(i=0,1,2,…,6)
Each threshold is set as follows.
pre_B [i] <slsh_B [i] <pre_B [i + 1]
(I = 0, 1, 2, ..., 6)

前記しきい値は、次のように設定することが多い。
slsh_B[i]=(pre_B[i]+pre_B[i+1])/2
この場合、前記各しきい値は次のようになる。
The threshold value is often set as follows.
slsh_B [i] = (pre_B [i] + pre_B [i + 1]) / 2
In this case, the threshold values are as follows.

slsh_B[0]=18;
slsh_B[1]=54;
slsh_B[2]=91;
slsh_B[3]=127;
slsh_B[4]=164;
slsh_B[5]=200;
slsh_B[6]=236;
slsh_B [0] = 18;
slsh_B [1] = 54;
slsh_B [2] = 91;
slsh_B [3] = 127;
slsh_B [4] = 164;
slsh_B [5] = 200;
slsh_B [6] = 236;

また、画像処理装置30へ画像データとして入力される原カラー画像データORGは、通常、画像の左上隅の画素を起点画素として左端画素から右端画素へ順に入力される。そして、一行分の画素が入力された後、一画素下の行の左端に移り、同様に右端に向って後のデータが入力される。このような画像入力動作が繰り返し行われることによって、一画面分の画像データの入力が行われることになる。   Further, the original color image data ORG input as image data to the image processing apparatus 30 is normally input in order from the left end pixel to the right end pixel, starting from the pixel at the upper left corner of the image. Then, after the pixels for one row are input, the process moves to the left end of the row one pixel below, and the subsequent data is similarly input toward the right end. By repeating such an image input operation, image data for one screen is input.

このため、前記プレ階調数変換部140によるプレ階調処理、すなわち、原カラー画像データORGを8値化していく順序は、このような画像データの入力順に合わせて行われる。すなわち、画像の左上隅の画素を起点画素として左端画素から右端画素へ順に8値化作業を行い、一行分の画素の8値化が終了したら、一画素下の行の左端に移り、同様に右端に向って8値化していくという作業を繰り返して行い、一画面分の画像データの8値化を行うことになる。   For this reason, the pre-gradation processing by the pre-gradation number conversion unit 140, that is, the order in which the original color image data ORG is octalized is performed in accordance with the input order of such image data. That is, octarization is performed in order from the left end pixel to the right end pixel starting from the pixel in the upper left corner of the image, and when the octarization of pixels for one row is completed, the process moves to the left end of the row below one pixel, and similarly The operation of octalizing toward the right end is repeated, and the octal of image data for one screen is performed.

この場合、図10に示すよう、注目画素400の上方の全画素、同ラインの左側の画素は既に多値化の終了した画素である。そして、注目画素400の下方の全画素および同ラインの右側の画素はまだ多値化を行っていない画素ということになる。   In this case, as shown in FIG. 10, all the pixels above the target pixel 400 and the pixels on the left side of the line are pixels that have already been subjected to multi-value quantization. Then, all the pixels below the target pixel 400 and the pixels on the right side of the same line are pixels that have not yet been subjected to multi-value conversion.

前述したプレ階調処理すなわち8値化の処理を行う手法として、例えば図11(a)に示す誤差拡散の重みマトリクスを用いる場合について考える。この重みマトリクスは、図11(a)中の注目画素400に生じた誤差を、右隣の画素に2、下の画素に1、右下の画素に1の割合で分散することを示すものである。   As a technique for performing the above-described pre-gradation processing, that is, 8-level processing, consider a case where, for example, an error diffusion weight matrix shown in FIG. This weight matrix indicates that the error occurring in the pixel of interest 400 in FIG. 11A is distributed in a ratio of 2 to the right adjacent pixel, 1 to the lower pixel, and 1 to the lower right pixel. is there.

このマトリクスを用いてプレ階調数変換部140が、誤差拡散法を用いて行う8値化処理(プレ階調変換処理)のフローチャートを、図12に示す。   FIG. 12 shows a flowchart of 8-level processing (pre-gradation conversion processing) performed by the pre-gradation number conversion unit 140 using the error diffusion method using this matrix.

注目画素を、p行q列目と表現するものとし、この注目画素のB成分の原カラー画像データORGをdataB[p][q]で表し、これを8値化する場合について考える。なお、p行q列目の画素の8値化によって生じる量子化誤差は、err[p][q]と表す。
(1) 第1の工程;8値化工程(ステップS1〜S6)
まず、注目画素データをしきい値と比較することによって8値化し、格子点色データpre_B[p][q]を得る。なお、これを、以下、格子点色データpre_Bと略記する。この処理を簡単に説明する。原カラー画像データORGがしきい値slsh[0]未満であれば(ステップS1)、注目画素の格子点色データpre_Bを、最も小さな格子点色データpre[0]とする(ステップS4)。同様に、原カラー画像データdataB[p][q]が、どのしきい値の間(slsh[i]〜slsh[i+1])に入っているかを判断し(ステップS2)、注目画素の格子点色データpre_Bを、対応する格子点色データpre[i]とする処理を行なう(ステップS5)。また、原カラー画像データORGがしきい値slsh[7]以上であれば(ステップS3)、注目画素の格子点色データpre_Bを、最も大きな格子点色データpre[7]とする(ステップS6)。なお、図12に示すdataB[p][q]は、注目画素データそのものではなく、近傍の既に8値化された画素カラーの誤差拡散を受けて既に補正されたデータである。誤差拡散法については、第3の工程で説明する。
Assume that the pixel of interest is expressed as p rows and q columns, the original color image data ORG of the B component of the pixel of interest is represented by dataB [p] [q], and this is converted into eight values. Note that the quantization error caused by the 8-level quantization of the pixels in the p-th row and the q-th column is represented as err [p] [q].
(1) 1st process; Octarization process (step S1-S6)
First, the pixel-of-interest data is converted into eight values by comparing with a threshold value to obtain grid point color data pre_B [p] [q]. Hereinafter, this is abbreviated as lattice point color data pre_B. This process will be briefly described. If the original color image data ORG is less than the threshold value slsh [0] (step S1), the lattice point color data pre_B of the target pixel is set to the smallest lattice point color data pre [0] (step S4). Similarly, it is determined which threshold value (slsh [i] to slsh [i + 1]) the original color image data dataB [p] [q] is in (step S2), and the lattice point of the target pixel The color data pre_B is processed as the corresponding grid point color data pre [i] (step S5). If the original color image data ORG is equal to or greater than the threshold value slsh [7] (step S3), the lattice point color data pre_B of the target pixel is set to the largest lattice point color data pre [7] (step S6). . Note that dataB [p] [q] shown in FIG. 12 is not the pixel-of-interest data itself but data that has already been corrected in response to error diffusion of pixel colors that have already been converted into eight values. The error diffusion method will be described in the third step.

(2) 第2の工程;誤差計算工程(ステップS7)
8値化によって注目画素に生じた誤差err[p][q]を求める。原カラー画像データdataB[p][q]は、本来格子点上に存在している訳ではなく、これを上記の8値化処理により格子点の値に割り当てたので、量子化誤差が生じる。この量子化誤差err[p][q]の大きさを求めるのである。
(2) Second step; error calculation step (step S7)
An error err [p] [q] that has occurred in the pixel of interest due to the 8-value conversion is obtained. The original color image data dataB [p] [q] does not originally exist on the lattice point, but is assigned to the value of the lattice point by the above octalization process, so that a quantization error occurs. The magnitude of this quantization error err [p] [q] is obtained.

(3) 第3の工程;誤差拡散工程(ステップS8)
誤差を、近傍のまだ8値化を行っていない画素に拡散する。ここでは、図11(a)の重みマトリクスに従い、誤差の1/2を注目画素の右側の画素([p+1][q])に、1/4を下側の画素([p][q+1])に、1/4を右下の隣接する画素([p+1][q+1])に、それぞれ拡散し、その原カラー画像データdata_Bに加えている。前述した第1の工程で用いた注目画素データdataB[p][q]は、このようにして誤差拡散を受けた後のデータである。
(3) Third step; error diffusion step (step S8)
The error is diffused to nearby pixels that have not yet been 8-valued. Here, according to the weight matrix of FIG. 11A, 1/2 of the error is the pixel on the right side of the pixel of interest ([p + 1] [q]), and 1/4 is the lower pixel ([p] [q + 1] ) Is diffused to adjacent pixels ([p + 1] [q + 1]) on the lower right and added to the original color image data data_B. The pixel-of-interest data dataB [p] [q] used in the first step described above is data after being subjected to error diffusion in this way.

以上は、誤差拡散法による8値化の例であったが、これを平均誤差最小法によって行なう具体例を次に説明する。   The above is an example of octalization by the error diffusion method. A specific example in which this is performed by the average error minimum method will be described below.

図13は、平均誤差最小法を用いた8値化処理のフローチャートである。
(1) 第1の工程;誤差補正工程(ステップS10)
この工程では、近傍の既に8値化された画素に生じた8値化誤差で、注目画素デー タを補正する。誤差拡散のマトリクスは、図11(a)に示したものと同一である。即ち、注目画素から見ると、左隣の画素で生じた量子化誤差についてはその1/2を加え、直上の画素で生じた量子化誤差についてはその1/4を加え、左斜め上の画素で生じた量子化誤差についてはその1/4を加えるのである。
FIG. 13 is a flowchart of the octalization process using the average error minimum method.
(1) First step; error correction step (step S10)
In this step, the pixel-of-interest data is corrected with an eight-valued error that has occurred in pixels that have already been eight-valued in the vicinity. The error diffusion matrix is the same as that shown in FIG. That is, when viewed from the target pixel, 1/2 is added to the quantization error generated in the pixel on the left, and 1/4 is added to the quantization error generated in the pixel immediately above. ¼ is added to the quantization error generated in step.

(2) 第2の工程;8値化工程(ステップS11〜S16)
この工程は、図12に示したステップS1〜S6と同様であるので、その説明は省略する。
(2) 2nd process; 8-value process (steps S11-S16)
Since this process is the same as steps S1 to S6 shown in FIG. 12, the description thereof is omitted.

(3) 第3の工程;誤差計算(ステップS17)
この工程では、8値化によって注目画素に生じた誤差err[p][q]を求める。詳細は、図12に示したステップS7と全く同様である。
(3) Third step; error calculation (step S17)
In this step, an error err [p] [q] generated in the pixel of interest due to octarization is obtained. The details are exactly the same as step S7 shown in FIG.

図12に示す誤差拡散法と、図13に示す平均誤差最小法との違いは、誤差拡散作業を誤差計算が終了した直後に行なうか、注目画素をN値化する直前に行なうかの違いだけであり、画像端での取り扱いを除けば、両者は等価となる。   The only difference between the error diffusion method shown in FIG. 12 and the average error minimum method shown in FIG. 13 is whether the error diffusion operation is performed immediately after the error calculation is completed or just before the target pixel is converted to N-values. Except for handling at the edge of the image, they are equivalent.

なお、誤差拡散法の重みマトリクスについては、図11(a)の外に、よりマトリクスサイズを大きくした図11(b)の例や、逆により簡略化した図11(c)、(d)の例等、必要に応じて各種のものを採用することが可能である。図11(d)は、最も簡略化した例であり、誤差の拡散対象が右隣の一画素だけになっている。   As for the weight matrix of the error diffusion method, in addition to FIG. 11 (a), the example of FIG. 11 (b) with a larger matrix size, or the inverse of FIGS. 11 (c) and 11 (d). It is possible to adopt various types as necessary, such as examples. FIG. 11D shows the most simplified example, and the error diffusion target is only one pixel on the right.

多値誤差拡散法の例としては、特開平3−18177号公報、特開平3−34767号公報、特開平3−80767号公報、特開平3−147480号公報等があり、必要に応じて各種の手法を採用することができる。   Examples of the multi-level error diffusion method include JP-A-3-18177, JP-A-3-34777, JP-A-3-80767, JP-A-3-147480, and the like. The method can be adopted.

〔組織的ディザ法を用いたプレ階調数変換部140の実施形態〕
プレ階調数変換部140は、誤差拡散法または平均誤差最小法を用いる構成の他、組織的ディザ法等の階調数変換手法を用いることもできる。プレ階調数変換部140として組織的ディザ法を用いた場合の処理の一例を、図14に示す。
[Embodiment of Pre-gradation Number Conversion Unit 140 Using Systematic Dither Method]
The pre-gradation number conversion unit 140 can employ a gradation number conversion method such as a systematic dither method in addition to a configuration using the error diffusion method or the average error minimum method. An example of processing when the systematic dither method is used as the pre-gradation number conversion unit 140 is shown in FIG.

ここでは、原カラー画像データORGのB成分が0から63までの64階調の値をもつ場合に、これを組織的ディザ法をもちいたプレ階調数変換部140により17階調化する場合を想定する。ディザマトリクスには2×2のサイズのものを用いる。縦横両方向ともに2画素周期で変化する組織的ディザノイズをデータに加えた後(ステップS20)、しきい値との比較により(ステップS21〜S23)、0,1,2,…16の17階調の値に階調数変換する(S24〜S26)。   Here, when the B component of the original color image data ORG has a value of 64 gradations from 0 to 63, this is converted to 17 gradations by the pre-gradation number conversion unit 140 using the systematic dither method. Is assumed. A dither matrix having a size of 2 × 2 is used. After adding systematic dither noise that changes in a two-pixel cycle in both the vertical and horizontal directions to the data (step S20), by comparison with threshold values (steps S21 to S23), 17 gradations of 0, 1, 2,... The number of gradations is converted into a value (S24 to S26).

すなわち、16個のしきい値slsh_B[i]を、
slsh_B[i]=(i+1)×4−2
(i=0,1,…,15)
のように設定し、次に画素位置p,qによって一意的に決まる組織的ディザノイズ(dither_noize[p%2][q%2])を注目画素データdata_B[p][q]に加える(ステップS20)。%は余剰演算子で、p%2は「pを2で割った時の余り」の意味になり、qが偶数なら0、奇数なら1となる。dither_noize [p%2][q%2]の値は、例えば、
dither_noize[0][0]=1
dither_noize[0][1]=−1
dither_noize[1][0]=−2
dither_noize[1][1]=0
のように設定する。その後、データをしきい値slsh_B[i]と比較し(ステップS21〜S23)、その大小によって、格子点色データのブルー成分preBを得て、17階調化するのである(S24〜S26)。
That is, the 16 threshold values slsh_B [i]
slsh_B [i] = (i + 1) × 4-2
(I = 0, 1, ..., 15)
Next, systematic dither noise (dither_noize [p% 2] [q% 2]) uniquely determined by the pixel positions p and q is added to the target pixel data data_B [p] [q] (step S20). ). % Is a surplus operator, and p% 2 means “remainder when p is divided by 2”. If q is an even number, it is 0; The value of dither_noize [p% 2] [q% 2] is, for example,
dither_noize [0] [0] = 1
dither_noize [0] [1] = − 1
dither_noize [1] [0] =-2
dither_noize [1] [1] = 0
Set as follows. Thereafter, the data is compared with the threshold value slsh_B [i] (steps S21 to S23), and the blue component preB of the lattice point color data is obtained according to the magnitude, and is converted into 17 gradations (S24 to S26).

図13に示した平均誤差最小法による8階調化の例と比較すると、平均誤差最小法では周辺の2値化済み画素から拡散される誤差を注目画素データdata_B[p][q]に加えたが、組織的ディザ法を採用した場合には、注目画素の位置によって一意的に決まる周期的ノイズdither_noize[p%2][q%2]を加えている。それに伴い、図14に示した手法では、平均誤差最小法で行なっていた誤差計算工程(ステップS17)に相当する処理が不要になっている。図14に示したような組織的ディザ法を用いた場合を、平均誤差最小法や誤差拡散法と比較すると、誤差拡散計算が不要となるため、より一層高速化される上に、誤差記憶のためのメモリ等が不必要になりハードウェア資源が節約されるという大きなメリットがある。   Compared with the example of 8 gradations using the average error minimum method shown in FIG. 13, the error average diffused from the surrounding binarized pixels is added to the target pixel data data_B [p] [q]. However, when the systematic dither method is adopted, a periodic noise dither_noise [p% 2] [q% 2] that is uniquely determined by the position of the target pixel is added. Accordingly, the method shown in FIG. 14 eliminates the process corresponding to the error calculation step (step S17) performed by the average error minimum method. When the systematic dither method as shown in FIG. 14 is used as compared with the minimum average error method or the error diffusion method, the error diffusion calculation is not required, so that the speed is further increased and the error memory is stored. Therefore, there is a great merit that a memory or the like is unnecessary and hardware resources are saved.

その一方で、誤差拡散法における「領域の局所的な平均値」をとった場合の誤差を最少にしようとする機構は働かなくなる。このため、プレ階調数変換手段であまり大幅に階調数を減らし過ぎると、画質が劣化するおそれがあるが、図14に示したように、原画像データの階調数を約1/4に減らす程度の場合には、2×2という小さなマトリクスサイズでも疑似輪郭等が発生することはなく、解像度の低下も最小限に押さえられ、メリットが大きい。   On the other hand, the mechanism for minimizing the error when the “local average value of the region” in the error diffusion method is taken does not work. For this reason, if the number of gradations is reduced too much by the pre-gradation number conversion means, the image quality may be deteriorated. However, as shown in FIG. 14, the number of gradations of the original image data is reduced to about 1/4. In the case of a reduction to such a level, pseudo contours and the like are not generated even with a matrix size as small as 2 × 2, and a reduction in resolution is minimized, which is very advantageous.

一般には、処理速度、必要なメモリ容量、画質の兼ね合いで最適なプレ階調数変換手法を採用すればよい。例えば、次のような観点から、採用するプレ階調数変換手法を決定することができる。
・最終的な出力装置の解像度が十分に高く、プレ階調数変換での多少の解像度低下が問題にならない場合には、大きめのマトリクスサイズの組織的ディザ法
・もともと原画像データの階調数が多くなく、プレ階調数変換であまり大幅に階調数を減少させる必要のない場合には、小さめのマトリクスサイズの組織的ディザ法
・画質最優先の場合や、プレ階調数変換で大幅に階調数を減らして色補正テーブルの容量を小さくしたい場合には誤差拡散法
もちろん、誤差拡散法や組織的ディザ法以外の階調数変換手法を用いてもよい。
In general, an optimal pre-gradation number conversion method may be employed in consideration of processing speed, necessary memory capacity, and image quality. For example, the pre-gradation number conversion method to be employed can be determined from the following viewpoints.
・ If the resolution of the final output device is sufficiently high and there is no problem with a slight decrease in resolution due to pre-gradation conversion, a systematic dither method with a larger matrix size. If there are not many and there is no need to reduce the number of gradations significantly by pre-gradation conversion, a smaller matrix size systematic dither method / priority of image quality, or by pre-gradation conversion If it is desired to reduce the number of gradations to reduce the capacity of the color correction table, an error diffusion method or a gradation number conversion method other than the error diffusion method or the systematic dither method may be used.

また、B成分のみ組織的ディザ法、R、G成分は誤差拡散法でプレ階調数変換を行なう構成等を採用してもよい。一般に、B成分に対する人間の目の分解能はRやGに比べると低くなるので、このような構成も効果的である。   Alternatively, a systematic dither method for only the B component, and a configuration in which pre-gradation number conversion is performed by the error diffusion method for the R and G components may be employed. In general, the resolution of the human eye with respect to the B component is lower than that of R and G, and such a configuration is also effective.

なお、以上は原カラー画像データORGに含まれるB成分をプレ階調数変換部140を用いて8階調に変換処理する場合について述べたが、原カラー画像データORGに含まれる他の色成分、すなわち、R成分やG成分も同様な手法によって16階調にプレ階調数変換される。   Although the case where the B component included in the original color image data ORG is converted into 8 gradations using the pre-gradation number conversion unit 140 has been described above, other color components included in the original color image data ORG are described. That is, the R component and the G component are also converted to the pre-gradation number of 16 gradations by a similar method.

その結果、プレ階調数変換部140に入力される原カラー画像データORGのR ,G,Bの各成分は次式に示すよう、格子点カラー画像データGCDへ、プレ階調数変換されることになる。
R成分は、pre_R[0],pre_R[1]…pre_R[15]の16値
G成分は、pre_G[0],pre_G[1]…pre_G[15]の16値
B成分は、pre_B[0],pre_B[1]…pre_G[7]の8値。
As a result, the R, G, and B components of the original color image data ORG input to the pre-gradation number conversion unit 140 are pre-gradation converted to lattice point color image data GCD as shown in the following equation. It will be.
R component is pre_R [0], pre_R [1] ... pre_R [15] 16-value G component is pre_G [0], pre_G [1] ... pre_G [15] 16-value B component is pre_B [0] , Pre_B [1]... Pre_G [7].

〔色補正部142の具体例〕
色補正部142は、多値化(プレ階調処理)された格子点色データに対し、色補正処理を行なうとともに、R,G,BからC,M,Yへの表色系の変換作業を行なう。すなわち、図7に示した例では、色補正部142は、説明の都合上RGB間での色補正を行なうだけであるとしたが、実際には、色補正部142では、色補正のほかに、R,G,BからC,M,Yへの表色系の変換をも同時に行なっている。
[Specific Example of Color Correction Unit 142]
The color correction unit 142 performs color correction processing on multi-valued (pre-gradation processing) grid point color data, and also converts the color system from R, G, B to C, M, Y. To do. In other words, in the example shown in FIG. 7, the color correction unit 142 only performs color correction between RGB for convenience of explanation, but in reality, the color correction unit 142 performs other than color correction. The color system conversion from R, G, B to C, M, Y is also performed at the same time.

以下に、色補正部142および色補正テーブルメモリ134を、ソフトウェア的に形成した場合と、ハードウェア的に形成した場合の2つの場合を例にとり説明する。   In the following, the case where the color correction unit 142 and the color correction table memory 134 are formed as software and the case where they are formed as hardware will be described as examples.

図15(a)は、色補正テーブルメモリ134をC言語の表記を用いてソフト的に実現する場合の実施形態である。C,M,Y各色成分用の色補正テーブルは、それぞれ3次元の配列C_table[Nr][Ng][Nb],M_table[Nr][Ng][Nb],Y_table[Nr][Ng][Nb]となる。ここで、Nr,Ng,Nbは、各色の階調数を示す(図7参照)。この例では、各テーブルの大きさは、16×16×8である。これらのテーブルは、8ビットで正の整数のみを扱うunsigned charタイプの配列としたので、色補正結果としては8ビット、0〜255の範囲のデータが格納可能である。予め、この3次元の配列に、RGBからCMYへの変換データを格納しておく。   FIG. 15A shows an embodiment in which the color correction table memory 134 is realized in software using C language notation. The color correction tables for the C, M, and Y color components are three-dimensional arrays C_table [Nr] [Ng] [Nb], M_table [Nr] [Ng] [Nb], Y_table [Nr] [Ng] [Nb], respectively. ]. Here, Nr, Ng, and Nb indicate the number of gradations of each color (see FIG. 7). In this example, the size of each table is 16 × 16 × 8. Since these tables are unsigned char type arrays that handle only positive integers in 8 bits, 8 bits of data in the range of 0 to 255 can be stored as color correction results. In advance, conversion data from RGB to CMY is stored in this three-dimensional array.

図15(b)は、図14(a)の3次元色補正テーブルを参照して、R,G,Bの各格子点色データpre_R[i],pre_G[j],pre_B[k]を、プリンタ22におけるインク量に対応するCMY値に変換する色補正部142の実施形態である。C言語を用いたこの手法では、格子点色データを基に、図15(a)で宣言した配列を参照するだけで、色補正後のC,M,Y値が得られる。   FIG. 15B refers to the three-dimensional color correction table of FIG. 14A, and R, G, B grid point color data pre_R [i], pre_G [j], pre_B [k] This is an embodiment of the color correction unit 142 that converts the CMY value corresponding to the ink amount in the printer 22. In this method using the C language, the C, M, and Y values after color correction can be obtained simply by referring to the array declared in FIG. 15A based on the grid point color data.

次に、色補正テーブルメモリ134をハードウェアにより実現した場合の例として、色補正テーブルCTを半導体メモリに格納した例を、図16に示す。C用ROM134C、M用ROM134M、Y用ROM134Yは、それぞれC,M,Y各色成分の色補正結果が格納されたROMであり、アドレスデータとして、RGBの格子点色データに応じて決まる値を与えれば、それに対応する補正後のシアンデータ、マゼンタデータ、イエローデータが出力される。   Next, as an example when the color correction table memory 134 is realized by hardware, an example in which the color correction table CT is stored in a semiconductor memory is shown in FIG. The C ROM 134C, the M ROM 134M, and the Y ROM 134Y are ROMs in which the color correction results of the C, M, and Y color components are stored, respectively, and given values determined according to RGB grid point color data as address data. For example, corrected cyan data, magenta data, and yellow data are output.

図17は、図15のC用ROM134Cのより詳細な実施形態で、アドレスバスがA0〜A10の11ビット、データバスがD0〜D7の8ビットのROMを用いた例である。格子点色データpre_R[i]、pre_G[j]、pre_B[k]に対応して、i,j,k値をそれぞれ2進数化した値が、それぞれアドレスバスの下位4ビット(A0〜A3)、中位4ビット(A4〜A7)、上位3ビット(A8〜A10)に与えられている。各ビット数は、RGBの各階調数(RおよびGが16階調、Bが8階調)に対応している。   FIG. 17 shows a more detailed embodiment of the C ROM 134C of FIG. 15, which uses an 11-bit ROM with an address bus A0 to A10 and an 8-bit ROM with a data bus D0 to D7. Corresponding to the grid point color data pre_R [i], pre_G [j], and pre_B [k], the values obtained by binarizing the i, j, and k values are the lower 4 bits (A0 to A3) of the address bus. , Middle 4 bits (A4 to A7) and upper 3 bits (A8 to A10). The number of bits corresponds to the number of gradations of RGB (R and G are 16 gradations and B is 8 gradations).

即ち、本実施例の場合は、0≦i≦15,0≦j≦15,0≦k≦7なので、i用には4ビット、j用には4ビット、k用には3ビット割り当てれば足りるのである。データバスからはそれに対応するシアンの色補正データが、0〜255の間の値をとる8ビット値としてデータバスに出力される。   That is, in this embodiment, 0 ≦ i ≦ 15, 0 ≦ j ≦ 15, and 0 ≦ k ≦ 7, so that 4 bits are allocated for i, 4 bits for j, and 3 bits for k. It's enough. From the data bus, the corresponding cyan color correction data is output to the data bus as an 8-bit value having a value between 0 and 255.

図16に示した構成では、CMY各成分毎に3個の別々のROMを用意したが、アドレスバスのビット数を増やし、そこに色選択信号を加えるようにすれば、より容量の大きいROM1個ですませることも可能である。また、ROMではなく、書き込みも可能なRAMを用いると、テーブルの内容を自由に書き替え可能な構成にもできる。   In the configuration shown in FIG. 16, three separate ROMs are prepared for each CMY component. However, if the number of bits of the address bus is increased and a color selection signal is added thereto, one ROM having a larger capacity is provided. It is also possible to deceive. Further, when a writable RAM is used instead of the ROM, the contents of the table can be freely rewritten.

以上の図15や図16に示した構成では、色補正部142がソフト的あるいはハード的に3次元テーブルメモリ134を参照することで、色補正が行なわれる。   In the configurations shown in FIGS. 15 and 16, the color correction unit 142 performs color correction by referring to the three-dimensional table memory 134 in software or hardware.

〔ポスト階調数変換の具体例〕
色補正の後、最後にポスト階調数変換部146(ハーフトーンモジュール99)が、色補正部142で色補正されたCMY各データを誤差拡散法または平均誤差最小法によって2値化する処理を行なう。この部分は既存の手法をそのまま適応すればよい。誤差拡散法による2値化工程は、図12で示したプレ階調数変換部140での多値化工程とほとんど同じで、8値化が2値化に変わるだけである。図9のステップS1〜S6の8値化を2値化に変更し、data_B[p][q]をdata_C[p][q]に置き換え、図18に示すように2値化を行なえばよい。ここでは,シアンデータが値255に2値化された場合は、シアンのドット有り、値0に2値化された場合はドットなしとする。以降の誤差計算や、誤差拡散の工程は図12のステップS7,ステップS8と同様なのでその説明は省略する。
[Specific example of post-gradation conversion]
After the color correction, the post-gradation number conversion unit 146 (halftone module 99) finally binarizes each CMY data color-corrected by the color correction unit 142 by the error diffusion method or the average error minimum method. Do. For this part, the existing method may be applied as it is. The binarization process by the error diffusion method is almost the same as the multi-value conversion process in the pre-gradation number conversion unit 140 shown in FIG. 12, and only the 8-value conversion is changed to the binarization. The octalization in steps S1 to S6 in FIG. 9 is changed to binarization, data_B [p] [q] is replaced with data_C [p] [q], and binarization is performed as shown in FIG. . Here, when cyan data is binarized to a value of 255, cyan dots are present, and when binarized to a value of 0, no dots are present. Since the subsequent error calculation and error diffusion steps are the same as steps S7 and S8 in FIG. 12, the description thereof is omitted.

ただし、この2値化工程では誤差拡散重みマトリクスのサイズを小さくし過ぎると、画質劣化につながる特有のドットパターンが生じやすくなる。このため、プレ階調変換での多値化時に用いたものよりもやや大きめのサイズのマトリクス(例えば図 11(b)に示したもの)を用いたほうがよい。また、誤差拡散法の代わりに、図13の実施形態の平均誤差最小法による多値化を2値化に変更したものを用いてもよい。   However, if the size of the error diffusion weight matrix is made too small in this binarization process, a unique dot pattern that leads to image quality deterioration tends to occur. For this reason, it is better to use a slightly larger matrix (for example, the one shown in FIG. 11B) than that used for multi-value conversion in pre-gradation conversion. Further, instead of the error diffusion method, a method in which multi-value conversion by the average error minimum method of the embodiment of FIG. 13 is changed to binarization may be used.

以上説明した構成における大きな特徴の一つは、プレ階調数変換部140における多値化で用いる誤差拡散重みマトリクスのサイズが、図11(a)〜(d)のような、非常に小さなサイズのものでも十分な高画質が得られるところにある。通常、2値化処理を行う場合には、図11(c)(d)のように、誤差拡散対象が隣接する2画素以下というような小さなマトリクスで誤差拡散を行なうと、ドットが線状に連なって現れる誤差拡散特有のパターンが目立ちやすくなり画質低下を引き起こす。しかし、本実施例のプレ階調数変換部140のように、変換する階調数が8以上あるような場合には、図11(c)(d)に示したサイズの小さな誤差拡散マトリクスを用いても、画質低下はそれ程生じない。このため、プレ階調数変換部140では、後段のポスト階調数変換部146で用いる誤差拡散マトリクスよりも、小さなサイズのマトリクスを用いることができる。誤差拡散処理での演算量のほとんどを占めるのは、図12のステップS8のような誤差拡散工程であり、その演算量はほぼ誤差拡散重みマトリクスのサイズに比例する。このため、プレ階調数変換部140での多値化処理は、極めて少ない演算量で行なうことができる。例えば、ポスト階調数変換部146での2値化処理に比べると、プレ階調数変換部140での演算量は、極めて少ない。さらに、上記構成の色補正部142での色補正は、単に色補正テーブルメモリ134の内容を参照するだけであるから、プレ階調数変換部140および色補正部142でのトータルのデータ処理は、極めて高速に行なうことができる。   One of the major features of the configuration described above is that the size of the error diffusion weight matrix used in the multi-value conversion in the pre-gradation number conversion unit 140 is very small as shown in FIGS. It is in the place where sufficient image quality can be obtained even with. Normally, when binarization processing is performed, as shown in FIGS. 11C and 11D, when error diffusion is performed with a small matrix such that the error diffusion target is two or less adjacent pixels, the dots become linear. Patterns peculiar to error diffusion that appear in succession become conspicuous and cause deterioration in image quality. However, when the number of gradations to be converted is 8 or more as in the pre-gradation number conversion unit 140 of the present embodiment, the small error diffusion matrix shown in FIGS. 11C and 11D is used. Even if it is used, the image quality does not deteriorate so much. Therefore, the pre-gradation number conversion unit 140 can use a matrix having a smaller size than the error diffusion matrix used in the post-gradation number conversion unit 146 in the subsequent stage. The error diffusion process such as step S8 in FIG. 12 occupies most of the calculation amount in the error diffusion processing, and the calculation amount is substantially proportional to the size of the error diffusion weight matrix. For this reason, the multi-value processing in the pre-gradation number conversion unit 140 can be performed with an extremely small amount of calculation. For example, compared with the binarization processing in the post tone number conversion unit 146, the amount of calculation in the pre tone number conversion unit 140 is extremely small. Furthermore, since the color correction in the color correction unit 142 having the above configuration is merely referring to the contents of the color correction table memory 134, the total data processing in the pre-gradation number conversion unit 140 and the color correction unit 142 is as follows. Can be done very fast.

また、上記構成では、色補正部142は、図15,図16に示した色補正テーブルメモリ134を利用して、色補正と同時にRGBからCMYへの変換を行なったが、CMY3色の外に黒インクKも用いるプリンタ用に、CMYKの4色成分への変換を行なうものとしてもよい。例えば図15(a)に示したソフトウェアにより実現された色補正テーブルを、CMYKの4色のテーブルに拡張する場合は、図19に示すように、CMYKの4色分のテーブルを用意すればよい。このように、用意する色補正テーブルを増やせば、色補正によって必要な色成分の数が増加する場合にも、容易に対応することができる。   In the above configuration, the color correction unit 142 performs conversion from RGB to CMY simultaneously with color correction using the color correction table memory 134 shown in FIGS. 15 and 16. For printers that also use black ink K, conversion to CMYK four-color components may be performed. For example, when the color correction table realized by the software shown in FIG. 15A is expanded to a four-color table of CMYK, a table for four colors of CMYK may be prepared as shown in FIG. . In this way, if the number of prepared color correction tables is increased, it is possible to easily cope with an increase in the number of necessary color components due to color correction.

また、以上の説明では、原カラー画像データORGがRGBの3色成分からなる場合について述べたが、原カラー画像データORGは、例えばCMYやCIEのL* a* b* 、XYZ等どのような表色系によるものを用いても良く、また図9に示したように、カラー画像データを色補正部142で別の表色系による表現に変換するようにしてもよい。   In the above description, the case where the original color image data ORG is composed of RGB three-color components has been described. However, the original color image data ORG can be any of CMY, CIE L * a * b *, XYZ, etc. The color system may be used, or the color image data may be converted into another color system expression by the color correction unit 142 as shown in FIG.

[D]第1ないし第3実施例
以上詳しく説明した画像処理装置30の構成を前提として、本発明の各実施例について説明する。
(1)第1実施例
この画像処理装置30に関するここまでの説明では、説明を簡便にするため、色空間は、図6に示したように、等間隔に分割され、その格子点300毎にデータを有する色補正テーブルが用意されているものとした。第1実施例では、色空間の分割は、最終的な出力装置であるプリンタ22の使用インクCMYの低濃度領域で細かくされている。既に述べたように、プレ階調数変換の変換後の階調数がポスト階調数変換の最終的な階調数よりも十分大きければ、プレ階調数変換の量子化ノイズは十分に小さく、かつ誤差拡散や平均誤差最小法を採用していればその局所的な平均値は0になるため、出力画像の全体についての量子化ノイズの実用上の影響は小さい。しかしながら、プレ階調数変換の量子化ノイズは微小ではあっても存在するから、これは出力画像においてオンドットの出現位置の乱れとして現れている。そのため、厳密には、この量子化ノイズの影響は、オンドットの密度が大きい高濃度や中濃度の領域では実質的に問題にならないが、ドット密度の小さい低濃度の領域において画質劣化の原因となる可能性があると言える。そこで、この問題を解消するために、本実施例では、図20に示すように、低濃度領域で間隔が狭くなった格子点500をもつ色補正テーブルCTを用いる。これに対応して、プレ階調数変換においては、この格子点500の階調値(格子点色データ)に原画像データを変換する。
[D] First to Third Embodiments Each embodiment of the present invention will be described on the premise of the configuration of the image processing apparatus 30 described in detail above.
(1) First Example In the above description regarding the image processing apparatus 30, in order to simplify the description, the color space is divided at equal intervals as shown in FIG. It is assumed that a color correction table having data is prepared. In the first embodiment, the color space is finely divided in the low density region of the ink CMY used by the printer 22 which is the final output device. As already described, if the number of gradations after the conversion of the pre-gradation number conversion is sufficiently larger than the final gradation number of the post-gradation number conversion, the quantization noise of the pre-gradation number conversion is sufficiently small. If the error diffusion or the average error minimization method is employed, the local average value becomes 0, and the practical effect of the quantization noise on the entire output image is small. However, since the quantization noise of the pre-gradation number conversion exists even if it is very small, this appears as a disturbance of the appearance position of the on-dot in the output image. Therefore, strictly speaking, the influence of this quantization noise is not substantially a problem in a high density or medium density area where the on-dot density is large, but it is a cause of image quality deterioration in a low density area where the dot density is small. It can be said that there is a possibility. Therefore, in order to solve this problem, in this embodiment, as shown in FIG. 20, a color correction table CT having lattice points 500 whose intervals are narrowed in a low density region is used. Correspondingly, in the pre-gradation number conversion, the original image data is converted into the gradation value (grid point color data) of the lattice point 500.

具体例を挙げれば、原画像データが0〜255までの階調値をとる場合、これをプレ階調値変換によって、R、G、Bの各色につき、
0、16、32、48、80、96、112、128、144、160、
176、192、208、224、240、248、255
の18段階の階調値に量子化する。この例では、量子化ステップ、つまり隣り合う格子点の間隔は基本的に16であるが、階調値255の附近、つまり低濃度の領域では、量子化ステップは値8又は値7のように小さくなっている。第1実施例では、この格子点を用いて、図12に示した誤差拡散法により、プレ階調数変換をおこなった。
As a specific example, when the original image data takes gradation values from 0 to 255, this is converted into pre-gradation value conversion for each color of R, G, and B.
0, 16, 32, 48, 80, 96, 112, 128, 144, 160,
176, 192, 208, 224, 240, 248, 255
Are quantized into 18 gradation levels. In this example, the quantization step, that is, the interval between adjacent lattice points is basically 16, but in the vicinity of the gradation value 255, that is, in the low density region, the quantization step is as shown by the value 8 or the value 7. It is getting smaller. In the first embodiment, pre-gradation number conversion was performed by using the lattice points by the error diffusion method shown in FIG.

このように、低濃度領域で量子化ステップを小さくする点が、本実施例の大きな特徴である。従来の補間演算による方法では、出力装置にインクジェットなどのプリンタ22を用いる場合には、逆に低濃度領域の格子点間隔は大きく、中高濃度領域の格子点間隔は狭くするのが適当であった。これは、低濃度領域ではドット同士が接触したり、重なったりする確率が低いために、入出力データの間の線形成が高く1次の補間演算でも十分な精度が得られたのに対し、ドット密度が高い中高濃度領域では線形性が大きく乱れるためである。本実施例ではこのような従来の常識とは逆に、低濃度領域の格子点間隔を狭くした色補正テーブルCTを用いて、低濃度領域で出力データの変化量が小さくなるように設定している。この結果、低濃度領域でのプレ階調数変換の量子化ノイズが小さくなるため、低濃度領域におけるこの量子化ノイズによる画質劣化が低減され、出力画像の画質が一層向上する。しかも、低濃度領域のみ、格子点間隔を小さくしているので、色補正テーブルメモリ134の容量もさほど多くなることがない。   As described above, the feature of the present embodiment is that the quantization step is reduced in the low concentration region. In the conventional interpolation calculation method, when the printer 22 such as an ink jet is used as an output device, it is appropriate to conversely increase the lattice point spacing in the low density region and narrow the lattice point spacing in the medium and high density region. . This is because, in the low density region, since the probability that dots are in contact with each other or overlap each other is low, line formation between input and output data is high, and sufficient accuracy is obtained even with a primary interpolation operation. This is because the linearity is greatly disturbed in the medium-high density region where the dot density is high. In this embodiment, contrary to the conventional common sense, the color correction table CT in which the lattice point interval in the low density area is narrowed is used to set the change amount of the output data to be small in the low density area. Yes. As a result, since the quantization noise of the pre-gradation number conversion in the low density region is reduced, image quality deterioration due to this quantization noise in the low density region is reduced, and the image quality of the output image is further improved. In addition, since the lattice point spacing is reduced only in the low density region, the capacity of the color correction table memory 134 does not increase so much.

ところで、プレ階調数変換後のデータは次に色補正テーブルCTに従って色補正される。一般に色補正テーブルCTの変換特性はリニヤではないから、プレ階調数変換の量子化ステップは色補正後には異なった形になる。色補正テーブルCTの変換特性によっては、プレ階調数変換の量子化ステップが低濃度領域で十分小さくても、色補正後のデータがもつ量子化ステップは、各インク色について、低濃度領域で量子化ステップが小さくなっていないことがあり得る。この場合には、色補正テーブルCTの分割を、図20に示したように、RGBの各軸における低濃度領域で細かく分割しておいても、最終的に得られる画像では、低濃度領域で量子化ノイズの影響が現れてしまう。   By the way, the data after the pre-gradation number conversion is then color-corrected according to the color correction table CT. In general, since the conversion characteristics of the color correction table CT are not linear, the quantization step of pre-gradation number conversion takes a different form after color correction. Depending on the conversion characteristics of the color correction table CT, even if the quantization step of the pre-gradation number conversion is sufficiently small in the low density region, the quantization step of the data after color correction will be in the low density region for each ink color. It is possible that the quantization step is not reduced. In this case, as shown in FIG. 20, even though the color correction table CT is divided finely in the low density regions on each of the RGB axes, the final image is obtained in the low density region. The influence of quantization noise appears.

そこで、プレ階調数変換の量子化ステップが低濃度領域で十分小さいだけでなく、それを色補正した後のデータが持つ量子化ステップも低濃度領域で十分に小さくなるように、プレ階調数変換の量子化ステップを修正することが望ましい。この修正は、例えば図21に示すように、次の各工程により行なうことができる。
(1) まず、プレ階調数変換の量子化ステップを上記のように低濃度領域で十分小さくなるように暫定的に定め(ステップS31)、これに合せて色補正テーブルCTを作成した上で、実際に色補正を試行する(ステップS32)。
(2) この試行の結果得られた色補正後のデータの量子化ステップをチェックする(ステップS33)。もし、その量子化ステップが低濃度領域のいずれかの箇所において、低濃度領域での量子化誤差の影響を無くすための所定上限値以上かを判断し(ステップS34)、所定上限値より大きければ、プレ階調数変換の量子化ステップのうち、上記大きい箇所に関連する部分を一層小さく設定し直し(ステップS35)、これに合せて色補正テーブルの格子点間隔も修正する(ステップS36)。
Therefore, not only is the pre-gradation number conversion quantization step sufficiently small in the low density area, but also the pre-gradation so that the quantization step of the data after color correction is sufficiently small in the low density area. It is desirable to modify the quantization step of the number transform. This correction can be performed by the following steps, for example, as shown in FIG.
(1) First, the quantization step of the pre-gradation number conversion is provisionally determined so as to be sufficiently small in the low density region as described above (step S31), and the color correction table CT is created in accordance with this step. Actually, color correction is tried (step S32).
(2) The quantization step of the color-corrected data obtained as a result of this trial is checked (step S33). If the quantization step is greater than or equal to a predetermined upper limit value for eliminating the influence of the quantization error in the low density region at any location in the low density region (step S34), In the quantization step of pre-gradation number conversion, the portion related to the large portion is set smaller again (step S35), and the lattice point spacing of the color correction table is also corrected accordingly (step S36).

このようにして最終的に、色補正後の量子化ステップが低濃度領域で上記上限値より小さくなるように、プレ階調数変換の量子化ステップ及びそれに対応した色補正テーブルCTの格子点間隔を修正する。こうして修正された量子化ステップ及び色補正テーブルCTを用いて、プレ階調数変換及び色補正を行なうことにより、低濃度領域におけるプレ階調数変換の量子化ノイズの影響が確実に低減される。   In this way, finally, the quantization step for pre-gradation conversion and the corresponding grid point spacing of the color correction table CT so that the quantization step after color correction becomes smaller than the upper limit value in the low density region. To correct. By performing the pre-gradation conversion and color correction using the thus corrected quantization step and color correction table CT, the influence of the quantization noise of the pre-gradation conversion in the low density region is reliably reduced. .

(2)第2実施例
本発明の第2実施例として、上記第1実施例と同一の構成において、プレ階調数変換部140がディザ法により階調数変換を行なうものを説明する。この実施例では、プレ階調数変換は、図22に示した処理により行なわれる。この実施例では、4×4のディザマトリクスを用いるものとする。ディザマトリクスの一例を図23に示す。この例では、RGBの各色についてN階調(この実施例では256階調)の原カラー画像データDa(0〜255)を、M階調(この実施例では6階調)にプレ階調数変換している。プレ階調数変換により得られる格子点カラー画像データをGCで表わす。以下の説明では、DiThはディザマトリクス番号を示し、図23に示したように、1から16の値をとる。また、プレ階調数変換のために用意された格子点は、低濃度領域で狭く分割され、RSLT[0]=0、RSLT[1]=70、RSLT[2]=130、RSLT[3]=190、RSLT[4]=235、RSLT[5]=255に設定されている。このほか、各格子点間距離Dist[i]を
Dist[i]=RSLT[i+1]−RSLT[i]
i=0,1,…4
と定義する。なお、原カラー画像データDaが値255を採った場合に後述する隔たりoffstを求める演算の結果を保証するために、Dist[5]=1と定義しておく。
(2) Second Embodiment A second embodiment of the present invention will be described in which the pre-gradation number conversion unit 140 performs the gradation number conversion by the dither method in the same configuration as the first embodiment. In this embodiment, the pre-gradation number conversion is performed by the process shown in FIG. In this embodiment, a 4 × 4 dither matrix is used. An example of the dither matrix is shown in FIG. In this example, the original color image data Da (0 to 255) having N gradations (256 gradations in this embodiment) is converted into M gradations (6 gradations in this embodiment) for each RGB color. It has been converted. The grid point color image data obtained by the pre-gradation number conversion is represented by GC. In the following description, DiTh indicates a dither matrix number, and takes a value from 1 to 16, as shown in FIG. Also, the grid points prepared for pre-gradation number conversion are narrowly divided in the low density region, and RSLT [0] = 0, RSLT [1] = 70, RSLT [2] = 130, RSLT [3]. = 190, RSLT [4] = 235, and RSLT [5] = 255. In addition, the distance Dist [i] between the lattice points is set to Dist [i] = RSLT [i + 1] −RSLT [i].
i = 0, 1,... 4
It is defined as It should be noted that Dist [5] = 1 is defined in order to guarantee the result of the calculation for obtaining the distance offst described later when the original color image data Da takes the value 255.

図22に示したプレ階調数変換が開始されると、まず着目している画素の原カラー画像データDaを入力する処理を行なう(ステップS40)。その後、この画素に対応するディザマトリクス番号DiThからこれを値0〜1の範囲で正規化した値DDHを求める処理を行なう(ステップS41)。値DDHは、次式(3)により求めている。   When the pre-gradation conversion shown in FIG. 22 is started, first, the process of inputting the original color image data Da of the pixel of interest is performed (step S40). Thereafter, a process of obtaining a value DDH obtained by normalizing the dither matrix number DiTh corresponding to this pixel in the range of values 0 to 1 is performed (step S41). The value DDH is obtained by the following equation (3).

Figure 2006074809
Figure 2006074809

ディザマトリクス番号DiThを求める処理は、注目画素の走査方向位置をp、副走査方向位置をqとして、[p%4,q%4]の位置の値を図23に示したマトリクスから求めることにより行なわれる。ここで、%は剰余演算子である。図23のマトリクスからディザマトリクス番号DiThを求めるには、[0,0]〜[3,3]を要素とする関数(例えばGetMatrix[x,y])を予め定義しておけばよい。   The dither matrix number DiTh is obtained by obtaining the position value of [p% 4, q% 4] from the matrix shown in FIG. 23, where p is the position in the scanning direction of the pixel of interest and q is the position in the sub-scanning direction. Done. Here,% is a remainder operator. In order to obtain the dither matrix number DiTh from the matrix of FIG. 23, a function having elements [0, 0] to [3, 3] (for example, GetMatrix [x, y]) may be defined in advance.

こうしてディザマトリクス番号DiThを正規化した値DDHを得た後、変換階調数番号を示す変数Xに値0を設定し(ステップS42)、次に、この階調数番号Xにより定まる格子点の値RSLT[X]と原カラー画像データDaとを比較する処理を行なう(ステップS43)。なお、この説明では、比較される原カラー画像データDaは、特に色成分を特定していないが、実際には、各色成分毎に比較を行なうことになる。原カラー画像データDaが格子点の値RSLT[X]以下でなければ、変数Xを値1だけインクリメントし(ステップS44)、再度両者を比較する。即ち、原カラー画像データDaが格子点の値RSLT[X]以下となるまで、順次格子点に対応した値を大きくしてゆくのである。   After obtaining the value DDH obtained by normalizing the dither matrix number DiTh in this way, a value 0 is set to the variable X indicating the converted gradation number number (step S42), and then the lattice point determined by the gradation number number X is set. A process of comparing the value RSLT [X] with the original color image data Da is performed (step S43). In this description, the original color image data Da to be compared does not particularly specify a color component, but actually, a comparison is made for each color component. If the original color image data Da is not less than or equal to the grid point value RSLT [X], the variable X is incremented by 1 (step S44), and the two are compared again. That is, the value corresponding to the lattice point is sequentially increased until the original color image data Da becomes equal to or less than the lattice point value RSLT [X].

この結果、いずれ原カラー画像データDaが格子点の値RSLT[X]以下となるから(ステップS43)、次に原カラー画像データDaとステップS43で比較した格子点との隔たりoffstを計算する処理を行なう(ステップS45)。隔たりoffstは、原カラー画像データDaがこれを挟む格子点間の距離Dist[X−1]に対して正規化した値として、次式(4)により計算される。   As a result, the original color image data Da will eventually become less than or equal to the lattice point value RSLT [X] (step S43), and then a process of calculating the offset offst between the original color image data Da and the lattice point compared in step S43. Is performed (step S45). The distance offst is calculated by the following equation (4) as a value normalized with respect to the distance Dist [X−1] between the grid points between which the original color image data Da is sandwiched.

Figure 2006074809
Figure 2006074809

そこで、続けて、この隔たりoffstとディザマトリクス番号DiThを正規化した値DDHとを比較する処理を行なう(ステップS46)。両者を比較して隔たりoffstの方が大きければ、原カラー画像データDaを、これを挟む両格子点のうち値の大きな側の格子点に割り当てるべく、変数Xに対応する格子点の値RSLT[X]を結果値RSLに設定し(ステップS47)、隔たりoffstの方が小さければ、原カラー画像データDaを、これを挟む両格子点のうち値の小さな側の格子点に割り当てるべく、変数X−1に対応する格子点の値RSLT[X−1]を結果値RSLに設定する処理を行なう(ステップS48)。その後、注目画素を次の画素に移動する処理を行ない(ステップS49)、上述した処理を、原カラー画像データの最後まで繰り返す。   Then, the process of comparing this distance offst with the value DDH obtained by normalizing the dither matrix number DiTh is performed (step S46). If the difference between the two is larger, the original color image data Da is assigned to the grid point having the larger value of the grid points sandwiching the original color image data Da. X] is set to the result value RSL (step S47), and if the distance offst is smaller, the variable X A process of setting the value RSLT [X−1] of the grid point corresponding to −1 to the result value RSL is performed (step S48). Thereafter, a process of moving the target pixel to the next pixel is performed (step S49), and the above-described process is repeated until the end of the original color image data.

以上の処理によれば、原カラー画像データDaの階調数を256階調から6階調に変換することができ、しかも分散型のディザマトリクス(図23)を用いて、適度にばらついた格子点カラー画像データに変換することができる。図14を用いた例では、原カラー画像データにノイズとしてディザマトリクスによるデータを加えてこうしたばらつきを作ったが、本実施例では、原カラー画像データDaをこれを挟む両格子点のいずれに割り当てるかを判断する際に、ディザマトリクスを利用したばらつきを発生させている。即ち、本実施例では、ディザマトリクスとして用意されたディザマトリクス番号DiThを用いて正規化された値DDHを用いて、隣接する格子点からの隔たりの判断を行なっているので、例えば隣接する画素の原カラー画像データDaが同一の値であっても、異なる格子点に割り当てられることが生じるのである。組織的ディザ法を用いた場合を、平均誤差最小法や誤差拡散法と比較すると、誤差拡散計算が不要となるため、画像処理に要する時間を一層短くすることができる上に、誤差記憶のためのメモリ等が不必要になりハードウェア資源が節約されるという大きなメリットがある。   According to the above processing, the number of gradations of the original color image data Da can be converted from 256 gradations to 6 gradations, and a lattice that is moderately dispersed using the distributed dither matrix (FIG. 23). It can be converted into point color image data. In the example using FIG. 14, such variation is created by adding data by dither matrix as noise to the original color image data. However, in this embodiment, the original color image data Da is assigned to either of the grid points sandwiching the data. In determining whether or not, variation using a dither matrix is generated. In other words, in this embodiment, the value DDH normalized using the dither matrix number DiTh prepared as the dither matrix is used to determine the distance from the adjacent grid points. Even if the original color image data Da has the same value, it may be assigned to different grid points. Compared to the average error minimum method and error diffusion method when using the systematic dither method, error diffusion calculation is not required, so that the time required for image processing can be further shortened and error storage is also possible. There is a great merit that the memory and the like are unnecessary and hardware resources are saved.

(3)第3実施例
第3実施例としての画像処理装置30は、図24に示すように、第1実施例で説明したプレ階調数変換部140(図9参照)内に、メインデータ出力部140aとサブデータ出力部140bを有し、更に補間演算部148を有する。即ち、第2実施例の画像処理装置30は、プレ階調数変換の量子化ノイズを低減するため、第1実施例の構成に加えて、プレ階調数変換から色補正テーブルCTによる色補正の過程で補間演算を行なう構成を備えるのである。
(3) Third Embodiment As shown in FIG. 24, the image processing apparatus 30 as the third embodiment includes main data in the pre-gradation number conversion unit 140 (see FIG. 9) described in the first embodiment. It has an output unit 140a and a sub data output unit 140b, and further has an interpolation calculation unit 148. That is, the image processing apparatus 30 according to the second embodiment performs color correction based on the color correction table CT from the pre-gradation conversion in addition to the configuration of the first embodiment in order to reduce quantization noise in the pre-gradation conversion. In this process, an interpolation calculation is performed.

R、G、Bの3次元空間で行なう補間演算の従来の手法には、直方体の8頂点の座標値を用いる8点補間法、演算を簡易にするために考慮に入れる頂点数を間引いた6点補間法及び4点補間法(例えば特公昭58−16180)が知られており、これらはいずれも3次元の補間法である。これに対し、この実施例では1次元の補間法を用いる。即ち、本実施形態ではR、G、Bの3色のデータの内、求めたい出力色に対して最も大きな影響を持つ入力色成分(これを、以下、主要色と呼ぶ)のみに関して、前後の量子化値を用いて補間を行なう。例えば、RGB入力データをCMY出力データに変換する場合には、Cの主要色はR,Mの主要色はG,Yの主要色はBのように、それぞれの補色成分を主要色として、その色成分に関してのみ前後の量子化値を用いて補間を行なう。これは、それぞれの出力色成分の出力結果に対して大きな影響を与えるのはその主要色成分であり、主要色以外の色成分の値が多少変化しても出力結果にはあまり変化しないという性質を利用し、主要色成分に関してのみの補間演算で十分な精度を得ようとするものである。   The conventional method of interpolation calculation performed in a three-dimensional space of R, G, B is an eight-point interpolation method using coordinate values of eight vertices of a rectangular parallelepiped, and the number of vertices to be taken into consideration in order to simplify the calculation is 6 A point interpolation method and a four-point interpolation method (for example, Japanese Examined Patent Publication No. 58-16180) are known, and these are all three-dimensional interpolation methods. In contrast, this embodiment uses a one-dimensional interpolation method. That is, in this embodiment, only the input color component having the greatest influence on the output color to be obtained (hereinafter referred to as the main color) among the three colors of R, G, and B is referred to Interpolation is performed using the quantized value. For example, when converting RGB input data to CMY output data, the main color of C is R, the main color of M is G, the main color of Y is B, and the respective complementary color components are the main colors. Interpolation is performed using front and rear quantized values only for color components. This is because the main color component has a great influence on the output result of each output color component, and the output result does not change much even if the values of color components other than the main color change slightly. Is used to obtain sufficient accuracy by interpolation only for the main color components.

具体的に説明する。ここで、原画像データを(R、G、B)で表し、プレ階調数変換後のデータを(R’、G’、B’)で表す。また、データ(R’、G’、B’)に色補正テーブルCTを適用して得られたデータのC、M、Y各色成分をLUT_C(R’、G’、B’)、LUT_M(R’、G’、B’)、LUT_Y(R’、G’、B’)で表す。また、最終的な色補正変換後のデータを(C”、M”、Y”)で表す。   This will be specifically described. Here, the original image data is represented by (R, G, B), and the data after the pre-gradation conversion is represented by (R ′, G ′, B ′). Further, the C, M, and Y color components of the data obtained by applying the color correction table CT to the data (R ′, G ′, B ′) are converted into LUT_C (R ′, G ′, B ′), LUT_M (R ', G', B ') and LUT_Y (R', G ', B'). The final data after color correction conversion is represented by (C ″, M ″, Y ″).

今、或る画素の原画像データ(R、G、B)がプレ階調数変換の格子点に対して図25に示すように、
R'1<R<R'2、G'1<G<G'2、B'1<B<B'2
の関係にあり、この原データ(R、G、B)をプレ階調数変換した結果、データ(R'1、G'2、B'1)が得られたとする(以下、このデータをメインデータという)。
Now, as shown in FIG. 25, the original image data (R, G, B) of a certain pixel is shown in FIG.
R'1 <R <R'2, G'1 <G <G'2, B'1 <B <B'2
The data (R′1, G′2, B′1) is obtained as a result of pre-gradation conversion of the original data (R, G, B) (hereinafter, this data is referred to as main data). Called data).

この場合、プレ階調数変換では更に、上記メインデータ(R'1、G'2、B'1)の他に、メインデータと主要色成分のみが原データを挟んで反対側の格子点上にあるデータをサブデータとして出力する。メインデータは各色成分で共通だが、サブデータは各色成分ごとに異なるものとなる。次に各色成分ごとにメインデータとサブデータ両方に関して、色補正テーブルを適用して、次のようにして一次元補間に必要な2つの値を取得する。
(1) RをCの主要色として、
LUT_C(R'1,G'2,B'1)及びLUT_C(R'2,G'2,B'1)
(2) GをMの主要色として、
LUT_M(R'1,G'2,B'1)及びLUT_M(R'1,G'1,B'1)
(3) BをYの主要色として、
LUT_Y(R'1,G'2,B'1)及びLUT_Y(R'1,G'2,B'2)
このように、メインデータ(R'1,G'2,B'1)に色補正テーブルを適用する他に、各色ごとに、その主要色成分のみをサブデータのそれに変更したデータに対しても色補正テーブルCTを適用して、一次元補間に必要な2つの値を取得する。
In this case, in the pre-gradation conversion, in addition to the main data (R′1, G′2, B′1), only the main data and the main color component are on the grid points on the opposite side across the original data. The data at is output as sub-data. The main data is common to each color component, but the sub data is different for each color component. Next, a color correction table is applied to both main data and sub data for each color component, and two values necessary for one-dimensional interpolation are acquired as follows.
(1) With R as the main color of C,
LUT_C (R′1, G′2, B′1) and LUT_C (R′2, G′2, B′1)
(2) G as the main color of M
LUT_M (R′1, G′2, B′1) and LUT_M (R′1, G′1, B′1)
(3) B as the main color of Y
LUT_Y (R′1, G′2, B′1) and LUT_Y (R′1, G′2, B′2)
In this way, in addition to applying the color correction table to the main data (R′1, G′2, B′1), for each color, only the main color component is changed to that of the sub-data. By applying the color correction table CT, two values necessary for one-dimensional interpolation are acquired.

次に、色補正の最終段階として、次のように一次元補間演算を行なって最終的なデータ(C”、M”、Y”)を得る。   Next, as the final stage of color correction, one-dimensional interpolation is performed as follows to obtain final data (C ″, M ″, Y ″).

C”は、LUT_C(R'1、G'2、B'1)とLUT_C(R'2、G'2、B'1)の補間演算結果、
M”は、LUT_M(R'1、G'2、B'1)とLUT_M(R'1、G'1、B'1)の補間演算結果、
Y”は、LUT_Y(R'1、G'2、B'1)とLUT_Y(R'1、G'2、B'2)の補間演算結果である。
ここで、各色成分の補間演算は、各色成分についての原データとメインデータ及びサブデータとの距離に応じた重み係数を用いて行なう。例えば、R(C)成分に関して、原データとメインデータ及びサブデータとが、図26に示すように、距離d1、d2だけ隔たっているならば、C”は、次式(5)により求められる。
C ″ is an interpolation calculation result of LUT_C (R′1, G′2, B′1) and LUT_C (R′2, G′2, B′1),
M ″ is an interpolation calculation result of LUT_M (R′1, G′2, B′1) and LUT_M (R′1, G′1, B′1),
Y ″ is an interpolation calculation result of LUT_Y (R′1, G′2, B′1) and LUT_Y (R′1, G′2, B′2).
Here, the interpolation calculation of each color component is performed using a weighting coefficient corresponding to the distance between the original data, main data, and sub data for each color component. For example, regarding the R (C) component, if the original data and the main data and the sub data are separated by distances d1 and d2, as shown in FIG. 26, C ″ is obtained by the following equation (5). .

Figure 2006074809
Figure 2006074809

以上のような主要色に関してのみの一次元補間は、計算が簡単であり、しかもプレ階調数変換の量子化ノイズを効果的に低減することができる。尚、この補間演算は、低濃度領域のみに限定して行なってもよい。   The one-dimensional interpolation for only the main colors as described above is easy to calculate and can effectively reduce the quantization noise of the pre-gradation number conversion. Note that this interpolation calculation may be performed only in the low density region.

[E]第4ないし第8実施例に共通の画像処理の詳細
上述した第1ないし第3実施例では、色補正テーブルCT作成する際、色空間を低濃度領域において細かく分割して得られる格子点を用いている。これに対して、第3実施例以降では、色補正テーブルCTは、図6に示したように、色空間を等間隔に分割して作成されている。以下の実施例では、色空間を低濃度領域で細かく分割する構成に代えて、図27に示すように、スムージング処理部150を備えた構成を採っている。以下、スムージング処理部150の構成を中心に、各実施例に共通の画像処理について説明する。
[E] Details of Image Processing Common to Fourth to Eighth Embodiments In the first to third embodiments described above, when the color correction table CT is created, a grid obtained by finely dividing the color space in the low density region Use points. On the other hand, in the third and subsequent embodiments, the color correction table CT is created by dividing the color space at equal intervals as shown in FIG. In the following embodiment, instead of the configuration in which the color space is finely divided in the low density region, a configuration including a smoothing processing unit 150 is employed as shown in FIG. Hereinafter, image processing common to the embodiments will be described focusing on the configuration of the smoothing processing unit 150.

以下に説明する画像処理装置30Aでは、プレ階調数変換の量子化ノイズを減らすために、プレ階調数変換及び色補正の後にスムージング処理を行なう。この処理では、色補正後の画像内の各画素にラスタスキャン順序で逐次注目し、その注目画素のデータとその近傍の幾つかの画素のデータに対し重み係数をもつスムージングフィルタを適用してそれらデータの加重平均を求め、その加重平均値をその注目画素の新たなデータとする。これを全ての画素について繰り返す。   In the image processing apparatus 30A described below, smoothing processing is performed after pre-gradation conversion and color correction in order to reduce quantization noise in pre-gradation conversion. In this process, each pixel in the color-corrected image is focused sequentially in the raster scan order, and a smoothing filter having a weighting coefficient is applied to the data of the pixel of interest and the data of several neighboring pixels. A weighted average of data is obtained, and the weighted average value is used as new data for the pixel of interest. This is repeated for all pixels.

図28は、スムージングフィルタの幾つかの例を示す。同図(A)は1次元3画素スムージングフィルタの例を示し、各画素内にその画素の重み係数が示されている。図示するように、注目画素Piとこれに同一ライン上で隣接する2つの画素Pi-1、Pi+1とに対し、均等な1/3の重み係数をもつスムージングフィルタが適用される。つまり、これら3画素Pi-1、Pi、Pi+1のデータをそれぞれ(Ci-1、Mi-1、Yi-1)、(Ci、Mi、Yi)、(Ci+1、Mi+1、Yi+1)とすると、注目画素Piの最終的なデータ(C、M、Y)は、
C=(Ci-1 + Ci + Ci+1)/3
M=(Mi-1 + Mi + Ci+1)/3
Y=(Yi-1 + Yi + Yi+1)/3
となる。尚、重み係数は、注目画素に重く隣接画素に軽くというように不均等にしてもよい。図28(B)ないし(D)は、隣接するラインの画素データまで参照する2次元のスムージングフィルタの例を示す。同図(B)は、注目画素Piが属するラインの一つ手前のラインを含めた6画素を参照するもので、均等な重み係数を持つ例を示す。同図(C)は上下のラインを含めた9画素を参照するもので、やはり均等な重み係数を持つフィルタの一例を示す。更に、同図(D)は同図(C)から重み係数だけを不均等にしたフィルタの一例を示している。
FIG. 28 shows some examples of smoothing filters. FIG. 1A shows an example of a one-dimensional three-pixel smoothing filter, and the weighting coefficient of the pixel is shown in each pixel. As shown in the figure, a smoothing filter having an equal weight coefficient of 1/3 is applied to the pixel of interest Pi and two pixels Pi-1 and Pi + 1 adjacent to the pixel of interest Pi on the same line. That is, the data of these three pixels Pi-1, Pi, Pi + 1 are respectively (Ci-1, Mi-1, Yi-1), (Ci, Mi, Yi), (Ci + 1, Mi + 1, Yi). +1), the final data (C, M, Y) of the pixel of interest Pi is
C = (Ci-1 + Ci + Ci + 1) / 3
M = (Mi-1 + Mi + Ci + 1) / 3
Y = (Yi-1 + Yi + Yi + 1) / 3
It becomes. Note that the weighting factor may be non-uniform such that it is heavy on the target pixel and light on adjacent pixels. 28B to 28D show examples of a two-dimensional smoothing filter that refers to pixel data of adjacent lines. FIG. 4B refers to an example having an equal weighting factor by referring to six pixels including a line immediately before the line to which the target pixel Pi belongs. FIG. 9C refers to nine pixels including the upper and lower lines, and shows an example of a filter having an equal weight coefficient. Further, FIG. 4D shows an example of a filter in which only the weight coefficient is made unequal from FIG.

こうしたスムージングの処理を行なうことにより、プレ階調数変換により生じた量子化誤差の影響による最終的な出力画像の画質の低下という問題を解消することができる。また、ポスト階調数変換において、従来分散型のディザ法を用いると、プレ階調数変換における量子化誤差の影響が現われ、画質が劣化する場合が見られたが、ポスト階調数変換前に、スムージングを行なうことにより、ポスト階調数変換に分散型ディザを採用しても、画質の低下は見られなくなる。したがって、ポスト階調数変換として、誤差拡散法、平均誤差最小法、集中型ディザの他、分散型ディザも採用可能となった。   By performing such smoothing processing, it is possible to solve the problem of degradation in image quality of the final output image due to the influence of the quantization error caused by the pre-gradation number conversion. In addition, when using the conventional distributed dither method in post-gradation conversion, the effect of quantization error in pre-gradation conversion appears and image quality deteriorates. In addition, by performing smoothing, even if a distributed dither is used for post-gradation number conversion, no deterioration in image quality is observed. Therefore, in addition to the error diffusion method, the average error minimum method, and the centralized dither, the distributed dither can be employed as the post-gradation number conversion.

ところで、スムージング処理は階調が均等または連続的にグラデートする領域でプレ階調数変換の量子化ノイズを低減するが、反面、文字や図形などのエッジの明快さを失わせる問題がある。そこで、エッジ検出を併用し、検出されたエッジの画素のスムージング処理はエッジの明快さを損なわないように修正することが望ましい。例えば、注目画素の値と隣接する画素の値との差分を求め、この差分が所定値より大きければエッジと判断し、注目画素の値に対するスムージング処理では、注目画素に隣接する画素を参照しないようにするのである。   By the way, the smoothing process reduces the quantization noise of the pre-gradation number conversion in an area where gradations are evenly or continuously graded, but there is a problem that the clarity of edges of characters and figures is lost. Therefore, it is desirable to use edge detection together and correct the detected edge pixel smoothing process so as not to impair edge clarity. For example, the difference between the value of the target pixel and the value of the adjacent pixel is obtained, and if this difference is larger than a predetermined value, it is determined as an edge, and the smoothing process for the value of the target pixel does not refer to the pixel adjacent to the target pixel. To do.

こうした処理については、後述する実施例で詳しく説明するが、その概要を示すと次の通りである。図28(A)示した1次元3画素スムージングの場合であれば、エッジか否かの判断基準となる所定値をAとすると、C色成分の値に関して、次式(6)の処理を行なえば良い。ここで、Ciは、注目画素iのC色成分の値、Ci-1,Ci+1は、注目画素の前後に隣接する画素のC色成分の値である。   Such processing will be described in detail in an embodiment described later. The outline of the processing is as follows. In the case of the one-dimensional three-pixel smoothing shown in FIG. 28A, assuming that a predetermined value as a criterion for determining whether or not an edge is A, the processing of the following equation (6) can be performed on the value of the C color component. It ’s fine. Here, Ci is the value of the C color component of the pixel of interest i, and Ci−1 and Ci + 1 are the values of the C color component of pixels adjacent to the pixel of interest before and after.

Figure 2006074809
Figure 2006074809

M、Yの色成分値についても同様の処理を行なう。これにより、隣接画素との階調差の絶対値が所定値A以上であるエッジ部分の画素については、スムージングの処理では、その隣接画素を参照していないので、エッジ以外の領域の画像の画質をスムージングにより高め、かつエッジの明快さを失うことがない。   Similar processing is performed for the M and Y color component values. As a result, for the pixels in the edge portion where the absolute value of the gradation difference from the adjacent pixel is equal to or greater than the predetermined value A, the adjacent pixel is not referred to in the smoothing process, so the image quality of the image in the region other than the edge Increases smoothing without losing edge clarity.

[F]第4ないし第7実施例
(1)第4実施例
第4実施例の画像処理装置30Aでは、プレ階調数変換部140,色補正部142,スムージング処理部150は、図27に示した処理により実現される。スムージング処理部150は、図2に示した構成では、色補正モジュール98に含まれている。この実施例では、注目画素の主走査方向の位置をhとして、副走査方向の位置をvとして示す。また、以下の説明では、プレ階調数変換部140により階調数変換される前の原カラー画像データORGの各色成分を、Rs[h,v]、Gs[h,v]、Bs[h,v]として記載し、プレ階調数変換後の格子点カラー画像データGCDの各色成分を、Rn[h,v]、Gn[h,v]、Bn[h,v]と表わすものとする。プレ階調数変換により、階調数は、本実施例では各色16階調あるいは8階調に低減されており、このデータRn[h,v]等は、何番目の格子点に割り当てられたものであるかを示していると見ることもできる。第4実施例では、色補正テーブルCTは、RGBからCMYKの4色への変換を含むテーブルであり、この色補正データGCDの各色成分を、Cc[h,v]、Mc[h,v]、Yc[h,v]、Kc[h,v]と記載する。なお、図29では、図示の都合上、[h,v]を省略して記載することがある。
[F] Fourth to Seventh Embodiments (1) Fourth Embodiment In the image processing apparatus 30A of the fourth embodiment, the pre-gradation number conversion unit 140, the color correction unit 142, and the smoothing processing unit 150 are shown in FIG. This is realized by the processing shown. The smoothing processing unit 150 is included in the color correction module 98 in the configuration shown in FIG. In this embodiment, the position of the target pixel in the main scanning direction is indicated by h, and the position of the sub scanning direction is indicated by v. Further, in the following description, each color component of the original color image data ORG before the gradation number conversion by the pre-gradation number conversion unit 140 is expressed as Rs [h, v], Gs [h, v], Bs [h. , V], and each color component of the grid point color image data GCD after the pre-gradation conversion is represented as Rn [h, v], Gn [h, v], Bn [h, v]. . By the pre-gradation number conversion, the number of gradations is reduced to 16 gradations or 8 gradations in each color in this embodiment, and this data Rn [h, v] etc. is assigned to which grid point. It can also be seen as indicating whether it is a thing. In the fourth embodiment, the color correction table CT is a table including conversion from RGB to four colors of CMYK. The color components of the color correction data GCD are represented by Cc [h, v], Mc [h, v]. , Yc [h, v], Kc [h, v]. In FIG. 29, [h, v] may be omitted for convenience of illustration.

図29に示した処理が開始されると、まずプレ階調数変換部140によりプレ階調数変換を行なう(ステップS50)。プレ階調数変換は、原カラー画像データORGに相当する各色成分Rs[h,v],Gs[h,v],Bs[h,v]を、予め用意した格子点に割り当て、その階調数を低減する処理である。その手法については、第1ないし第3実施例で詳しく説明した。図29では、プレ階調数変換を関数PreConv()として示した。このプレ階調数変換により得られる格子点カラー画像データGCDの各色成分がRn[h,v],Gn[h,v],Bn[h,v]である。   When the processing shown in FIG. 29 is started, first, the pre-gradation number conversion unit 140 performs pre-gradation number conversion (step S50). In the pre-gradation conversion, each color component Rs [h, v], Gs [h, v], Bs [h, v] corresponding to the original color image data ORG is assigned to a grid point prepared in advance, and its gradation This is a process of reducing the number. This method has been described in detail in the first to third embodiments. In FIG. 29, the pre-gradation number conversion is shown as a function PreConv (). Each color component of the grid point color image data GCD obtained by this pre-gradation number conversion is Rn [h, v], Gn [h, v], Bn [h, v].

次に、プレ階調数変換により得られた格子点カラー画像データの各色成分に基づいて、色補正テーブルメモリ134に予め記憶された色補正テーブルCTを参照し、色補正を行なう(ステップS51)。この処理は、色補正部142による処理に相当する。色補正に合わせて、RGBから、最終的なカラープリンタ22の出力するインク色であるCMYKの4色への変換も行なわれる。色補正処理により得られる色補正データCCDの各色成分がCc[h,v],Mc[h,v],Yc[h,v],Kc[h,v]である。なお、図29では、色補正の処理を、色補正テーブルCTを参照する(ルックアップする)ことから、関数RefLUT()として示した。   Next, color correction is performed by referring to the color correction table CT stored in advance in the color correction table memory 134 based on each color component of the grid point color image data obtained by the pre-gradation number conversion (step S51). . This process corresponds to the process by the color correction unit 142. In accordance with the color correction, conversion from RGB to four colors of CMYK which are ink colors output from the final color printer 22 is also performed. Each color component of the color correction data CCD obtained by the color correction process is Cc [h, v], Mc [h, v], Yc [h, v], Kc [h, v]. In FIG. 29, the color correction processing is shown as a function RefLUT () because it refers to (looks up) the color correction table CT.

こうして色補正データCCDの各色成分を得た後、本実施例のスムージング処理部150によるスムージング処理を行なう。このスムージング処理では、まず、注目している画素[h,v]とこれに近接する画素との間でスムージングの処理を行なうか否かの判断を行なう(ステップS52)。どういう場合にスムージングの処理を行なうかについては、様々な手法が考えられることは、上述した通りであるが、この実施例では、図30に示したように、注目画素のプレ階調数変換後のデータRn[h,v],Gn[h,v],Bn[h,v]とこれに隣接する一つ前の画素[h−1,v]の各データとの差が、各色成分について値1以下である場合に、スムージングの処理を行なうと判断している。即ち、着目している画素の各色成分とその主走査方向に一つ前の画素の各色成分とが、プレ階調数変換部140による変換によって、同一または隣接する格子点を上にある場合に、スムージング処理を行なうと判断するのである。かかる判断により、画像に本来備わっているエッジなどではスムージングの処理を行なわないと判断する。   After obtaining each color component of the color correction data CCD in this way, smoothing processing is performed by the smoothing processing unit 150 of the present embodiment. In this smoothing process, first, it is determined whether or not to perform the smoothing process between the pixel of interest [h, v] and the adjacent pixels (step S52). As described above, various methods can be considered as to when to perform the smoothing process. In this embodiment, as shown in FIG. 30, after the pre-gradation conversion of the pixel of interest. The difference between the data Rn [h, v], Gn [h, v], Bn [h, v] and the data of the immediately preceding pixel [h−1, v] adjacent to the data Rn [h, v], Gn [h, v] When the value is 1 or less, it is determined that the smoothing process is performed. That is, when each color component of the pixel of interest and each color component of the previous pixel in the main scanning direction are on the same or adjacent grid points by the conversion by the pre-gradation number conversion unit 140 It is determined that the smoothing process is performed. Based on such determination, it is determined that smoothing processing is not performed on an edge or the like inherent in the image.

スムージングの処理を行なわないと判断した場合には、注目画素の色補正された各色成分Cc[h,v],Mc[h,v],Yc[h,v],Kc[h,v]をそのまま出力データCs,Ms,Ys,Ksとし(ステップS53)、ポスト階調数変換部146に出力する。他方、スムージングの処理を行なうと判断した場合には、一つ前の画素の色補正後の各色成分Cc[h−1,v],Mc[h−1,v],Yc[h−1,v],Kc[h−1,v]と注目画素の各色成分との加算平均を演算し(ステップS54)、これを出力データとして、次のポスト階調数変換部146によるポスト階調数変換に移行する。本実施例では、ポスト階調数変換処理としては、カラープリンタ22の出力がインクドットを形成する・しないの2値的なものであることから、誤差拡散などのハーフトーニングの処理を行なっている。この処理についての説明は省略する。   If it is determined that the smoothing process is not performed, the color components Cc [h, v], Mc [h, v], Yc [h, v], and Kc [h, v] of the pixel of interest are corrected. The output data Cs, Ms, Ys, and Ks are output as they are (step S53) and output to the post-gradation number conversion unit 146. On the other hand, if it is determined that the smoothing process is to be performed, each color component Cc [h−1, v], Mc [h−1, v], Yc [h−1, after color correction of the previous pixel is performed. v], Kc [h−1, v] and the respective color components of the pixel of interest are calculated and averaged (step S54). Using this as output data, the post-gradation number conversion unit 146 performs the post-gradation number conversion. Migrate to In the present embodiment, as the post-gradation number conversion process, since the output of the color printer 22 is a binary process of forming / not forming ink dots, a halftoning process such as error diffusion is performed. . A description of this process is omitted.

以上のように構成された第4実施例の画像処理装置30Aでは、スムージング処理部150によりスムージングを行なうので、プレ階調数変換により生じる量子化誤差の影響を軽減でき、量子化誤差に起因する画質の劣化を防止することができる。しかも、プレ階調数変換後のデータに基づいて、注目画素の一つ前の画素と比較し、その各色成分の一つでも隣接する格子点以上離れた格子点に割り当てられている場合には、スムージングの処理を行なわない。この結果、画像に本来存在するエッジなどのシャープさを、スムージングの処理により失うということがない。また、スムージングを行なうか否かの判断を、直前に処理された画素のデータとの比較により行なっているので、比較のために記憶しておくデータに無駄がなく、記憶容量も小さなもので済ませることができる。更に、隣接する一つの画素との比較だけで済むので、演算量も小さくでき、全体の処理を高速化することができる。   In the image processing apparatus 30A of the fourth embodiment configured as described above, since the smoothing processing unit 150 performs smoothing, the influence of the quantization error caused by the pre-gradation number conversion can be reduced, resulting in the quantization error. Degradation of image quality can be prevented. In addition, based on the data after the pre-gradation conversion, when one of the respective color components is assigned to a grid point that is separated from the adjacent grid point by comparison with the pixel immediately before the target pixel The smoothing process is not performed. As a result, sharpness such as edges that are originally present in the image is not lost by the smoothing process. In addition, since whether or not to perform smoothing is determined by comparison with the data of the pixel processed immediately before, the data stored for comparison is not wasted and the storage capacity can be reduced. be able to. Furthermore, since only the comparison with one adjacent pixel is sufficient, the amount of calculation can be reduced, and the overall processing can be speeded up.

以上説明した第4実施例では、スムージングを行なうか否かの判断を、プレ階調数変換後のデータの各色成分の隔たりにより行なったが、この判断には、様々なバリエーションを考えることができる。例えば、図31に示したように、プレ階調数変換後のデータRn[h,v],Gn[h,v],Bn[h,v]による判断に変えて、これを求める元になった原カラー画像データが属している範囲を示すデータRn0[h,v],Gn0[h,v],Bn0[h,v]を用いて判断しても良い。この時、データRn0[h,v],Gn0[h,v],Bn0[h,v]は、着目している画素が隣り合う8個の格子点に囲まれた直方体のいずれに属しているかを示すから、図31に示した条件は、着目している画素とこれに隣接する画素(主走査方向に一つ手前の画素)とが、8個の格子点に囲まれた同じ直方体もしくはこれに隣接する直方体に属しているか否かの判断に等しい。図30に示した条件では、各色成分についてプレ階調数変換により割り当てられた格子点が同一または隣接していれば、原カラー画像データとしてどのような関係に合ったかは問わずにスムージングの処理を行なうと判断したが、図31の例では、原カラー画像データが、隣接する格子点に囲まれた同じ空間もしくはこれに隣接する空間に入っていることが条件となる。   In the fourth embodiment described above, whether or not smoothing is performed is determined based on the separation of each color component of the data after the pre-gradation conversion, but various variations can be considered for this determination. . For example, as shown in FIG. 31, instead of the determination based on the data Rn [h, v], Gn [h, v], Bn [h, v] after the pre-gradation conversion, this is a source for obtaining this. The determination may be made using data Rn0 [h, v], Gn0 [h, v], Bn0 [h, v] indicating the range to which the original color image data belongs. At this time, whether the data Rn0 [h, v], Gn0 [h, v], Bn0 [h, v] belong to any of the rectangular parallelepipeds in which the pixel of interest is surrounded by eight adjacent lattice points 31, the condition shown in FIG. 31 is that the pixel of interest and the pixel adjacent to it (the pixel immediately before in the main scanning direction) are the same rectangular solid surrounded by eight lattice points or the same Is equal to the determination of whether or not it belongs to a rectangular parallelepiped adjacent to. Under the conditions shown in FIG. 30, if the grid points assigned by the pre-gradation conversion for the respective color components are the same or adjacent to each other, the smoothing process is performed regardless of the relationship as the original color image data. However, in the example of FIG. 31, it is a condition that the original color image data is in the same space surrounded by adjacent grid points or a space adjacent thereto.

更に、図32に示すように隣接する範囲まで考えず、注目画素とこれに隣接する画素の原カラー画像データが、隣接する格子点に囲まれた同じ直方体の空間に属している場合にのみスムージングを行なうと判断することも可能である。   Further, as shown in FIG. 32, smoothing is performed only when the original color image data of the pixel of interest and the adjacent pixels belong to the same rectangular space surrounded by adjacent grid points without considering the adjacent range. It is also possible to determine that

また、これらの例では、隣接する画素同士の隔たりは値1以下としたが、スムージングを行なう条件を緩くして、隔たりが値2以上でもスムージングを行なうものとしても良い。各色成分毎にプレ階調数変換後の階調数が異なることから、特定の色についての判断だけ値2以上とすることもできる。あるいは、次式(7)にしめすように、各色成分の隔たりの総和により判断するものとしても良い。   In these examples, the distance between adjacent pixels is set to a value of 1 or less. However, the smoothing condition may be relaxed so that smoothing is performed even if the distance is 2 or more. Since the number of gradations after the conversion of the number of pre-gradations differs for each color component, it is possible to make the value 2 or more only for the determination of a specific color. Alternatively, as shown in the following formula (7), the determination may be made based on the sum of the distances between the color components.

Figure 2006074809
Figure 2006074809

この場合には、特定の色について隣接する格子点を越えて隔たった位置に割り当てられても、他の色が同一の格子点に割り当てられていれば、スムージングが行なわれることになる。あるいは、次式(8)のように、各色成分の隔たりの二乗の総和が所定値以下という条件を考えることも可能である。   In this case, even if a specific color is assigned to a position separated from adjacent grid points, smoothing is performed if other colors are assigned to the same grid point. Or it is also possible to consider the condition that the sum of the squares of the distances between the color components is equal to or less than a predetermined value, as in the following equation (8).

Figure 2006074809
Figure 2006074809

なお、プレ階調数変換後のデータで判断するのではなく、例えば図33に示すように、原カラー画像データRs[h,v],Gs[h,v],Bs[h,v]を用いて判断することも可能である。実施例では、原カラー画像データは、0〜に255の256階調のデータなので、図33では、各色成分の隔たりが、隣接する画素との間で16階調以下の場合に、スムージングを行なうと判断するものとした。なお、各色成分についての隔たりは、16階調から自由に増減することができる。判断の基準とするこの隔たりは、実際に所定の画像について処理を行ない、検証して定めることが望ましい。また、上述したプレ階調数変換後のデータについての判断と併用することも望ましい。   It is not determined based on the data after the pre-gradation conversion, but the original color image data Rs [h, v], Gs [h, v], Bs [h, v] are represented as shown in FIG. It is also possible to judge by using. In the embodiment, since the original color image data is data of 256 gradations from 0 to 255, in FIG. 33, smoothing is performed when the separation of each color component is 16 gradations or less between adjacent pixels. Judgment was made. Note that the separation for each color component can be freely increased or decreased from 16 gradations. It is desirable that this gap as a criterion for determination is determined by actually processing a predetermined image and verifying it. It is also desirable to use it together with the judgment on the data after the pre-gradation number conversion described above.

プレ階調数変換による量子化誤差の影響が最も強く感じられるのは、特にカラープリンタ22の場合は、最終的に得られる画像の低濃度領域、いわゆるハイライト領域である。そこで、ハイライト付近でのみスムージングを行なうことも実用的である。図34に、ハイライト領域でのみスムージングを行なうと判断する例を示した。この場合には、原カラー画像データにおいて低濃度領域と判断することになるから、注目画素[h,v]とその隣接画素[h−1,v]との原カラー画像データRs,Gs,Bsが、共に0〜255階調のうちの224階調以上の場合にスムージングの処理を行なうものとした。なお、この例で、判定の閾値として採用した224階調という値については、種々変更可能である。適正な値は、各種の画像を処理して定めることができる。   In particular, in the case of the color printer 22, the influence of the quantization error due to the pre-gradation number conversion is felt most strongly in the low density area of the finally obtained image, the so-called highlight area. Therefore, it is also practical to perform smoothing only near the highlight. FIG. 34 shows an example in which it is determined that smoothing is performed only in the highlight area. In this case, since the original color image data is determined to be a low density region, the original color image data Rs, Gs, Bs of the pixel of interest [h, v] and its adjacent pixels [h-1, v] are used. However, smoothing processing is performed when both of 224 gradations of 0 to 255 gradations are used. In this example, the value of 224 gradations adopted as the determination threshold value can be variously changed. Appropriate values can be determined by processing various images.

(2)第5実施例
次に第5実施例について説明する。第5実施例の画像処理装置30Aでは、プレ階調数変換部140,色補正部142,スムージング処理部150は、図35に示した処理により実現される。この実施例では、スムージングの処理を、主走査方向に隣接する画素との間だけでなく、副走査方向に隣接する画素との間でも行なっている。図35に示した処理を開始すると、まず図29で説明したプレ階調数変換部140によるプレ階調数変換(ステップS60)と色補正部142による色補正(ステップSヘッド61)とを行ない、次に主走査方向についてスムージングを行なうか否かの判断を行なう(ステップS62)。この判断の内容は、第4実施例とその変形例で説明した通りであり、様々な基準を採用することができる。
(2) Fifth Example Next, a fifth example will be described. In the image processing apparatus 30A of the fifth embodiment, the pre-gradation number conversion unit 140, the color correction unit 142, and the smoothing processing unit 150 are realized by the process shown in FIG. In this embodiment, the smoothing process is performed not only between pixels adjacent in the main scanning direction but also between pixels adjacent in the sub-scanning direction. When the processing shown in FIG. 35 is started, first, the pre-gradation number conversion by the pre-gradation number conversion unit 140 (step S60) and the color correction (step S head 61) by the color correction unit 142 described in FIG. 29 are performed. Next, it is determined whether or not smoothing is performed in the main scanning direction (step S62). The contents of this determination are as described in the fourth embodiment and its modifications, and various standards can be adopted.

スムージングするか否かの判断を行ない(ステップS62)、主走査方向に隣接する画素との間でスムージングを行なわないと判断した場合には、注目画素の色補正データCc[h,v],Mc[h,v],Yc[h,v],Kc[h,v]をそのまま2倍してこれを一旦データCs,Ms,Ys,Ksとして記憶する処理を行なう(ステップS63)。他方、主走査方向に隣接する画素との間でスムージングを行なうと判断した場合には、第4実施例で説明したように、隣接する画素との間で色補正データを平均化するために、注目画素とこれに隣接する画素との色補正データを加算して、一旦データCs,Ms,Ys,Ksとして記憶する処理を行なう(ステップS64)。   It is determined whether or not smoothing is performed (step S62), and when it is determined that smoothing is not performed between adjacent pixels in the main scanning direction, color correction data Cc [h, v], Mc of the target pixel. [H, v], Yc [h, v], Kc [h, v] are doubled as they are and temporarily stored as data Cs, Ms, Ys, Ks (step S63). On the other hand, when it is determined that smoothing is performed between pixels adjacent in the main scanning direction, as described in the fourth embodiment, in order to average the color correction data between adjacent pixels, A process of adding the color correction data of the pixel of interest and the adjacent pixel and temporarily storing it as data Cs, Ms, Ys, Ks is performed (step S64).

次に、副走査方向に隣接する画素との間でスムージングを行なうか否かの判断を行なう(ステップS65)。スムージングを行なうか否かは、図36に示すように、副走査方向に一つ手前の画素[h,v−1]との間で、格子点カラー画像データの隔たりが各色成分についての総て値1以下であるか否かという判断により行なうことができる。この判断についても、上述した第4実施例とその変形例で示した各種の判断が適用可能である。なお、両判断(ステップS62,S65)は必ずしも同一の内容とする必要はない。最終的な画像の出力装置であるカラープリンタ22の垂直方向と水平方向の解像度が異なる場合などでは、スムージングを行なうか否かの判断が、主走査方向と副走査方向で異なることも実用的である。   Next, it is determined whether or not smoothing is performed between adjacent pixels in the sub-scanning direction (step S65). As shown in FIG. 36, whether or not smoothing is performed depends on the difference between the grid point color image data for each color component with respect to the pixel [h, v−1] immediately before in the sub-scanning direction. This can be done by determining whether the value is 1 or less. Also for this determination, various determinations shown in the above-described fourth embodiment and its modifications can be applied. Both determinations (steps S62 and S65) do not necessarily have the same contents. For example, when the resolution of the vertical direction and the horizontal direction of the color printer 22 as the final image output device is different, it is also practical that the judgment as to whether or not to perform smoothing differs between the main scanning direction and the sub-scanning direction. is there.

副走査方向に隣接する画素との間でスムージングを行なわないと判断した場合には、注目画素の色補正データCc[h,v],Mc[h,v],Yc[h,v],Kc[h,v]を、そのまま先に求めたデータCs,Ms,Ys,Ksに加える処理を行なう(ステップS66)。他方、副走査方向に隣接する画素との間でスムージングを行なうと判断した場合には、隣接する画素との間で色補正データを平均化するために、先に求めたデータCs,Ms,Ys,Ksに注目画素の一つ前のラインの画素(副走査方向に隣接する画素)の色補正データCc[h,v−1],Mc[h,v−1],Yc[h,v−1],Kc[h,v−1]を加算しする処理を行なう(ステップS67)。   If it is determined that smoothing is not performed between adjacent pixels in the sub-scanning direction, the color correction data Cc [h, v], Mc [h, v], Yc [h, v], Kc of the target pixel [H, v] is directly added to the previously obtained data Cs, Ms, Ys, Ks (step S66). On the other hand, when it is determined that smoothing is performed between adjacent pixels in the sub-scanning direction, the previously obtained data Cs, Ms, and Ys are used to average the color correction data with the adjacent pixels. , Ks, the color correction data Cc [h, v−1], Mc [h, v−1], Yc [h, v−] of the pixels in the line immediately before the target pixel (pixels adjacent in the sub-scanning direction). 1], Kc [h, v-1] are added (step S67).

その後、ステップS66またはS67で求めたデータCs,Ms,Ys,Ksを値3で除し、平均値を求め、これをスムージング後のデータCs,Ms,Ys,Ksとして(ステップS68)、次のポスト階調数変換部146によるポスト階調数変換処理に移行する。   Thereafter, the data Cs, Ms, Ys, Ks obtained in step S66 or S67 is divided by the value 3, an average value is obtained, and this is used as the smoothed data Cs, Ms, Ys, Ks (step S68). The process shifts to a post tone number conversion process by the post tone number conversion unit 146.

かかる構成によれば、スムージングの処理を主走査方向に隣接する画素のみならず副走査方向に隣接する画素についても行なうことができるので、プレ階調数変換による量子化誤差に起因する画質の劣化を、主走査方向・副走査方向のいずれについても防止し、画質の一層の向上を図ることができる。   According to this configuration, the smoothing process can be performed not only on the pixels adjacent in the main scanning direction but also on the pixels adjacent in the sub-scanning direction. Can be prevented in both the main scanning direction and the sub-scanning direction, and the image quality can be further improved.

(3)第6実施例
次に、本発明の第6の実施例として、画像出力装置20であるカラープリンタが、シアンインクC,マゼンタインクM,イエロインクY,ブラックインクK以外に、シアンインクCより低濃度のライトシアンインクC2,マゼンタインクMより低濃度のライトマゼンタインクM2を吐出可能なものである場合のスムージングについて説明する。このカラープリンタは、図2に示したハードウェア構成において、キャリッジ31に上記6色のインクに対応して6列の各色ヘッド61ないし66を備え、カラーインク用カートリッジ72には、ブラックインクKを除く濃淡5色のインクを搭載されている。この濃淡5色のインクの組成を、図37に示す。ここで、シアン,マゼンタについて低濃度のライトシアンインクC2,ライトマゼンタインクM2を備えるのは、これらのインクが、原カラー画像データの濃度が低い領域を表現するために低密度に吐出されると、その領域では、インクドットが視認されてしまい、いわゆる粒状感による画質の低下が感じられるからである。こうした原カラー画像データの濃度が低い領域では、低濃度のインクを用いて印刷を行なうことで、画像の品質は大きく改善される。なお、イエロインクYについて低濃度のインクを有しないのは、イエロインクYは、明度が高く、もともと粒状感をほとんど生じないからである。
(3) Sixth Embodiment Next, as a sixth embodiment of the present invention, a color printer which is the image output device 20 uses a cyan ink in addition to the cyan ink C, magenta ink M, yellow ink Y and black ink K. A description will be given of smoothing when light cyan ink C2 having a lower density than C2 and light magenta ink M2 having a lower density than magenta ink M can be ejected. In the hardware configuration shown in FIG. 2, the color printer includes six rows of color heads 61 to 66 corresponding to the six colors of ink on the carriage 31, and the color ink cartridge 72 contains black ink K. Except for the five shades of ink. FIG. 37 shows the composition of the five shades of ink. Here, the light cyan ink C2 and the light magenta ink M2 having low density for cyan and magenta are provided when these inks are ejected at a low density in order to express an area where the density of the original color image data is low. This is because ink dots are visually recognized in that region, and a deterioration in image quality due to a so-called granular feeling is felt. In such an area where the density of the original color image data is low, the quality of the image is greatly improved by printing using the low density ink. The reason why the yellow ink Y does not have a low-density ink is that the yellow ink Y has high brightness and originally hardly produces a grainy feeling.

シアンとマゼンタについて低濃度のインク(以下、淡インクと呼ぶ)と通常濃度のインク(以下、濃インクと呼ぶ)とのドット記録率を、図38に示す。この実施例では、原カラー画像データの濃度が低い領域では淡インクを中心に印刷を行ない、原カラー画像データの濃度が高くなるに従って、徐々に濃インクの使用量を増やし、これに伴って淡インクの使用量を低減する。所定の濃度以上では、濃インクのみで印字を行なっている。   FIG. 38 shows dot recording rates of cyan and magenta for low density ink (hereinafter referred to as light ink) and normal density ink (hereinafter referred to as dark ink). In this embodiment, printing is performed mainly for light ink in an area where the density of the original color image data is low, and the amount of dark ink used is gradually increased as the density of the original color image data increases. Reduce the amount of ink used. Above a predetermined density, printing is performed using only dark ink.

かかる構成を有する第6実施例の画像処理装置30Aでは、プレ階調数変換部140,色補正部142,スムージング処理部150は、図39に示した処理により実現される。この処理が開始されると、まず原カラー画像データの各色成分Rs,Gs,Bsをプレ階調数変換部140におけるプレ階調数変換に相当する処理を行ない(ステップS70)、次に変換後の格子点カラー画像データの各色成分Rn,Gn,Bnに基づいて色補正テーブルCTを参照し、色補正部142における色補正に相当する処理を行なう(ステップS71)。この時、色補正テーブルCTは、R,G,BからC,M,Y,K,C2,M2の6色への変換テーブルとして用意しておく。   In the image processing apparatus 30A of the sixth embodiment having such a configuration, the pre-gradation number conversion unit 140, the color correction unit 142, and the smoothing processing unit 150 are realized by the process shown in FIG. When this process is started, first, each color component Rs, Gs, Bs of the original color image data is subjected to a process corresponding to the pre-gradation conversion in the pre-gradation conversion unit 140 (step S70), and then converted. The color correction table CT is referred to based on the color components Rn, Gn, Bn of the grid point color image data, and a process corresponding to color correction in the color correction unit 142 is performed (step S71). At this time, the color correction table CT is prepared as a conversion table from six colors of R, G, B to C, M, Y, K, C2, M2.

次に、注目画素についてスムージングの処理を行なうか否かの判断を行なう(ステップS72)。この処理は、基本的には、第4実施例とその変形例で説明した判断を用いることができる。スムージングを行なわないと判断した場合には、注目画素の色補正された各色成分Cc[h,v],Mc[h,v],Yc[h,v],Kc[h,v],C2c[h,v],M2c[h,v]をそのまま出力データCs,Ms,Ys,Ksとし(ステップS73)、ポスト階調数変換部146に出力する。他方、スムージングの処理を行なうと判断した場合には、一つ前の画素の色補正後の各色成分Cc[h−1,v],Mc[h−1,v],Yc[h−1,v],Kc[h−1,v],C2c[h−1,v],M2c[h−1,v]と注目画素の各色成分Cc[h,v],Mc[h,v],Yc[h,v],Kc[h,v],C2c[h,v],M2c[h,v]との加算平均を演算し(ステップS74)、これを出力データとして、次のポスト階調数変換部146によるポスト階調数変換に移行する。   Next, it is determined whether or not to perform the smoothing process on the target pixel (step S72). This processing can basically use the judgment described in the fourth embodiment and its modification. If it is determined that smoothing is not performed, the color components Cc [h, v], Mc [h, v], Yc [h, v], Kc [h, v], C2c [ h, v], M2c [h, v] are used as output data Cs, Ms, Ys, Ks as they are (step S73) and output to the post-gradation number conversion unit 146. On the other hand, if it is determined that the smoothing process is to be performed, each color component Cc [h−1, v], Mc [h−1, v], Yc [h−1, after color correction of the previous pixel is performed. v], Kc [h-1, v], C2c [h-1, v], M2c [h-1, v] and each color component Cc [h, v], Mc [h, v], Yc of the pixel of interest. The arithmetic mean of [h, v], Kc [h, v], C2c [h, v], M2c [h, v] is calculated (step S74), and this is used as output data for the next post-gradation number. The process shifts to post-gradation number conversion by the conversion unit 146.

この実施例によれば、第4実施例の効果はもとより、ライトシアンインクC2やライトマゼンタインクM2を備え、淡インクと濃インクとを適切に吐出して印刷を行なうカラープリンタ22において、6色のインクでもスムージングを行なって、プレ階調数変換の量子化誤差に起因する画像品質の低下を防止することができる。   According to this embodiment, in addition to the effects of the fourth embodiment, the color printer 22 includes the light cyan ink C2 and the light magenta ink M2, and appropriately prints light ink and dark ink to perform printing. Smoothing can also be performed with ink to prevent degradation in image quality due to quantization error in pre-gradation number conversion.

(4)第7実施例
次に本発明の第7実施例について説明する。上記の実施例では、スムージングを行なうか否かはプレ階調数変換の前のデータを用いるにせよプレ階調数変換の後のデータを用いるにせよ、注目画素とこれに近接する画素(例えば主走査方向または副走査方向に隣接する画素)との間の隔たりにより判断した。これに対して、第7実施例では、スムージングの処理は色成分毎に行なうものとし、スムージングを行なうか否かの判断も色毎に行なうものとしている。
(4) Seventh Embodiment Next, a seventh embodiment of the present invention will be described. In the above embodiment, whether or not to perform smoothing depends on whether the data before the pre-gradation number conversion is used or the data after the pre-gradation number conversion is used, and a pixel adjacent to the target pixel (for example, Judgment was made based on the distance between the adjacent pixels in the main scanning direction or the sub-scanning direction. In contrast, in the seventh embodiment, the smoothing process is performed for each color component, and whether or not smoothing is to be performed is also determined for each color.

第7実施例の画像処理装置30Aでは、プレ階調数変換部140,色補正部142,スムージング処理部150は、図40に示した処理により実現される。この処理が開始されると、まず原カラー画像データの各色成分Rs,Gs,Bsをプレ階調数変換部140におけるプレ階調数変換に相当する処理を行ない(ステップS80)、次に変換後の格子点カラー画像データの各色成分Rn,Gn,Bnに基づいて色補正テーブルCTを参照し、色補正部142における色補正に相当する処理を行なう(ステップS81)。   In the image processing apparatus 30A of the seventh embodiment, the pre-gradation number conversion unit 140, the color correction unit 142, and the smoothing processing unit 150 are realized by the processing shown in FIG. When this process is started, first, each color component Rs, Gs, Bs of the original color image data is processed corresponding to the pre-gradation number conversion in the pre-gradation number conversion unit 140 (step S80), and then converted. The color correction table CT is referred to based on the color components Rn, Gn, and Bn of the grid point color image data, and processing corresponding to color correction in the color correction unit 142 is performed (step S81).

次に、注目画素のプレ階調数変換後の格子点カラー画像データのうちR成分について隣接する画素との隔たりを判断する処理を行ない(ステップS82)、格子点上の隔たりが値1より大きければスムージングを行なわないとして色補正されたデータCc[h,v]をそのまま出力するデータCsとして設定する処理を行なう(ステップS83)。他方、両画素のR成分の格子点上の隔たりが値1以下であれば、スムージングを行なうとして、色補正後のデータのシアン成分Cc[h,v]と、主走査方向に一つ手前の画素の色補正後のデータのシアン成分Cc[h−1,v]との加算平均を取る処理を行なう(ステップS84)。   Next, processing is performed to determine the distance between adjacent pixels with respect to the R component of the grid point color image data after the pre-gradation conversion of the target pixel (step S82). If the smoothing is not performed, the data Cc [h, v] color-corrected is set as the data Cs to be output as it is (step S83). On the other hand, if the separation of the R component of both pixels on the grid point is 1 or less, smoothing is performed and the cyan component Cc [h, v] of the color-corrected data and the previous one in the main scanning direction are used. A process of calculating an average with the cyan component Cc [h-1, v] of the data after the color correction of the pixel is performed (step S84).

以上の処理で、シアンCについてのスムージングの判断を原カラー画像データのR成分についての判断により行なうのは、RGBからCMYへの変換においては、RとC、GとM、BとYとから強い相関関係を持っているからである。   In the above processing, the smoothing determination for cyan C is performed by determining the R component of the original color image data. In the conversion from RGB to CMY, R and C, G and M, and B and Y are used. This is because it has a strong correlation.

したがって、シアンについての上記処理の後、マゼンタインクMについてのスムージングをG成分についての格子点上の隔たりにより判断して行ない(ステップS85〜87)、イエロインクYについてのスムージングをB成分についての格子点上の隔たりにより判断して行なう(ステップS88〜90)。以上の処理の後、ポスト階調数変換に移行する。   Therefore, after the above processing for cyan, the smoothing for magenta ink M is determined by the distance on the grid point for the G component (steps S85 to 87), and the smoothing for yellow ink Y is performed for the grid for the B component. Judgment is made based on the distance between points (steps S88 to S90). After the above processing, the process shifts to post-gradation number conversion.

以上の構成を有する第7実施例の画像処理装置30Aでは、第4実施例と同様の効果を奏する上、各色についてスムージングを行なうか行なわないかを決定することができるので、特定の色調だけが変換するような場合でも、スムージングの効果とこれを行なわないことによる境界のシャープさとを両立させることができる。   In the image processing apparatus 30A of the seventh embodiment having the above-described configuration, the same effects as those of the fourth embodiment can be obtained, and whether to perform smoothing for each color can be determined. Even in the case of conversion, it is possible to achieve both the smoothing effect and the sharpness of the boundary by not performing this.

以上、本発明の好適な実施形態を説明したが、本発明はこの実施形態にのみ限定されるものではなく、その要旨を逸脱しない範囲で種々の変形、改良又は修正を加えて実施することができる。   The preferred embodiment of the present invention has been described above, but the present invention is not limited to this embodiment, and various modifications, improvements, or modifications can be made without departing from the scope of the present invention. it can.

例えば、上記第4ないし第7実施例では、スムージングの判断は注目画素とその画素の主走査方向手前側または副走査方向手前側の画素との間の隔たりに着目して行なったが、主走査方向または副走査方向に後ろ側の画素[h+1,v]または[h,v+1]との間で判断するものとしても良い。また、スムージングを行なう範囲としては、図28に示した範囲以外の範囲でも差し支えない。上記実施例では、スムージングは、総ての色成分について判断しあるいは行なったが、特定の色についてのみスムージングの処理を行なうものとすることもできる。例えば、イエロインクYは明度が高く視認されにくいので、イエロインクについては、最初からスムージングの対象外とすることができる。この場合には、処理速度を一層高速化することができる。また、濃淡両インクを備えたプリンタにおいて、粒状感の生じにくい淡インクについてはスムージングの対象外とすることも同様に好適である。   For example, in the fourth to seventh embodiments, the smoothing determination is performed by paying attention to the distance between the target pixel and the pixel on the front side in the main scanning direction or the front side in the sub-scanning direction of the pixel. The determination may be made between the rear pixel [h + 1, v] or [h, v + 1] in the direction or the sub-scanning direction. Further, the smoothing range may be a range other than the range shown in FIG. In the above embodiment, the smoothing is determined or performed for all the color components. However, the smoothing process may be performed only for a specific color. For example, since the yellow ink Y has high brightness and is difficult to be visually recognized, the yellow ink can be excluded from smoothing from the beginning. In this case, the processing speed can be further increased. In addition, in a printer provided with both dark and light inks, it is also suitable that light inks that are less likely to produce graininess are excluded from smoothing.

また、第4ないし第7実施例では、スムージングの前提となるプレ階調数変換の内容については特に説明しなかったが、誤差拡散法や平均誤差最小法等によるプレ階調数変換のみならず、第2実施例で説明したディザ法によるプレ階調数変換と組み合わせることができることは自明である。スムージングを行なうことにより、ディザ法による画質の劣化を十分に補償でき、良好な画像出力を得ることができる。   In the fourth to seventh embodiments, the details of the pre-gradation number conversion which is the premise of smoothing has not been described in particular, but not only the pre-gradation number conversion by the error diffusion method, the average error minimum method, etc. It is obvious that this can be combined with the pre-gradation number conversion by the dither method described in the second embodiment. By performing the smoothing, it is possible to sufficiently compensate for the deterioration of the image quality due to the dither method, and to obtain a good image output.

本発明の画像処理システムの概略構成を示すブロック図である。1 is a block diagram showing a schematic configuration of an image processing system of the present invention. 図1に示す画像処理システムを実現する態様の一例を示すブロック図である。It is a block diagram which shows an example of the aspect which implement | achieves the image processing system shown in FIG. 画像出力装置20の一例としてのカラープリンタ22の構成を示す概略構成図である。1 is a schematic configuration diagram illustrating a configuration of a color printer 22 as an example of an image output apparatus 20. 印字ヘッド28の構造を例示する説明図である。3 is an explanatory diagram illustrating the structure of a print head 28. FIG. インクの吐出の原理を説明する説明図である。It is explanatory drawing explaining the principle of the discharge of an ink. 格子状に分割された色空間の一例を示す説明図である。It is explanatory drawing which shows an example of the color space divided | segmented into the grid | lattice form. 図1に示す画像処理装置30の機能をブロックにより示すブロック図である。It is a block diagram which shows the function of the image processing apparatus 30 shown in FIG. 1 with a block. カラー画像データと、近傍の格子点色データの、色空間内における位置を示す説明図である。It is explanatory drawing which shows the position in color space of color image data and the lattice point color data of the vicinity. 画像出力装置としてカラープリンタを想定した場合における画像処理装置の機能をブロックにより示すブロック図である。It is a block diagram which shows the function of the image processing apparatus in the case where a color printer is assumed as an image output apparatus. 画像データのプレ階調数変換処理の概略説明図である。It is a schematic explanatory drawing of the pre-gradation number conversion process of image data. プレ階調数変換処理を誤差拡散法を用いて行なう場合の重みマトリクスの説明図である。It is explanatory drawing of the weight matrix in the case of performing a pre-gradation number conversion process using an error diffusion method. プレ階調数変換手段で誤差拡散法を用いた場合の処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of a process at the time of using an error diffusion method with a pre-gradation number conversion means. プレ階調数変換手段で平均誤差最小法を用いた場合の処理の概要フローチャートである。It is a general | schematic flowchart of a process at the time of using the average error minimum method in a pre gradation number conversion means. プレ階調数変換手段で組織的ディザ法を用いた場合の処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of a process at the time of using a systematic dither method with a pre-gradation number conversion means. 色補正部142をソフト的に構成する場合の処理の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the process in the case of comprising the color correction part 142 like software. 色補正部142をハード的に構成する場合の概略構成図である。It is a schematic block diagram in case the color correction part 142 is comprised hard. 図16に示すC用ROMのより詳細な実施形態を示す説明図である。FIG. 17 is an explanatory diagram showing a more detailed embodiment of the C ROM shown in FIG. 16. ポスト階調数変換手段を実現する処理の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the process which implement | achieves a post-gradation number conversion means. RGBの3色のデータからCMYKの4色成分を求めて色補正を行なう場合の処理の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of a process in the case of calculating | requiring 4 color components of CMYK from the data of 3 colors of RGB, and performing color correction. 第1実施例の画像処理装置30において用いる格子点であって、色空間の低濃度領域で細かく分割された格子点の一例を示す説明図である。It is explanatory drawing which shows an example of the grid point used in the image processing apparatus 30 of 1st Example, and was finely divided | segmented in the low density area | region of color space. 色補正テーブルを修正する場合の処理の概要を示すフローチャートである。It is a flowchart which shows the outline | summary of the process in the case of correcting a color correction table. 第2実施例の画像処理装置30におけるプレ階調数変換処理を示すフローチャートである。It is a flowchart which shows the pre-gradation number conversion process in the image processing apparatus 30 of 2nd Example. 第2実施例のプレ階調数変換処理で採用したディザ法で参照するディザマトリクスの一例を示す説明図である。It is explanatory drawing which shows an example of the dither matrix referred with the dither method employ | adopted by the pre gradation number conversion process of 2nd Example. 第3実施例の画像処理装置30の機能をブロックにより示すブロック図である。It is a block diagram which shows the function of the image processing apparatus 30 of 3rd Example with a block. 主要色について行なわれる一次元補間処理を説明するための説明図である。It is explanatory drawing for demonstrating the one-dimensional interpolation process performed about a main color. 同じく一次補間処理の原理を説明する説明図である。It is explanatory drawing explaining the principle of a primary interpolation process similarly. 第4ないし第7実施例に共通する画像処理装置30Aの機能をブロックで示したブロック図である。It is the block diagram which showed the function of 30 A of image processing apparatuses common to 4th thru | or 7th Example with the block. スムージングフィルタの具体例を示す説明図である。It is explanatory drawing which shows the specific example of a smoothing filter. 第4実施例における画像処理ルーチンを示すフローチャートである。It is a flowchart which shows the image processing routine in 4th Example. スムージングを行なうか否かの判断の詳細を示す説明図である。It is explanatory drawing which shows the detail of judgment of whether smoothing is performed. スムージングを行なうか否かの判断の他の例を示す説明図である。It is explanatory drawing which shows the other example of judgment of whether smoothing is performed. スムージングを行なうか否かの判断の他の例を示す説明図である。It is explanatory drawing which shows the other example of judgment of whether smoothing is performed. スムージングを行なうか否かの判断の他の例を示す説明図である。It is explanatory drawing which shows the other example of judgment of whether smoothing is performed. スムージングを行なうか否かの判断の他の例を示す説明図である。It is explanatory drawing which shows the other example of judgment of whether smoothing is performed. 第5実施例における画像処理ルーチンを示すフローチャートである。It is a flowchart which shows the image processing routine in 5th Example. 第5実施例においてスムージングを行なうか否かの判断の詳細を示す説明図である。It is explanatory drawing which shows the detail of judgment whether smoothing is performed in 5th Example. 第6実施例の6色インクを用いたプリンタにおけるインクの成分を示す説明図である。It is explanatory drawing which shows the component of the ink in the printer using 6 color ink of 6th Example. 第6実施例における淡インクと濃インクの記録率を示すグラフである。It is a graph which shows the recording rate of the light ink and dark ink in 6th Example. 第6実施例における画像処理ルーチンを示すフローチャートである。It is a flowchart which shows the image processing routine in 6th Example. 第7実施例における画像処理ルーチンを示すフローチャートである。It is a flowchart which shows the image processing routine in 7th Example.

符号の説明Explanation of symbols

10…画像入力装置
12…スキャナ
20…画像出力装置
21…カラーディスプレイ
22…カラープリンタ
23…紙送りモータ
24…キャリッジモータ
26…プラテン
28…印字ヘッド
30…画像処理装置
30A…画像処理装置
31…キャリッジ
32…操作パネル
34…摺動軸
36…駆動ベルト
38…プーリ
39…位置検出センサ
40…制御回路
61…インク吐出用ヘッド
65…導入管
71…ブラックインク用カートリッジ
72…カラーインク用カートリッジ
80…インク通路
90…コンピュータ
91…ビデオドライバ
93…CRTディスプレイ
95…アプリケーションプログラム
96…プリンタドライバ
97…ラスタライザ
98…色補正モジュール
99…ハーフトーンモジュール
134…色補正テーブルメモリ
134C…C用ROM
134M…M用ROM
134Y…Y用ROM
140…プレ階調数変換部
140a…メインデータ出力部
140b…サブデータ出力部
142…色補正部
146…ポスト階調数変換部
148…補間演算部
150…スムージング処理部
300…格子点
400…注目画素
500…格子点
DESCRIPTION OF SYMBOLS 10 ... Image input device 12 ... Scanner 20 ... Image output device 21 ... Color display 22 ... Color printer 23 ... Paper feed motor 24 ... Carriage motor 26 ... Platen 28 ... Print head 30 ... Image processing device 30A ... Image processing device 31 ... Carriage DESCRIPTION OF SYMBOLS 32 ... Operation panel 34 ... Sliding shaft 36 ... Drive belt 38 ... Pulley 39 ... Position detection sensor 40 ... Control circuit 61 ... Ink ejection head 65 ... Introducing pipe 71 ... Black ink cartridge 72 ... Color ink cartridge 80 ... Ink Path 90 ... Computer 91 ... Video driver 93 ... CRT display 95 ... Application program 96 ... Printer driver 97 ... Rasterizer 98 ... Color correction module 99 ... Halftone module 134 ... Color correction table memory 134 ROM for ... C
134M ... ROM for M
134Y ... ROM for Y
DESCRIPTION OF SYMBOLS 140 ... Pre gradation number conversion part 140a ... Main data output part 140b ... Sub data output part 142 ... Color correction part 146 ... Post gradation number conversion part 148 ... Interpolation calculation part 150 ... Smoothing processing part 300 ... Grid point 400 ... Attention Pixel 500 ... Lattice points

Claims (38)

2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、補正済みのカラー画像データとして出力する色補正手段と、
を備えた画像処理装置。
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value using a predetermined number of gradations;
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Grid point information storage means for storing the coordinate values of grid points obtained by performing for each dimension for the color space;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction means for reading out correction data of lattice points corresponding to the converted coordinate values from the color correction table and outputting the corrected color image data;
An image processing apparatus.
前記格子点変換手段は、誤差拡散の手法を用いて格子点の座標を変換する手段である請求項1記載の画像処理装置。   2. The image processing apparatus according to claim 1, wherein the lattice point conversion means is means for converting the coordinates of the lattice points using an error diffusion technique. 前記格子点変換手段は、分散型ディザの閾値マトリックスを用いて格子点の座標を変換する手段である請求項1記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the lattice point conversion means is means for converting the coordinates of the lattice points using a threshold matrix of distributed dither. 請求項1記載の画像処理装置であって、
前記カラー画像データは、前記座標値を表現する前記階調数が、該カラー画像データの各色成分の濃度に対応する形式で表現されたものであり、
前記色補正テーブルが、前記カラー画像データの各色成分の階調に関する情報を記憶しており、
前記格子点情報記憶手段は、該色補正手段に記憶されたカラー画像データの各色成分の階調の間隔が、前記所定の低濃度領域において他の濃度領域よりも狭くなるように、前記色空間の前記所定の低濃度領域を分割したものであること
を特徴とする画像処理装置。
The image processing apparatus according to claim 1,
The color image data is expressed in a format in which the number of gradations representing the coordinate value corresponds to the density of each color component of the color image data,
The color correction table stores information on the gradation of each color component of the color image data;
The grid point information storage unit is configured to store the color space such that the gradation interval of each color component of the color image data stored in the color correction unit is narrower than the other density regions in the predetermined low density region. An image processing apparatus characterized in that the predetermined low density region is divided.
請求項4記載の画像処理装置であって、
更に、前記色補正手段により出力された補正済みのカラー画像データの各色成分の階調数を変換し、画像出力装置に適した最終的な階調数に変換する階調数変換手段を備え、
前記格子点変換手段が行なう座標値の変換により得られる階調数が、前記階調数変換手段により変換され後の階調数より大きいこと
を特徴とする画像処理装置。
The image processing apparatus according to claim 4,
Furthermore, gradation number conversion means for converting the gradation number of each color component of the corrected color image data output by the color correction means and converting it to a final gradation number suitable for the image output device,
An image processing apparatus, wherein the number of gradations obtained by the coordinate value conversion performed by the grid point conversion unit is greater than the number of gradations converted by the gradation number conversion unit.
請求項1記載の画像処理装置であって、
前記色補正テーブルは、前記補正データとして、前記色変換手段が出力するカラー画像データを最終的に処理する画像出力装置の色再現特性に適合したものを記憶した画像処理装置。
The image processing apparatus according to claim 1,
The color correction table is an image processing apparatus that stores, as the correction data, data that matches color reproduction characteristics of an image output apparatus that finally processes the color image data output by the color conversion unit.
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出す色補正データ読出手段と、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを最終的な補正済みのカラー画像データとして出力する色補正手段と
を備えた画像処理装置。
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value using a predetermined number of gradations;
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Grid point information storage means for storing the coordinate values of grid points obtained by performing for each dimension for the color space;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction data reading means for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table;
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. A value corresponding to the main color is read out, interpolation is performed using both values, and the correction data obtained by replacing the correction data for the main color with the interpolation result is output as final corrected color image data. An image processing apparatus comprising:
前記色補正手段における前記補間は、線形補間である請求項7記載の画像処理装置。   The image processing apparatus according to claim 7, wherein the interpolation in the color correction unit is linear interpolation. 請求項7記載の画像処理装置であって、
前記カラー画像データの座標値が、該カラー画像データの各色成分の濃度に対応した値として定義されており、前記格子点変換手段が、格子点座標の変換を階調数変換として行なう第1の階調数変換手段であり、
更に、前記色補正手段より出力された補正済みのカラー画像データの各色成分毎の階調数を、画像出力装置に適した階調数に階調数変換する第2の階調数変換手段を備え、
前記第1の階調数変換手段による座標値の変換によって得られる階調数が、前記第2の階調数変換手段により変換された後の階調数より大きいことを特徴とする画像処理装置。
The image processing apparatus according to claim 7,
The coordinate value of the color image data is defined as a value corresponding to the density of each color component of the color image data, and the grid point conversion means performs first conversion of grid point coordinates as tone number conversion. Gradation number conversion means,
Furthermore, a second gradation number conversion means for converting the gradation number for each color component of the corrected color image data output from the color correction means into a gradation number suitable for the image output apparatus. Prepared,
An image processing apparatus characterized in that the number of gradations obtained by converting the coordinate value by the first gradation number conversion means is larger than the gradation number after being converted by the second gradation number conversion means. .
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出す色補正データ読出手段と、
該色補正データ読出手段が読み出した各画素の補正データを、該各画素の近傍の画素の補正データに基づいて平均化する処理を行なう平均化処理手段と
を備えた画像処理装置。
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value with a predetermined number of gradations;
A grid in which the color space is divided by the number of gradations smaller than the number of gradations expressing the coordinate value, and the coordinate values of the grid points obtained by performing the division for each dimension are stored for the color space. Point information storage means;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction data reading means for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table;
An image processing apparatus comprising: averaging processing means for performing processing for averaging correction data of each pixel read by the color correction data reading means based on correction data of pixels in the vicinity of each pixel.
前記格子点変換手段は、分散型ディザの閾値マトリックスを用いて格子点の座標を変換する手段である請求項10記載の画像処理装置。   The image processing apparatus according to claim 10, wherein the lattice point conversion means is means for converting coordinates of lattice points using a threshold matrix of distributed dither. 前記格子点変換手段は、誤差拡散の手法を用いて格子点の座標を変換する手段である請求項10記載の画像処理装置。   The image processing apparatus according to claim 10, wherein the lattice point conversion means is means for converting the coordinates of the lattice points using an error diffusion technique. 請求項10記載の画像処理装置であって、
前記格子点変換手段は、誤差拡散の手法を用いて格子点の座標を変換する第1座標変換手段と、分散型ディザの閾値マトリックスを用いて格子点の座標変換を行なう第2座標変換手段と、前記第1座標変換手段と第2座標変換手段のいずれの手段を用いるかを決定する変換手段決定手段とを有し、
更に、前記平均化手段は、前記変換手段決定手段により、前記第1変換手段の使用が決定されたときには、前記入力されたカラー画像データの濃度が低い領域において、該平均化の処理を行なう手段である
画像処理装置。
The image processing apparatus according to claim 10,
The lattice point conversion means includes a first coordinate conversion means for converting the coordinates of the lattice points using an error diffusion technique, and a second coordinate conversion means for performing coordinate conversion of the lattice points using a threshold matrix of a distributed dither. Conversion means determining means for determining which of the first coordinate conversion means and the second coordinate conversion means is used,
Further, the averaging means performs the averaging process in a region where the density of the input color image data is low when the conversion means determination means determines the use of the first conversion means. An image processing apparatus.
前記平均化処理手段が前記平均化の処理を行なう近傍の画素が、前記入力手段が前記カラー画像データを入力する方向に沿った隣接画素である請求項10記載の画像処理装置。   The image processing apparatus according to claim 10, wherein neighboring pixels on which the averaging processing unit performs the averaging process are adjacent pixels along a direction in which the input unit inputs the color image data. 前記隣接画素が前記入力する方向において手前側の画素である請求項14記載の画像処理装置。   The image processing apparatus according to claim 14, wherein the adjacent pixel is a pixel on the near side in the input direction. 前記隣接画素が前記入力する方向において後ろ側の画素である請求項14記載の画像処理装置。   The image processing apparatus according to claim 14, wherein the adjacent pixel is a rear pixel in the input direction. 前記平均化処理手段が前記平均化の処理を行なう近傍の画素が、前記入力手段が前記カラー画像データを入力する方向の前後に隣接する両画素である請求項10記載の画像処理装置。   The image processing apparatus according to claim 10, wherein neighboring pixels on which the averaging processing unit performs the averaging process are both adjacent pixels before and after the input unit inputs the color image data. 前記平均化処理手段が前記平均化の処理を行なう近傍の画素が、前記入力手段が前記カラー画像データを入力する方向に沿った隣接画素および該方向に交差する方向の画素である請求項10記載の画像処理装置。   11. The neighboring pixels on which the averaging processing unit performs the averaging process are adjacent pixels along a direction in which the input unit inputs the color image data and pixels in a direction intersecting the direction. Image processing apparatus. 請求項10記載の画像処理装置であって、
更に、前記入力手段により入力された前記各画素の前記カラー画像データに基づいて、該画素の濃度を検出する濃度検出手段を備えると共に、
前記平均化処理手段は、前記検出された前記画素の濃度が所定値以下の場合に、前記平均化処理手段による平均化の処理を行なう手段である画像処理装置。
The image processing apparatus according to claim 10,
Further, the image forming apparatus includes density detecting means for detecting the density of the pixels based on the color image data of the pixels input by the input means,
The averaging processing means is an image processing apparatus which is means for performing averaging processing by the averaging processing means when the detected density of the pixel is not more than a predetermined value.
前記平均化処理手段は、前記入力された画像データの所定色成分の濃度が所定値以下の領域でのみ前記平均化の処理を該所定色成分ついて行なう手段である請求項10記載の画像処理装置。   11. The image processing apparatus according to claim 10, wherein the averaging processing means is means for performing the averaging processing on the predetermined color component only in a region where the density of the predetermined color component of the input image data is not more than a predetermined value. . 請求項10記載の画像処理装置であって、
前記カラー画像データの座標値が、該カラー画像データの各色成分の濃度に対応した値として定義されており、前記格子点変換手段が、格子点座標の変換が階調数変換として行なう第1の階調数変換手段であり、
更に、前記色補正手段より出力された補正済みのカラー画像データの各色成分毎の階調数を、画像出力装置に適した階調数に階調数変換する第2の階調数変換手段を備え、
前記第1の階調数変換手段による座標値の変換によって得られる階調数が、前記第2の階調数変換手段により変換された後の階調数より大きいことを特徴とする画像処理装置。
The image processing apparatus according to claim 10,
The coordinate value of the color image data is defined as a value corresponding to the density of each color component of the color image data, and the grid point conversion means performs first conversion of grid point coordinates as tone number conversion. Gradation number conversion means,
Furthermore, a second gradation number conversion means for converting the gradation number for each color component of the corrected color image data output from the color correction means into a gradation number suitable for the image output apparatus. Prepared,
An image processing apparatus characterized in that the number of gradations obtained by converting the coordinate value by the first gradation number conversion means is larger than the gradation number after being converted by the second gradation number conversion means. .
請求項21記載の画像処理装置であって、
前記第2の階調数変換手段は、2値化を行ない、該2値化されたドットの分布密度により階調を表現する手段であり、
前記平均化処理手段は、該2値化されたドットの密度が所定値以下の場合に、前記平均化の処理を行なう手段である画像処理装置。
The image processing apparatus according to claim 21, wherein
The second gradation number converting means is a means for performing binarization and expressing gradation by the distribution density of the binarized dots.
The averaging processing means is an image processing apparatus which is means for performing the averaging process when the density of the binarized dots is a predetermined value or less.
請求項10記載の画像処理装置であって、
前記平均化処理手段は、
前記色補正データ読出手段により読み出した色補正データを、隣接する画素の色補正データとを比較する手段と、
該比較された両色補正データの相違が所定値以下の場合に、前記平均化の処理を行なう手段と
を備えた画像処理装置。
The image processing apparatus according to claim 10,
The averaging processing means includes
Means for comparing the color correction data read by the color correction data reading means with the color correction data of adjacent pixels;
An image processing apparatus comprising: means for performing the averaging process when the difference between the two color correction data compared is equal to or less than a predetermined value.
請求項10ないし請求項23のいずれか記載の画像処理装置であって、
前記平均化処理手段は、前記平均化処理を行なうか否かを、前記カラー画像データを構成する各色の少なくとも一つの色について判断し、該判断に基づいて各色毎に前記平均化の処理を行なう手段である画像処理装置。
The image processing apparatus according to any one of claims 10 to 23, wherein:
The averaging processing unit determines whether or not to perform the averaging process for at least one of the colors constituting the color image data, and performs the averaging process for each color based on the determination. An image processing apparatus as means.
前記平均化処理手段は、近接する画素について前記入力されたカラー画像データの前記色空間内での隔たりが所定距離以下であると推定される場合に、前記平均化の処理を行なう手段である請求項10記載の画像処理装置。   The averaging processing unit is a unit that performs the averaging process when it is estimated that a gap in the color space of the input color image data with respect to adjacent pixels is equal to or less than a predetermined distance. Item 15. The image processing apparatus according to Item 10. 前記平均化処理手段は、近接する画素について前記格子点変換手段により変換された後の格子点が少なくとも隣接する場合に、前記近接する画素間の隔たりが前記所定距離以下であるとの推定する手段である請求項25記載の画像処理装置。   The averaging processing unit is a unit that estimates that a distance between adjacent pixels is equal to or less than the predetermined distance when adjacent pixel points converted by the lattice point conversion unit are adjacent to each other. The image processing apparatus according to claim 25. 前記平均化処理手段は、近接する画素についての前記カラー画像データが、共に、前記格子点情報記憶手段が記憶している格子点が形成する単位空間に含まれる場合に、前記近接する画素間の隔たりが前記所定距離以下であるとの推定する手段である請求項25記載の画像処理装置。   The averaging processing unit is configured such that when both the color image data of adjacent pixels are included in a unit space formed by lattice points stored in the lattice point information storage unit, 26. The image processing apparatus according to claim 25, which is means for estimating that the distance is equal to or less than the predetermined distance. 請求項10記載の画像処理装置であって、
前記平均化処理手段は、
近接する画素について前記入力されたカラー画像データの前記色空間内での隔たりが所定距離以下であるか否かを推定する手段と、
平均化の処理についての他の実行条件の成立を判断する手段と、
該近接する二つの画素の隔たりが所定距離以下であると判断され、かつ前記他の実行条件が成立していると判断した場合のみ、前記平均化の処理を行なう手段と
からなる画像処理装置。
The image processing apparatus according to claim 10,
The averaging processing means includes
Means for estimating whether or not a gap in the color space of the input color image data is less than or equal to a predetermined distance for adjacent pixels;
Means for determining the establishment of other execution conditions for the averaging process;
An image processing apparatus comprising: means for performing the averaging process only when it is determined that the distance between the two adjacent pixels is equal to or less than a predetermined distance and the other execution condition is satisfied.
請求項10記載の画像処理装置であって、
前記格子点情報記憶手段は、前記格子点の座標を、前記色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割して記憶する画像処理装置。
The image processing apparatus according to claim 10,
The grid point information storage means stores the coordinates of the grid points by dividing the color space more finely in a predetermined low density area of the color space than in other areas.
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理装置であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力する入力手段と、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶した格子点情報記憶手段と、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルと、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記格子点情報記憶手段に記憶された格子点の座標値に変換する格子点変換手段と、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出す色補正データ読出手段と、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを出力する色補正手段と
を備えた画像処理装置。
An image processing apparatus for color-correcting and outputting a multicolor image expressed by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input means for inputting color image data expressing the coordinate value with a predetermined number of gradations;
A grid in which the color space is divided by the number of gradations smaller than the number of gradations expressing the coordinate value, and the coordinate values of the grid points obtained by performing the division for each dimension are stored for the color space. Point information storage means;
A color correction table storing correction data related to the color of the color image data corresponding to each grid point;
The coordinate values of the input color image data in the color space are determined according to a method in which a distance from the grid point is an average value or less on the average of grid points stored in the grid point information storage unit. Grid point conversion means for converting to coordinate values;
Color correction data reading means for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table;
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. An image processing unit comprising: a color correction unit that reads out a value corresponding to the main color, performs interpolation using the two values, and outputs the correction data obtained by replacing the correction data for the main color with the interpolation result. apparatus.
請求項30記載の画像処理装置であって、
前記カラー画像データの座標値が、該カラー画像データの各色成分の濃度に対応した値として定義されており、前記格子点変換手段が、格子点座標の変換を階調数変換として行なう第1の階調数変換手段であり、
更に、前記色補正手段より出力された補正済みのカラー画像データの各色成分毎の階調数を、画像出力装置に適した階調数に階調数変換する第2の階調数変換手段を備え、
前記第1の階調数変換手段による座標値の変換によって得られる階調数が、前記第2の階調数変換手段により変換された後の階調数より大きいことを特徴とする画像処理装置。
The image processing apparatus according to claim 30, wherein
The coordinate value of the color image data is defined as a value corresponding to the density of each color component of the color image data, and the grid point conversion means performs first conversion of grid point coordinates as tone number conversion. Gradation number conversion means,
Furthermore, a second gradation number conversion means for converting the gradation number for each color component of the corrected color image data output from the color correction means into a gradation number suitable for the image output apparatus. Prepared,
An image processing apparatus characterized in that the number of gradations obtained by converting the coordinate value by the first gradation number conversion means is larger than the gradation number after being converted by the second gradation number conversion means. .
前記色補正手段が出力した補正データを、該各画素の近傍の画素の補正データに基づいて平均化する処理を行ない、最終的なカラー画像データとして出力する平均化処理手段を備えた請求項30または請求項31記載の画像処理装置。   31. An averaging processing means for performing an averaging process on the correction data output by the color correction means based on correction data of pixels in the vicinity of each pixel and outputting as final color image data. The image processing apparatus according to claim 31. 請求項10記載の画像処理装置であって、
更に、前記入力手段が入力した各画素のカラー画像データにより、該画素に隣接する画素との間に新たな画素を想定し、該新たな画素に前記入力したカラー画像データを設定する画像拡大手段を備え、
前記平均化処理手段は、前記画像拡大手段により想定された画素との間で、前記平均化処理を行なう手段である
画像処理装置。
The image processing apparatus according to claim 10,
Furthermore, an image enlarging unit that assumes a new pixel between the pixel adjacent to the pixel by the color image data of each pixel input by the input unit and sets the input color image data to the new pixel. With
The image processing apparatus, wherein the averaging processing means is means for performing the averaging process with a pixel assumed by the image enlarging means.
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、補正済みのカラー画像データとして出力する
画像処理方法。
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value using a predetermined number of gradations,
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Storing the coordinate value of the grid point obtained by performing for each dimension for the color space,
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
An image processing method for reading correction data of lattice points corresponding to the converted coordinate values from the color correction table and outputting the corrected color image data.
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数を用いて表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも少ない階調数により前記色空間を分割し、かつ該色空間の所定の低濃度領域では他の領域よりも該色空間を細かく分割し、該分割を前記各次元について行なうことにより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを最終的な補正済みのカラー画像データとして出力する
画像処理方法。
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value using a predetermined number of gradations,
The color space is divided by the number of gradations smaller than the number of gradations representing the coordinate value, and the color space is divided more finely than the other areas in a predetermined low density area of the color space, and the division is performed. Storing the coordinate value of the grid point obtained by performing for each dimension for the color space,
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
Read out the correction data of the grid points corresponding to the converted coordinate values from the color correction table,
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. A value corresponding to the main color is read out, interpolation is performed using both values, and the correction data obtained by replacing the correction data for the main color with the interpolation result is output as final corrected color image data. Image processing method.
2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、
該読み出した各画素の補正データを、該各画素の近傍の画素の補正データに基づいて平均化する処理を行なう
画像処理方法。
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value with a predetermined number of gradations,
Dividing the color space by the number of gradations smaller than the number of gradations representing the coordinate value, storing the coordinate values of grid points obtained by performing the division for each dimension for the color space;
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
Read out the correction data of the grid points corresponding to the converted coordinate values from the color correction table,
An image processing method for performing a process of averaging the read correction data of each pixel based on correction data of pixels in the vicinity of each pixel.
近接する画素について前記入力されたカラー画像データの前記色空間内での隔たりが所定距離以下であると推定される場合に、前記平均化の処理を行なう請求項36記載の画像処理方法。   37. The image processing method according to claim 36, wherein the averaging process is performed when it is estimated that a gap in the color space of the input color image data for adjacent pixels is equal to or less than a predetermined distance. 2次元以上の色空間における座標値により表現された多色の画像を色補正して出力する画像処理方法であって、
前記画像の各画素について、前記座標値を所定の階調数で表現したカラー画像データを入力し、
前記座標値を表現する前記階調数よりも小さな階調数により前記色空間を分割し、該分割を前記各次元について行なうことより得られた格子点の座標値を前記色空間について記憶し、
該各格子点に対応して、前記カラー画像データの色に関する補正データを記憶した色補正テーブルを用意し、
前記入力されたカラー画像データの前記色空間内での座標値を、前記格子点からの隔たりが平均的には所定値以下となる手法に従って、前記記憶された格子点の座標値に変換し、
該変換された座標値に対応した格子点の補正データを、前記色補正テーブルから読み出し、
該読み出された格子点の補正データのうち主要色に対応した値を選択し、主要色毎に、前記格子点から前記主要色に対応した座標値だけがシフトした隣接格子点の補正データのうち当該主要色に対応した値を読み出し、該両値を用いて補間を行ない、前記主要色についての補正データを該補間結果に置き換えた前記補正データを出力する
画像処理方法。
An image processing method for color-correcting and outputting a multicolor image represented by coordinate values in a two-dimensional or higher color space,
For each pixel of the image, input color image data expressing the coordinate value with a predetermined number of gradations,
Dividing the color space by the number of gradations smaller than the number of gradations representing the coordinate value, storing the coordinate values of grid points obtained by performing the division for each dimension for the color space;
Corresponding to each grid point, a color correction table storing correction data related to the color of the color image data is prepared,
The coordinate value in the color space of the input color image data is converted into the coordinate value of the stored grid point according to a method in which the distance from the grid point is equal to or less than a predetermined value on average,
Read out the correction data of the grid points corresponding to the converted coordinate values from the color correction table,
A value corresponding to the main color is selected from the read correction data of the grid point, and for each main color, the correction data of the adjacent grid point in which only the coordinate value corresponding to the main color is shifted from the grid point. An image processing method for reading out a value corresponding to the main color, performing interpolation using the two values, and outputting the correction data obtained by replacing the correction data for the main color with the interpolation result.
JP2005277640A 1996-02-29 2005-09-26 Image processing apparatus and image processing method Expired - Fee Related JP4127281B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005277640A JP4127281B2 (en) 1996-02-29 2005-09-26 Image processing apparatus and image processing method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP4360596 1996-02-29
JP2005277640A JP4127281B2 (en) 1996-02-29 2005-09-26 Image processing apparatus and image processing method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP06247697A Division JP3823424B2 (en) 1996-02-29 1997-02-28 Image processing apparatus and image processing method

Publications (2)

Publication Number Publication Date
JP2006074809A true JP2006074809A (en) 2006-03-16
JP4127281B2 JP4127281B2 (en) 2008-07-30

Family

ID=36154826

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005277640A Expired - Fee Related JP4127281B2 (en) 1996-02-29 2005-09-26 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP4127281B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011007981A (en) * 2009-06-25 2011-01-13 Canon Inc Image forming apparatus
CN110570802A (en) * 2019-09-18 2019-12-13 广东晟合技术有限公司 Digital gamma correction system and display driving chip comprising same
CN113314079A (en) * 2021-05-31 2021-08-27 深圳市国华光电科技有限公司 Picture display method and device, electronic equipment and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011007981A (en) * 2009-06-25 2011-01-13 Canon Inc Image forming apparatus
CN110570802A (en) * 2019-09-18 2019-12-13 广东晟合技术有限公司 Digital gamma correction system and display driving chip comprising same
CN110570802B (en) * 2019-09-18 2023-02-28 晟合微电子(肇庆)有限公司 Digital gamma correction system and display driving chip comprising same
CN113314079A (en) * 2021-05-31 2021-08-27 深圳市国华光电科技有限公司 Picture display method and device, electronic equipment and storage medium
CN113314079B (en) * 2021-05-31 2022-06-24 深圳市国华光电科技有限公司 Picture display method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
JP4127281B2 (en) 2008-07-30

Similar Documents

Publication Publication Date Title
JP3823424B2 (en) Image processing apparatus and image processing method
US6215561B1 (en) Image processing apparatus and image processing method
US6901170B1 (en) Image processing device and recording medium
JP4610802B2 (en) Gray level image edge enhancement
EP0550243B1 (en) Color image processing
US7450269B2 (en) Gray level halftone processing
JP3268512B2 (en) Image processing apparatus and image processing method
US6873436B1 (en) Image processing device and recording medium
JPH03193472A (en) Highly definite image generating system of image processor
US6373990B1 (en) Image processing utilizing luminance-density conversion
JPH05336373A (en) Image recorder
US5638188A (en) Image processing method and apparatus with storing and selecting of dot patterns
US20070081205A1 (en) Image recording apparatus and method providing personalized color enhancement
JP2010541355A (en) Method, apparatus and computer program for converting a digital color image
JP2006264301A (en) Printing apparatus, printing program, printing method, image processing apparatus, image processing program, image processing method, and recording medium with programs recorded thereon
JP6029305B2 (en) Image processing apparatus and control method thereof
US20060285167A1 (en) Image processing method and a recording medium storing image processing program
JP4127281B2 (en) Image processing apparatus and image processing method
US6285800B1 (en) Apparatus and method for processing image
US9147140B2 (en) Image processing apparatus, method, and product for converting image data into fewer gradations based on total value of pixels in a group except for a detected pixel having a specific value
US20040150846A1 (en) Color image halftoning apparatus and method, and mask generation apparatus and method used therein
JP2007068202A (en) Printing device, printing program, printing method, image processing device, image processing program, image processing method, and recording medium with the programs recorded thereon
US5748772A (en) Image processing method and apparatus including an error calculation for calculating a difference between the values of error correction data and stored representative values
JP2016127479A (en) Image processor, image forming apparatus, image processing method and program
JP2020082694A (en) Dither matrix generation device and generation method, and image processing device, image processing method, and program using the dither matrix

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070621

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070710

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070910

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20071204

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080125

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20080212

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

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

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

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 3

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

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees