JPH01126076A - Color image processing method - Google Patents

Color image processing method

Info

Publication number
JPH01126076A
JPH01126076A JP62285115A JP28511587A JPH01126076A JP H01126076 A JPH01126076 A JP H01126076A JP 62285115 A JP62285115 A JP 62285115A JP 28511587 A JP28511587 A JP 28511587A JP H01126076 A JPH01126076 A JP H01126076A
Authority
JP
Japan
Prior art keywords
color
data
pixels
correction
color image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP62285115A
Other languages
Japanese (ja)
Other versions
JP2658087B2 (en
Inventor
Katsuhisa Tsuji
辻 勝久
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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
Family has litigation
First worldwide family litigation filed litigation Critical https://patents.darts-ip.com/?family=17687311&utm_source=google_patent&utm_medium=platform_link&utm_campaign=public_patent_search&patent=JPH01126076(A) "Global patent litigation dataset” by Darts-ip is licensed under a Creative Commons Attribution 4.0 International License.
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP62285115A priority Critical patent/JP2658087B2/en
Publication of JPH01126076A publication Critical patent/JPH01126076A/en
Application granted granted Critical
Publication of JP2658087B2 publication Critical patent/JP2658087B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To correct the position of a picture element without deteriorating the sharpness of an image by obtaining image data when the other color is shifted prescribed shift quantity for a reference color with the aid of referring the data of the plural picture elements and interpolating it. CONSTITUTION:The image data color-separated to R, G and B and quantized by an input system 1 is sent to an output system 9 through a shading correction circuit 2, a position dislocation correction circuit 3, an MTF correction circuit 4, a (gamma) correction circuit 6, a color correction.UCR circuit 7 and a gradation processing circuit 8. The position dislocation correction circuit 3 outputs the image data when the other color is shifted only the prescribed shift quantity for the reference color by referring the data of the plural picture elements and interpolating it.

Description

【発明の詳細な説明】 技術分野 本発明はカラー画像処理方法に関し、特にディジタルカ
ラー画像読取り装置等に好適な、カラー画像処理方法に
関する。
TECHNICAL FIELD The present invention relates to a color image processing method, and more particularly to a color image processing method suitable for a digital color image reading device and the like.

従来技術 絵柄と文字との混在する原稿では、フルカラー原稿とい
えども、文字は黒色であることが多い。
BACKGROUND OF THE INVENTION In manuscripts containing both pictures and text, the text is often black, even if it is a full-color manuscript.

フルカラー複写機で黒を再現するには、Yellow。To reproduce black on a full-color copier, use Yellow.

M agenta 、 Cyan (以下、rY、M、
CJという)の3色の色材を重ね合わせる。しかし、Y
、M、C3色を重ねても、Y、M、Cのバランスが完全
にとれていなければ、多少の色成分は残ってしまう。ま
た、Y、M、Cの各版の位置合わせが不完全で位置ずれ
があると、文字の如く高解像性が要求される画像では、
著しく画質が劣化する。この不具合の対策として、ディ
ジタルカラー複写機では、Y、M、Cの3色が重なる部
分を黒(BK)で置換えるUCR(下色除去)の適用が
考えられる。
M agenta, Cyan (hereinafter referred to as rY, M,
Layer three color materials (referred to as CJ) on top of each other. However, Y
, M, and C, if Y, M, and C are not perfectly balanced, some color components will remain. In addition, if the alignment of the Y, M, and C plates is incomplete and there is misalignment, images that require high resolution, such as characters,
Image quality deteriorates significantly. As a countermeasure for this problem, in digital color copying machines, it is possible to apply UCR (undercolor removal) in which the overlapping portions of the three colors Y, M, and C are replaced with black (BK).

一方、カラー画像入力方法の例としては、例えば、特開
昭60−187180号公報に開示されたダイクロイッ
クプリズムを用い、3個のCCD上に結像させて色信号
を得る方法が知られている。この方法では、結像光学系
の色収差を完全に無くすることば国是で、原稿の1点が
正確に各CCDの所定の位置に結像せず、従って、読取
った画素信号のカラーバランスが狂うことになる。また
、CCDの位置調整が困難であること、部品数が多く、
コスト高である等の欠点もある。
On the other hand, as an example of a color image input method, a method is known in which a dichroic prism disclosed in Japanese Patent Laid-Open No. 187180/1980 is used to form an image on three CCDs to obtain a color signal. . In this method, it is a national policy to completely eliminate chromatic aberration in the imaging optical system, but one point on the document is not accurately imaged at a predetermined position on each CCD, and therefore the color balance of the read pixel signals is distorted. It turns out. In addition, it is difficult to adjust the position of the CCD, there are many parts,
There are also disadvantages such as high cost.

他の例では、特開昭61−61561号公報に、光電変
換アレイの素子にRed、 Green、 B 1ue
(以下、rR。
In another example, in Japanese Patent Application Laid-Open No. 61-61561, elements of a photoelectric conversion array include Red, Green, and Blue.
(Hereinafter referred to as rR.

G、BJという)のフィルタを規則的に配して、位置調
整および部品点数の問題を解消するようにしたものがあ
る。この方法は、R,G、Hの受光体が互いにずれてい
るために、原画の同一点のデータを読取ることはできず
、色補正処理や前記UCR処理等が正確に行えないとい
う別の問題を有するものであった。
There is a system in which filters (referred to as G and BJ) are arranged regularly to solve the problem of position adjustment and number of parts. Another problem with this method is that because the R, G, and H photoreceptors are shifted from each other, data at the same point on the original image cannot be read, and color correction processing and the UCR processing cannot be performed accurately. It had a

この問題に対しては1本出願人が、先に特願昭61−1
94712号「カラー画像処理方法」により提案した方
法がある。この方法は、上述の、色分解フィルタを規則
的に並べた一次元カラー撮像素子を用いる画像読取り装
置におい〜で、画像の位置を高精度に読取るために、R
,G、B間のドツト位置のずれを、隣接する2画素のデ
ータを用いて直線補間することで、所定位置の画像デー
タを得るようにしたものである。この方法では1画素位
置の補正は行うことができるが、直線補間をすることは
重み付は平均をとることであり、ディジタルフィルタと
してローパス特性を持つことになるため、画像の高周波
成分が抑制され、文字、線画等のシャープネスが低下す
るという問題があった。
Regarding this problem, one applicant previously filed a patent application filed in 1986-1.
There is a method proposed in No. 94712 "Color image processing method". This method uses the R
, G, and B by performing linear interpolation using data of two adjacent pixels to obtain image data at a predetermined position. This method can correct one pixel position, but linear interpolation means weighting is taking an average, and it has a low-pass characteristic as a digital filter, so high frequency components of the image are suppressed. , there was a problem that the sharpness of characters, line drawings, etc. deteriorated.

以下、これについて、詳細に説明する。第20図は、G
、B、Rの色分解フィルタを規則的に並べた一次元カラ
ー撮像素子(ラインセンサ)の一部を示している。図に
おいて、n−4〜n+3で示される各画素は、細分する
とG、B、Rの色分解フィルタを持つ3個の微小画素か
ら構成される。この微小画素は主走査方向に連続して配
置されている。
This will be explained in detail below. Figure 20 shows G
, B, and R color separation filters are regularly arranged. In the figure, each pixel indicated by n-4 to n+3 is subdivided into three minute pixels having G, B, and R color separation filters. These minute pixels are arranged continuously in the main scanning direction.

このため、画像のサンプリング点は、G−B、B−B間
で1/3画素、G−B間でみれば2/3画素の位置ずれ
が発生する。この位置ずれの前記UCR処理への影響に
ついて考える。具体的には、サンプリング密度は16d
ot/a+m程度、画像としては、特にUCR処理が問
題となる黒文字では、線の太さが100μm程度である
から、この場合についてサンプリングの様子を示すと第
21図のようになる。
Therefore, the sampling point of the image is shifted by 1/3 pixel between G-B and B-B, and by 2/3 pixel between G-B. Let us consider the influence of this positional shift on the UCR processing. Specifically, the sampling density is 16d
ot/a+m, and as for the image, the thickness of the line is about 100 μm, especially for black characters where UCR processing is a problem, so the sampling situation in this case is shown in FIG. 21.

ここで、説明を簡単にするため、画像の出力値は反射率
リニア、色材、用紙等は理想的な場合を考える。第21
図では、黒線が画素n、n+1にわたっている。各色間
に位置ずれのない理想的なセンサでは、画素n、n+1
の出力値(反射率%)はG、B、Rとも、それぞれ、5
0%、 17%となる。これを、G、B、Rの補色であ
るM、Y、Cの色材を用いて再現する場合には、それぞ
れ、面積率相当で50%、83%の色材を使えば良い。
Here, to simplify the explanation, consider a case where the output value of the image is linear in reflectance, and the coloring material, paper, etc. are ideal. 21st
In the figure, the black line spans pixels n and n+1. In an ideal sensor with no positional deviation between each color, pixels n, n+1
The output value (reflectance %) is 5 for each of G, B, and R.
0%, 17%. When reproducing this using M, Y, and C coloring materials, which are complementary colors of G, B, and R, it is sufficient to use coloring materials having an area ratio of 50% and 83%, respectively.

更にUCR100%処理を行えば、M、Y、Cの最小値
をBKで置換えることができるから、結局、BKのみ5
0%、83%用いれば良いことになる。しかし、現実に
は、R,G、B間に位置ずれがあるため、各色の出力値
は第22図に示すようになって、R,G、Bで一致しな
い。従って、必要なM、Y、Cは第23図に示すように
なり、UCR100%処理を行っても、M、Y、Cおよ
びBKの必要な色材の量は、第24図に示すようになり
、BKI色で再現できなくなるのがわかる。
Furthermore, if you perform UCR100% processing, you can replace the minimum values of M, Y, and C with BK, so in the end, only BK is 5.
It is sufficient to use 0% and 83%. However, in reality, since there is a positional shift between R, G, and B, the output values of each color become as shown in FIG. 22, and do not match among R, G, and B. Therefore, the required M, Y, and C are as shown in Figure 23, and even if UCR 100% processing is performed, the required amounts of M, Y, C, and BK color materials are as shown in Figure 24. You can see that it cannot be reproduced in BKI color.

前記特願昭61−194712号「カラー画像処理方法
」においては、各色間の位置ずれを補正するため。
In the above-mentioned Japanese Patent Application No. 194712/1988 entitled "Color Image Processing Method", the method is used to correct positional deviation between each color.

隣接2画素間のデータを用いて直線補間する。B色のセ
ンサ位置を中心にして考えれば、GおよびR色は、それ
ぞれ、−1/3画素、1/3画素の位置ずれがある。こ
れを直線補間で補正すると、次式%式% ここで、GylyRn−z等は、G色のn番目、R色の
n−1番目の画素の出力値を表わし、On’ p B 
n’ rRn′は補正値を表わす。
Linear interpolation is performed using data between two adjacent pixels. Considering the sensor position of B color as the center, G and R colors have a positional shift of -1/3 pixel and 1/3 pixel, respectively. If this is corrected by linear interpolation, the following formula % Formula % Here, GylyRn-z etc. represent the output value of the n-th pixel of G color and the n-1th pixel of R color, and On' p B
n'rRn' represents a correction value.

上記Gn、Rnの補正処理は、それぞれ、[0,2/3
、l/3]、[1/3.2/3.O]の係数を有する一
次元ディジタルフィルタ処理に等しい、これらのフィル
タの空間周波数特性(MTF)は、離散的フーリエ変換
(DFT)を行うことにより、知ることができる。
The Gn and Rn correction processes described above are [0, 2/3
, l/3], [1/3.2/3. The spatial frequency characteristics (MTF) of these filters, which are equivalent to one-dimensional digital filtering with coefficients [O], can be found by performing a discrete Fourier transform (DFT).

フィルタ特性をf(x)で表わすと、そのDFTは、 U:空間周波数 N:1/ΔX ΔX:サンプリングピッチ m:フィルタサイズ MTF(u)=IF(u)l     ”(3)となる
When the filter characteristic is expressed by f(x), its DFT is as follows: U: Spatial frequency N: 1/ΔX ΔX: Sampling pitch m: Filter size MTF(u)=IF(u)l'' (3).

第25図に、 F(x)=[1/3.2/3,0コ m = 3 Δ x =62.5μm(16dot/am)の場合の
ディジタルフィルタのMTF特性を示す(f(x)=[
0,2/3.1/3コも同じ特性となる)。
Figure 25 shows the MTF characteristics of the digital filter when F(x) = [1/3.2/3,0 cm = 3 Δ x = 62.5 μm (16 dots/am) (f(x) = [
0,2/3.1/3 have the same characteristics).

図からも明らかな通り、このフィルタは、高周波成分の
伝達性が悪く、ローパス特性を持つ。
As is clear from the figure, this filter has poor transmission of high-frequency components and has low-pass characteristics.

従って、このフィルタによって位置ずれ補正を行うこと
により、G、R色の画像の高周波成分が劣化する。すな
わち、G、Hの画像はボケることになり、文字、線画等
のシャープネスが低下してしまう。
Therefore, by correcting the positional deviation using this filter, the high frequency components of the G and R color images are degraded. That is, the G and H images become blurred, and the sharpness of characters, line drawings, etc. decreases.

目     的 本発明は上記事情に鑑みてなされたものゼ、その目的と
するところは、従来の技術における上述の如き諸問題を
解消し1画像のシャープネスを劣化させることなく、画
素位置の補正を行い得るカラー画像処理方法を提供する
ことにある。
Purpose The present invention has been made in view of the above circumstances.Its purpose is to correct the pixel position without deteriorating the sharpness of one image by solving the above-mentioned problems in the conventional technology. An object of the present invention is to provide a color image processing method that obtains a color image.

構   成 本発明の上記目的は、色分解フィルタを規則的に配列し
た一次元カラー撮像素子を用いる画像読取り手段を有す
るカラー画像処理装置において、基準色に対して他色を
所定のシフト量だけシフトした場合の画像データを、複
数の画素のデータを参照して補間することにより求める
如く構成されたことを特徴とするカラー画像処理方法に
よって達成される。
Configuration The above object of the present invention is to provide a color image processing device having an image reading means using a one-dimensional color image sensor in which color separation filters are regularly arranged, in which another color is shifted by a predetermined shift amount with respect to a reference color. This is achieved by a color image processing method characterized in that the color image processing method is configured to obtain image data by interpolating with reference to data of a plurality of pixels.

以下、本発明の詳細な説明した後、実施例に基づいて、
構成をより詳細に説明する。
Hereinafter, after a detailed explanation of the present invention, based on examples,
The configuration will be explained in more detail.

標本化定理より、周波数W以下に帯域制限された一次元
信号g(t)は、 T=1/(2W) 間隔で、すなわち、f、=2Wの標本化周波数で標本化
すれば、次式により、完全に元の信号を復元することが
できる。
From the sampling theorem, if the one-dimensional signal g(t) whose band is limited below the frequency W is sampled at an interval of T=1/(2W), that is, at a sampling frequency of f,=2W, then the following equation is obtained. This allows the original signal to be completely restored.

g(t)=Σg(iT)S(t−iT)・・・・(4)
i=−ω T=1/(2W) 2πWt 本発明に係わるカラー画像処理方法によれば、サンプリ
ング画像に上記式(4)の原理を適用して補間データを
得て、位置ずれ補正を行う。
g(t)=Σg(iT)S(t-iT)...(4)
i=-ω T=1/(2W) 2πWt According to the color image processing method according to the present invention, the principle of equation (4) above is applied to the sampled image to obtain interpolated data, and positional deviation correction is performed.

ここで、補間データの計算方法について説明する。第3
図に、サンプリング画素の位置、補間データを求める位
置、その他のパラメータの関係を示す。第3図のパラメ
ータを用いれば、補間データ○(X)は、次式によって
求められる。
Here, a method for calculating interpolated data will be explained. Third
The figure shows the relationship between the position of the sampling pixel, the position at which interpolated data is obtained, and other parameters. Using the parameters shown in FIG. 3, interpolated data ○(X) can be obtained by the following equation.

・・・・(5) ここで、h(x)は補間関数で、 h(x)=stnc(x) 1nrIx Ix からψまでであるが、第4図に示したh(x)のグラフ
かられかるように、IXIが大きくなると、h(x)→
0 となる、従って、実用上は、1=−2〜2程度の範囲で
良い。
...(5) Here, h(x) is an interpolation function, h(x) = stnc(x) 1nrIx Ix to ψ, but from the graph of h(x) shown in Figure 4, As shown, when IXI increases, h(x) →
0. Therefore, in practice, 1 may be in the range of about -2 to 2.

ところで、補間データは、R,G、Bのうち、どれか1
色を基準として、残り2色について求めれば良い。ここ
では、Bを基準として、GおよびRについて位置ずれ補
正を行う場合について説明する。但し、R,G、Bの位
置関係は、第20図に示した通りとする。すなわち、R
データは注目画素位Ixoより1/3画素左にシフトし
た位置での補間データを用いることになる。
By the way, the interpolation data can be any one of R, G, and B.
It is sufficient to calculate the remaining two colors using the color as a reference. Here, a case will be described in which positional deviation correction is performed for G and R using B as a reference. However, the positional relationship of R, G, and B is as shown in FIG. 20. That is, R
As for the data, interpolated data at a position shifted to the left by 1/3 pixel from the pixel of interest Ixo is used.

ここで、xoを原点(x0=O)とすると、補間データ
を求める位置は、 である。前述の式(5)を用いることにより、補間デー
タは、次のようになる。
Here, if xo is the origin (x0=O), the position from which interpolated data is obtained is as follows. By using the above equation (5), the interpolated data becomes as follows.

・・・・(6) i=−2,−1,0,1,2の5画素のデータを用いた
場合の各係数の値を、第14図に示す。第14図に示す
■の係数を用いた一次元フィルタ[:10.1676゜
0.4191,0.8383.−0.2095,0.1
197コを使用することにより、173画素シフトした
画像を得ることができる。すなわち、B色と同位相の画
像に変換することができる。
(6) FIG. 14 shows the values of each coefficient when data of five pixels of i=-2, -1, 0, 1, and 2 are used. A one-dimensional filter using the coefficients shown in FIG. 14 [: 10.1676°0.4191, 0.8383. -0.2095,0.1
By using 197 pixels, an image shifted by 173 pixels can be obtained. In other words, it is possible to convert the image into an image having the same phase as the B color.

前述の式(2)、(3)を用いて、この補正フィルタの
MTF特性を求めると、第5図(a)に示すようになる
。高周波数領域までフラットな、劣化のない特性が得ら
れることがわかる。このフィルタをハードウェア化する
際には、係数はできるだけ簡単な有理数とすることが望
ましい。第14図の■に、有理数に近似させた例を示す
、この係数を用いたフィルタのMTF特性を第5図(b
)に示す。
When the MTF characteristic of this correction filter is determined using the above-mentioned equations (2) and (3), it becomes as shown in FIG. 5(a). It can be seen that flat characteristics without deterioration can be obtained up to the high frequency range. When implementing this filter in hardware, it is desirable that the coefficients be rational numbers that are as simple as possible. Figure 5 (b
).

係数を有理数に近似させる際の注意として、係数間の比
がある。画素iに対する係数を C工とすると、 より、途中の計算を一部省略するが、 となり、lil、l]の小さい、つまりC工t Cjの
大きな範囲では、係数の比は簡単な整数比になる。
One thing to keep in mind when approximating coefficients to rational numbers is the ratio between coefficients. If the coefficient for pixel i is C, then, although some intermediate calculations are omitted, it becomes, and in a small range of lil, l], that is, in a large range of Ct and Cj, the ratio of the coefficients becomes a simple integer ratio. Become.

これにより、補間データを求める位置(座標)の精度を
確保することができる。
This makes it possible to ensure the accuracy of the position (coordinates) for which interpolated data is obtained.

以上の説明では、R色のデータの補間について述べたが
、G色に関しては、x=+−pとして、式(6)を用い
てフィルタ係数を計算することかできる。また、G、B
、Hのうち、R色を基準とするは、x=+−pとするこ
とにより、式(6)を用いて、同様に計算することがで
きる0以上説明した方法により、MTF劣化の少ない補
正フィルタを得ることができる。
In the above explanation, interpolation of R color data has been described, but for G color, the filter coefficient can be calculated using equation (6) with x=+−p. Also, G, B
, H, based on R color, can be calculated in the same way using equation (6) by setting x=+-p. You can get filters.

以下、本発明の実施例を図面に基づいて詳細に説明する
Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図(a)は、本発明の一実施例であるディジタルカ
ラー複写システムの構成図である。本システムにおいて
は、入力系1によりR,G、Bに色分解され、量子化さ
れた画像データは、シェーディング補正回路2により光
源や撮像素子の感度ムラ等が補正される。
FIG. 1(a) is a block diagram of a digital color copying system which is an embodiment of the present invention. In this system, image data that has been color-separated into R, G, and B by an input system 1 and quantized is corrected by a shading correction circuit 2 for unevenness in sensitivity of a light source and an image sensor.

以下、位置ズレ補正回路3.MTF補正回路4゜γ補正
回路62色補正・UCR回路回路7詞化された画像デー
タが出力系9に送られ、複写画像が得られる。
Below, positional deviation correction circuit 3. MTF correction circuit 4° γ correction circuit 62 Color correction/UCR circuit 7 The converted image data is sent to the output system 9 to obtain a copy image.

ここで、MTF補正回路4は、入力系による画像のボケ
を補正するものであるが、ディジタル複写システムでは
、第2図(、)〜(d)に示す如き係数を有するディジ
タルフィルタが用いられる。係数の値は実際の入力系の
MTF特性から決めるべきものであるが、3×3に限ら
ず、5X3,5X5等のサイズのフィルタを用いても良
い、また。
Here, the MTF correction circuit 4 corrects image blur caused by the input system, and in a digital copying system, a digital filter having coefficients as shown in FIGS. 2(a) to 2(d) is used. The value of the coefficient should be determined based on the MTF characteristics of the actual input system, but it is not limited to 3×3, and filters with sizes such as 5×3 and 5×5 may also be used.

同図(e)、(f)に示す如く、主走査方向と副走査方
向とに分けて補正することもできる。
As shown in FIGS. 3(e) and (f), the correction can be performed separately in the main scanning direction and the sub-scanning direction.

ところで1本発明に係わる位置ズレ補正回路は一次元フ
ィルタであり1次段のMTF補正用のフィルタと組合わ
せて、一つのフィルタを構成することが可能である。第
2図(h)は、MTF補正用フィルタ(a)と、位置ズ
レ補正用フィルタ(g)とを組合わせたものである。ま
た、同(i)は、主走査方向のMTF補正用フィルタ(
e)と、位置ズレ補正用フィルタ(g)とを組合わせた
ものである。
By the way, the positional deviation correction circuit according to the present invention is a one-dimensional filter, and can be combined with a first-stage MTF correction filter to form one filter. FIG. 2(h) shows a combination of the MTF correction filter (a) and the positional deviation correction filter (g). In addition, (i) is a filter for MTF correction in the main scanning direction (
e) and a positional deviation correction filter (g).

第2図(h)では、3X3と5×1のサイズのフィルタ
の合成により、7X3のサイズ、また、同(i)では、
3×1と5X1のフィルタの合成により7X1のサイズ
のフィルタになっている。
In Fig. 2 (h), the size of 7 x 3 is obtained by combining filters of size 3 x 3 and 5 x 1, and in Fig. 2 (i),
By combining the 3×1 and 5×1 filters, a 7×1 filter is obtained.

ここで、フィルタの外側の係数は、中心付近の係数に比
べて小さいことを考慮して、省略することも可能である
。第2図(j)は、同(i)の外側の二つの要素を無視
して得られる5X1のフィルタである。同(h)に関し
ても、同様の簡略化が可能である。このようにフィルタ
を一つにまとめることにより、ハードウェアの簡素化や
、計算精度の向上を図ることができる。
Here, the coefficients on the outside of the filter may be omitted considering that they are smaller than the coefficients near the center. FIG. 2(j) is a 5×1 filter obtained by ignoring the two outer elements of FIG. 2(i). Regarding (h), a similar simplification is possible. By combining filters into one in this way, hardware can be simplified and calculation accuracy can be improved.

第1図(b)は、位置ズレ補正回路と、MTF補正回路
とを一つにまとめた場合のシステム構成を示している。
FIG. 1(b) shows a system configuration in which the positional deviation correction circuit and the MTF correction circuit are integrated into one.

第1図(Q)、(d)は、上に示した第1図(、)のシ
ステムに変倍回路5を追加したものである。ディジタル
複写システムでは、入力系に等倍光学系を用いた場合は
もちろん、縮小光学系を用いる場合でも、比較的容易に
範囲の広い変倍率が得られることから、主走査方向につ
いては、電気的に変倍する手法が用いられる。
1(Q) and (d) are the systems shown in FIG. 1(,) above with a variable magnification circuit 5 added thereto. In digital copying systems, it is relatively easy to obtain a wide range of magnification ratios, not only when using an equal-magnification optical system for the input system but also when using a reduction optical system. A method of varying the magnification is used.

電気的変倍法は、等倍でサンプリングされた画素データ
列を、変倍率に応じた画素密度のデータ列に変換するも
のである6例えば、等倍で100画素のデータがサンプ
リングされたとき、120%拡大を行う場合は、100
画素のデータを基に、 120画素のデータを求め、7
0%の縮小の場合は、70画素のデータを求める操作を
行う。
The electrical scaling method converts a pixel data string sampled at the same magnification into a data string with a pixel density according to the scaling factor.6 For example, when 100 pixel data are sampled at the same magnification, If you want to enlarge by 120%, set it to 100.
Based on the pixel data, calculate 120 pixel data and calculate 7
In the case of 0% reduction, an operation is performed to obtain data for 70 pixels.

上述の電気的変倍装置の例としては、本出願人が先に、
特願昭61−100503号、同61−100505号
、同61−100506号、同61−101721号、
同61−104014号および同62−3262号に提
案した装置がある。
As an example of the above-mentioned electric magnification device, the present applicant has previously described
Patent Application No. 61-100503, No. 61-100505, No. 61-100506, No. 61-101721,
There are devices proposed in No. 61-104014 and No. 62-3262.

電気的変倍法の中でも、補間関数として、Sinc関数
を用いるものは、精度良く変倍データを求めることがで
きる。
Among electrical scaling methods, those that use a Sinc function as an interpolation function can obtain scaling data with high accuracy.

第6図は等倍データのサンプリング位置(Xi)と、1
33%拡大時のサンプリング位置(y i) 、 80
%縮小時のサンプリング位!(zt)の関係を示してい
る。この変倍法では、y□+ ZLで示される位置の画
像データを X工で示される位置のデータを用いて、前
述の式(5)に従って求める。
Figure 6 shows the sampling position (Xi) of the same size data and 1
Sampling position at 33% enlargement (y i), 80
Sampling position when reducing by %! (zt). In this scaling method, image data at a position indicated by y□+ZL is obtained according to the above-mentioned equation (5) using data at a position indicated by X engineering.

この3’1yZiで示した変倍画像のサンプリング点の
密度を変えることにより、任意の変倍率の変倍が可能と
なる。
By changing the density of the sampling points of the variable-magnification image indicated by 3'1yZi, it is possible to change the magnification at an arbitrary magnification ratio.

本実施例においては、上述の変倍後の新サンプリング位
置を、色毎に所定量シフトすることにより、R,G、B
の画素間の位置ズレを、変倍処理と同時に補正するもの
である。すなわち、3色のサンプリング位置の関係を前
出の第20図の場合で考えると、B色に対し、R色では
左に1X3画素分、G色では右に173画素分シフトし
た位置の画素データを補間して求めるものである。
In this embodiment, by shifting the new sampling position after the above-mentioned scaling by a predetermined amount for each color, R, G, B
This method corrects the positional deviation between pixels at the same time as the scaling process. In other words, if we consider the relationship between the sampling positions of the three colors in the case of Figure 20 mentioned above, the pixel data at the position shifted 1x3 pixels to the left for R color and 173 pixels to the right for G color with respect to B color. It is obtained by interpolating.

第1図(d)は、変倍処理部を持ったディジタル複写シ
ステムであるが、本実施例では、変倍処理時に、位置ズ
レ補正を考慮するため、第1図(e)に示す如く、面処
理部を一つにまとめることも可能である。
FIG. 1(d) shows a digital copying system having a variable magnification processing section, but in this embodiment, in order to take positional deviation correction into consideration during the variable magnification processing, as shown in FIG. 1(e), It is also possible to combine the surface processing sections into one.

上述の如く、位置ズレ補正処理は、MTF補正処理また
は変倍処理と組合わせることができる。
As described above, the positional deviation correction process can be combined with the MTF correction process or the variable magnification process.

MTF補正処理との組合わせは、式(5)で示される補
間関数にMTF補正のための関数を重畳することであり
、変倍処理との組合わせは、式(5)において、補間デ
ータを求めるべきサンプリングの位置をシフトすること
である。
The combination with the MTF correction process is to superimpose the function for MTF correction on the interpolation function shown in equation (5), and the combination with the scaling process is to superimpose the interpolation data in equation (5). This is to shift the sampling position to be determined.

従って、この二組の組合わせを同時に行えば、位置ズレ
補正、MTF補正、変倍の三つの処理部を一つにまとめ
ることが可能である。第1図(f)に1位置ズレ補正、
MTF補正、変倍の三つの処理部をまとめた処理部を有
する複写システムの構成例を示す、なお、この場合、後
段にあるMTF補正回路は、副走査方向のMTF補正を
行うものである。副走査方向のMTF補正も含めた一つ
にまとめることも可能ではあるが1分離した方が、補正
演算部が簡単になるメリットがある。
Therefore, by performing these two combinations at the same time, it is possible to integrate the three processing units of positional deviation correction, MTF correction, and variable magnification into one. Figure 1(f) shows 1 position deviation correction.
An example of the configuration of a copying system having a processing unit that combines three processing units, MTF correction and magnification processing, is shown. In this case, the MTF correction circuit in the subsequent stage performs MTF correction in the sub-scanning direction. Although it is possible to combine the MTF correction in the sub-scanning direction into one, there is an advantage that the correction calculation unit is simpler if it is separated by one.

以下、具体的構成例について説明する。A specific configuration example will be described below.

第7図(a)は、第2図(g)に示した位置ズレ補正フ
ィルタの回路構成例である。入力系から出力される画像
データを5段のラッチで受けることにより、主走査方向
について、5画素のデータを同時に参照することができ
る。この例では、画像データと、第2図(g)に示した
位置ズレ補正フィルタの係数の乗算を、乗算器の代りに
ROMを用いて、テーブル参照式に行うようにしている
FIG. 7(a) shows an example of the circuit configuration of the positional deviation correction filter shown in FIG. 2(g). By receiving the image data output from the input system with the five stages of latches, it is possible to simultaneously refer to the data of five pixels in the main scanning direction. In this example, the image data is multiplied by the coefficient of the positional deviation correction filter shown in FIG. 2(g) using a ROM instead of a multiplier and using a table reference method.

更に、SoとS−1,SlとS−2を組にし、1段目の
加算も同時に行うように構成されている。すなわち、S
oとS−2またはSlと81の画像データでアドレスさ
れるメモリ番地に、それぞれの画像データと対応する係
数の積の和が格納されている。
Furthermore, So and S-1 and Sl and S-2 are made into pairs, and the first stage addition is also performed simultaneously. That is, S
At the memory address addressed by the image data o and S-2 or Sl and 81, the sum of the products of the respective image data and the corresponding coefficients is stored.

ROMから出力される演算の途中結果は、次の加算器に
よって加算され、演算は終了する。
The intermediate results of the operation output from the ROM are added by the next adder, and the operation ends.

位置ズレ補正と、主走査方向のMTF補正を組合わせた
フィルタ(第2図(i)と(j)参照)は、第7図(a
)の回路の拡張で実現できる。すなねち、ラッチの数や
後段の乗算器、加算器を必要数だけ追加すれば良い、係
数の違いは、第7図(a)に示す如<、ROMテーブル
方式を用いる場合、ROMに格納するデータの変更だけ
で済む。
A filter that combines positional deviation correction and MTF correction in the main scanning direction (see Fig. 2 (i) and (j)) is shown in Fig. 7 (a).
) can be realized by expanding the circuit. In other words, all you need to do is add the required number of latches, multipliers, and adders in the subsequent stages.The difference in coefficients is as shown in Figure 7(a). All you need to do is change the data to be stored.

第7図(b)は、副走査方向のMTF補正回路の構成例
である。2ライン分のラインメモリに順次画像データを
更新しながら記憶することにより、連続する3ラインの
対応する3画素のデータを同時に参照することができる
FIG. 7(b) shows a configuration example of the MTF correction circuit in the sub-scanning direction. By sequentially updating and storing image data in the line memory for two lines, it is possible to refer to the data of three corresponding pixels of three consecutive lines at the same time.

ここで、第2図(f)のMTF補正フィルタについて説
明しておく。−1の係数に対応する周辺2画素のデータ
は、加算器により加算される6次段の■く0Mは、中心
画素と周辺2画素のデータの演算を行うためのもので、
(中心画素の値)の3倍の値から加算器からの出力値を
減する演算を、テーブル参照式に行うものである。
Here, the MTF correction filter shown in FIG. 2(f) will be explained. The data of the two peripheral pixels corresponding to the coefficient of -1 are added by the adder.
The calculation of subtracting the output value from the adder from the value three times (the value of the center pixel) is performed using a table reference method.

このように、MTF補正を主走査方向と副走査方向に分
けて行う場合、どちらを先に行っても良い。つまり、第
7図(a)と(b)の回路は、どちらが先にあっても良
い。
In this way, when MTF correction is performed separately in the main scanning direction and the sub-scanning direction, either direction may be performed first. In other words, either of the circuits in FIGS. 7(a) and 7(b) may be placed first.

次に、変倍処理について説明する。Next, the scaling process will be explained.

変倍処理は、例えば、第8図に示す如き構成の回路で行
う。第8図に示す回路は、変倍後の新サンプリング点の
位置を決める機能、および、新サンプリング点と旧サン
プリング点との距離と旧データとから、新データを計算
する機能によって構成されている。
The scaling process is performed, for example, by a circuit configured as shown in FIG. The circuit shown in Figure 8 consists of a function to determine the position of a new sampling point after scaling, and a function to calculate new data from the distance between the new sampling point and the old sampling point and the old data. .

まず、データ合成部は、将来、新サンプリング点を決定
して、演算を行うとき、周辺データを一度に取出すため
に、補正方法によって周辺6画素による補間法では6画
素毎にまとめておくところである1例えば、第3図で、
新サンプリング点XがxoとX−1の間にある場合、演
算部でs +3 、 s −z+s−t+5otszt
szを一度に取出すということである。
First, in order to extract peripheral data at once when determining a new sampling point and performing calculations in the future, the data synthesis unit uses a correction method to group data into 6-pixel units using the interpolation method using 6 peripheral pixels. 1 For example, in Figure 3,
If the new sampling point X is between xo and
This means that sz is taken out at once.

具体的な方法は、データクロックに同期して順次入力さ
れるデータ(DATAI)を、データクロック(D C
L K)にてラッチすることにより、実施できる。6画
素ならば、5段のラッチによって実現できる。
A specific method is to input data (DATAI) sequentially input in synchronization with a data clock into a data clock (DC
This can be done by latching at LK). If there are 6 pixels, this can be realized using 5 stages of latches.

次に、ラインメモリ部であるが、ここは、4画素ないし
8画素のまとまりを、1ラインの画素数分格納するメモ
リで、入力、出力で2段構成とし、一方が入力のときは
他方は出力、一つのラインが終わると入出力を逆にする
という構成である。
Next is the line memory section. This is a memory that stores groups of 4 to 8 pixels for the number of pixels in one line. It has a two-stage configuration for input and output, and when one is input, the other is The configuration is such that the input and output are reversed when one output line ends.

このラインメモリのアドレスは、入力時は、前記DCL
Kに同期してカウンタをカウントアツプして得られるア
ドレスをそのまま使用するが、出力時は、このアドレス
を変化させる。出力時のアドレスが、すなわち、新サン
プリング点の位置決定機能に当る。
When input, the address of this line memory is
The address obtained by counting up the counter in synchronization with K is used as is, but this address is changed when outputting. The address at the time of output corresponds to the position determination function of the new sampling point.

新サンプリング点が、あるとき、xlとXi+□の間に
あり、その次の新サンプリング点が、もう−度、xiと
Xi+□の間にあるときは、カウンタを止め、X i+
+aとXi+zの間に移ったときは、カウンタを2つ進
め、X1+□とXi+zの間に移ったときは、カウンタ
を、通常通り1つ進める。
When a new sampling point is between xl and Xi+□, and the next new sampling point is between xi and Xi+□, the counter is stopped and X i+
When it moves between +a and Xi+z, the counter is incremented by two, and when it moves between X1+□ and Xi+z, the counter is incremented by one as usual.

カウンタを止めるのは、拡大時にあり、カウンタを2つ
進めるのは、縮小時に考えられる。すなわち、拡大時は
、カウンタを1つ進める動作と、カウンタを止めておく
動作によって、新サンプリング点の位置を決める。縮小
時は、カウンタを1つ進める動作と、2つ進める動作の
組合わせによって位置を決める。縮小は、50%までの
範囲で考えている限り、カウンタを1つ進めるか2つ進
めるかで良いが、50%以上の縮小率の場合には、カウ
ンタを3つ進める場合も有り得る。
The counter may be stopped at the time of enlargement, and the counter may be incremented by two at the time of reduction. That is, when enlarging, the position of the new sampling point is determined by the operation of incrementing the counter by one and the operation of stopping the counter. When shrinking, the position is determined by a combination of operations that advance the counter by one and two. As long as reduction is considered within the range up to 50%, it is sufficient to advance the counter by one or two, but if the reduction rate is 50% or more, the counter may be advanced by three.

どこでカウンタを幾つ進めるかという情報は、倍率によ
ってCPUで予め計算されている。新サンプリング点の
位i!x工は、スタート位置を0.旧サンプリングピッ
チを1とし、倍率をα(%)とすると、 Xよ=−X i (i = 0 、1 、・・・・)・
・・(9)α となる。
Information regarding where and how many increments the counter should be incremented is calculated in advance by the CPU based on the magnification. New sampling point position i! For the x-worker, set the starting position to 0. If the old sampling pitch is 1 and the magnification is α (%), then X = -X i (i = 0, 1, ...).
...(9) α becomes.

新サンプリング点が、X□とX i+xの間にあるとす
ると、この場合の xiの整数部はiとなる。すなわち
、iの増加とともに、 xiの整数部が1つ増えるとき
は、カウンターtL1つ進め、iの増加でXiの整数部
が2つ増えるときは、カウンタも2つ進め、xiの整数
部が1つも進まない場合は、カウンタも進めないように
すれば良い。
Assuming that the new sampling point is between X□ and X i+x, the integer part of xi in this case is i. In other words, when i increases and the integer part of xi increases by 1, the counter tL advances by 1, and when i increases and the integer part of Xi increases by 2, the counter also advances by 2 and the integer part of xi increases by 1. If the counter does not advance at all, you can prevent the counter from advancing either.

また、Xiの小数部は、XiとXとの距離ΔXになる。Further, the decimal part of Xi is the distance ΔX between Xi and X.

この距離データは、後の補間演算部で使うことになる。This distance data will be used later in the interpolation calculation section.

CPUでは、式(9)でi=o〜cz−1までを計算す
る。すべての場合で、新サンプリング点は、α個毎の周
期になるためである。この計算は、読取り動作開始より
前に、倍率α(%)が指定された後に行われ、ハードウ
ェアにマツチした形で、RAM等に書込んでおき、変倍
処理時、順次、読出す。
The CPU calculates i=o to cz-1 using equation (9). This is because in all cases, the new sampling points are every α period. This calculation is performed after the magnification α (%) is specified before the start of the reading operation, and is written in a form that matches the hardware in a RAM or the like, and is sequentially read out during the scaling process.

あるいは、別の方法として、専用のCPU、または、演
算手段を設け、変倍処理と並行して前記式(9)を計算
し、計算結果Xiの整数部をそのまま、アドレスとし、
小数部を距離データとして使うことも考えられる。
Alternatively, as another method, a dedicated CPU or arithmetic means is provided, the above formula (9) is calculated in parallel with the scaling process, and the integer part of the calculation result Xi is used as an address,
It is also possible to use the decimal part as distance data.

データ合成部とラインメモリ部の構成例を、第9図に示
す。この例は、2画素補正を行う場合の構成例である。
An example of the configuration of the data synthesis section and line memory section is shown in FIG. This example is a configuration example when two-pixel correction is performed.

ここで、アドレス生成部は、前記RAMが入力状態のと
きは、通常動作でDCLKに同期してアドレスカウンタ
が進むが、RAMが出力状態のときは、以下に説明する
方式によってアドレスを修正する。
Here, when the RAM is in the input state, the address generation section advances the address counter in synchronization with DCLK in normal operation, but when the RAM is in the output state, it modifies the address by the method described below.

第一の方法は、カウンタのクロックの周波数を変えてし
まう方法である。DCLKの周波数を、foとすると、
α(%)変倍時の周波数fL:Xは、fα=□f0  
      ・・・・(10)α となる。この方式では、f、に対するfαのずれがサン
プリング点のズレそのものになるので、正確かつ確実で
ある。
The first method is to change the frequency of the counter clock. If the frequency of DCLK is fo,
α (%) Frequency when changing magnification fL:X is fα=□f0
...(10) α becomes. This method is accurate and reliable because the deviation of fα with respect to f is the deviation of the sampling point itself.

RAMの読出し時、アドレスカウンタを上述のfαで動
かし、RAMの出力を再びDCLKでサンプル(ラッチ
)することによって、所望の合成データを得ることがで
きる。
When reading from the RAM, the desired composite data can be obtained by moving the address counter with the above fα and sampling (latching) the output of the RAM again with DCLK.

この方法であれば、先に述べた式(9)の計算結果で、
整数部についての情報は不要となり、ノ」)敷部の情報
、すなわち、距離についての情報のみを必要とする。
With this method, the calculation result of equation (9) mentioned earlier is
Information about the integer part is no longer needed; only information about the bottom part, that is, information about the distance is needed.

もう一つの方法としては、式(9)の計算結果で整数部
に注目し、Xiとxl、1とで、(1)縮小時:整数部
が1つ増加しているとき→a工=1 整数部が2つ増加しているとき →al=Q (2)拡大時:整数部が1つ増加しているとき→al=
1 整数部が増加していないとき →al=Q なる数列(ai)をi =O〜α−1まで定義し、RA
Mに書込んでおき、クロックとして、前記DCLKとこ
の2倍の周波数2f0なるクロックを用意する方法があ
る。
Another method is to focus on the integer part in the calculation result of equation (9), and calculate (1) When reducing: When the integer part increases by one → a = 1 When the integer part increases by 2 → al=Q (2) When expanding: When the integer part increases by 1 → al=
1. When the integer part is not increasing, → al = Q. Define the sequence (ai) from i = O to α-1, and use RA
There is a method in which a clock having a frequency 2f0, which is twice the frequency of DCLK, is prepared as a clock.

変倍処理時、aiはRAMから読出される。読出しはi
=O〜α−1を繰り返し読出されるものとする。縮小時
、ラインメモリ(RAMI、またはRAM2)の出力の
ためのアドレスカウンタのクロックは、 al=1のとき: fo(DCI、K)a工=0のとき
:2f。
During the scaling process, ai is read from the RAM. Read is i
It is assumed that =O to α-1 are read out repeatedly. During reduction, the address counter clock for the output of the line memory (RAMI or RAM2) is: When al=1: fo (DCI, K) When a=0: 2f.

になるよう切替える。Switch so that

拡大時、アドレスカウンタのクロックは、aiとDCL
KのANDとすることによって、a工=1のときカウン
トアツプ、al=oのときカウントせずのようにする。
When expanding, the address counter clock is ai and DCL.
By performing an AND of K, it is possible to count up when a = 1 and not count when al = o.

この方式を実施するための回路のブロック図を第10図
に示す。RAM3は、CPUで計算した式(9)の結果
の aiと小数部の情報を格納しているメモリである。
A block diagram of a circuit for implementing this method is shown in FIG. The RAM 3 is a memory that stores ai and decimal part information of the result of equation (9) calculated by the CPU.

この方式を用いると、第8図のデータ合成部を省略でき
る。つまり、ラインメモリには、6ビツトのデータをそ
のまま、DCLKに同期させて入力し、出力後、補間演
算部で前述のクロックで何段かのラッチをすることによ
り、周辺データを得ることができるためである。
If this method is used, the data synthesis section shown in FIG. 8 can be omitted. In other words, the peripheral data can be obtained by inputting 6-bit data as is to the line memory in synchronization with DCLK, and after output, latching it in several stages using the aforementioned clock in the interpolation calculation section. It's for a reason.

更に別の方式を第11図に示す、アドレスカウンタ自身
は、DCLKによるカウントアツプを続ける。そして、
アドレスカウンタと別にもう一つ。
Still another method is shown in FIG. 11, in which the address counter itself continues to count up based on DCLK. and,
One more thing besides the address counter.

こちらはUP/DOWNカウンタを設け、拡大時はDO
WN、縮小時はUPになるようにする。このUP/DO
WNカウンタのクロックは、al=Qのときだけ、カウ
ントするようにDCLKとa工のANDを入れる。
This has an UP/DOWN counter, and when expanding, DO
WN, set it to UP when reducing. This UP/DO
The clock of the WN counter is an AND of DCLK and a-work so that it counts only when al=Q.

これによって、例えば、縮小時、まず、最初のa1=o
でUP/DOWNカウンタを1にし、アドレスカウンタ
の値に1を足して、RAM1またはRAM2のアドレス
とする。更に、次の Bi=Qで、UP/DOWNカウ
ンタを2にして、アドレスカウンタを足すというように
して、新サンプリング点の位置を決めて行く。拡大の場
合は、逆にa工=0で1つずつ引いて行くため、UP/
DOWNカウンタを減算して行く。
By this, for example, when reducing, first a1=o
Set the UP/DOWN counter to 1 and add 1 to the value of the address counter to obtain the address of RAM1 or RAM2. Furthermore, at the next Bi=Q, the UP/DOWN counter is set to 2, the address counter is added, and so on, and the position of the new sampling point is determined. In the case of expansion, conversely, subtract one by one with a = 0, so UP/
The DOWN counter is decremented.

次に、補間演算の方法について説明する。Next, a method of interpolation calculation will be explained.

補間演算は、前述の式(5)の計算を行うことであるが
、ここで問題となるのは、新サンプリング点の位置精度
である。つまり、ΔX工/pをどの精度まで考慮するか
である。
The interpolation calculation involves calculating the above-mentioned equation (5), but the problem here is the positional accuracy of the new sampling point. In other words, the question is to what degree of accuracy ΔX/p should be considered.

本発明においては、R,G、8間の 1/3ドツトのズ
レを補正するものであるから、0.1ドツト程度の精度
が必要である。従って、1/8か1/16ドソ1〜の精
度でΔx 1/ pを考えれば良い。また、173ドツ
トの位置ズレ補正を重点に考えれば、173ドツトまた
は1/6ドツトの精度でΔxi/pを扱うことが効果的
である。すなわち、R,G、Bのうちの中心位置の色の
画素の新サンプリング点に対し、その両側の2色の新サ
ンプリング点を、±173ドツトシフトすることにより
、計算上の誤差なく補間データを求めることができる。
In the present invention, since a 1/3 dot deviation between R, G, and 8 is corrected, an accuracy of about 0.1 dot is required. Therefore, it is sufficient to consider Δx 1/p with an accuracy of 1/8 or 1/16 doso. Furthermore, if emphasis is placed on correcting the positional deviation of 173 dots, it is effective to treat Δxi/p with an accuracy of 173 dots or 1/6 dot. In other words, by shifting the new sampling points of the two colors on both sides of the new sampling point of the pixel of the central color among R, G, and B by ±173 dots, interpolated data is obtained without any calculation error. be able to.

ここでは、代表として、1/8ドツト精度で取扱う場合
について説明する。
Here, as a representative example, a case will be explained in which processing is performed with 1/8 dot accuracy.

178ドツト精度で取扱う場合には、ΔX工/pの小数
部すよを 3ビツトデータとして扱うことになる。第3
図において、Δx、、/pを第15図の8通りに量子化
する。8通りの biに対して、式(5)の係数を8組
用意する。ここでは、対称性を考えた6画素参照による
補間について説明する。
When handling with 178 dot precision, the decimal part of ΔX/p will be treated as 3-bit data. Third
In the figure, Δx, , /p are quantized in eight ways as shown in FIG. Eight sets of coefficients of equation (5) are prepared for eight types of bi. Here, interpolation using 6-pixel reference with symmetry in mind will be explained.

第16図に上記各bLについて、画素X□(i =−3
、−2,−1,0,1,2)に対する係数を示す。
In FIG. 16, for each bL, pixel X□(i = -3
, -2, -1, 0, 1, 2).

第12図に、補間演算回路の構成例を示す、この回路で
は、前出の第9図に示したラインメモリから出力される
、補間の際に参照する6画素のデータをラッチで受け1
乗算器と加算器により式(5)の演算を行う。この際、
biの値によって係数を第16図の如く変えなければな
らない。
FIG. 12 shows an example of the configuration of an interpolation calculation circuit. In this circuit, 6 pixel data referred to during interpolation, which is output from the line memory shown in FIG. 9 above, is received by a latch and 1
The calculation of equation (5) is performed using a multiplier and an adder. On this occasion,
The coefficients must be changed as shown in FIG. 16 depending on the value of bi.

第12図に示した例では1乗算器の代りにROMを用い
てテーブル参照式に乗算し、2画素の加算を行うように
している。更に、ROMのアドレスに、DCLKに同期
して上記 b、を入力することにより、係数の変更が容
易に行えるようにしている。ROMからの出力は、2個
の加算器により加算され、補間演算が終了する。ここで
、ROMを用いて1段目の加算は、任意の2画素を選ん
で良いが、第16図の係数の値が同程度のもの同志を組
合わせる方が、少ないビット数で精度良く演算ができる
。ここでは、5o−S−8,s、−s−、,52−s−
In the example shown in FIG. 12, a ROM is used instead of a single multiplier to perform multiplication using a table reference formula and add two pixels. Furthermore, by inputting the above b into the ROM address in synchronization with DCLK, the coefficients can be easily changed. The outputs from the ROM are added by two adders, and the interpolation operation is completed. Here, any two pixels may be selected for the first stage addition using ROM, but it is better to combine pixels with similar coefficient values as shown in Figure 16 for more accurate calculations with a smaller number of bits. Can be done. Here, 5o-S-8,s, -s-,,52-s-
.

を組合わせるのが良い。It is good to combine.

以上は、基本となるべき色成分画像に対する演算である
。他の2色については、173ドツトシフトしなければ
ならない。これは、例えば、第10図に示したアドレス
生成器を各色毎に持ち、それぞれの色に対応するRAM
3に、所定量シフトした場合のaiyt)工を、CPU
で演算して書込んでおけば良い。但し、シフト量は常に
一定であることから、アドレス生成器は1個だけで済ま
せることが可能である。
The above is the calculation for the basic color component image. For the other two colors, it must be shifted by 173 dots. For example, this has an address generator for each color as shown in FIG. 10, and a RAM corresponding to each color.
3, the aiyt) process when shifted by the specified amount is
All you have to do is calculate and write it. However, since the amount of shift is always constant, it is possible to use only one address generator.

次に、上述の方法を更に改良した補間演算の方法につい
て説明する。
Next, an interpolation calculation method that is a further improvement on the above method will be described.

第16図に示す係数の組を選べば、178 ドツト単位
で補間データを得ることができる。従って、173ドツ
ト≠3/8ドツトシフトした位置での補間データを求め
ることもできる。基準色の座標の小数部b□が4(正確
には、478)のとき、他色に対して、b□=4±3を
選べば、壬3/8ドツトシフトした位置での補間データ
が得られる。
If the set of coefficients shown in FIG. 16 is selected, interpolated data can be obtained in units of 178 dots. Therefore, it is also possible to obtain interpolated data at a position shifted by 173 dots≠3/8 dots. When the decimal part b□ of the coordinates of the standard color is 4 (more precisely, 478), if you select b□ = 4 ± 3 for other colors, you can obtain interpolated data at a position shifted by 13/8 dots. It will be done.

3/8 =0.375.1/3 =0.333であり、
実用上は、3/8=1/3としても十分な位置ズレ補正
の効果が得られる。位置精度を174ドツトとした場合
、+1/4ドツトのシフトによりある程度の効果は得ら
れるが、位置ズレ補正を重点に考えれば、173ドツト
補正とした方が、効果が大きい。
3/8 = 0.375. 1/3 = 0.333,
In practice, a sufficient positional deviation correction effect can be obtained even when 3/8=1/3. When the positional accuracy is set to 174 dots, a shift of +1/4 dots provides some effect, but if the emphasis is placed on correcting positional deviations, 173 dots correction is more effective.

再び、178ドツト精度の場合に戻る。biが2以下ま
たは5以上のとき、+3/8ドツトのシフトにより、他
色のbiが負や 7を越える場合が起こる。基準色にお
いて、補間位置XはX−1とxoの間に存在するが、シ
フト操作によって、他色では、XがX−、とx−1,x
oとxlの間に来る場合があることになる。この対策と
して、−173ドツトシフトする色に対しては、参照画
素として、S−4ts−3tS−ZIS−L9S@ts
1ts1の7画素、+173ドツトシフトする色に対し
ては、s +3 、 s +3 、 s +lt S 
OI S 1 t S 2 + S 1の7画素を用意
しておき、B1がO〜7以外となった場合、前者ではS
9〜S x を後者ではS−2〜S、の6画素に第16
図の適切な係数の組を用いて補間演算を行えば良い。こ
のとき前者ではB2、後者ではS−3に対する係数は0
である。 ゛ 第17図に、−173ドツトシフトする場合の89〜S
2に対する係数を示す。+1/3ドツトの場合も、S−
3〜S、に対して同様に係数を決めることができる。第
13図にこの場合の演算回路の構成例を示す。ここで、
b、は基準色と共通の信号を用い、ROMテーブルの内
容を第17図に示す係数を用いた演算結果にしておけば
良い。
Returning again to the case of 178 dot accuracy. When bi is 2 or less or 5 or more, the shift of +3/8 dots may cause the bi of other colors to become negative or exceed 7. In the standard color, the interpolation position X exists between X-1 and xo, but due to the shift operation, in other colors,
This means that it may come between o and xl. As a countermeasure for this, for a color that shifts by -173 dots, use S-4ts-3tS-ZIS-L9S@ts as a reference pixel.
For 7 pixels of 1ts1, +173 dots shift color, s +3, s +3, s +lt S
Prepare 7 pixels of OI S 1 t S 2 + S 1, and if B1 is other than O to 7, S
In the latter case, the 16th pixel is
Interpolation calculations may be performed using the appropriate set of coefficients shown in the figure. In this case, the coefficient for B2 in the former case and S-3 in the latter case is 0.
It is.゛In Figure 17, 89~S when shifted by -173 dots
The coefficient for 2 is shown. In the case of +1/3 dot, S-
3 to S, coefficients can be similarly determined. FIG. 13 shows an example of the configuration of the arithmetic circuit in this case. here,
For b, the same signal as the reference color is used, and the contents of the ROM table may be the result of calculation using the coefficients shown in FIG.

なお、第17図において、Cn1.はbよ=n、画素番
号=mのときの、係数を示している。
In addition, in FIG. 17, Cn1. indicates the coefficient when b=n and pixel number=m.

他の例を挙げる。Here are some other examples.

前出の第2図(g)に示したフィルタを用いることによ
り、−1/3ドツトシフトしたデータを得られることは
既に説明した。ここでは、第16図に示した係数に、上
記第2図(g)に示したフィルタ係数を重畳した係数を
用いることにより、シフト操作と補間演算とを同時に行
う。この組合わせは、6X1と5×1のサイズの一次元
フィルタの演算となり、結局、10X1のフィルタ演算
となる。10画素を参照しても良いが、ハードウェアの
簡素化のため、係数の大きな6〜8画素程度を用いれば
十分な効果が得られる。
It has already been explained that by using the filter shown in FIG. 2(g) above, data shifted by -1/3 dots can be obtained. Here, by using coefficients obtained by superimposing the filter coefficients shown in FIG. 2(g) on the coefficients shown in FIG. 16, the shift operation and interpolation calculation are performed simultaneously. This combination results in one-dimensional filter calculations of 6×1 and 5×1 sizes, resulting in a 10×1 filter calculation. Although 10 pixels may be referred to, in order to simplify the hardware, sufficient effects can be obtained by using approximately 6 to 8 pixels with large coefficients.

第18図に、S−1〜S、の7画素を参照して補間演算
を行うときの係数を示す。+173ドツトシフトする場
合についても同様にして、係数を求めることができる。
FIG. 18 shows coefficients when performing interpolation calculations with reference to seven pixels S-1 to S. In the case of +173 dot shift, the coefficient can be found in the same way.

ここでは、2組のフィルタ係数を用いて、新しい係数を
演算したが、これは第15図において、b工=O〜7に
対してΔx、/p=Δx、/p + 1/3として、式
(5)から係数を求めるのと同じことである。
Here, new coefficients were calculated using two sets of filter coefficients, which are shown in Fig. 15 as Δx, /p = Δx, /p + 1/3 for b = O ~ 7. This is the same as finding the coefficient from equation (5).

上記二つの方法は、いずれも、aよp triのデータ
を、各色共通に用いることができるため、特にa工+ 
l)iをCPUによって計算する方法では、CPUの負
担を軽減することができる。
Both of the above two methods can use the ayop tri data in common for each color.
l) In the method of calculating i by the CPU, the load on the CPU can be reduced.

以上、変倍処理と位置ズレ補正処理の組合わせについて
詳細に述べたが、更に、MTF補正をも一つに組込むこ
とが可能であることは、前述の通りである。これらの処
理は、第16図〜第18図に示した如く、演算のための
係数を掛合わせることにより、一つにまとめることがで
きる。第19図は、第18図に示した変倍十位置ズレ補
正フィルタに、更に第2図(e)に示した主走査方向の
MTF補正フィルタを重畳して得られるフィルタの係数
を示すものである。ここでも、参照画素は、7画素とし
ている。
The combination of magnification processing and positional deviation correction processing has been described above in detail, but as described above, it is possible to further incorporate MTF correction into one. These processes can be combined into one by multiplying the coefficients for calculation, as shown in FIGS. 16 to 18. FIG. 19 shows the coefficients of the filter obtained by superimposing the MTF correction filter in the main scanning direction shown in FIG. 2(e) on the variable magnification and ten-position shift correction filter shown in FIG. be. Here, the reference pixels are 7 pixels.

なお、三つのフィルタを重畳せず、変倍とMTFを合成
し1位置ズレについては、上述の改良法を用いることも
可能である。
Note that it is also possible to use the above-mentioned improved method for one position shift by combining the magnification change and MTF without superimposing the three filters.

効   果 以上詳細に述べた如く、本発明によれば、色分解フィル
タを規則的に配列した一次元カラー撮像素子を用いる画
像読取り手段を有するカラー画像処理装置において、基
準色に対して他色を所定のシフト量だけシフトした場合
の画像データを、複数の画素のデータを参照して補間す
ることにより求める如く構成したので、画像のシャープ
ネスを劣化させることなく、画素位置の補正を行い得る
カラー画像処理方法を実現することができるという顕著
な効果を奏するものである。
Effects As described in detail above, according to the present invention, in a color image processing device having an image reading means using a one-dimensional color image sensor in which color separation filters are regularly arranged, different colors are used for the reference color. Since the image data obtained when shifted by a predetermined shift amount is determined by interpolation with reference to data of a plurality of pixels, the color image can be corrected for pixel positions without deteriorating the sharpness of the image. This has the remarkable effect of making it possible to implement a processing method.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図(a)〜(f)は本発明の実施例を示すディジタ
ルカラー複写システムの構成図、第2図はディジタルフ
ィルタの構成を示す図、第3図はサンプリング位置の説
明図、第4図はSinc関数を示すグラフ、第5図は実
施例に用いるフィルタのMTF特性を示すグラフ、第6
図は変倍処理を説明するための図、第7図(a)は位置
ズレ補正フィルタの回路構成例を示すブロック図、第7
図(b)は副走査方向のMTF補正回路の構成例を示す
ブロック図、第8図は変倍処理回路の構成例を示すブロ
ック図、第9図〜第11図はデータ合成部とラインメモ
リ部の構成例を示すブロック図、第12図、第13図は
補正演算回路の構成例を示すブロック図、第14図はデ
ィジタルフィルタをその算出過程とともに説明する図、
第15図は位置ズレ補正の過程を示す図、第16図〜第
19図は合成されたディジタルフィルタの係数を示す図
、第20図はラインセンサを示す図、第21図はライン
センサによるサンプリングの様子を示す図、第22図〜
第25図は従来技術の問題点を説明するための図である
。 1:入力系、2:シェーディング補正回路、3:位置ズ
レ補正回路、4:MTF補正回路、5:変倍回路、6:
γ補正回路、7:色補正・UCR回路、8:階調処理回
路、9:出力系、10:位置ズレ補正・MTF補正回路
、11:位置ズレ補正・変倍回路、12:位置ズレ補正
・MTF補正・変倍回路。 特許出願人 株式会社 リ コ − で、・、− 第   2   図 (a)          (b)         
 (c)第   2   図 (h) 第   3   図 第   冬  図 ′5  七  へ 締  側  蓄 第   7   図 (a) ラッチ×5 第   7   図 (b) ラインメモリ×2 第   10   図 縮少 第   11   図 or 縮少 第   15   図 第  20  図 n−4z−3n−2n−1n  n+1  n+2  
nふ3第  21  図 GERGB凡 第   22  図 第   23   図 (面積率相当%・ 第   24  図 (面積率相当%)
1(a) to 1(f) are block diagrams of a digital color copying system showing an embodiment of the present invention, FIG. 2 is a diagram showing the structure of a digital filter, FIG. 3 is an explanatory diagram of sampling positions, and FIG. The figure is a graph showing the Sinc function, Figure 5 is a graph showing the MTF characteristics of the filter used in the example, and Figure 6 is a graph showing the MTF characteristics of the filter used in the example.
7(a) is a block diagram showing an example of the circuit configuration of a positional deviation correction filter.
Figure (b) is a block diagram showing an example of the configuration of the MTF correction circuit in the sub-scanning direction, Figure 8 is a block diagram showing an example of the configuration of the scaling processing circuit, and Figures 9 to 11 are the data synthesis section and line memory. FIGS. 12 and 13 are block diagrams showing examples of the configuration of the correction calculation circuit, FIG. 14 is a diagram illustrating the digital filter along with its calculation process,
Fig. 15 is a diagram showing the process of positional deviation correction, Figs. 16 to 19 are diagrams showing the coefficients of the synthesized digital filter, Fig. 20 is a diagram showing the line sensor, and Fig. 21 is a diagram showing sampling by the line sensor. A diagram showing the situation, Figure 22~
FIG. 25 is a diagram for explaining the problems of the prior art. 1: Input system, 2: Shading correction circuit, 3: Positional deviation correction circuit, 4: MTF correction circuit, 5: Magnification changing circuit, 6:
γ correction circuit, 7: Color correction/UCR circuit, 8: Gradation processing circuit, 9: Output system, 10: Positional deviation correction/MTF correction circuit, 11: Positional deviation correction/magnification circuit, 12: Positional deviation correction/ MTF correction/variable magnification circuit. Patent applicant Ricoh Co., Ltd. Figure 2 (a) (b)
(c) Fig. 2 (h) Fig. 3 Winter Fig.'5 7 Fastening side Storage Fig. 7 (a) Latch x 5 Fig. 7 (b) Line memory x 2 Fig. 10 Reduced Fig. 11 or Reduced Figure 15 Figure 20 n-4z-3n-2n-1n n+1 n+2
nF3 Figure 21 GERGB Figure 22 Figure 23 (Area ratio equivalent %) Figure 24 (Area ratio equivalent %)

Claims (5)

【特許請求の範囲】[Claims] (1)色分解フィルタを規則的に配列した一次元カラー
撮像素子を用いる画像読取り手段を有するカラー画像処
理装置において、基準色に対して他色を所定のシフト量
だけシフトした場合の画像データを、複数の画素のデー
タを参照して補間することにより求める如く構成された
ことを特徴とするカラー画像処理方法。
(1) In a color image processing device having an image reading means using a one-dimensional color image sensor in which color separation filters are regularly arranged, image data obtained when another color is shifted by a predetermined shift amount with respect to the reference color is , a color image processing method characterized in that the color image processing method is configured to perform interpolation with reference to data of a plurality of pixels.
(2)前記所定のシフト量が±(1/3)ドットである
ことを特徴とする、特許請求の範囲第1項記載のカラー
画像処理方法。
(2) The color image processing method according to claim 1, wherein the predetermined shift amount is ±(1/3) dots.
(3)前記補間を、Sinc関数を用いて行うことを特
徴とする、特許請求の範囲第1項または第2項記載のカ
ラー画像処理方法。
(3) The color image processing method according to claim 1 or 2, wherein the interpolation is performed using a Sinc function.
(4)前記補間を、重みの大きい方から2画素ずつ組合
わせて行うことを特徴とする、特許請求の範囲第1項、
第2項または第3項記載のカラー画像処理方法。
(4) The interpolation is performed by combining two pixels each starting from the one with the largest weight.
The color image processing method according to item 2 or 3.
(5)前記補間を行う際の、参照画素数が4画素以上で
あることを特徴とする、特許請求の範囲第1項、第2項
、第3項または第4項記載のカラー画像処理方法。
(5) The color image processing method according to claim 1, 2, 3, or 4, characterized in that the number of reference pixels when performing the interpolation is 4 or more pixels. .
JP62285115A 1987-11-10 1987-11-10 Color image processing method Expired - Fee Related JP2658087B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62285115A JP2658087B2 (en) 1987-11-10 1987-11-10 Color image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62285115A JP2658087B2 (en) 1987-11-10 1987-11-10 Color image processing method

Publications (2)

Publication Number Publication Date
JPH01126076A true JPH01126076A (en) 1989-05-18
JP2658087B2 JP2658087B2 (en) 1997-09-30

Family

ID=17687311

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62285115A Expired - Fee Related JP2658087B2 (en) 1987-11-10 1987-11-10 Color image processing method

Country Status (1)

Country Link
JP (1) JP2658087B2 (en)

Also Published As

Publication number Publication date
JP2658087B2 (en) 1997-09-30

Similar Documents

Publication Publication Date Title
JP2994153B2 (en) Color signal converter
JP3771054B2 (en) Image processing apparatus and image processing method
JPS61154357A (en) Color picture input device
US7177469B2 (en) Color conversion device and color conversion method
JP4317619B2 (en) Image processing device
JP3059205B2 (en) Image processing device
USRE37940E1 (en) Interpolation method and color correction method using interpolation
JP2001119705A (en) Color image pickup device
JP2658089B2 (en) Color image processing method
US7746519B2 (en) Method and device for scanning images
JP2658086B2 (en) Color image processing method
JP2658087B2 (en) Color image processing method
JP2658088B2 (en) Color image processing method
JP3914633B2 (en) Color signal processing apparatus and color signal processing method
US20050213158A1 (en) Signal processing method, signal output apparatus, signal processing apparatus, image processing apparatus, and image forming apparatus
JP3576600B2 (en) Color imaging device
KR100427845B1 (en) Device for dividing digital composite video signal into each component
JPH0322116B2 (en)
JP3911898B2 (en) Color conversion apparatus and method
JP3783815B2 (en) Image processing device
JP2833670B2 (en) Pixel density conversion method
JP2954231B2 (en) Color image processing method and color image processing apparatus
JPH0242875A (en) Color image reader
JP2592066B2 (en) Image processing device
KR100602249B1 (en) Video Processing Device and the Method thereof

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees