JP2001169097A - Picture processor and picture processing method - Google Patents

Picture processor and picture processing method

Info

Publication number
JP2001169097A
JP2001169097A JP35210599A JP35210599A JP2001169097A JP 2001169097 A JP2001169097 A JP 2001169097A JP 35210599 A JP35210599 A JP 35210599A JP 35210599 A JP35210599 A JP 35210599A JP 2001169097 A JP2001169097 A JP 2001169097A
Authority
JP
Japan
Prior art keywords
pixel
interpolation
calculation
color
value
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.)
Pending
Application number
JP35210599A
Other languages
Japanese (ja)
Inventor
Teruhiko Matsuoka
輝彦 松岡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP35210599A priority Critical patent/JP2001169097A/en
Publication of JP2001169097A publication Critical patent/JP2001169097A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To execute resolution conversion without color slurring, and the blotting and blurring of a color and to execute an interpolation processing corresponding to the partial feature of a picture. SOLUTION: Multivalue color picture data shown by first color space (RGB) are converted into second color space (L*a*b*) in a first color conversion processing part 4. A peripheral pixel selection part 5 selects plural peripheral pixels for using them for the operation of the pixel value of the pixel being the object of interpolation from the existed pixel at the periphery of the pixel being the object of interpolation. In a luminance relation operation part 6 and a color relation ration part 7, the color relation operation part 7 decides an operation method for operating the pixel value of the pixel being the object of interpolation based on luminance information and/or color information on the peripheral pixel. A pixel interpolation part 8 interpolates the pixel being the object of interpolation by using the decided interpolation operation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、色ずれのない解像
度変換を実現可能とする画像処理装置および画像処理方
法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and an image processing method capable of realizing resolution conversion without color shift.

【0002】[0002]

【従来の技術】従来、解像度変換においては、代表的な
変換方法として、Nearest Neighbor(以下NN)、Bi-l
inear (以下BL)、Cubic convolution (以下CC)
等が挙げられる。図15にNN、図16にBL、図17
にCCの例をそれぞれ示す。
2. Description of the Related Art Conventionally, in resolution conversion, Nearest Neighbor (NN), Bi-l
inear (hereinafter BL), Cubic convolution (hereinafter CC)
And the like. 15 is NN, FIG. 16 is BL, FIG.
Shows examples of CC.

【0003】NNは補間する画素に一番近い既存画素の
画素値をその補間画素の画素値とするものであり、演算
が最も単純で処理量も少ないため高速な処理が行える。
しかしながら、斜めの線等は階段状のシャギーが発生し
たりして変換後の画質は悪くなる。尚、図15では、補
間される画素の周囲において既存画素が斜めに4画素存
在する場合には常に左上の位置にある画素の画素値を補
間し、補間される画素の周囲において既存画素が上下ま
たは左右に2画素存在する場合には上または左の位置に
ある画素の画素値を補間している。
NN is a pixel value of an existing pixel closest to the pixel to be interpolated, which is the pixel value of the interpolated pixel. The operation is simplest and the processing amount is small, so that high-speed processing can be performed.
However, the image quality after conversion deteriorates due to generation of a step-like shaggy in an oblique line or the like. In FIG. 15, when there are four existing pixels obliquely around the pixel to be interpolated, the pixel value of the pixel at the upper left position is always interpolated, and the existing pixel is vertically shifted around the pixel to be interpolated. Alternatively, when there are two pixels on the left and right, the pixel value of the pixel at the upper or left position is interpolated.

【0004】BLは補間する画素を囲む4つの既存画素
(補間される画素の周囲において既存画素が斜めに4画
素存在する場合)について、補間画素との距離に比例し
た形で重み付けした値の平均を求め、それをその補間画
素の画素値とするものである。この補間方法は、計算量
もさほど多くなく滑らかな補間に優れている一方、エッ
ジ部分等においては滑らかな補間が実行されるため、エ
ッジが鈍って画像がボケてしまうといった性質がある。
また、図16では、補間される画素の周囲において既存
画素が上下または左右に2画素存在する場合には、これ
ら2画素について平均を求め補間画素の画素値としてい
る。
[0004] BL is an average of weighted values of four existing pixels surrounding a pixel to be interpolated (when four existing pixels are obliquely present around the pixel to be interpolated) in a form proportional to the distance from the interpolated pixel. And obtains the pixel value of the interpolation pixel. This interpolation method has a small amount of calculation and is excellent in smooth interpolation. On the other hand, since smooth interpolation is executed in an edge portion or the like, the edge is dull and the image is blurred.
In FIG. 16, when two existing pixels are present vertically or horizontally around the pixel to be interpolated, an average of these two pixels is determined and the pixel value of the interpolated pixel is used.

【0005】CCでは、補間する画素を囲む4画素に加
え、更にそれらを囲む12画素を加えた計16画素を用
いて補間演算を行う。具体的な演算方法は省略するが、
この3つの手法の中では最も複雑な演算を行い、滑らか
な補間とエッジの鈍りを防止することが可能であるが、
演算が複雑であるため、ハード化するのにコストがかか
る。
In the CC, an interpolation operation is performed by using a total of 16 pixels including 4 pixels surrounding pixels to be interpolated and 12 pixels surrounding them. Although the specific calculation method is omitted,
Of the three methods, it is possible to perform the most complicated operation and prevent smooth interpolation and edge dullness.
Since the calculation is complicated, it is costly to implement the hardware.

【0006】これら従来の解像度変換法は、通常、入力
画像がRGBのカラー画像であれば、各画素のRGB値
を用いて補間演算を行う。
[0006] In these conventional resolution conversion methods, if the input image is an RGB color image, interpolation calculation is usually performed using the RGB values of each pixel.

【0007】[0007]

【発明が解決しようとする課題】上述した従来の解像度
変換法においては、グレースケールの画像の変換を行う
場合に関しては特に問題とはならないが、カラー画像の
変換を行う場合に、NNを除く2つの手法(すなわち、
BLおよびCC)で以下に述べるような問題が発生する
場合がある。
In the above-described conventional resolution conversion method, there is no particular problem in the case of converting a grayscale image. Two approaches (ie,
BL and CC) may cause the following problems.

【0008】例えば、BLで周囲4点のうち、上部2点
が赤色で、下部2点がシアンだとすると、これら2つの
色は補色の関係であることから、その間の補間点として
は、どちらかの色を選択できたほうが良い。しかしなが
ら、BLでは、線形に補間点を求めてしまうため、ちょ
うど数値的に赤とシアンの間のRGB値を持つグレーに
なってしまう。これにより、赤とシアンの境界部分に余
計な色が発生する。しかし、この補間時に参照される周
辺画素の色が、どの程度補色の関係であるかをRGBの
値から求めるのは困難である。
For example, assuming that the upper two points are red and the lower two points are cyan among the four surrounding points in BL, these two colors have a complementary color relationship. You should be able to choose the color. However, in the case of BL, since the interpolation point is obtained linearly, the color becomes gray having RGB values between red and cyan. As a result, an extra color is generated at the boundary between red and cyan. However, it is difficult to determine, from the RGB values, how much the colors of the peripheral pixels referred to during the interpolation have a complementary color relationship.

【0009】また、画像処理において、RGB色空間で
は、処理しづらい場合、均等色空間に色変換し、均等色
空間で画像処理を行う場合もあるが、その時の解像度変
換においては、周辺画素が補色の関係である場合、その
周辺画素の線形補間を行うと、補間画素値としてはグレ
ースケールとなってしまい、正しい補間がなされないこ
とがあった。この為、輝度に対してはBLを、色に対し
てはNNを用いる方法もあるが、これでも色ずれが発生
することがある。
In image processing, if it is difficult to perform processing in the RGB color space, color conversion may be performed to a uniform color space, and image processing may be performed in the uniform color space. In the case of a complementary color relationship, when linear interpolation is performed on the peripheral pixels, a gray scale is obtained as an interpolated pixel value, and correct interpolation may not be performed. For this reason, there is a method using BL for luminance and NN for color, but color deviation may still occur.

【0010】本発明は、上記の問題点を解決するために
なされたもので、その目的は、入力画像データの解像度
変換を行うにあたって、不必要な色の発生を抑えること
が可能になると共に、色ずれ、色のにじみ等を抑えるこ
とができる画像処理装置および画像処理方法を提供する
ことにある。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and an object of the present invention is to make it possible to suppress the generation of unnecessary colors when converting the resolution of input image data. An object of the present invention is to provide an image processing apparatus and an image processing method that can suppress color shift, color blur, and the like.

【0011】[0011]

【課題を解決するための手段】本発明の画像処理装置
は、上記の課題を解決するために、第1の色空間で表さ
れた多値のカラー画像データを、上記第1の色空間とは
異なる第2の色空間で表された、輝度情報と色情報とか
らなるデータに変換する第1の色変換手段と、補間対象
画素の周辺の既存画素から、補間対象画素の画素値の演
算に使用される複数の演算用画素を選択する選択手段
と、上記演算用画素の輝度情報および/または色情報に
基づいて、上記補間対象画素の画素値を演算する時の演
算方法を決定する演算方法決定手段と、上記演算方法決
定手段によって決定された演算方法を用いて、上記補間
対象画素の補間処理を行う補間手段とを含むことを特徴
としている。
In order to solve the above-mentioned problems, an image processing apparatus of the present invention converts multi-valued color image data represented by a first color space into the first color space and the first color space. Is first color conversion means for converting into data composed of luminance information and color information expressed in a different second color space, and calculation of the pixel value of the interpolation target pixel from existing pixels around the interpolation target pixel Selecting means for selecting a plurality of calculation pixels used for the calculation, and calculating a calculation method for calculating a pixel value of the interpolation target pixel based on luminance information and / or color information of the calculation pixel. It is characterized by including a method determining means and an interpolating means for performing an interpolation process on the interpolation target pixel by using the arithmetic method determined by the arithmetic method determining means.

【0012】また、上記画像処理装置は、さらに、上記
第2の色空間で表された画像データを、上記第2の色空
間とは異なる第3の色空間に変換する第2の色変換手段
を備えている構成とすることができる。
Further, the image processing apparatus further comprises a second color conversion means for converting the image data represented in the second color space into a third color space different from the second color space. May be provided.

【0013】また、上記第1の色変換手段は、第1の色
空間で表された多値のカラー画像データを、第2の色空
間として均等色空間に変換すること構成とすることが好
ましい。
Preferably, the first color conversion means converts the multi-valued color image data represented in the first color space into a uniform color space as a second color space. .

【0014】例えば、スキャナ等の入力装置からRGB
色空間等で表された多値のカラー画像データを解像度変
換する場合、これに対して単純に各色毎に補間演算をす
ると、余分な色が発生したりして、色ずれや色のにじみ
が発生する可能性がある。
For example, when an input device such as a scanner
When multi-valued color image data expressed in a color space or the like is subjected to resolution conversion, simply performing an interpolation operation for each color may result in extra colors, color shift and color bleeding. Can occur.

【0015】これに対して、上記の構成によれば、第1
の色空間(例えば、RGB色空間)で表された画像デー
タを、輝度および色の関係を求めやすい第2の色空間に
変換してから補間演算を行うことにより、輝度および色
の関係毎に異なる補間演算を行うことが可能となり、色
ずれや色のにじみやボケのない解像度変換が可能とな
る。
On the other hand, according to the above configuration, the first
By converting image data expressed in a color space (for example, an RGB color space) into a second color space in which the relationship between luminance and color can be easily obtained, an interpolation operation is performed. Different interpolation calculations can be performed, and resolution conversion without color shift, color bleeding, or blurring can be performed.

【0016】また、このとき、補間対象画素の周辺の既
存画素から演算用画素を選択し、該演算用画素の輝度情
報および/または色情報に基づいて、上記補間対象画素
に対する補間演算方法を変更することによって、画像に
部分的特徴に応じた適切な補間演算方法によって補間処
理が行える。
At this time, a calculation pixel is selected from existing pixels around the interpolation target pixel, and the interpolation calculation method for the interpolation target pixel is changed based on luminance information and / or color information of the calculation pixel. By doing so, the interpolation processing can be performed by an appropriate interpolation calculation method according to the partial features of the image.

【0017】また、全ての補間対象画素に対する補間処
理が終了し、解像度変換がなされた画像データは、プリ
ンタやディスプレイ等の出力装置(または表示装置)に
おいて出力または表示される際、輝度情報と色情報とか
らなる上記第2の色空間で表されたデータ形式のままで
は出力処理が行えず、例えば、CMY色空間等の第3の
色空間に変換される必要がある。ここで、上記第2の色
空間で表された画像データを第3の色空間に変換する処
理を出力装置側で行わせることも可能であるが、上記変
換処理を本画像処理装置側で行うことにより、このよう
な変換機能を有していない出力装置においても上記画像
データの出力処理が可能となる。
When the interpolation processing for all the pixels to be interpolated is completed and the resolution-converted image data is output or displayed on an output device (or display device) such as a printer or a display, the luminance information and the color information are output. Output processing cannot be performed in the data format represented by the second color space including information, and the data needs to be converted to a third color space such as a CMY color space. Here, the process of converting the image data represented in the second color space into the third color space can be performed on the output device side, but the conversion process is performed on the image processing device side. Thus, the output processing of the image data can be performed even in an output device having no such conversion function.

【0018】さらに、上記画像処理装置では、第2の色
空間として均等色空間を使用することにより、選択され
た演算用画素が補色関係にあったり、グレースケールと
カラーの関係にあったりする場合、均等色空間の中心点
からの各演算用画素の角度および距離によって、これを
容易に求めることができ、適切な補間演算方法を求める
ことができる。
Further, in the image processing apparatus, the uniform color space is used as the second color space, so that the selected operation pixels have a complementary color relationship or a gray scale and a color relationship. This can be easily obtained from the angle and distance of each calculation pixel from the center point of the uniform color space, and an appropriate interpolation calculation method can be obtained.

【0019】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素との輝度差が予め設定された第1の閾値未満とな
る演算用画素が存在する場合、補間対象画素の輝度値の
補間演算方法として線形補間方法を選択し、上記補間手
段は、この場合に、上記選択手段によって選択された複
数の演算用画素の中で、補間対象画素に最も近い演算用
画素の輝度値と、この補間対象画素に最も近い演算用画
素との輝度差が予め設定された第1の閾値未満となる演
算用画素の輝度値とを用いて線形補間を行い、上記補間
対象画素の輝度値を決定する構成とすることができる。
In the above-mentioned image processing apparatus, the calculating method determining means determines, in advance, a luminance difference between the plurality of calculating pixels selected by the selecting means and a calculating pixel closest to the interpolation target pixel. When there is an operation pixel having a value less than the set first threshold value, a linear interpolation method is selected as an interpolation operation method of the luminance value of the interpolation target pixel, and in this case, the interpolation unit is selected by the selection unit. Among the calculated plurality of calculation pixels, the luminance value of the calculation pixel closest to the interpolation target pixel and the luminance difference between the calculation pixel closest to the interpolation target pixel are smaller than a preset first threshold value. It is possible to adopt a configuration in which linear interpolation is performed using the luminance value of the calculation pixel to determine the luminance value of the interpolation target pixel.

【0020】上記の構成によれば、輝度差の小さい(輝
度差が第1の閾値未満)演算用画素の輝度値を用いて線
形補間が行われるが、輝度差が小さいことはこれらの演
算用画素間にエッジが存在しないことを示しており、線
形補間によって滑らかな変化を表現することができる。
According to the above configuration, the linear interpolation is performed using the luminance value of the calculation pixel having a small luminance difference (the luminance difference is less than the first threshold value). This indicates that there is no edge between pixels, and a smooth change can be expressed by linear interpolation.

【0021】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素との輝度差が上記第1の閾値未満となる演算用画
素がなかった場合に、補間対象画素に最も近い演算用画
素の輝度値を上記補間対象画素の輝度値として代入する
補間演算方法を選択する。
In the above-mentioned image processing apparatus, the calculating method determining means may determine, among the plurality of calculating pixels selected by the selecting means, a luminance difference with the closest calculating pixel to the interpolation target pixel. When there is no calculation pixel that is less than the first threshold, an interpolation calculation method is selected in which the luminance value of the calculation pixel closest to the interpolation target pixel is substituted as the luminance value of the interpolation target pixel.

【0022】すなわち、選択された複数の演算用画素の
輝度差が大きい場合、演算用画素間にエッジが存在する
ことになり、補間対象画素に最も近い演算用画素の輝度
値を上記補間対象画素の輝度値としてそのまま代入する
ことにより、エッジを保存した補間処理が行える。
That is, when the luminance difference between the selected plurality of calculation pixels is large, an edge exists between the calculation pixels, and the luminance value of the calculation pixel closest to the interpolation target pixel is calculated by the interpolation target pixel. By directly substituting as the luminance value of, the interpolation processing that preserves the edge can be performed.

【0023】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値以上であり、他に、第1のパラメー
タが予め設定された第2の閾値以上であり、かつ、補間
対象画素に最も近い演算用画素との色差を示す第2のパ
ラメータが予め設定された第3の閾値以上となる演算用
画素が存在する場合、補間対象画素の色度値の補間演算
方法として線形補間方法を選択し、上記補間手段は、こ
の場合に、上記選択手段によって選択された複数の演算
用画素の中で、補間対象画素に最も近い演算用画素の色
度値と、第1のパラメータが予め設定された第2の閾値
以上であり、かつ、補間対象画素に最も近い演算用画素
との色差を示す第2のパラメータが予め設定された第3
の閾値以上となる演算用画素の色度値とを用いて線形補
間を行い、上記補間対象画素の色度値を決定する構成と
することができる。
In the above image processing apparatus, the calculating method determining means indicates a chromaticity value for the calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means. The first parameter is equal to or greater than a second threshold set in advance, and the first parameter is equal to or greater than the second threshold set in advance. When there is an operation pixel in which the second parameter indicating the color difference is equal to or greater than a preset third threshold value, a linear interpolation method is selected as an interpolation operation method of the chromaticity value of the interpolation target pixel, and the interpolation means In this case, of the plurality of calculation pixels selected by the selection means, the chromaticity value of the calculation pixel closest to the interpolation target pixel and the first parameter are equal to or greater than a predetermined second threshold value. And Third to second parameter indicating a color difference between the closest basis pixel to the interpolation target pixel is set in advance
It is possible to adopt a configuration in which linear interpolation is performed using the chromaticity values of the calculation pixels that are equal to or larger than the threshold value of, and the chromaticity values of the interpolation target pixels are determined.

【0024】上記の構成によれば、補間対象画素に最も
近い演算用画素の色度が大きく(第1のパラメータが第
2の閾値以上)、他に、色度が大きく且つ補間対象画素
に最も近い演算用画素と近い色の演算用画素が存在する
場合、これらの演算用画素のみを用いて線形補間によっ
て補間対象画素の色度を求めることにより、滑らかな変
化を表現することができる。尚、ここで、第1のパラメ
ータとは、例えば、色度図上の中心点と、該色度図上で
演算用画素の位置を示す点との距離によって表すことが
できる。
According to the above configuration, the chromaticity of the calculation pixel closest to the pixel to be interpolated is large (the first parameter is equal to or larger than the second threshold value). When there are calculation pixels having colors similar to the close calculation pixels, a smooth change can be expressed by obtaining the chromaticity of the interpolation target pixel by linear interpolation using only these calculation pixels. Here, the first parameter can be represented by, for example, a distance between a center point on the chromaticity diagram and a point indicating the position of the calculation pixel on the chromaticity diagram.

【0025】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値以上であり、他に、第1のパラメー
タが予め設定された第2の閾値以上であり、かつ、補間
対象画素に最も近い演算用画素との色差を示す第2のパ
ラメータが予め設定された第3の閾値以上となる演算用
画素がなかった場合、補間対象画素に最も近い演算用画
素の色度値を上記補間対象画素の色度値として代入する
補間演算方法を選択する。
In the image processing apparatus, the calculating method determining means indicates a chromaticity value for a calculating pixel closest to the interpolation target pixel among a plurality of calculating pixels selected by the selecting means. The first parameter is equal to or greater than a second threshold set in advance, and the first parameter is equal to or greater than the second threshold set in advance. If there is no calculation pixel for which the second parameter indicating the color difference is equal to or greater than the third threshold value set in advance, the chromaticity value of the calculation pixel closest to the interpolation target pixel is set as the chromaticity value of the interpolation target pixel. Select the interpolation calculation method to be substituted.

【0026】すなわち、選択された複数の演算用画素の
色度差が大きい場合、演算用画素間にエッジが存在する
ことになり、補間対象画素に最も近い演算用画素の色度
値を上記補間対象画素の色度値としてそのまま代入する
ことにより、エッジを保存した補間処理が行える。
That is, when the chromaticity difference between the selected plurality of calculation pixels is large, an edge exists between the calculation pixels, and the chromaticity value of the calculation pixel closest to the interpolation target pixel is calculated by the interpolation. By substituting the chromaticity value of the target pixel as it is, interpolation processing that preserves edges can be performed.

【0027】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値未満であり、他に、第1のパラメー
タが予め設定された第2の閾値未満となる演算用画素が
存在する場合、補間対象画素の色度値の補間演算方法と
して線形補間方法を選択し、上記補間手段は、この場合
に、上記選択手段によって選択された複数の演算用画素
の中で、補間対象画素に最も近い演算用画素の色度値
と、第1のパラメータが予め設定された第2の閾値未満
となる演算用画素の色度値とを用いて線形補間を行い、
上記補間対象画素の色度値を決定する構成とすることが
できる。
In the above image processing apparatus, the calculation method determining means indicates a chromaticity value for a calculation pixel closest to the interpolation target pixel among the plurality of calculation pixels selected by the selection means. When the first parameter is less than the second threshold set in advance and there is another calculation pixel in which the first parameter is less than the second threshold set in advance, the chromaticity of the pixel to be interpolated is A linear interpolation method is selected as a value interpolation calculation method. In this case, the interpolation means selects the chromaticity of the calculation pixel closest to the interpolation target pixel among the plurality of calculation pixels selected by the selection means. Performing linear interpolation using the value and the chromaticity value of the calculation pixel in which the first parameter is less than a preset second threshold value;
The chromaticity value of the interpolation target pixel may be determined.

【0028】上記の構成によれば、補間対象画素に最も
近い演算用画素の色度が小さく(第1のパラメータが第
2の閾値未満)、他に色度の小さい演算用画素が存在す
る場合、これらの色度が小さい演算用画素のみを用いて
線形補間によって補間対象画素の色度を求めることによ
り、滑らかな変化を表現することができる。
According to the above configuration, when the chromaticity of the calculation pixel closest to the pixel to be interpolated is small (the first parameter is smaller than the second threshold value) and there is another calculation pixel with a small chromaticity By obtaining the chromaticity of the pixel to be interpolated by linear interpolation using only the calculation pixels having a small chromaticity, a smooth change can be expressed.

【0029】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値未満であり、他に、第1のパラメー
タが予め設定された第2の閾値未満となる演算用画素が
なかった場合、補間対象画素に最も近い演算用画素の色
度値を上記補間対象画素の色度値として代入する補間演
算方法を選択する。
In the image processing apparatus, the calculating method determining means indicates a chromaticity value for the calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means. If the first parameter is less than the preset second threshold and there is no other calculation pixel where the first parameter is less than the preset second threshold, the pixel closest to the interpolation target pixel is An interpolation calculation method in which the chromaticity value of the calculation pixel is substituted as the chromaticity value of the interpolation target pixel is selected.

【0030】すなわち、選択された複数の演算用画素の
色度差が大きい場合、演算用画素間にエッジが存在する
ことになり、補間対象画素に最も近い演算用画素の色度
値を上記補間対象画素の色度値としてそのまま代入する
ことにより、エッジを保存した補間処理が行える。
That is, when the chromaticity difference between the selected plurality of calculation pixels is large, an edge exists between the calculation pixels, and the chromaticity value of the calculation pixel closest to the interpolation target pixel is calculated by the interpolation. By substituting the chromaticity value of the target pixel as it is, interpolation processing that preserves edges can be performed.

【0031】本発明の画像処理方法は、上記の課題を解
決するために、第1の色空間で表された多値のカラー画
像データを、上記第1の色空間とは異なる第2の色空間
で表された、輝度情報と色情報とからなるデータに変換
する第1の工程と、補間対象画素の周辺の既存画素か
ら、補間対象画素の画素値の演算に使用される複数の演
算用画素を選択する第2の工程と、上記演算用画素の輝
度情報および/または色情報に基づいて、上記補間対象
画素の画素値を演算する時の演算方法を決定する第3の
工程と、上記第3の工程によって決定された演算方法を
用いて、上記補間対象画素の演算を行う第4の工程とを
含み、上記第1ないし第4の工程を繰り返し行うことに
よって、全ての補間対象画素に対する補間処理を行って
解像度変換された画像データを得ることを特徴としてい
る。
In order to solve the above-mentioned problems, the image processing method of the present invention converts multi-valued color image data represented in a first color space into a second color image data different from the first color space. A first step of converting into data composed of luminance information and color information expressed in space, and a plurality of operations for calculating pixel values of the interpolation target pixel from existing pixels around the interpolation target pixel A second step of selecting a pixel; a third step of determining a calculation method when calculating a pixel value of the interpolation target pixel based on luminance information and / or color information of the calculation pixel; And a fourth step of calculating the interpolation target pixel using the calculation method determined in the third step. By repeating the first to fourth steps, An image whose resolution has been converted by interpolation It is characterized by obtaining the data.

【0032】また、上記画像処理方法は、さらに、上記
第2の色空間で表された解像度変換後の画像データを、
上記第2の色空間とは異なる第3の色空間に変換する第
5の工程を含む構成とすることができる。
The image processing method may further include converting the resolution-converted image data represented in the second color space into
It may be configured to include a fifth step of converting to a third color space different from the second color space.

【0033】また、上記第1の工程では、第2の色空間
として均等色空間を用いることが好ましい。
In the first step, it is preferable to use a uniform color space as the second color space.

【0034】例えば、スキャナ等の入力装置からRGB
色空間等で表された多値のカラー画像データを解像度変
換する場合、これに対して単純に各色毎に補間演算をす
ると、余分な色が発生したりして、色ずれや色のにじみ
が発生する可能性がある。
For example, if an input device such as a scanner
When multi-valued color image data expressed in a color space or the like is subjected to resolution conversion, simply performing an interpolation operation for each color may result in extra colors, color shift and color bleeding. Can occur.

【0035】これに対して、上記の構成によれば、第1
の色空間(例えば、RGB色空間)で表された画像デー
タを、輝度および色の関係を求めやすい第2の色空間に
変換してから補間演算を行うことにより、輝度および色
の関係毎に異なる補間演算を行うことが可能となり、色
ずれや色のにじみやボケのない解像度変換が可能とな
る。
On the other hand, according to the above configuration, the first
By converting image data expressed in a color space (for example, an RGB color space) into a second color space in which the relationship between luminance and color can be easily obtained, an interpolation operation is performed. Different interpolation calculations can be performed, and resolution conversion without color shift, color bleeding, or blurring can be performed.

【0036】また、このとき、補間対象画素の周辺の既
存画素から演算用画素を選択し、該演算用画素の輝度情
報および/または色情報に基づいて、上記補間対象画素
に対する補間演算方法を変更することによって、画像に
部分的特徴に応じた適切な補間演算方法によって補間処
理が行える。
At this time, a calculation pixel is selected from the existing pixels around the interpolation target pixel, and the interpolation calculation method for the interpolation target pixel is changed based on luminance information and / or color information of the calculation pixel. By doing so, the interpolation processing can be performed by an appropriate interpolation calculation method according to the partial features of the image.

【0037】また、全ての補間対象画素に対する補間処
理が終了し、解像度変換がなされた画像データは、プリ
ンタやディスプレイ等の出力装置(または表示装置)に
おいて出力または表示される際、輝度情報と色情報とか
らなる上記第2の色空間で表されたデータ形式のままで
は出力処理が行えず、例えば、CMY色空間等の第3の
色空間に変換される必要がある。ここで、上記画像処理
方法では、第2の色空間で表された画像データを第3の
色空間に変換する第5の工程を備えることにより、出力
処理が可能となる。
When the interpolation processing for all the pixels to be interpolated is completed and the resolution-converted image data is output or displayed on an output device (or display device) such as a printer or a display, the luminance information and the color information are output. Output processing cannot be performed in the data format represented by the second color space including information, and the data needs to be converted to a third color space such as a CMY color space. Here, the image processing method includes a fifth step of converting the image data represented in the second color space into the third color space, thereby enabling output processing.

【0038】さらに、上記画像処理方法では、第2の色
空間として均等色空間を使用することにより、選択され
た演算用画素が補色関係にあったり、グレースケールと
カラーの関係にあったりする場合、均等色空間の中心点
からの各周辺画素同士の2点間の角度および距離によっ
て、これを容易に求めることができ、適切な補間演算方
法を求めることができる。
Further, in the above-described image processing method, by using a uniform color space as the second color space, the selected operation pixels may have a complementary color relationship or a gray scale and a color relationship. This can be easily obtained from the angle and distance between two points of each peripheral pixel from the center point of the uniform color space, and an appropriate interpolation calculation method can be obtained.

【0039】[0039]

【発明の実施の形態】本発明の実施の一形態について図
1ないし図14に基づいて説明すれば、以下の通りであ
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS.

【0040】本実施の形態に係る画像処理装置の概略構
成を図1に示す。
FIG. 1 shows a schematic configuration of the image processing apparatus according to the present embodiment.

【0041】上記画像処理装置1は、入力装置2から入
力された原画像データ(多値のカラー画像データ)に対
して解像度変換を行い、変換された画像データを出力装
置3によって出力画像として出力させるものである。
尚、上記図1に示す画像処理装置1は、入力装置1およ
び出力装置3を含むものではないが、本発明の画像処理
装置は入力部および出力部を具備した画像形成装置とし
て供されるものであってもよい。
The image processing apparatus 1 performs resolution conversion on original image data (multi-valued color image data) input from the input device 2 and outputs the converted image data as an output image by the output device 3. It is to let.
Although the image processing device 1 shown in FIG. 1 does not include the input device 1 and the output device 3, the image processing device of the present invention is provided as an image forming device having an input unit and an output unit. It may be.

【0042】上記画像処理装置1は、第1色変換処理部
(第1の色変換手段)4、周辺画素選択部(選択手段)
5、輝度関係演算部(演算方法決定手段)6、色関係演
算部(演算方法決定手段)7、画素補間部(補間手段)
8、および第2色変換処理部(第2の色変換手段)9を
備えている。
The image processing apparatus 1 includes a first color conversion processing section (first color conversion means) 4, a peripheral pixel selection section (selection means).
5. Luminance relation calculation unit (calculation method determination unit) 6, Color relation calculation unit (calculation method determination unit) 7, Pixel interpolation unit (interpolation unit)
8 and a second color conversion processing unit (second color conversion means) 9.

【0043】上記第1色変換処理部4は、入力装置2か
ら入力される画像データに対して色空間の変換処理を行
うものであり、例えば、RGB色空間(第1の色空間)
のカラーデータで表された画像データを均等色空間のカ
ラーデータに変換する。上記周辺画素選択部5は、補間
対象となる画素位置に近接する既存画素から、補間画素
値を求めるための情報として使用する画素を選択する。
The first color conversion processing unit 4 performs a color space conversion process on image data input from the input device 2 and, for example, an RGB color space (first color space).
Is converted into color data in a uniform color space. The peripheral pixel selection unit 5 selects a pixel to be used as information for obtaining an interpolated pixel value from existing pixels adjacent to a pixel position to be interpolated.

【0044】上記輝度関係演算部6は、選択された既存
画素の色空間における輝度上の位置関係を求め、この位
置関係に基づいて、各補間画素毎に輝度に関する適切な
補間演算方法を決定する。また、上記色関係演算部7
は、選択された周辺画素の色空間における色の位置関係
を求め、この位置関係に基づいて、各補間画素毎に色に
関する適切な補間演算方法を決定する。
The luminance relationship calculating section 6 obtains a positional relationship in the color space of the selected existing pixel in the color space, and determines an appropriate interpolation calculating method for the luminance for each interpolation pixel based on the positional relationship. . Further, the color relation calculation unit 7
Calculates the color positional relationship of the selected peripheral pixels in the color space, and determines an appropriate interpolation calculation method for the color for each interpolation pixel based on the positional relationship.

【0045】上記画素補間部8は、上記輝度関係演算部
6および色関係演算部7で決定された補間演算方法を用
いて補間処理を行う。
The pixel interpolation unit 8 performs an interpolation process using the interpolation calculation method determined by the luminance relationship calculation unit 6 and the color relationship calculation unit 7.

【0046】上記第2色変換処理部9は、入力された画
像データの全ての補間画素に対して、上記周辺画素選択
部5から画素補間部8までの処理が繰り返し行われた
後、その画像データを元の色空間に再変換し、出力画像
として出力装置に出力する。
The second color conversion processing section 9 repeats the processing from the peripheral pixel selection section 5 to the pixel interpolation section 8 for all the interpolation pixels of the input image data, The data is converted back to the original color space and output to the output device as an output image.

【0047】続いて、上記画像処理装置における処理方
法の一例を図2のフローチャートを参照して説明する。
ここでは、入力画像として各色8ビットのRGBカラー
データを用い、第1色変換処理部4によって変換する色
空間としてL* * * 色空間(第2の色空間)を用い
る場合を例示する。
Next, an example of a processing method in the image processing apparatus will be described with reference to a flowchart of FIG.
Here, an example is described in which 8-bit RGB color data for each color is used as an input image, and an L * a * b * color space (second color space) is used as a color space to be converted by the first color conversion processing unit 4. .

【0048】先ず、入力装置2からRGBカラーデータ
からなる原画像データが画像処理装置1に入力される
(S1)と、第1色変換処理部4において上記原画像デ
ータの色空間をRGB色空間からL* * * 色空間へ
変換する色変換処理が行われる(第1の工程:S2)。
First, when original image data composed of RGB color data is input from the input device 2 to the image processing device 1 (S1), the first color conversion processing section 4 converts the color space of the original image data into an RGB color space. Is converted to an L * a * b * color space (first step: S2).

【0049】ここでは、上記L* * * 色空間に変換
された画像データに対して補間処理を行うために、周辺
画素選択部5では、補間対象画素を決定し、該補間対象
画素の画素値を決定するために補間対象画素の周辺に存
在する既存画素(以下、周辺画素)を抽出する(S
3)。例として、図3(a)に示すように、補間対象画
素(図中、黒塗りハッチングで示す)を内包する周辺の
4つの既存画素(図中、斜線ハッチングで示す)を周辺
画素とする。但し、これは、補間対象画素が既存画素と
同じ画素列に存在しない場合であり、図3(b)または
図3(c)に示すように、補間対象画素が既存画素と同
じ画素列に存在する場合には、補間対象画素を挟むよう
にして存在する2つの既存画素を周辺画素とすればよ
い。さらに、上記周辺画素選択部5は、抽出された周辺
画素の中から、対象画素に距離的に近い画素を選択する
(S4)。尚、この例では、上記S3、S4が特許請求
の範囲に記載の第2の工程に相当する。
Here, in order to perform interpolation processing on the image data converted into the L * a * b * color space, the peripheral pixel selection unit 5 determines a pixel to be interpolated, and An existing pixel existing around the pixel to be interpolated (hereinafter referred to as a peripheral pixel) for determining a pixel value is extracted (S
3). As an example, as shown in FIG. 3A, four existing pixels (indicated by oblique hatching in the figure) surrounding the interpolation target pixel (indicated by black hatching in the figure) are set as peripheral pixels. However, this is a case where the interpolation target pixel does not exist in the same pixel column as the existing pixel, and as shown in FIG. 3B or FIG. 3C, the interpolation target pixel exists in the same pixel column as the existing pixel. In such a case, two existing pixels that exist so as to sandwich the interpolation target pixel may be set as peripheral pixels. Further, the peripheral pixel selection unit 5 selects a pixel that is close to the target pixel from the extracted peripheral pixels (S4). In this example, S3 and S4 correspond to a second step described in the claims.

【0050】次に、S5では、輝度関係演算部6および
色関係演算部7での処理により、上記S4において選択
された画素(以下、選択画素)の輝度情報および色情報
に基づいて、該補間対象画素における適切な補間演算方
法を決定する(第3の工程:S5)。画素補間部8で
は、上記S5の処理によって決定された補間演算方法を
用いて画素補間を行う(第4の工程:S6)。上記補間
演算方法を決定する処理については後述する。
Next, in step S5, the interpolation processing is performed based on the luminance information and the color information of the pixel selected in step S4 (hereinafter referred to as “selected pixel”) by the processing in the luminance relation calculation section 6 and the color relation calculation section 7. An appropriate interpolation calculation method for the target pixel is determined (third step: S5). The pixel interpolation unit 8 performs pixel interpolation using the interpolation calculation method determined by the processing of S5 (fourth step: S6). The process for determining the interpolation calculation method will be described later.

【0051】上記S3からS6の補間処理は、ある補間
対象画素に対する処理であるが、該補間対象画素は所定
の順序に従って順次移動するものであり、全ての補間画
素に対して上記補間処理が実行される。このため、上記
S6が終了すると、全ての補間画素に対して補間処理が
終了したか否かが確認され(S7)、終了していなけれ
ば、次の補間画素を補間対象画素として(S8)、S3
に移行する。
The interpolation processing from S3 to S6 is processing for a certain interpolation target pixel. The interpolation target pixel sequentially moves in a predetermined order, and the interpolation processing is executed for all the interpolation pixels. Is done. For this reason, when the above S6 is completed, it is confirmed whether or not the interpolation processing has been completed for all the interpolated pixels (S7). If not, the next interpolated pixel is set as the interpolation target pixel (S8). S3
Move to

【0052】上記S7において、全ての補間画素に対し
て補間処理が終了していれば、L** * 色空間で表
されている補間処理後の画像データを、再度RGB色空
間(第3の色空間)に戻す色変換処理が第2色変換処理
部9において行われる(第5の工程:S9)。こうし
て、再びRGB色空間に戻された変換画像が出力装置3
によって出力され(S10)、解像度変換された出力画
像が得られる。
In step S7, if the interpolation processing has been completed for all the interpolated pixels, the image data after the interpolation processing represented in the L * a * b * color space is again converted into the RGB color space (the (The third color space) is performed in the second color conversion processing section 9 (fifth step: S9). The converted image thus returned to the RGB color space is output to the output device 3 again.
(S10) to obtain an output image whose resolution has been converted.

【0053】次に、上記画像処理装置1の各部における
処理をより詳細に説明する。
Next, the processing in each section of the image processing apparatus 1 will be described in more detail.

【0054】先ず、第1色変換処理部4では、RGB色
空間で表された入力画像データをL * * * 色空間の
データに変換する。ここで、上記L* * * 色空間
は、均等色空間の1つであり、等しい大きさに知覚され
る色差が、空間内の等しい距離に対応するように意図し
た色空間となっている。これにより、どんな色同士であ
っても、どの程度色が違うのかを該色空間の座標から平
等に比較することができる。
First, in the first color conversion processing unit 4, the RGB color
The input image data expressed in space is represented by L *a*b*Color space
Convert to data. Here, the above L*a*b*Color space
Is one of the uniform color spaces and is perceived as equal
Color differences are intended to correspond to equal distances in space.
Color space. This allows any color
However, the extent to which the colors differ can be calculated from the coordinates of the color space.
Etc. can be compared.

【0055】RGB色空間のデータをL* * * 色空
間のデータに変換するためには、予め、RGBとL*
* * との関係をいくつかの代表色についてテーブル化
しておき、入力画素値に近い代表色のテーブルデータを
用いて補間演算を行うことにより色空間の変換が行え
る。このため、RGB色空間において、R値,G値,B
値のそれぞれが一定間隔値毎に並ぶように代表色を選択
し、それをカラーパッチとしてL* * * で測色して
おき、それを図4に示すようなルックアップテーブルと
してメモリに格納しておく。
In order to convert data in the RGB color space into data in the L * a * b * color space, RGB and L * a
The color space can be converted by tabulating the relationship with * b * for some representative colors and performing an interpolation operation using table data of the representative colors close to the input pixel values. For this reason, in the RGB color space, the R value, the G value,
A representative color is selected so that each of the values is arranged at regular intervals, and the color is measured as L * a * b * as a color patch, which is stored in a memory as a look-up table as shown in FIG. Store it.

【0056】具体的に説明すると、例えば、RGB色空
間における座標が(r,g,b)で表される入力画素
(既存画素)のデータをL* * * 色空間のデータに
色変換する場合、上記入力画素値に最も近い代表色を選
択する。上記代表色は、RGBの各色を軸とする3次元
空間を均等間隔で区切って得られる立方体の頂点に対応
する色であり、図5に示すように、入力画素値を点p
(r,g,b)で表した場合、点pをその内部に含む立
方体の各頂点p000 〜p111 が代表色として選択され
る。ここで、(r,g,b)=(150,104,3
2)であるとすると、図4のテーブルデータに基づけ
ば、上記点p000 〜p111 の座標において、r0 =12
8,r1 =192,g0 =64,g1 =128,b0
0,b1 =64である。
More specifically, for example, data of an input pixel (existing pixel) whose coordinates in the RGB color space are represented by (r, g, b) is converted into data of the L * a * b * color space. In this case, the representative color closest to the input pixel value is selected. The representative colors are colors corresponding to the vertices of a cube obtained by dividing the three-dimensional space around each of the RGB colors at equal intervals, and as shown in FIG.
When represented by (r, g, b), the vertices p 000 to p 111 of the cube including the point p therein are selected as the representative colors. Here, (r, g, b) = (150, 104, 3)
Assuming that 2), based on the table data in FIG. 4, at the coordinates of the points p 000 to p 111 , r 0 = 12
8, r 1 = 192, g 0 = 64, g 1 = 128, b 0 =
0, b 1 = 64.

【0057】こうして選択された各代表色のデータは、
図4のテーブルデータに基づいてL * * * 色空間の
データに変換される。例えば、点p000 (r0 ,g0
0)=(128,64,0)は、(L* ,a*
* )=(61.54,13.78,61.72)に変
換される。選択された他の代表色についても同様に色変
換される。
The data of each representative color selected in this way is
L based on the table data of FIG. *a*b*Color space
Converted to data. For example, the point p000(R0, G0,
b0) = (128,64,0) is (L*, A*,
b*) = (61.54, 13.78, 61.72)
Is replaced. Similarly, the color of other selected representative colors will change.
Is replaced.

【0058】そして、入力画素値の変換後のデータは、
次式(1)にて表される。尚、次式におけるqは、上記
点pを色変換した後のL* * * 色空間上での対応点
を示すものであり、座標(L* ,a* ,b* )で表され
る。
The converted data of the input pixel value is
It is expressed by the following equation (1). Here, q in the following equation indicates a corresponding point in the L * a * b * color space after the point p is subjected to color conversion, and is represented by coordinates (L * , a * , b * ). You.

【0059】 q(L* ,a* ,b* )=c0 +c1 Δr+c2 Δg+c3 Δb+ c4 ΔrΔg+c5 ΔrΔb+c6 ΔgΔb+ c7 ΔrΔgΔb …(1) ここで、Δr=r−r0 =150−128=22 Δg=g−g0 =104−64=40 Δb=b−b0 =32−0=32 c0 =p000 1 =(p100 −p000 )/(r1 −r0 ) c2 =(p010 −p000 )/(g1 −g0 ) c3 =(p001 −p000 )/(b1 −b0 ) c4 =(p110 −p010 −p100 +p000 )/{(r1 −r0 )・ (g1 −g0 )} c5 =(p101 −p001 −p100 +p000 )/{(r1 −r0 )・ (b1 −b0 )} c6 =(p011 −p001 −p010 +p000 )/{(g1 −g0 )・ (b1 −b0 )} c7 =(p111 −p011 −p101 −p110 +p100 +p001 + p010 −p000 )/{(r1 −r0 )・(g1 −g0 )・ (b1 −b0 )} である。これにより、RGB色空間上で(150,10
4,32)の入力画素値は、L* * * 色空間上で
(72.85,8.44,69.70)の座標で表され
る。このような処理を入力画像データの全ての入力画素
について行う。
[0059] q (L *, a *, b *) = c 0 + c 1 Δr + c 2 Δg + c 3 Δb + c 4 ΔrΔg + c 5 ΔrΔb + c 6 ΔgΔb + c 7 ΔrΔgΔb ... (1) where, Δr = r-r 0 = 150- 128 = 22 Δg = g−g 0 = 104−64 = 40 Δb = b−b 0 = 32−0 = 32 c 0 = p 000 c 1 = (p 100 −p 000 ) / (r 1 −r 0 ) c 2 = (p 010 -p 000 ) / (g 1 -g 0 ) c 3 = (p 001 -p 000 ) / (b 1 -b 0 ) c 4 = (p 110 -p 010 -p 100 + p 000) ) / {(R 1 −r 0 ) · (g 1 −g 0 )} c 5 = (p 101 −p 001 −p 100 + p 000 ) / {(r 1 −r 0 ) · (b 1 −b 0) )} C 6 = (p 011 -p 001 -p 010 + p 000 ) / {(g 1 -g 0 ) · (b 1 -b 0 )} c 7 = (p 111 -p 011 -p 101 -p 110 + p 100 + p 001 + p 010 -p 000) / { r 1 -r 0) · (g 1 -g 0) is a · (b 1 -b 0)} . Thereby, (150, 10) on the RGB color space
The input pixel value of (4, 32) is represented by coordinates (72.85, 8.44, 69.70) in the L * a * b * color space. Such processing is performed for all input pixels of the input image data.

【0060】周辺画素選択部5では、先ず、補間対象画
素を囲む4点の周辺画素を既存画素の中から抽出する。
上記周辺画素の抽出方法としては、図6に示すように、
補間対象画素の位置を既存画素の位置情報を元にした場
合に、補間対象画素位置を(x,y)とすると、
([x],[y])、([x]+1,[y])、
([x],[y]+1)、([x]+1,[y]+1)
が抽出画素となる。ただし、[x],[y]はx,yの
整数部分を表す。
The peripheral pixel selecting section 5 first extracts four peripheral pixels surrounding the pixel to be interpolated from the existing pixels.
As a method for extracting the peripheral pixels, as shown in FIG.
When the position of the pixel to be interpolated is based on the position information of the existing pixel, and the position of the pixel to be interpolated is (x, y),
([X], [y]), ([x] +1, [y]),
([X], [y] +1), ([x] +1, [y] +1)
Becomes an extraction pixel. Here, [x] and [y] represent integer parts of x and y.

【0061】次に、上記周辺画素選択部5は、この4点
の周辺画素から、補間対象画素位置に近い2つ画素を選
択画素として選択する。そのため、上記4つの周辺画素
について、(nx−x)2 +(ny−y)2 の式を用い
て補間対象画素との距離が求められる。ここで、上式の
nxおよびnyには補間対象画素との距離が求められる
周辺画素のx,y座標が代入される。そして、この式の
結果から値の小さなもの2つを選択画素として選択す
る。すなわち、ここでは、上記選択画素が特許請求の範
囲に記載の演算用画素に相当する。
Next, the peripheral pixel selecting section 5 selects two pixels close to the position of the pixel to be interpolated from the four peripheral pixels as selected pixels. Therefore, the distance between the four neighboring pixels and the pixel to be interpolated is calculated using the equation (nx−x) 2 + (ny−y) 2 . Here, the x and y coordinates of the peripheral pixels for which the distance from the interpolation target pixel is obtained are substituted for nx and ny in the above equation. Then, based on the result of this equation, two pixels having small values are selected as selected pixels. That is, here, the selected pixel corresponds to the calculation pixel described in the claims.

【0062】例えば、補間対象画素位置を(3.4,1
0.6)とすると、抽出された周辺画素は、(3,1
0)、(4,10)、(3,11)、(4,11)とな
る。そして、前記の式を用いて、これらの周辺画素と補
間対象画素との距離を計算すると、それぞれの値は、
0.52、0.72、0.32、0.52となる。この
値が小さいほど、補間対象画素位置に近いことから、ま
ず、(3,11)の周辺画素が選択される。さらに、次
の選択候補となる画素は上記値が0.52であり、その
ような周辺画素が(3,10)および(4,11)の2
画素存在する。ここでは、左上,右上、左下、右下の順
に優先順位をつけておくことにし、(3,10)を選択
する。これにより、(3,10)、および、(3,1
1)の周辺画素が選択画素として選択されたことにな
る。
For example, when the position of the pixel to be interpolated is set to (3.4, 1
0.6), the extracted peripheral pixels are (3,1)
0), (4,10), (3,11) and (4,11). Then, when the distance between these peripheral pixels and the pixel to be interpolated is calculated using the above equation,
0.52, 0.72, 0.32, and 0.52. The smaller this value is, the closer it is to the position of the pixel to be interpolated. Therefore, first, the peripheral pixels (3, 11) are selected. Further, the value of the pixel that is the next selection candidate is 0.52, and such peripheral pixels are 2 (3, 10) and (4, 11).
Pixel exists. Here, priorities are assigned in the order of upper left, upper right, lower left, and lower right, and (3, 10) is selected. Thereby, (3,10) and (3,1)
This means that the peripheral pixel in 1) is selected as the selected pixel.

【0063】次いで、輝度関係演算部6では、前記周辺
画素選択部5で選択された2つの選択画素について、そ
れらL* の値を用いて、輝度に関する適切な補間演算方
法を決定する。ここで、上記輝度関係演算部6における
処理を、図7のフローチャートを参照して説明する。
尚、上記図7のフローチャートは、図2のフローチャー
トのS5において、輝度情報に関する処理を詳細に示し
たものである。
Next, the brightness-related calculation unit 6 determines an appropriate interpolation calculation method regarding brightness for the two selected pixels selected by the peripheral pixel selection unit 5 using the values of L * . Here, the processing in the luminance relation calculation unit 6 will be described with reference to the flowchart in FIG.
Note that the flowchart of FIG. 7 shows the processing related to the luminance information in S5 of the flowchart of FIG. 2 in detail.

【0064】上記輝度関係演算部6は、先ず、図8に示
すように、これら2つの選択画素のL* 値をそれぞれL
* 1 、L* 2 (L* 1 >L* 2 )とし、L* 軸上での2
画素間の距離L* 1 −L* 2 を求める(S11)。ここ
で、上記距離L* 1 −L* 2は、これら2つの選択画素
の輝度の差を示すものとなり、輝度の差が大きくなると
いうことは、その部分にエッジが存在するということが
言える。したがって、上記L* 1 −L* 2 がある一定の
閾値以上となるか否かによって、補間処理法方法を変更
する。
First, as shown in FIG. 8, the luminance relation calculation unit 6 calculates the L * values of these two selected pixels as L
* 1 , L * 2 (L * 1 > L * 2 ), and 2 on the L * axis
The distance L * 1− L * 2 between pixels is obtained (S11). Here, the distance L * 1− L * 2 indicates the difference in luminance between these two selected pixels. If the difference in luminance is large, it can be said that an edge exists in that portion. Therefore, the interpolation processing method is changed depending on whether or not L * 1− L * 2 is equal to or greater than a certain threshold.

【0065】すなわち、S12において、L* 1 −L*
2 が所定の閾値(第1の閾値:ここでは、閾値40であ
るが、閾値の値は限定されない)と比較され、L* 1
* 2 が閾値より小さい場合(輝度差が小さな場合)に
は、図9に示すように、選択画素の輝度値を用いた線形
補間を行う(S13)ことにより、滑らかな輝度変化を
表現できる。逆に、L* 1 −L* 2 が閾値以上の場合に
は、エッジをぼかさないように、図10に示すように、
補間画素に最も近い選択画素の輝度値を補間画素に代入
する補間演算方法を用いる(S14)。
That is, in S12, L* 1-L*
TwoIs a predetermined threshold (first threshold: here, threshold 40)
But the threshold value is not limited), and L* 1
L* TwoIs smaller than the threshold value (when the brightness difference is small)
Is a linear expression using the luminance value of the selected pixel as shown in FIG.
By performing interpolation (S13), a smooth luminance change can be obtained.
Can be expressed. Conversely, L* 1-L* TwoIs greater than or equal to the threshold
Does not blur the edge, as shown in FIG.
Assign the luminance value of the selected pixel closest to the interpolation pixel to the interpolation pixel
(S14).

【0066】例えば、前記(3,10)の選択画素のL
* * * の値が(72.85,8.44,69.7
0)で、(3,11)の選択画素のL* * * の値が
(52.85,10.44,39.70)だったときに
は、L* 1 −L* 2 =72.85−52.85=20と
なる。そして、L* 1 −L* 2 の値は閾値40未満であ
るため、輝度に関しては線形補間処理を行うことに決定
する。
For example, the L of the selected pixel of (3, 10)
When the value of * a * b * is (72.85, 8.44, 69.7)
0), when the value of L * a * b * of the selected pixel of (3, 11) is (52.85, 10.44, 39.70), L * 1− L * 2 = 72.85. -52.85 = 20. Then, since the value of L * 1− L * 2 is less than the threshold value 40, it is determined that the linear interpolation processing should be performed on the luminance.

【0067】更に、色関係演算部7では、前記周辺画素
選択部5で選択された2つの選択画素について、それら
のa* ,b* の値を用いて、色に関する適切な補間演算
方法を決定する。ここで、上記色関係演算部7における
処理を、図11のフローチャートを参照して説明する。
尚、上記図11のフローチャートは、図2のフローチャ
ートのS5において、色情報に関する処理を詳細に示し
たものである。
Further, the color relation calculation section 7 determines an appropriate color interpolation calculation method for the two selected pixels selected by the peripheral pixel selection section 5 by using their a * and b * values. I do. Here, the processing in the color relation calculation unit 7 will be described with reference to the flowchart in FIG.
It should be noted that the flowchart of FIG. 11 shows in detail the processing relating to the color information in S5 of the flowchart of FIG.

【0068】上記色関係演算部7は、先ず、図12に示
すように、色度図(a* −b* 平面)上での2つの選択
画素の位置関係として、a* −b* 平面の中心点と点q
1 ,q2 をそれぞれ結んでできる2直線からなる角度
(内角)θ、および、同じくa * −b* 平面の中心点
(a* =0,b* =0)から2つの選択画素に相当する
点q1 ,q2 のそれぞれを結んだ直線の距離l1 ,l2
を求める(S21、S22)。そして、上記距離l1
2 および角度θをある一定の閾値と比較し、その比較
結果によって補間演算方法を変更する。
First, the color relation calculation section 7 shown in FIG.
As shown in the chromaticity diagram (a*-B*Two choices on the plane)
As the positional relationship of pixels, a*-B*The center point of the plane and the point q
1, QTwoAngle consisting of two straight lines formed by connecting
(Inner angle) θ and a *-B*Center point of plane
(A*= 0, b*= 0) corresponds to two selected pixels
Point q1, QTwoDistance l of a straight line connecting each1, LTwo
(S21, S22). And the distance l1,
lTwoAnd the angle θ with a certain threshold,
Change the interpolation method according to the result.

【0069】ここでは、先ず、S23において、上記距
離l1 ,l2 が閾値(第2の閾値:ここでは、閾値30
であるが、閾値の値は限定されない)と比較され、距離
1,l2 が共に閾値よりも小さければ、図9に示すよ
うに、選択画素の色度値を用いた線形補間を行うものと
する(S24)。すなわち、a* −b* 平面の中心点か
らの距離が近い画素は、ほとんど鮮やかさがないグレー
に近い色であるといえる。したがって、距離l1 ,l2
が共に閾値より小さいということは、上記2つの選択画
素が共に近い色同士であることを示しており、この場合
には、当然滑らかに色の変化が表現されるべきなので、
線形補間により滑らかな色の変化を表現することができ
る。
Here, first, in S23, the distances l 1 and l 2 are set to thresholds (second threshold: here, threshold 30
, But the threshold value is not limited). If both the distances l 1 and l 2 are smaller than the threshold value, linear interpolation using the chromaticity value of the selected pixel is performed as shown in FIG. (S24). That is, it can be said that a pixel having a short distance from the center point of the a * -b * plane has a color close to gray with almost no vividness. Therefore, the distances l 1 and l 2
Are smaller than the threshold value, it indicates that the two selected pixels are close to each other. In this case, the change in color should be expressed smoothly.
A smooth color change can be expressed by linear interpolation.

【0070】上記S23でNOとなる場合は、上記距離
1 ,l2 の少なくとも一方が閾値以上であり、S25
へ移行する。ここで、距離l1 ,l2 の一方が閾値以上
で他方が閾値未満であれば、S10に示すように、補間
画素に最も近い選択画素の色度値を補間画素に代入する
補間演算方法を用いるものとする(S26)。すなわ
ち、距離l1 ,l2 の一方のみが閾値の値より小さい場
合には、その色のみがグレーに近い色となる。このと
き、色のあるものとグレーに近い色とで線形補間する
と、色の境界線がボケたり、色がにじむといったことが
発生することから、どちらかの色を補間画素に代入する
補間方法が好ましいためである。
If NO in S23, at least one of the distances l 1 and l 2 is greater than or equal to the threshold value, and S25
Move to. Here, if one of the distances l 1 and l 2 is greater than or equal to the threshold and the other is less than the threshold, as shown in S10, the interpolation calculation method of substituting the chromaticity value of the selected pixel closest to the interpolation pixel into the interpolation pixel is performed. It shall be used (S26). That is, when only one of the distances l 1 and l 2 is smaller than the threshold value, only that color becomes a color close to gray. At this time, if linear interpolation is performed between a certain color and a color close to gray, the boundary line of the color may be blurred or the color may be blurred. This is because it is preferable.

【0071】さらに、上記S25において距離l1 ,l
2 が共に閾値以上であれば、S27において角度θが閾
値(ここでは、閾値90°であるが、閾値の値は限定さ
れない)と比較され、角度θが閾値よりも小さければ、
選択画素の色度値を用いた線形補間を行うものとする
(S24)。このとき、上記角度θが90°以上であれ
ば(S27でNO)、補間画素に最も近い選択画素の色
度値を補間画素に代入する補間演算方法を用いるものと
する(S26)。すなわち、上記角度θが大きい値をと
ると、それだけ、2つの色の関係は補色に近くなること
を意味し、この場合、2つの選択画素の中間の色で補間
するよりは、どちらかの色で補間したほうが、色のにじ
みや色ずれといったことが起きにくくなるためである。
Further, in S25, the distances l 1 and l
If 2 are both equal to or greater than the threshold, the angle θ is a threshold value in S27 (in this case, is a threshold 90 °, the value of the threshold is not limited) is compared with, if the angle θ is smaller than the threshold value,
It is assumed that linear interpolation using the chromaticity value of the selected pixel is performed (S24). At this time, if the angle θ is equal to or greater than 90 ° (NO in S27), an interpolation calculation method of substituting the chromaticity value of the selected pixel closest to the interpolation pixel into the interpolation pixel is used (S26). That is, if the angle θ takes a large value, it means that the relationship between the two colors is closer to the complementary color. In this case, it is better to interpolate between the two selected pixels than to use either color. This is because, when the interpolation is performed, the color bleeding and the color shift are less likely to occur.

【0072】また、上記S27において上記角度θが9
0°より小さければ、選択画素の色度値を用いた線形補
間を行うものとする(S24)。これは、上記角度θが
90より小さいことにより、2つの色は補色関係にな
く、2つの色が近い色同士で滑らかな色の変化を表現す
る補間方法が好ましいためである。
In step S27, the angle θ is 9
If it is smaller than 0 °, linear interpolation using the chromaticity value of the selected pixel is performed (S24). This is because, when the angle θ is smaller than 90, the two colors do not have a complementary color relationship, and an interpolation method that expresses a smooth color change between colors close to each other is preferable.

【0073】例えば、輝度の例と同様に、前記(3,1
0)の画素のL* * * の値が(72.85,8.4
4,69.70)で、(3,11)の画素のL* *
* の値が(52.85,10.44,39.70)のと
き、まず、それぞれのa* * 値だけを抽出する。そし
て、a* −b* 平面上で、それぞれ画素について中心点
からのユークリッド距離l1 ,l2 を求める。計算式
は、{(a*2+b*2)} 1/2 で表され、それぞれ計算す
ると、l1 =70.21、および、l2 =41.05と
なる。
For example, similarly to the example of the luminance, (3, 1
0) Pixel L*a*b*Is (72.85, 8.4)
4,69.70), the L of the pixel of (3,11)*a*b
*Is (52.85, 10.44, 39.70)
First, each a*b *Extract only values. Soshi
And a*-B*Center point for each pixel on the plane
Euclidean distance l1, LTwoAsk for. a formula
Is {(a* 2+ B* 2)} 1/2, And calculate each
Then, l1= 70.21 and lTwo= 41.05 and
Become.

【0074】次に、内角θの計算を行う。まず、ユーク
リッド距離の長い方の直線式に対して垂直となる直線式
で、ユークリッド距離の短い方の点を通るものを求め
る。この例では、b* =0.12a* +38.45とな
る。ユークリッド距離の長い方の直線で、この式と垂直
に交わる点を求める。そして、中心点からこの垂直交点
までの距離を求める。この例では、垂直交点が(4.7
2,39.1)となり、中心点からの距離を求めると3
9.38となる。さらに、これらの値からcosθを求
めと、0.96となる。cosθ>0ということは、内
角が90度未満ということであり、2つの選択画素は近
い色であると判断できる。距離も、どちらの画素とも3
0以上あることから、色に関しても線形補間処理を行う
ことに決定する。
Next, the inner angle θ is calculated. First, a straight line formula that is perpendicular to the straight line formula with the longer Euclidean distance and that passes through the point with the shorter Euclidean distance is obtained. In this example, b * = 0.12a * + 38.45. Find the point of the straight line with the longer Euclidean distance that intersects this equation vertically. Then, a distance from the center point to the vertical intersection is obtained. In this example, the vertical intersection is (4.7
2, 39.1), and the distance from the center point is 3
9.38. Further, when cos θ is obtained from these values, it becomes 0.96. When cos θ> 0, the interior angle is less than 90 degrees, and it can be determined that the two selected pixels have close colors. The distance is also 3 for both pixels
Since there is 0 or more, it is determined that the linear interpolation process is also performed on the color.

【0075】画素補間部8では、前記輝度関係演算部6
および色関係演算部7で決定された補間方法により、補
間対象画素の輝度および色の補間処理を行う。ここで用
いられる補間演算方法は、図9および図10に示すよう
に、2通り設定されており、1つは従来法のNN法のよ
うに、補間対象画素位置に一番近い既存の周辺画素値を
そのまま補間対象画素値とするものである(図10参
照)。もう1つは従来法のBL法のように、2つの周辺
画素値の線形補間値を補間対象画素値とするものである
(図9参照)。
In the pixel interpolating section 8, the luminance relation calculating section 6
In addition, according to the interpolation method determined by the color relation calculation unit 7, the luminance and color of the interpolation target pixel are interpolated. The interpolation calculation method used here is set in two ways as shown in FIGS. 9 and 10. One is an existing peripheral pixel closest to the position of the pixel to be interpolated, as in the conventional NN method. The value is directly used as the interpolation target pixel value (see FIG. 10). The other is to use a linear interpolation value of two peripheral pixel values as an interpolation target pixel value as in the conventional BL method (see FIG. 9).

【0076】例えば、前記例からすると、補間対象画素
の輝度値は、前記周辺画素のL* 値から線形補間により
(72.85−52.85)/2+52.85=62.
85として求まる。更に、補間対象画素の色の値は、前
記周辺画素のa* 値、および、b* 値から線形補間によ
り、a* =(69.70−39.70)/2+39.7
0=54.70、および、b* =(10.44−8.4
4)+8.44=9.44として求まる。したがって、
補間画素のL* * * の値は、(62.85,54.
70,9.44)となる。
For example, according to the above example, the luminance value of the pixel to be interpolated is obtained by linear interpolation from the L * value of the peripheral pixel (72.85−52.85) /2+52.85=62.
It is obtained as 85. Further, the color value of the pixel to be interpolated is calculated by a * = (69.70−39.70) /2+39.7 by linear interpolation from the a * value and b * value of the peripheral pixels.
0 = 54.70 and b * = (10.44-8.4
4) It is obtained as + 8.44 = 9.44. Therefore,
The value of L * a * b * of the interpolated pixel is (62.85, 54.
70, 9.44).

【0077】最後に、第2色変換処理部9では、変換さ
れたL* * * データを再び元のRGBデータに変換
する。ここでは、第1色変換処理部4の処理とは逆に、
RGBとL* * * との関係をL* * * の代表色
についてテーブル化する。このため、L* * * 色空
間において、L* 値,a* 値,b* 値のそれぞれが一定
間隔値毎に並ぶように代表色を選択し、それに近い色を
カラーパッチとしてRGBで測色しておき、それを図1
3に示すようなルックアップテーブルとしてメモリに格
納しておく。そして、上記ルックアップテーブルを用い
て、変換された画素値に近い代表色からの補間演算を行
うことにより色空間の変換を行い、出力画像として出力
する。
Finally, the second color conversion processing section 9 converts the converted L * a * b * data back to the original RGB data. Here, contrary to the processing of the first color conversion processing unit 4,
The relation between RGB and L * a * b * is tabulated for a representative color of L * a * b * . For this reason, in the L * a * b * color space, a representative color is selected such that the L * value, the a * value, and the b * value are arranged at regular intervals, and a color close to that is used as a color patch in RGB. Figure 1
3 is stored in a memory as a look-up table. Then, the color space is converted by performing an interpolation operation from a representative color close to the converted pixel value using the lookup table, and output as an output image.

【0078】L* * * データを色変換する場合、先
ず、上記データに最も近い代表色を選択する。上記代表
色は、L* * * の各色を軸とする3次元空間を均等
間隔で区切って得られる立方体の頂点に対応する色であ
り、図14に示すように、上記L* * * データを点
q(L* ,a* ,b* )で表した場合、点qをその内部
に含む立方体の各頂点q000 〜q111 が代表色として選
択される。これらの代表色において、L* 値,a* 値,
* 値のそれぞれの最大値はL* 1 ,a* 1 ,b* 1
であり、それぞれの最小値はL* 0 ,a* 0 ,b* 0
ある。
When performing color conversion on L * a * b * data, first, a representative color closest to the above data is selected. The representative color is a color corresponding to a vertex of a cube obtained by dividing a three-dimensional space around each color of L * a * b * at equal intervals, and as shown in FIG. 14, the L * a * b * data point q (L *, a *, b *) when expressed in, each vertex q 000 to q 111 cube containing the point q therein is selected as the representative color. In these representative colors, L * value, a * value,
The maximum value of each b * value is L * 1 , a * 1 , b * 1 ,
Where the minimum values are L * 0 , a * 0 , b * 0 .

【0079】こうして選択された各代表色のデータは、
図13のテーブルデータに基づいてRGB色空間のデー
タに変換される。そして、上記L* * * データの変
換後のデータは、次式(2)にて表される。
The data of each representative color thus selected is
The data is converted into data in the RGB color space based on the table data in FIG. Then, the converted data of the L * a * b * data is represented by the following equation (2).

【0080】 p(r,g,b)=c0 +c1 ΔL* +c2 Δa* +c3 Δb* + c4 ΔL* Δa* +c5 ΔL* Δb* + c6 Δa* Δb* +c7 ΔL* Δa* Δb* …(2) ここで、ΔL* =L* −L* 0 Δa* =a* −a* 0 Δb* =b* −b* 0 であり、計数c0 ないしc7 については、{p000 ,p
100 ,p010 ,p001 ,p110 ,p101 ,p011 ,p
111 ,r1 ,r0 ,g1 ,g0 ,b1 ,b0 }の代わり
に{q000 ,q100 ,q010 ,q001 ,q110
101 ,q011 ,q111 ,L* 1 ,L* 0 ,a* 1 ,a
* 0 ,b* 1 ,b* 0 }を用いた値を用いる。このよう
な処理を画像データの全ての画素について行う。
P (r, g, b) = c 0 + c 1 ΔL * + c 2 Δa * + c 3 Δb * + c 4 ΔL * Δa * + c 5 ΔL * Δb * + c 6 Δa * Δb * + c 7 ΔL * Δa * Δb * (2) where ΔL * = L * −L * 0 Δa * = a * −a * 0 Δb * = b * −b * 0 , and the counts c 0 to c 7 {P 000 , p
100 , p 010 , p 001 , p 110 , p 101 , p 011 , p
111 , r 1 , r 0 , g 1 , g 0 , b 1 , b 0 } instead of {q 000 , q 100 , q 010 , q 001 , q 110 ,
q 101, q 011, q 111 , L * 1, L * 0, a * 1, a
* 0 , b * 1 , b * 0 } are used. Such processing is performed for all the pixels of the image data.

【0081】このように各処理が行われ、最終的に解像
度変換された出力画像が得られることになる。なお、本
実施の形態においては、変換する色空間としてL* *
*色空間を用いたが、均等色空間であればL* *
* 色空間以外でも良いことは言うまでもない。また、上
記記載では、第3の色空間は第1の色空間と同じRGB
色空間となっているが、第3の色空間と第1の色空間と
は同じである必要はなく、第3の色空間としてCMY色
空間を用いることも可能である。
As described above, each processing is performed, and an output image whose resolution is converted is finally obtained. In the present embodiment, L * a * is used as the color space to be converted .
Although the b * color space was used, if it is a uniform color space, L * a * b
* Needless to say, other than the color space may be used. Further, in the above description, the third color space is the same as the first color space in RGB.
Although the color space is used, the third color space and the first color space need not be the same, and the CMY color space can be used as the third color space.

【0082】また、色空間の変換方法としては、テーブ
ルデータによる変換ではなく、マトリクス演算による変
換でも良く、また、テーブル変換の際の補間値の求め方
として、本実施の形態においては、色空間を立方体に区
切ったが、これも三角柱や三角錐などの他の形に区切っ
たものでも構わない。
As a method of converting the color space, a conversion by a matrix operation may be used instead of the conversion by the table data. Further, as a method of obtaining an interpolation value at the time of the table conversion, in the present embodiment, the color space is converted. Is divided into cubes, but may be divided into other shapes such as triangular prisms and pyramids.

【0083】さらに、以上に説明した例では、周辺画素
選択部5において、補間対象画素の周囲の既存画素の中
から4つの周辺画素を選択し、さらにこの4つの周辺画
素の中から、該補間対象画素に最も近い画素を選択画素
として、該選択画素を用いて補間処理を行っている。し
かしながら、本発明はこのように、必ずしも選択画素を
考える必要は無く、周辺画素を抽出しただけでその後補
間処理を実行しても良い。すなわち、この場合では、上
記周辺画素が特許請求の範囲に記載の演算用画素に相当
する。尚、この場合、抽出される周辺画素の数は4画素
に限定されるものではない。周辺画素の範囲について
は、計算精度や製造コスト等によって予め決めておくも
のとする。以下に、周辺画素だけが定義された場合の輝
度関係演算部6および色関係演算部7における補間処理
の決定方法を説明する。
Further, in the example described above, the peripheral pixel selecting unit 5 selects four peripheral pixels from the existing pixels around the pixel to be interpolated, and further selects the interpolation pixel from the four peripheral pixels. The pixel closest to the target pixel is selected as a selected pixel, and interpolation processing is performed using the selected pixel. However, in the present invention, it is not always necessary to consider the selected pixel, and the interpolation process may be executed after the peripheral pixels are extracted. That is, in this case, the peripheral pixels correspond to the calculation pixels described in the claims. In this case, the number of peripheral pixels to be extracted is not limited to four. The range of the peripheral pixels is determined in advance based on calculation accuracy, manufacturing cost, and the like. Hereinafter, a method of determining the interpolation processing in the luminance relationship calculation unit 6 and the color relationship calculation unit 7 when only the peripheral pixels are defined will be described.

【0084】先ず、輝度(L* )については、補間対象
画素に最も近い周辺画素の輝度値をL* 1 とし、他の周
辺画素の輝度値をL* 2 〜L* n とする。そして、以下
のように、上記L* 1 とL* 2 〜L* n との差分を求め
る。
First, regarding the luminance (L * ), the luminance value of the peripheral pixel closest to the pixel to be interpolated is L * 1, and the luminance values of the other peripheral pixels are L * 2 to L * n . As it follows, obtaining the difference between the L * 1 and L * 2 ~L * n.

【0085】 ΔL* 1 =L* 1 −L* 2 ΔL* 2 =L* 1 −L* 3 : ΔL* n-1 =L* 1 −L* n 次いで、求められた差分値ΔL* m (m:1〜n−1)
を閾値(第1の閾値:例えば、40)と比較し、これら
の差分値ΔL* m の中で、ΔL* m <40を満たす周辺
画素のみを抽出し、L* 1 を始めとする抽出された周辺
画素と対象画素との空間距離の比率による加重平均を求
め、それを補間対象画素のL* 値とする。
ΔL * 1 = L * 1− L * 2 ΔL * 2 = L * 1− L * 3 : ΔL * n−1 = L * 1− L * n Then, the obtained difference value ΔL * m ( m: 1 to n-1)
Is compared with a threshold value (first threshold value: for example, 40), and among these difference values ΔL * m , only peripheral pixels satisfying ΔL * m <40 are extracted, and the extracted pixels including L * 1 are extracted. A weighted average based on the ratio of the spatial distance between the peripheral pixel and the target pixel is calculated, and the weighted average is used as the L * value of the interpolation target pixel.

【0086】例えば、上記の差分値の中でΔL* 2 のみ
が閾値未満であれば、L* 1 ,L* 3 が抽出される。こ
のとき、補間対象画素のL* 値は、 L* =L* 1 ×(1−|x−xL1|)×(1−|y−y
L1|)+L* 3 ×(1−|x−xL3|)×(1−|y−
L3|) となる。また、抽出画素が存在しない場合(上記の差分
値の中で閾値未満となるものが存在しない場合)には、
* 1 を補間対象画素のL* 値とする。
For example, in the above difference value, ΔL* Twoonly
Is less than the threshold, L* 1, L* ThreeIs extracted. This
, L of the interpolation target pixel*The value is L*= L* 1× (1- | xxL1|) × (1− | y−y
L1|) + L* Three× (1- | xxL3|) × (1- | y−
yL3|). If there is no extracted pixel (the difference
If none of the values are below the threshold)
L* 1To L of the pixel to be interpolated*Value.

【0087】次に、色度(C:a* ,b* )について
は、補間対象画素に最も近い周辺画素の色度をC1
し、他の周辺画素の色度をC2 〜Cn とする。そして、
上記C1とC2 〜Cn との色差を第2のパラメータとな
る内角θm (m:1〜n−1)として求める。ここで、
θm は、色度図(a* −b* 平面)上での中心点(a*
=b* =0)とC1 およびCm+1 をそれぞれ結んででき
る2直線からなる角度(内角)である。また、C1 〜C
n の位置における色度図上の中心点からのそれぞれの距
離を、第1のパラメータとなるD1 〜Dn として求め
る。
Next, the chromaticity (C: a *, b * ) for the chromaticity closest surrounding pixels in the interpolation target pixel and C 1, and the chromaticity of other peripheral pixel C 2 -C n I do. And
The C 1 and C 2 -C interior angle a color difference between n the second parameter θ m (m: 1~n-1 ) obtained as. here,
theta m is chromaticity diagram (a * -b * plane) on the center point of the (a *
= B * = 0) and C 1 and C m + 1 . Also, C 1 -C
The respective distances from the center point on the chromaticity diagram at the position n are obtained as D 1 to D n that are the first parameters.

【0088】ここで、上記D1 を閾値(第2の閾値:例
えば、30)と比較し、D1 <30であれば、C1 はグ
レースケールであると判断し、その後、D2 〜Dn につ
いても同様に閾値との比較を行う。そして、Dm <30
(m:2〜n)となるものを抽出し、抽出された周辺画
素と補間対象画素との空間距離の比率による加重平均を
求め、これを補間対象画素の色度とする。
[0088] Here, the D 1 threshold (second threshold value: e.g., 30) as compared to, if D 1 <30, C 1 is determined to be a gray scale, then, D 2 to D Similarly, n is compared with a threshold value. And D m <30
(M: 2 to n) are extracted, a weighted average is calculated based on a ratio of a spatial distance between the extracted peripheral pixel and the interpolation target pixel, and this is set as the chromaticity of the interpolation target pixel.

【0089】また、D1 ≧30であれば、C1 はカラー
であると判断し、その後、同様に、Dm ≧30(m:2
〜n)、かつθm <90°(第3の閾値)となるものを
抽出し、抽出された周辺画素と補間対象画素との空間距
離の比率による加重平均を求め、これを補間対象画素の
色度とする。
If D 1 ≧ 30, it is determined that C 1 is a color, and then D m ≧ 30 (m: 2
~n), and theta m extracts made with <90 ° (third threshold), extracted peripheral pixel and obtains a weighted average according to the ratio of the spatial distance between the interpolation target pixel, the interpolation target pixel so Chromaticity.

【0090】さらに、上記周辺画素C1 がグレースケー
ルの場合、カラーの場合共に、条件を満たすDm が抽出
されなければ、C1 を補間対象画素の色度とする。
[0090] Further, when the peripheral pixel C 1 is gray-scale, both for color, if satisfying D m are extracted, the C 1 and chromaticity of the interpolation target pixel.

【0091】以上のように、本実施の形態に係る画像処
理装置は、第1の色空間(RGB)で表された多値のカ
ラー画像データを、第2の色空間(L* * * )で表
されたデータに変換する第1色変換処理部4と、補間対
象画素の周辺の既存画素から、補間対象画素の画素値の
演算に使用される複数の周辺画素(もしくは選択画素)
を選択する周辺画素選択部5と、上記周辺画素の輝度情
報(L* * * )および/または色情報(a* *
に基づいて、上記補間対象画素の画素値を演算する時の
演算方法を決定する輝度関係演算部6および色関係演算
部7と、上記輝度関係演算部6および色関係演算部7に
よって決定された演算方法を用いて、上記補間対象画素
の補間処理を行う画素補間部8とを含む。
As described above, the image processing apparatus according to the present embodiment converts multi-valued color image data represented by the first color space (RGB) into the second color space (L * a * b). * ) The first color conversion processing unit 4 that converts the data into the data represented by ( ), and a plurality of peripheral pixels (or selected pixels) used for calculating the pixel value of the interpolation target pixel from the existing pixels around the interpolation target pixel
And luminance information (L * a * b * ) and / or color information (a * b * ) of the peripheral pixels.
And a luminance relation calculation unit 6 and a color relation calculation unit 7 that determine a calculation method when calculating the pixel value of the interpolation target pixel based on the luminance relation calculation unit 6 and the color relation calculation unit 7. A pixel interpolating unit 8 that performs an interpolation process on the interpolation target pixel by using a calculation method.

【0092】また、上記画像処理装置は、さらに、上記
第2の色空間で表された画像データを、上記第2の色空
間とは異なる第3の色空間に変換する第2色変換処理部
9を備えている。
Further, the image processing apparatus further comprises a second color conversion processing unit for converting the image data represented in the second color space into a third color space different from the second color space. 9 is provided.

【0093】また、上記第1色変換処理部4は、第1の
色空間で表された多値のカラー画像データを、第2の色
空間として均等色空間に変換する構成とすることが好ま
しい。
It is preferable that the first color conversion processing unit 4 converts multi-valued color image data expressed in the first color space into a uniform color space as a second color space. .

【0094】上記の構成によれば、第1の色空間で表さ
れた画像データを、輝度および色の関係を求めやすい第
2の色空間に変換してから補間演算を行うことにより、
輝度および色の関係毎に異なる補間演算を行うことが可
能となり、色ずれや色のにじみやボケのない解像度変換
が可能となる。
According to the above arrangement, the image data expressed in the first color space is converted into the second color space in which the relationship between luminance and color can be easily obtained, and then interpolation is performed.
Different interpolation calculations can be performed for each relationship between luminance and color, and resolution conversion without color shift, color bleeding, or blurring can be performed.

【0095】また、このとき、補間対象画素の周辺の既
存画素から周辺画素を選択し、該周辺画素の輝度情報お
よび/または色情報に基づいて、上記補間対象画素に対
する補間演算方法を変更することによって、画像に部分
的特徴に応じた適切な補間演算方法によって補間処理が
行える。
At this time, a peripheral pixel is selected from existing pixels around the pixel to be interpolated, and the interpolation calculation method for the pixel to be interpolated is changed based on luminance information and / or color information of the peripheral pixel. Accordingly, the interpolation processing can be performed by an appropriate interpolation calculation method according to the partial feature of the image.

【0096】また、全ての補間対象画素に対する補間処
理が終了し、解像度変換がなされた画像データは、プリ
ンタやディスプレイ等の出力装置(または表示装置)に
おいて出力または表示される際、輝度情報と色情報とか
らなる上記第2の色空間で表されたデータ形式のままで
は出力処理が行えず、例えば、CMY色空間等の第3の
色空間に変換される必要がある。ここで、上記第2の色
空間で表された画像データを第3の色空間に変換する処
理を出力装置側で行わせることも可能であるが、上記変
換処理を本画像処理装置側で行うことにより、このよう
な変換機能を有していない出力装置においても上記画像
データの出力処理が可能となる。
When the interpolation processing for all the pixels to be interpolated is completed and the resolution-converted image data is output or displayed on an output device (or display device) such as a printer or a display, the luminance information and the color information are obtained. Output processing cannot be performed in the data format represented by the second color space including information, and the data needs to be converted to a third color space such as a CMY color space. Here, the process of converting the image data represented in the second color space into the third color space can be performed on the output device side, but the conversion process is performed on the image processing device side. Thus, the output processing of the image data can be performed even in an output device having no such conversion function.

【0097】さらに、上記画像処理装置では、第2の色
空間として均等色空間を使用することにより、選択され
た周辺画素が補色関係にあったり、グレースケールとカ
ラーの関係にあったりする場合、均等色空間の中心点か
らの各周辺画素の角度および距離によって、これを容易
に求めることができ、適切な補間演算方法を求めること
ができる。
Further, in the above image processing apparatus, by using a uniform color space as the second color space, when the selected peripheral pixels have a complementary color relationship or a gray scale and color relationship, This can be easily obtained from the angle and distance of each peripheral pixel from the center point of the uniform color space, and an appropriate interpolation calculation method can be obtained.

【0098】また、上記画像処理装置においては、上記
輝度関係演算部6および色関係演算部7は、上記周辺画
素選択部5によって選択された複数の周辺画素の中で、
補間対象画素に最も近い周辺画素との輝度差が予め設定
された第1の閾値未満となる周辺画素が存在する場合、
補間対象画素の輝度値の補間演算方法として線形補間方
法を選択し、上記画素補間部8は、この場合に、上記周
辺画素選択部5によって選択された複数の周辺画素の中
で、補間対象画素に最も近い周辺画素の輝度値と、この
補間対象画素に最も近い周辺画素との輝度差が予め設定
された第1の閾値未満となる周辺画素の輝度値とを用い
て線形補間を行い、上記補間対象画素の輝度値を決定す
る構成とすることができる。
Further, in the image processing apparatus, the luminance-related operation unit 6 and the color-related operation unit 7 include, among the plurality of peripheral pixels selected by the peripheral pixel selection unit 5,
When there is a peripheral pixel whose luminance difference from the peripheral pixel closest to the interpolation target pixel is smaller than a preset first threshold value,
A linear interpolation method is selected as an interpolation calculation method for the luminance value of the pixel to be interpolated. In this case, the pixel interpolating unit 8 selects the pixel to be interpolated among the plurality of peripheral pixels selected by the peripheral pixel selecting unit 5. Linear interpolation using the luminance value of the peripheral pixel closest to the pixel and the luminance value of the peripheral pixel whose luminance difference between the peripheral pixel closest to the interpolation target pixel is less than a preset first threshold. A configuration for determining the luminance value of the pixel to be interpolated may be employed.

【0099】この場合、輝度差の小さい(輝度差が第1
の閾値未満)周辺画素の輝度値を用いて線形補間が行わ
れるが、輝度差が小さいことはこれらの周辺画素間にエ
ッジが存在しないことを示しており、線形補間によって
滑らかな変化を表現することができる。
In this case, the luminance difference is small (the luminance difference is
Linear interpolation is performed using the luminance values of the peripheral pixels. A small luminance difference indicates that there is no edge between these peripheral pixels, and a smooth change is expressed by the linear interpolation. be able to.

【0100】また、上記画像処理装置においては、上記
輝度関係演算部6および色関係演算部7は、上記周辺画
素選択部5によって選択された複数の周辺画素の中で、
補間対象画素に最も近い周辺画素との輝度差が上記第1
の閾値未満となる周辺画素がなかった場合に、補間対象
画素に最も近い周辺画素の輝度値を上記補間対象画素の
輝度値として代入する補間演算方法を選択する。
Further, in the image processing apparatus, the luminance-related operation unit 6 and the color-related operation unit 7 include, among the plurality of peripheral pixels selected by the peripheral pixel selection unit 5,
The luminance difference between the pixel closest to the interpolation target pixel and the peripheral pixel is the first pixel.
When there is no peripheral pixel having a value less than the threshold value, the interpolation calculation method of substituting the luminance value of the peripheral pixel closest to the interpolation target pixel as the luminance value of the interpolation target pixel is selected.

【0101】すなわち、選択された複数の周辺画素の輝
度差が大きい場合、周辺画素間にエッジが存在すること
になり、補間対象画素に最も近い周辺画素の輝度値を上
記補間対象画素の輝度値としてそのまま代入することに
より、エッジを保存した補間処理が行える。
That is, when the luminance difference between the selected plurality of peripheral pixels is large, an edge exists between the peripheral pixels, and the luminance value of the peripheral pixel closest to the interpolation target pixel is calculated as the luminance value of the interpolation target pixel. By substituting as it is, interpolation processing that preserves edges can be performed.

【0102】また、上記周辺画素選択部5では、さら
に、周辺画素の中から補間対象画素に近い2個の選択画
素を選択し、上記輝度関係演算部6において補間対象画
素の輝度に関する補間演算方法を決定するにあたって
は、均等色空間の輝度軸上における上記2点の選択画素
間の距離を用いて求めることもできる。
Further, the peripheral pixel selecting unit 5 further selects two selected pixels near the pixel to be interpolated from the peripheral pixels, and the luminance relation computing unit 6 performs an interpolation operation method relating to the luminance of the pixel to be interpolated. Can be determined using the distance between the two selected pixels on the luminance axis in the uniform color space.

【0103】このとき、均等色空間の輝度軸上における
上記2点の選択画素間の距離が一定以上離れていた場合
には、補間対象画素に最も近い位置の選択画素の輝度を
補間対象画素の輝度とする。そして、均等色空間の輝度
軸上における上記2点の選択画素間の距離が一定値未満
であった場合には、補間対象画素の輝度は、上記2個の
選択画素の輝度から線形補間によって求めるものとす
る。
At this time, if the distance between the two selected pixels on the luminance axis of the uniform color space is more than a certain distance, the luminance of the selected pixel closest to the pixel to be interpolated is Let it be luminance. If the distance between the two selected pixels on the luminance axis of the uniform color space is less than a certain value, the luminance of the interpolation target pixel is obtained from the luminance of the two selected pixels by linear interpolation. Shall be.

【0104】輝度情報は色ずれには直接影響しないよう
に思えるが、色情報が近いものであっても、輝度が大き
く異なる場合には、その間にエッジが存在することにな
り、それを線形補間すると、色のにじみやボケが発生す
る可能性がある。このため、輝度については距離のパラ
メータを用いることにより、2つの選択画素間の距離が
遠いほど明るさの差があることから、エッジが存在する
ことになり、補間する輝度として、どのような明るさに
するのが一番良いかがわかりやすくなる。
Although it seems that the luminance information does not directly affect the color shift, even if the color information is close, if the luminance is significantly different, an edge exists between them, and it is linearly interpolated. Then, color bleeding or blurring may occur. For this reason, by using the distance parameter for the luminance, since the difference in brightness increases as the distance between the two selected pixels increases, an edge exists, and any brightness is used as the luminance to be interpolated. It will be easier to understand which is best.

【0105】すなわち、輝度が一定以上の差があるとい
うことは、その間にエッジがあると考えられるため、N
Nと同様の処理を行うことにより、色のにじみやボケを
防ぐことができる。
That is, the fact that there is a difference in luminance over a certain level means that there is an edge between them.
Performing the same processing as N can prevent color bleeding and blurring.

【0106】また、上記画像処理装置においては、上記
輝度関係演算部6および色関係演算部7は、上記周辺画
素選択部5によって選択された複数の周辺画素の中で、
補間対象画素に最も近い周辺画素の色度値を示す第1の
パラメータ(例えば、色度図上の中心点と、該色度図上
で周辺画素の位置を示す点との距離)が予め設定された
第2の閾値以上であり、他に、第1のパラメータが予め
設定された第2の閾値以上であり、かつ、補間対象画素
に最も近い周辺画素との色差を示す第2のパラメータが
予め設定された第3の閾値以上となる周辺画素が存在す
る場合、補間対象画素の色度値の補間演算方法として線
形補間方法を選択し、上記画素補間部8は、この場合
に、上記周辺画素選択部5によって選択された複数の周
辺画素の中で、補間対象画素に最も近い周辺画素の色度
値と、第1のパラメータが予め設定された第2の閾値以
上であり、かつ、補間対象画素に最も近い周辺画素との
色差を示す第2のパラメータが予め設定された第3の閾
値以上となる周辺画素の色度値とを用いて線形補間を行
い、上記補間対象画素の輝度値を決定する構成とするこ
とができる。
Further, in the image processing apparatus, the luminance-related operation unit 6 and the color-related operation unit 7 include, among the plurality of peripheral pixels selected by the peripheral pixel selection unit 5,
A first parameter (for example, a distance between a center point on the chromaticity diagram and a point indicating the position of the peripheral pixel on the chromaticity diagram) indicating the chromaticity value of the peripheral pixel closest to the interpolation target pixel is preset. The second parameter that is equal to or greater than the second threshold that has been set and the first parameter is equal to or greater than the second threshold that is set in advance and that indicates the color difference with the nearest pixel closest to the pixel to be interpolated is When there is a peripheral pixel that is equal to or greater than the third threshold value set in advance, the linear interpolation method is selected as the interpolation calculation method of the chromaticity value of the pixel to be interpolated. The chromaticity value of the peripheral pixel closest to the interpolation target pixel among the plurality of peripheral pixels selected by the pixel selection unit 5 and the first parameter are equal to or greater than a second threshold set in advance, and the interpolation is performed. A second pattern indicating a color difference from a peripheral pixel closest to the target pixel. Performs linear interpolation by using the chromaticity value of the surrounding pixel meter is the third threshold value or more set in advance, it may be configured to determine the luminance value of the interpolation target pixel.

【0107】この場合、補間対象画素に最も近い周辺画
素の色度が大きく(第1のパラメータが第2の閾値以
上)、他に色度の大きく且つ補間対象画素に最も近い周
辺画素と近い色の周辺画素が存在する場合、これらの周
辺画素のみを用いて線形補間によって補間対象画素の色
度を求めることにより、滑らかな変化を表現することが
できる。
In this case, the chromaticity of the peripheral pixel closest to the pixel to be interpolated is large (the first parameter is equal to or more than the second threshold), and the color of the chromaticity that is large and close to the peripheral pixel closest to the pixel to be interpolated is When there are peripheral pixels, the smooth change can be expressed by obtaining the chromaticity of the interpolation target pixel by linear interpolation using only these peripheral pixels.

【0108】また、上記画像処理装置においては、上記
輝度関係演算部6および色関係演算部7は、上記周辺画
素選択部5によって選択された複数の周辺画素の中で、
補間対象画素に最も近い周辺画素の色度値を示す第1の
パラメータが予め設定された第2の閾値以上であり、他
に、第1のパラメータが予め設定された第2の閾値以上
であり、かつ、補間対象画素に最も近い周辺画素との色
差を示す第2のパラメータが予め設定された第3の閾値
以上となる周辺画素がなかった場合、補間対象画素に最
も近い周辺画素の色度値を上記補間対象画素の色度値と
して代入する補間演算方法を選択する。
In the image processing apparatus, the luminance-related operation unit 6 and the color-relation operation unit 7 include a plurality of peripheral pixels selected by the peripheral pixel selection unit 5.
The first parameter indicating the chromaticity value of the peripheral pixel closest to the interpolation target pixel is equal to or greater than a preset second threshold, and the first parameter is equal to or greater than the preset second threshold. And if there is no peripheral pixel whose second parameter indicating the color difference from the peripheral pixel closest to the interpolation target pixel is equal to or greater than a preset third threshold, the chromaticity of the peripheral pixel closest to the interpolation target pixel An interpolation calculation method for substituting the value as the chromaticity value of the interpolation target pixel is selected.

【0109】すなわち、選択された複数の周辺画素の色
度差が大きい場合、周辺画素間にエッジが存在すること
になり、補間対象画素に最も近い周辺画素の色度値を上
記補間対象画素の色度値としてそのまま代入することに
より、エッジを保存した補間処理が行える。
That is, when the chromaticity difference between the selected plurality of peripheral pixels is large, an edge exists between the peripheral pixels, and the chromaticity value of the peripheral pixel closest to the interpolation target pixel is calculated as By directly substituting the chromaticity value, an interpolation process that preserves edges can be performed.

【0110】また、上記画像処理装置においては、上記
輝度関係演算部6および色関係演算部7は、上記周辺画
素選択部5によって選択された複数の周辺画素の中で、
補間対象画素に最も近い周辺画素の色度値を示す第1の
パラメータが予め設定された第2の閾値未満であり、他
に、第1のパラメータが予め設定された第2の閾値未満
となる周辺画素が存在する場合、補間対象画素の色度値
の補間演算方法として線形補間方法を選択し、上記画素
補間部8は、この場合に、上記周辺画素選択部5によっ
て選択された複数の周辺画素の中で、補間対象画素に最
も近い周辺画素の色度値と、第1のパラメータが予め設
定された第2の閾値未満となる周辺画素の色度値とを用
いて線形補間を行い、上記補間対象画素の輝度値を決定
する構成とすることができる。
Further, in the image processing apparatus, the luminance-related operation unit 6 and the color-related operation unit 7 include, among the plurality of peripheral pixels selected by the peripheral pixel selection unit 5,
The first parameter indicating the chromaticity value of the peripheral pixel closest to the interpolation target pixel is less than a preset second threshold, and the first parameter is also less than a preset second threshold. If there is a peripheral pixel, a linear interpolation method is selected as an interpolation calculation method of the chromaticity value of the interpolation target pixel. In this case, the pixel interpolation unit 8 selects the plurality of peripheral pixels selected by the peripheral pixel selection unit 5. Among the pixels, linear interpolation is performed using a chromaticity value of a peripheral pixel closest to the interpolation target pixel and a chromaticity value of a peripheral pixel whose first parameter is less than a preset second threshold value, It is possible to adopt a configuration for determining the luminance value of the interpolation target pixel.

【0111】この場合、補間対象画素に最も近い周辺画
素の色度が小さく(第1のパラメータが第2の閾値未
満)、他に色度の小さい周辺画素が存在する場合、これ
らの色度が小さい周辺画素のみを用いて線形補間によっ
て補間対象画素の色度を求めることにより、滑らかな変
化を表現することができる。
In this case, when the chromaticity of the peripheral pixel closest to the pixel to be interpolated is small (the first parameter is smaller than the second threshold value), and there are other peripheral pixels with small chromaticity, these chromaticities are reduced. By obtaining the chromaticity of the pixel to be interpolated by linear interpolation using only small peripheral pixels, a smooth change can be expressed.

【0112】また、上記画像処理装置においては、上記
輝度関係演算部6および色関係演算部7は、上記周辺画
素選択部5によって選択された複数の周辺画素の中で、
補間対象画素に最も近い周辺画素の色度値を示す第1の
パラメータが予め設定された第2の閾値未満であり、他
に、第1のパラメータが予め設定された第2の閾値未満
となる周辺画素がなかった場合、補間対象画素に最も近
い周辺画素の色度値を上記補間対象画素の色度値として
代入する補間演算方法を選択する。
Further, in the image processing apparatus, the luminance-related operation unit 6 and the color-related operation unit 7 include the plurality of peripheral pixels selected by the peripheral pixel selecting unit 5.
The first parameter indicating the chromaticity value of the peripheral pixel closest to the interpolation target pixel is less than a preset second threshold, and the first parameter is also less than a preset second threshold. If there is no peripheral pixel, an interpolation calculation method of substituting the chromaticity value of the peripheral pixel closest to the interpolation target pixel as the chromaticity value of the interpolation target pixel is selected.

【0113】すなわち、選択された複数の周辺画素の色
度差が大きい場合、周辺画素間にエッジが存在すること
になり、補間対象画素に最も近い周辺画素の色度値を上
記補間対象画素の色度値としてそのまま代入することに
より、エッジを保存した補間処理が行える。
That is, if the chromaticity difference between the selected plurality of peripheral pixels is large, an edge exists between the peripheral pixels, and the chromaticity value of the peripheral pixel closest to the interpolation target pixel is calculated as By directly substituting the chromaticity value, an interpolation process that preserves edges can be performed.

【0114】また、上記周辺画素選択部5では、さら
に、周辺画素の中から補間対象画素に近い2個の選択画
素を選択し、上記色関係演算部7において補間対象画素
の色度に関する補間演算方法を決定するにあたっては、
均等色空間の色度図平面からの中心点からの各選択画素
の距離(第1のパラメータ)、および上記色度図平面の
中心点とこれらの選択画素とを結んで切る直線間の角度
(第2のパラメータ:内角)を用いて求めることもでき
る。
Further, the peripheral pixel selecting section 5 further selects two selected pixels close to the interpolation target pixel from the peripheral pixels, and the color relation calculating section 7 performs an interpolation operation on the chromaticity of the interpolation target pixel. When deciding on a method,
The distance (first parameter) of each selected pixel from the center point from the chromaticity diagram plane of the uniform color space, and the angle between straight lines connecting the center point of the chromaticity diagram plane and these selected pixels ( (Second parameter: interior angle).

【0115】このとき、上記第1のパラメータが共に一
定値未満であった場合、または、上記第1のパラメータ
が共に一定値以上で、かつ第2のパラメータが一定角度
未満であった場合には、補間対象画素の色度は、上記2
個の選択画素の色度から線形補間によって求めるものと
する。そして、上記第1のパラメータが共に一定値以上
で、かつ第2のパラメータが一定角度以上であった場
合、または、上記第1のパラメータの一方が一定値以上
で他方が一定値未満であった場合には、補間対象画素に
最も近い位置の選択画素の色度を補間対象画素の色度と
する。
At this time, if both the first parameters are less than a certain value, or if both the first parameters are more than a certain value and the second parameter is less than a certain angle, , The chromaticity of the interpolation target pixel is 2
It is determined by linear interpolation from the chromaticities of the selected pixels. If both the first parameters are equal to or more than a certain value and the second parameters are equal to or more than a certain angle, or one of the first parameters is equal to or more than a certain value and the other is less than a certain value. In this case, the chromaticity of the selected pixel closest to the interpolation target pixel is set as the chromaticity of the interpolation target pixel.

【0116】以上のような画像処理装置において実施さ
れる画像処理方法により、色ずれや色のにじみ、ボケを
抑えた解像度変換が可能となり、より高画質な出力画像
が得られるようになる。
With the image processing method implemented in the image processing apparatus as described above, it is possible to perform resolution conversion while suppressing color misregistration, color bleeding and blurring, and to obtain a higher quality output image.

【0117】[0117]

【発明の効果】本発明の画像処理装置は、以上のよう
に、第1の色空間で表された多値のカラー画像データ
を、上記第1の色空間とは異なる第2の色空間で表され
た、輝度情報と色情報とからなるデータに変換する第1
の色変換手段と、補間対象画素の周辺の既存画素から、
補間対象画素の画素値の演算に使用される複数の演算用
画素を選択する選択手段と、上記演算用画素の輝度情報
および/または色情報に基づいて、上記補間対象画素の
画素値を演算する時の演算方法を決定する演算方法決定
手段と、上記演算方法決定手段によって決定された演算
方法を用いて、上記補間対象画素の補間処理を行う補間
手段とを含む構成である。
As described above, the image processing apparatus according to the present invention converts multi-valued color image data represented in the first color space into a second color space different from the first color space. First, which is converted into data represented by luminance information and color information
Color conversion means and existing pixels around the interpolation target pixel,
Selecting means for selecting a plurality of calculation pixels used for calculation of the pixel value of the interpolation target pixel; and calculating the pixel value of the interpolation target pixel based on luminance information and / or color information of the calculation pixel. It is configured to include a calculation method determining means for determining a calculation method at the time, and an interpolation means for performing an interpolation process on the interpolation target pixel using the calculation method determined by the calculation method determination means.

【0118】また、上記画像処理装置は、さらに、上記
第2の色空間で表された画像データを、上記第2の色空
間とは異なる第3の色空間に変換する第2の色変換手段
を備えている構成とすることができる。
Further, the image processing apparatus further includes a second color conversion means for converting the image data represented in the second color space into a third color space different from the second color space. May be provided.

【0119】また、上記第1の色変換手段は、第1の色
空間で表された多値のカラー画像データを、第2の色空
間として均等色空間に変換すること構成とすることが好
ましい。
It is preferable that the first color conversion means converts the multi-valued color image data represented in the first color space into a uniform color space as a second color space. .

【0120】それゆえ、第1の色空間(例えば、RGB
色空間)で表された画像データを、輝度および色の関係
を求めやすい第2の色空間に変換してから補間演算を行
うことにより、輝度および色の関係毎に異なる補間演算
を行うことが可能となり、色ずれや色のにじみやボケの
ない解像度変換が可能となる。
Therefore, the first color space (for example, RGB
By converting the image data expressed in (color space) into a second color space in which the relationship between luminance and color can be easily obtained, an interpolation operation is performed, so that a different interpolation operation can be performed for each relationship between luminance and color. This enables resolution conversion without color shift, color bleeding, or blurring.

【0121】このとき、補間対象画素の周辺の既存画素
から選択される演算用画素の輝度情報および/または色
情報に基づいて、補間演算方法を変更することによっ
て、画像の部分的特徴に応じた適切な補間演算方法によ
って補間処理が行えるという効果を奏する。
At this time, the interpolation calculation method is changed based on the luminance information and / or the color information of the calculation pixels selected from the existing pixels around the interpolation target pixel, so that the partial characteristics of the image can be obtained. There is an effect that the interpolation processing can be performed by an appropriate interpolation calculation method.

【0122】さらに、第2の色空間として均等色空間を
使用することにより、選択された演算用画素が補色関係
にあったり、グレースケールとカラーの関係にあったり
する場合、これを容易に求めることができ、適切な補間
演算方法を求めることができるという効果を奏する。
Further, by using a uniform color space as the second color space, if the selected calculation pixels have a complementary color relationship or a gray scale and color relationship, this is easily obtained. This makes it possible to obtain an appropriate interpolation calculation method.

【0123】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素との輝度差が予め設定された第1の閾値未満とな
る演算用画素が存在する場合、補間対象画素の輝度値の
補間演算方法として線形補間方法を選択し、上記補間手
段は、この場合に、上記選択手段によって選択された複
数の演算用画素の中で、補間対象画素に最も近い演算用
画素の輝度値と、この補間対象画素に最も近い演算用画
素との輝度差が予め設定された第1の閾値未満となる演
算用画素の輝度値とを用いて線形補間を行い、上記補間
対象画素の輝度値を決定する構成とすることができる。
Further, in the above-mentioned image processing apparatus, the calculating method determining means determines in advance the luminance difference between the calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means. When there is an operation pixel having a value less than the set first threshold value, a linear interpolation method is selected as an interpolation operation method of the luminance value of the interpolation target pixel, and in this case, the interpolation unit is selected by the selection unit. Among the calculated plurality of calculation pixels, the luminance value of the calculation pixel closest to the interpolation target pixel and the luminance difference between the calculation pixel closest to the interpolation target pixel are smaller than a preset first threshold value. It is possible to adopt a configuration in which linear interpolation is performed using the luminance value of the calculation pixel to determine the luminance value of the interpolation target pixel.

【0124】この場合、輝度差の小さい演算用画素の輝
度値を用いて線形補間が行われ、これらの演算用画素間
にエッジが存在しない場合に線形補間による滑らかな変
化を表現することができる。
In this case, linear interpolation is performed using the luminance values of the operation pixels having a small difference in luminance, and when no edge exists between these operation pixels, a smooth change by the linear interpolation can be expressed. .

【0125】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素との輝度差が上記第1の閾値未満となる演算用画
素がなかった場合に、補間対象画素に最も近い演算用画
素の輝度値を上記補間対象画素の輝度値として代入する
補間演算方法を選択する構成とできる。
In the above-mentioned image processing apparatus, the calculating method determining means determines that the luminance difference between the calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means is the same. When there is no calculation pixel that is less than the first threshold value, an interpolation calculation method of substituting the luminance value of the calculation pixel closest to the interpolation target pixel as the luminance value of the interpolation target pixel can be selected.

【0126】このように、選択された複数の演算用画素
の輝度差が大きく、演算用画素間にエッジが存在する場
合、補間対象画素に最も近い演算用画素の輝度値を上記
補間対象画素の輝度値としてそのまま代入することによ
り、エッジを保存した補間処理が行える。
As described above, when the luminance difference between the selected plurality of calculation pixels is large and there is an edge between the calculation pixels, the luminance value of the calculation pixel closest to the interpolation target pixel is determined by the luminance value of the interpolation target pixel. By directly substituting it as a luminance value, an interpolation process that preserves edges can be performed.

【0127】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値以上であり、他に、第1のパラメー
タが予め設定された第2の閾値以上であり、かつ、補間
対象画素に最も近い演算用画素との色差を示す第2のパ
ラメータが予め設定された第3の閾値以上となる演算用
画素が存在する場合、補間対象画素の色度値の補間演算
方法として線形補間方法を選択し、上記補間手段は、こ
の場合に、上記選択手段によって選択された複数の演算
用画素の中で、補間対象画素に最も近い演算用画素の色
度値と、第1のパラメータが予め設定された第2の閾値
以上であり、かつ、補間対象画素に最も近い演算用画素
との色差を示す第2のパラメータが予め設定された第3
の閾値以上となる演算用画素の色度値とを用いて線形補
間を行い、上記補間対象画素の色度値を決定する構成と
することができる。
In the image processing apparatus, the calculating method determining means indicates the chromaticity value of the calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means. The first parameter is equal to or greater than a second threshold set in advance, and the first parameter is equal to or greater than the second threshold set in advance. When there is an operation pixel in which the second parameter indicating the color difference is equal to or greater than a preset third threshold value, a linear interpolation method is selected as an interpolation operation method of the chromaticity value of the interpolation target pixel, and the interpolation means In this case, of the plurality of calculation pixels selected by the selection means, the chromaticity value of the calculation pixel closest to the interpolation target pixel and the first parameter are equal to or greater than a predetermined second threshold value. And Third to second parameter indicating a color difference between the closest basis pixel to the interpolation target pixel is set in advance
It is possible to adopt a configuration in which linear interpolation is performed using the chromaticity values of the calculation pixels that are equal to or larger than the threshold value of, and the chromaticity values of the interpolation target pixels are determined.

【0128】この場合、色度が大きく、且つ、互いに近
い色関係にある演算用画素のみを用いて線形補間によっ
て補間対象画素の色度を求めることにより、滑らかな変
化を表現することができる。
In this case, a smooth change can be expressed by obtaining the chromaticity of the pixel to be interpolated by linear interpolation using only the calculation pixels having a large chromaticity and close to each other in color relation.

【0129】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値以上であり、他に、第1のパラメー
タが予め設定された第2の閾値以上であり、かつ、補間
対象画素に最も近い演算用画素との色差を示す第2のパ
ラメータが予め設定された第3の閾値以上となる演算用
画素がなかった場合、補間対象画素に最も近い演算用画
素の色度値を上記補間対象画素の色度値として代入する
補間演算方法を選択する構成とできる。
In the above image processing apparatus, the calculating method determining means indicates a chromaticity value for a calculating pixel closest to the interpolation target pixel among a plurality of calculating pixels selected by the selecting means. The first parameter is equal to or greater than a second threshold set in advance, and the first parameter is equal to or greater than the second threshold set in advance. If there is no calculation pixel for which the second parameter indicating the color difference is equal to or greater than the third threshold value set in advance, the chromaticity value of the calculation pixel closest to the interpolation target pixel is set as the chromaticity value of the interpolation target pixel. A configuration for selecting an interpolation calculation method to be substituted can be adopted.

【0130】このように、選択された複数の演算用画素
の色度差が大きく、演算用画素間にエッジが存在する場
合、補間対象画素に最も近い演算用画素の色度値を上記
補間対象画素の色度値としてそのまま代入することによ
り、エッジを保存した補間処理が行える。
As described above, when the chromaticity difference between the selected plurality of calculation pixels is large and an edge exists between the calculation pixels, the chromaticity value of the calculation pixel closest to the interpolation target pixel is calculated by the interpolation target pixel. By directly substituting as the chromaticity value of the pixel, interpolation processing that preserves edges can be performed.

【0131】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値未満であり、他に、第1のパラメー
タが予め設定された第2の閾値未満となる演算用画素が
存在する場合、補間対象画素の色度値の補間演算方法と
して線形補間方法を選択し、上記補間手段は、この場合
に、上記選択手段によって選択された複数の演算用画素
の中で、補間対象画素に最も近い演算用画素の色度値
と、第1のパラメータが予め設定された第2の閾値未満
となる演算用画素の色度値とを用いて線形補間を行い、
上記補間対象画素の色度値を決定する構成とすることが
できる。
In the image processing apparatus, the calculation method determining means indicates a chromaticity value for a calculation pixel closest to the interpolation target pixel among the plurality of calculation pixels selected by the selection means. When the first parameter is less than the second threshold set in advance and there is another calculation pixel in which the first parameter is less than the second threshold set in advance, the chromaticity of the pixel to be interpolated is A linear interpolation method is selected as a value interpolation calculation method. In this case, the interpolation means selects the chromaticity of the calculation pixel closest to the interpolation target pixel among the plurality of calculation pixels selected by the selection means. Performing linear interpolation using the value and the chromaticity value of the calculation pixel in which the first parameter is less than a preset second threshold value;
The chromaticity value of the interpolation target pixel may be determined.

【0132】この場合、色度が小さい演算用画素のみを
用いて線形補間によって補間対象画素の色度を求めるこ
とにより、滑らかな変化を表現することができる。
In this case, a smooth change can be expressed by obtaining the chromaticity of the pixel to be interpolated by linear interpolation using only the calculation pixels having a small chromaticity.

【0133】また、上記画像処理装置においては、上記
演算方法決定手段は、上記選択手段によって選択された
複数の演算用画素の中で、補間対象画素に最も近い演算
用画素に関して色度値を示す第1のパラメータが予め設
定された第2の閾値未満であり、他に、第1のパラメー
タが予め設定された第2の閾値未満となる演算用画素が
なかった場合、補間対象画素に最も近い演算用画素の色
度値を上記補間対象画素の色度値として代入する補間演
算方法を選択する構成とできる。
In the image processing apparatus, the calculating method determining means indicates a chromaticity value for the calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means. If the first parameter is less than the preset second threshold and there is no other calculation pixel where the first parameter is less than the preset second threshold, the pixel closest to the interpolation target pixel is It is possible to adopt a configuration in which an interpolation calculation method for substituting the chromaticity value of the calculation pixel as the chromaticity value of the interpolation target pixel is selected.

【0134】このように、選択された複数の演算用画素
の色度差が大きく、演算用画素間にエッジが存在する場
合、補間対象画素に最も近い演算用画素の色度値を上記
補間対象画素の色度値としてそのまま代入することによ
り、エッジを保存した補間処理が行える。
As described above, when the chromaticity difference between the selected plurality of calculation pixels is large and there is an edge between the calculation pixels, the chromaticity value of the calculation pixel closest to the interpolation target pixel is determined by the interpolation target pixel. By directly substituting as the chromaticity value of the pixel, interpolation processing that preserves edges can be performed.

【0135】本発明の画像処理方法は、上記の課題を解
決するために、第1の色空間で表された多値のカラー画
像データを、上記第1の色空間とは異なる第2の色空間
で表された、輝度情報と色情報とからなるデータに変換
する第1の工程と、補間対象画素の周辺の既存画素か
ら、補間対象画素の画素値の演算に使用される複数の演
算用画素を選択する第2の工程と、上記演算用画素の輝
度情報および/または色情報に基づいて、上記補間対象
画素の画素値を演算する時の演算方法を決定する第3の
工程と、上記第3の工程によって決定された演算方法を
用いて、上記補間対象画素の演算を行う第4の工程とを
含み、上記第1ないし第4の工程を繰り返し行うことに
よって、全ての補間対象画素に対する補間処理を行って
解像度変換された画像データを得る構成である。
In order to solve the above-mentioned problems, the image processing method of the present invention converts multi-valued color image data represented in a first color space into a second color image data different from the first color space. A first step of converting into data composed of luminance information and color information expressed in space, and a plurality of operations for calculating pixel values of the interpolation target pixel from existing pixels around the interpolation target pixel A second step of selecting a pixel; a third step of determining a calculation method when calculating a pixel value of the interpolation target pixel based on luminance information and / or color information of the calculation pixel; And a fourth step of calculating the interpolation target pixel using the calculation method determined in the third step. By repeating the first to fourth steps, An image whose resolution has been converted by interpolation It is configured to obtain data.

【0136】また、上記画像処理方法は、さらに、上記
第2の色空間で表された解像度変換後の画像データを、
上記第2の色空間とは異なる第3の色空間に変換する第
5の工程を含む構成とすることができる。
Further, the image processing method further includes converting the resolution-converted image data represented in the second color space into
It may be configured to include a fifth step of converting to a third color space different from the second color space.

【0137】また、上記第1の工程では、第2の色空間
として均等色空間を用いることが好ましい。
In the first step, it is preferable to use a uniform color space as the second color space.

【0138】それゆえ、上述の画像処理装置と同様に、
輝度および色の関係毎に異なる補間演算を行うことが可
能となり、色ずれや色のにじみやボケのない解像度変換
が可能となる。また、画像の部分的特徴に応じた適切な
補間演算方法によって補間処理が行える。
Therefore, similar to the above-described image processing apparatus,
Different interpolation calculations can be performed for each relationship between luminance and color, and resolution conversion without color shift, color bleeding, or blurring can be performed. Further, the interpolation processing can be performed by an appropriate interpolation calculation method according to the partial feature of the image.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の位置実施形態を示すものであり、画像
処理装置の構成を示すブロック図である。
FIG. 1 illustrates a position embodiment of the present invention, and is a block diagram illustrating a configuration of an image processing apparatus.

【図2】上記画像処理装置における画像処理方法の主な
流れを示すフローチャートである。
FIG. 2 is a flowchart illustrating a main flow of an image processing method in the image processing apparatus.

【図3】図3(a)〜(c)は、補間対象画素と周辺画
素との配置関係を示す説明図である。
FIGS. 3A to 3C are explanatory diagrams illustrating an arrangement relationship between an interpolation target pixel and peripheral pixels.

【図4】RGB色空間の代表色データをL* * *
空間に変換する時に使用されるテーブルデータを示す説
明図である。
FIG. 4 is an explanatory diagram showing table data used when converting representative color data in an RGB color space into an L * a * b * color space.

【図5】入力画像データの中のある画素に関するRGB
データと、このRGBデータに対して抽出される代表色
との関係を示す説明図である。
FIG. 5 is a diagram illustrating RGB of a certain pixel in input image data.
FIG. 4 is an explanatory diagram showing a relationship between data and representative colors extracted from the RGB data.

【図6】補間対象画素を囲む4点の周辺画素を抽出する
方法を示す説明図である。
FIG. 6 is an explanatory diagram illustrating a method of extracting four peripheral pixels surrounding an interpolation target pixel.

【図7】輝度情報に関する補間演算方法の選択手順を示
すフローチャートである。
FIG. 7 is a flowchart showing a procedure for selecting an interpolation calculation method for luminance information.

【図8】2つの選択画素のL* の位置関係を示す説明図
である。
FIG. 8 is an explanatory diagram showing a positional relationship between L * of two selected pixels.

【図9】線形補間による補間演算方法を示す説明図であ
る。
FIG. 9 is an explanatory diagram showing an interpolation calculation method using linear interpolation.

【図10】補間対象画素に最も近い周辺画素のデータを
補間対象画素に代入して、補間処理を行う方法を示す説
明図である。
FIG. 10 is an explanatory diagram illustrating a method of performing interpolation processing by substituting data of a peripheral pixel closest to the interpolation target pixel into the interpolation target pixel.

【図11】色情報に関する補間演算方法の選択手順を示
すフローチャートである。
FIG. 11 is a flowchart showing a procedure for selecting an interpolation calculation method for color information.

【図12】a* −b* 色度図上での2つの選択画素の位
置関係で求められる距離および角度を示す説明図であ
る。
FIG. 12 is an explanatory diagram showing a distance and an angle obtained based on a positional relationship between two selected pixels on an a * -b * chromaticity diagram.

【図13】L* * * 色空間の代表色データをRGB
色空間に変換する時に使用されるテーブルデータを示す
説明図である。
FIG. 13 shows representative color data of the L * a * b * color space as RGB.
FIG. 4 is an explanatory diagram showing table data used when converting to a color space.

【図14】L* * * 色空間で表された画像データの
中のある画素に関するL* * * データと、このL*
* * データに対して抽出される代表色との関係を示
す説明図である。
FIG. 14*a*b*Of image data expressed in color space
L for a certain pixel in*a*b *Data and this L*
a*b*Indicates the relationship between the data and the representative colors extracted
FIG.

【図15】従来法の1つであるNNの処理例を示す説明
図である。
FIG. 15 is an explanatory diagram showing a processing example of a NN which is one of the conventional methods.

【図16】従来法の1つであるBLの処理例を示す説明
図である。
FIG. 16 is an explanatory diagram showing an example of processing of BL which is one of the conventional methods.

【図17】従来法の1つであるCCの処理例を示す説明
図である。
FIG. 17 is an explanatory diagram showing an example of CC processing which is one of the conventional methods.

【符号の説明】[Explanation of symbols]

1 画像処理装置 4 第1色変換処理部(第1の色変換手段) 5 周辺画素選択部(選択手段) 6 輝度関係演算部(演算方法決定手段) 7 色関係演算部(演算方法決定手段) 8 画素補間部(補間手段) 9 第2色変換処理部(第2の色変換手段) Reference Signs List 1 image processing device 4 first color conversion processing unit (first color conversion unit) 5 peripheral pixel selection unit (selection unit) 6 luminance relation calculation unit (calculation method determination unit) 7 color relation calculation unit (calculation method determination unit) 8 pixel interpolation unit (interpolation means) 9 second color conversion processing unit (second color conversion means)

フロントページの続き Fターム(参考) 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CD06 CE18 CH07 CH08 DB02 DB06 DB09 DC25 5C076 AA26 AA36 BA06 BA07 BB04 5C077 LL19 MP08 PP20 PP32 PP33 PP36 PP47 PP68 PQ12 PQ23 RR19 TT02 5C079 HB01 HB08 HB12 LA37 LB02 MA05 MA11 NA03 PA03 PA05Continued on the front page F term (reference) 5B057 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CD06 CE18 CH07 CH08 DB02 DB06 DB09 DC25 5C076 AA26 AA36 BA06 BA07 BB04 5C077 LL19 MP08 PP20 PP32 PP33 PP36 PP47 PP68 PQ12 PQ01 H085 LA37 LB02 MA05 MA11 NA03 PA03 PA05

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】第1の色空間で表された多値のカラー画像
データを、上記第1の色空間とは異なる第2の色空間で
表された、輝度情報と色情報とからなるデータに変換す
る第1の色変換手段と、 補間対象画素の周辺の既存画素から、補間対象画素の画
素値の演算に使用される複数の演算用画素を選択する選
択手段と、 上記演算用画素の輝度情報および/または色情報に基づ
いて、上記補間対象画素の画素値を演算する時の演算方
法を決定する演算方法決定手段と、 上記演算方法決定手段によって決定された演算方法を用
いて、上記補間対象画素の補間処理を行う補間手段とを
含むことを特徴とする画像処理装置。
1. Multi-valued color image data represented in a first color space is converted into data comprising luminance information and color information represented in a second color space different from the first color space. First color conversion means for converting the pixel data into a plurality of calculation pixels used for calculating the pixel value of the interpolation target pixel from existing pixels around the interpolation target pixel; An arithmetic method determining means for determining an arithmetic method for calculating the pixel value of the interpolation target pixel based on the luminance information and / or the color information; and an arithmetic method determined by the arithmetic method determining means. An image processing apparatus comprising: an interpolation unit that performs an interpolation process on an interpolation target pixel.
【請求項2】さらに、上記第2の色空間で表された画像
データを、上記第2の色空間とは異なる第3の色空間に
変換する第2の色変換手段を備えていることを特徴とす
る請求項1に記載の画像処理装置。
2. The image processing apparatus according to claim 1, further comprising a second color conversion means for converting the image data represented in the second color space into a third color space different from the second color space. The image processing apparatus according to claim 1, wherein:
【請求項3】上記第1の色変換手段は、第1の色空間で
表された多値のカラー画像データを、第2の色空間とし
て均等色空間に変換することを特徴とする請求項1また
は2に記載の画像処理装置。
3. The apparatus according to claim 2, wherein said first color conversion means converts the multi-valued color image data represented in the first color space into a uniform color space as a second color space. 3. The image processing device according to 1 or 2.
【請求項4】上記演算方法決定手段は、上記選択手段に
よって選択された複数の演算用画素の中で、補間対象画
素に最も近い演算用画素との輝度差が予め設定された第
1の閾値未満となる演算用画素が存在する場合、補間対
象画素の輝度値の補間演算方法として線形補間方法を選
択し、 上記補間手段は、この場合に、上記選択手段によって選
択された複数の演算用画素の中で、補間対象画素に最も
近い演算用画素の輝度値と、この補間対象画素に最も近
い演算用画素との輝度差が予め設定された第1の閾値未
満となる演算用画素の輝度値とを用いて線形補間を行
い、上記補間対象画素の輝度値を決定することを特徴と
する請求項1ないし3の何れかに記載の画像処理装置。
4. The method according to claim 1, wherein the calculating method determining means includes a first threshold value having a preset brightness difference from a calculating pixel closest to the interpolation target pixel among the plurality of calculating pixels selected by the selecting means. If there is a calculation pixel that is less than the pixel value, the linear interpolation method is selected as the interpolation calculation method for the luminance value of the pixel to be interpolated. In this case, the interpolation means selects the plurality of calculation pixels selected by the selection means. Among the brightness values of the calculation pixels closest to the interpolation target pixel and the brightness value of the calculation pixels whose brightness difference between the calculation pixel closest to the interpolation target pixel is less than a first threshold value set in advance 4. The image processing apparatus according to claim 1, wherein linear interpolation is performed by using (1) and (2) to determine a luminance value of the pixel to be interpolated.
【請求項5】上記演算方法決定手段は、上記選択手段に
よって選択された複数の演算用画素の中で、補間対象画
素に最も近い演算用画素との輝度差が上記第1の閾値未
満となる演算用画素がなかった場合に、補間対象画素に
最も近い演算用画素の輝度値を上記補間対象画素の輝度
値として代入する補間演算方法を選択することを特徴と
する請求項4に記載の画像処理装置。
5. The computing method determining means, wherein, among the plurality of computing pixels selected by the selecting means, a luminance difference from a computing pixel closest to the interpolation target pixel is less than the first threshold. 5. The image according to claim 4, wherein when there is no operation pixel, an interpolation operation method of substituting the luminance value of the operation pixel closest to the interpolation target pixel as the luminance value of the interpolation target pixel is selected. Processing equipment.
【請求項6】上記演算方法決定手段は、上記選択手段に
よって選択された複数の演算用画素の中で、補間対象画
素に最も近い演算用画素に関して色度値を示す第1のパ
ラメータが予め設定された第2の閾値以上であり、他
に、第1のパラメータが予め設定された第2の閾値以上
であり、かつ、補間対象画素に最も近い演算用画素との
色差を示す第2のパラメータが予め設定された第3の閾
値以上となる演算用画素が存在する場合、補間対象画素
の色度値の補間演算方法として線形補間方法を選択し、 上記補間手段は、この場合に、上記選択手段によって選
択された複数の演算用画素の中で、補間対象画素に最も
近い演算用画素の色度値と、第1のパラメータが予め設
定された第2の閾値以上であり、かつ、補間対象画素に
最も近い演算用画素との色差を示す第2のパラメータが
予め設定された第3の閾値以上となる演算用画素の色度
値とを用いて線形補間を行い、上記補間対象画素の色度
値を決定することを特徴とする請求項1ないし5の何れ
かに記載の画像処理装置。
6. The calculation method determining means sets a first parameter indicating a chromaticity value for a calculation pixel closest to an interpolation target pixel among a plurality of calculation pixels selected by the selection means. A second parameter that is equal to or greater than the second threshold that has been set, and that has a first parameter that is equal to or greater than the second threshold that is set in advance and that indicates a color difference between the pixel for calculation and the pixel closest to the interpolation target pixel. If there is a calculation pixel whose value is equal to or larger than a third threshold value set in advance, a linear interpolation method is selected as an interpolation calculation method for the chromaticity value of the interpolation target pixel. In this case, the interpolation means The chromaticity value of the calculation pixel closest to the interpolation target pixel among the plurality of calculation pixels selected by the means, the first parameter is equal to or greater than a second threshold value set in advance, and Calculation pixel closest to pixel Linear interpolation using a chromaticity value of a pixel for calculation in which a second parameter indicating a color difference between the second pixel and the third pixel is equal to or greater than a third threshold value set in advance to determine a chromaticity value of the pixel to be interpolated. The image processing device according to claim 1, wherein:
【請求項7】上記演算方法決定手段は、上記選択手段に
よって選択された複数の演算用画素の中で、補間対象画
素に最も近い演算用画素に関して色度値を示す第1のパ
ラメータが予め設定された第2の閾値以上であり、他
に、第1のパラメータが予め設定された第2の閾値以上
であり、かつ、補間対象画素に最も近い演算用画素との
色差を示す第2のパラメータが予め設定された第3の閾
値以上となる演算用画素がなかった場合、補間対象画素
に最も近い演算用画素の色度値を上記補間対象画素の色
度値として代入する補間演算方法を選択することを特徴
とする請求項6に記載の画像処理装置。
7. The calculation method determining means sets a first parameter indicating a chromaticity value for a calculation pixel closest to an interpolation target pixel among a plurality of calculation pixels selected by the selection means. A second parameter that is equal to or greater than the second threshold that has been set, and that has a first parameter that is equal to or greater than the second threshold that is set in advance and that indicates a color difference between the pixel for calculation and the pixel closest to the interpolation target pixel. If there is no calculation pixel whose value is equal to or larger than the third threshold value set in advance, an interpolation calculation method of substituting the chromaticity value of the calculation pixel closest to the interpolation target pixel as the chromaticity value of the interpolation target pixel is selected. The image processing apparatus according to claim 6, wherein:
【請求項8】上記演算方法決定手段は、上記選択手段に
よって選択された複数の演算用画素の中で、補間対象画
素に最も近い演算用画素に関して色度値を示す第1のパ
ラメータが予め設定された第2の閾値未満であり、他
に、第1のパラメータが予め設定された第2の閾値未満
となる演算用画素が存在する場合、補間対象画素の色度
値の補間演算方法として線形補間方法を選択し、 上記補間手段は、この場合に、上記選択手段によって選
択された複数の演算用画素の中で、補間対象画素に最も
近い演算用画素の色度値と、第1のパラメータが予め設
定された第2の閾値未満となる演算用画素の色度値とを
用いて線形補間を行い、上記補間対象画素の色度値を決
定することを特徴とする請求項1ないし7の何れかに記
載の画像処理装置。
8. The calculation method determining means sets a first parameter indicating a chromaticity value for a calculation pixel closest to an interpolation target pixel among a plurality of calculation pixels selected by the selection means. If there is an operation pixel whose first parameter is less than the second threshold that is less than the second threshold that has been set in advance, the linear interpolation method for the chromaticity value of the pixel to be interpolated is present. In this case, the interpolation means selects the interpolation method, and in this case, among the plurality of calculation pixels selected by the selection means, the chromaticity value of the calculation pixel closest to the interpolation target pixel and the first parameter 8. A linear interpolation is performed using a chromaticity value of a pixel for calculation that is smaller than a second threshold value set in advance to determine a chromaticity value of the pixel to be interpolated. The image processing device according to any one of the above.
【請求項9】上記演算方法決定手段は、上記選択手段に
よって選択された複数の演算用画素の中で、補間対象画
素に最も近い演算用画素に関して色度値を示す第1のパ
ラメータが予め設定された第2の閾値未満であり、他
に、第1のパラメータが予め設定された第2の閾値未満
となる演算用画素がなかった場合、補間対象画素に最も
近い演算用画素の色度値を上記補間対象画素の色度値と
して代入する補間演算方法を選択することを特徴とする
請求項8に記載の画像処理装置。
9. The calculation method determining means sets a first parameter indicating a chromaticity value for a calculation pixel closest to an interpolation target pixel among a plurality of calculation pixels selected by the selection means in advance. If there is no other calculation pixel whose first parameter is smaller than the second threshold value set in advance, the chromaticity value of the calculation pixel closest to the interpolation target pixel The image processing apparatus according to claim 8, wherein an interpolation calculation method is selected, in which is substituted as a chromaticity value of the interpolation target pixel.
【請求項10】第1の色空間で表された多値のカラー画
像データを、上記第1の色空間とは異なる第2の色空間
で表された、輝度情報と色情報とからなるデータに変換
する第1の工程と、 補間対象画素の周辺の既存画素から、補間対象画素の画
素値の演算に使用される複数の演算用画素を選択する第
2の工程と、 上記演算用画素の輝度情報および/または色情報に基づ
いて、上記補間対象画素の画素値を演算する時の演算方
法を決定する第3の工程と、 上記第3の工程によって決定された演算方法を用いて、
上記補間対象画素の演算を行う第4の工程とを含み、 上記第1ないし第4の工程を繰り返し行うことによっ
て、全ての補間対象画素に対する補間処理を行って解像
度変換された画像データを得ることを特徴とする画像処
理方法。
10. Multi-valued color image data represented in a first color space is converted into data comprising luminance information and color information represented in a second color space different from the first color space. A second step of selecting a plurality of calculation pixels used for calculating a pixel value of the interpolation target pixel from existing pixels around the interpolation target pixel; and A third step of determining a calculation method when calculating the pixel value of the pixel to be interpolated based on the luminance information and / or the color information; and a calculation method determined by the third step.
And a fourth step of calculating the pixel to be interpolated, wherein the first to fourth steps are repeated to perform interpolation processing on all the pixels to be interpolated to obtain resolution-converted image data. An image processing method characterized by the following.
【請求項11】さらに、上記第2の色空間で表された解
像度変換後の画像データを、上記第2の色空間とは異な
る第3の色空間に変換する第5の工程を含むことを特徴
とする請求項10に記載の画像処理方法。
11. A method according to claim 11, further comprising the step of: converting the resolution-converted image data represented in the second color space into a third color space different from the second color space. The image processing method according to claim 10, wherein:
【請求項12】上記第1の工程では、第2の色空間とし
て均等色空間を用いることを特徴とする請求項10また
は11に記載の画像処理方法。
12. The image processing method according to claim 10, wherein in the first step, a uniform color space is used as the second color space.
JP35210599A 1999-12-10 1999-12-10 Picture processor and picture processing method Pending JP2001169097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP35210599A JP2001169097A (en) 1999-12-10 1999-12-10 Picture processor and picture processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP35210599A JP2001169097A (en) 1999-12-10 1999-12-10 Picture processor and picture processing method

Publications (1)

Publication Number Publication Date
JP2001169097A true JP2001169097A (en) 2001-06-22

Family

ID=18421823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP35210599A Pending JP2001169097A (en) 1999-12-10 1999-12-10 Picture processor and picture processing method

Country Status (1)

Country Link
JP (1) JP2001169097A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011505724A (en) * 2007-11-14 2011-02-24 マイクロソフト コーポレーション Adaptive filtering for image transformation processing.
JP2016048828A (en) * 2014-08-27 2016-04-07 沖電気工業株式会社 Information processing device, information processing method, and program
CN109523469A (en) * 2018-11-16 2019-03-26 深圳朗田亩半导体科技有限公司 Image-scaling method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011505724A (en) * 2007-11-14 2011-02-24 マイクロソフト コーポレーション Adaptive filtering for image transformation processing.
JP2016048828A (en) * 2014-08-27 2016-04-07 沖電気工業株式会社 Information processing device, information processing method, and program
CN109523469A (en) * 2018-11-16 2019-03-26 深圳朗田亩半导体科技有限公司 Image-scaling method and device
CN109523469B (en) * 2018-11-16 2022-12-27 深圳朗田亩半导体科技有限公司 Image scaling method and device

Similar Documents

Publication Publication Date Title
KR100791375B1 (en) Apparatus and method for color correction
JPH0730772A (en) Image processor
JP3253125B2 (en) Color image reading correction device
JPH0730774A (en) Preparation of region descriptor and its device
US7146042B2 (en) Image processing apparatus and colorimetric system conversion method
CN110852953B (en) Image interpolation method and device, storage medium, image signal processor and terminal
JP4321064B2 (en) Image processing apparatus and image processing program
US7679780B2 (en) Method of producing a color conversion table, image processing apparatus, method of image processing, image forming apparatus and recording media
JP2002304621A (en) High-speed interpolation of large color look-up table
US7944584B2 (en) Color-converting device
JP3458080B2 (en) Color imaging device
EP2202682A1 (en) Image generation method, device, its program and program recorded medium
JP2010074317A (en) Image processor, image processing program, and image processing method
JP2001169097A (en) Picture processor and picture processing method
JP4977050B2 (en) Video signal conversion device, video display device, and video signal conversion method
JP2002010279A (en) Interpolation processor and recording medium storing interpolation processing program
JP2947017B2 (en) Color conversion method and color conversion device
CN105049820A (en) IMAGE PROCESSING APPARATUS, IMAGING APPARATUS, and IMAGE PROCESSING METHOD
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
US7127118B2 (en) System and method for compressing image files while preserving visually significant aspects
JP2000354171A (en) Color gamut compressor and color gamut compression method
JPH0814843B2 (en) Color conversion method and color conversion device
JP2005269443A (en) Method and apparatus for image processing, program and recording medium
JP2601265B2 (en) Color correction method
JPH10191089A (en) Color converter, color printer, color image data output device and recording medium