JP3379462B2 - Image processing device - Google Patents
Image processing deviceInfo
- Publication number
- JP3379462B2 JP3379462B2 JP02573399A JP2573399A JP3379462B2 JP 3379462 B2 JP3379462 B2 JP 3379462B2 JP 02573399 A JP02573399 A JP 02573399A JP 2573399 A JP2573399 A JP 2573399A JP 3379462 B2 JP3379462 B2 JP 3379462B2
- Authority
- JP
- Japan
- Prior art keywords
- line
- black
- unit
- image data
- correction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Image Input (AREA)
- Image Processing (AREA)
- Facsimile Heads (AREA)
- Facsimile Scanning Arrangements (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Description
【0001】[0001]
【発明の属する技術分野】本発明は、ディジタル式のカ
ラー複写機などに搭載される画像処理装置に関し、詳し
くは、縮小型カラーCCDセンサの副走査方向における
R,G,B間の位置ずれを変倍率に応じて補正するライ
ン間補正処理に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus mounted on a digital color copying machine or the like, and more specifically, to a positional deviation between R, G and B in a sub scanning direction of a reduction type color CCD sensor. The present invention relates to a line-to-line correction process for correcting in accordance with a scaling ratio.
【0002】[0002]
【従来の技術】カラー複写機などの画像読み取り部は、
例えば特開平9−261491号公報に記載されている
ように、光学系を介して原稿画像を縮小投影した情報を
縮小型カラーCCDセンサで読み取るものがコスト面の
有利さから一般的である。このような縮小型カラーCC
Dセンサは、図10に示すように、画素が主走査方向に
並べられたR(赤)、G(緑)、B(青)それぞれの素
子列が、副走査方向に所定間隔dを隔てて互いに平行に
配置された構造を有する。2. Description of the Related Art Image reading units such as color copying machines
For example, as described in Japanese Patent Application Laid-Open No. 9-261491, a reduction type color CCD sensor generally reads information obtained by reducing and projecting an original image through an optical system from the viewpoint of cost. Such a reduced color CC
As shown in FIG. 10, in the D sensor, the R (red), G (green), and B (blue) element rows in which pixels are arranged in the main scanning direction are separated by a predetermined distance d in the sub scanning direction. The structures are arranged in parallel with each other.
【0003】上記のような縮小型カラーCCDセンサを
用いた画像読み取りの場合には、原稿とCCDセンサと
が機械的に相対移動する方向である副走査方向でのR,
G,Bの位置ずれ(間隔d)に起因して、CCDセンサ
から得られるR,G,B各色の画像信号の間に時間的な
ずれ、つまり位相ずれが生ずる。In the case of image reading using the reduction type color CCD sensor as described above, R in the sub-scanning direction, which is the direction in which the original and the CCD sensor move mechanically relative to each other,
Due to the positional deviation of G and B (distance d), a temporal deviation, that is, a phase deviation occurs between the image signals of R, G, and B colors obtained from the CCD sensor.
【0004】R,G,B間の位相ずれ(以下、位置ずれ
ともいう)を補正するために、最初に生ずるR出力画像
データを間隔2d(例えば8ライン分)に相当する時間
だけ遅延させ、つぎに生ずるG出力画像データを間隔d
(例えば4ライン分)に相当する時間だけ遅延させるこ
とにより、最後に生ずるR出力画像データと位相をあわ
せる補正処理が行われる。In order to correct the phase shift between R, G and B (hereinafter also referred to as position shift), the first R output image data is delayed by a time corresponding to an interval 2d (for example, 8 lines), The G output image data generated next is separated by the interval d.
By delaying the time corresponding to (for example, four lines), the correction processing for matching the phase with the R output image data that occurs last is performed.
【0005】また、例えば縮小・拡大機能を有するカラ
ー複写機において副走査方向の走査速度が変化する場合
のように、原稿画像を縮小投影する変倍率が変化する
と、R,G,B間の位相ずれが1ライン分の整数倍とな
らずに、端数(小数部)が生ずる場合がある。このよう
な場合は、補間処理によってR,G,B間の位相ずれを
できるだけ正確に補正する必要がある。つまり、補正後
の位置がライン間のある位置となった場合に、その位置
における各色の濃度の値は、両側のライン上における値
の加重平均によって求められる。Further, when the scaling factor for reducing and projecting an original image changes, such as when the scanning speed in the sub-scanning direction changes in a color copying machine having a reduction / enlargement function, the phase between R, G and B changes. The shift may not be an integral multiple of one line, and a fraction (fractional part) may occur. In such a case, it is necessary to correct the phase shift between R, G and B by interpolation processing as accurately as possible. That is, when the corrected position is a position between the lines, the density value of each color at that position is obtained by the weighted average of the values on the lines on both sides.
【0006】[0006]
【発明が解決しようとする課題】しかしながら、その後
の検討によって、上記のような縮小型カラーCCDセン
サを用いた場合のR,G,B間の位相ずれの補正におい
て、補間処理による小数部の補正を行うと、黒細線の再
現性が悪くなることがわかった。これは、黒細線を縮小
投影したものが例えば1ドット幅に近くなった場合に上
記の補間処理を行うと、R,G,B各色の読み取り特性
のバランスが大きく崩れるためであると考えられる。However, as a result of the subsequent studies, in the correction of the phase shift between R, G, and B when the above-mentioned reduction type color CCD sensor is used, the decimal part is corrected by interpolation processing. It was found that the reproducibility of the black fine line was deteriorated by carrying out. It is considered that this is because the balance of the reading characteristics of R, G, and B colors is greatly disturbed when the above-described interpolation process is performed when the reduced projection of the black thin line becomes close to, for example, one dot width.
【0007】本発明は、上記のような問題に鑑みてなさ
れたものであり、縮小型カラーCCDセンサを用いた場
合のR,G,B間の位相ずれの補正をできるだけ正確に
行いながらも、黒細線の再現性を高めることができる画
像処理装置を提供することを目的とする。The present invention has been made in view of the above problems, and corrects the phase shift between R, G, and B in the case of using a reduction type color CCD sensor as accurately as possible. An object of the present invention is to provide an image processing device capable of enhancing the reproducibility of a black fine line.
【0008】[0008]
【課題を解決するための手段】本発明に係る画像処理装
置は、主走査方向に長い複数の素子列が副走査方向に所
定ピッチで互いに平行に配置された構造を有するイメー
ジセンサから得られる画像データの補正処理を行う装置
であって、イメージセンサの副走査方向における素子列
間の位置ずれを補正するライン間補正部を備え、ライン
間補正部は、1ライン単位の補正を行う整数部補正部
と、1ライン未満の補正を補間演算によって行う小数部
補正部とを含み、小数部補正部の作動・非作動が選択可
能に構成されてなる。1ライン未満の補正は、通常、補
間処理によって行われる。An image processing apparatus according to the present invention is an image obtained from an image sensor having a structure in which a plurality of element rows long in the main scanning direction are arranged in parallel with each other at a predetermined pitch in the sub scanning direction. An apparatus for performing data correction processing, comprising an inter-line correction unit that corrects a positional deviation between element rows in the sub-scanning direction of an image sensor, and the inter-line correction unit performs integer-line correction that performs correction on a line-by-line basis. Units and a fractional part correction unit that performs correction of less than one line by interpolation calculation, and it is configured so that activation / non-operation of the fractional part correction unit can be selected. Correction for less than one line is usually performed by interpolation processing.
【0009】[0009]
【0010】そして、画像データに含まれる主走査方向
にのびる黒細線を検出する黒細線検出部を備え、この黒
細線検出部の出力信号に基づいて黒細線の幅が所定値よ
り大きければ小数部補正部を作動させ、黒細線の幅が所
定値以下であれば小数部補正部の作動を禁止するように
構成されている。つまり、黒細線検出部が縮小投影後の
線幅がほぼ1ドットの黒細線を検出した場合には、その
検出出力に基づいて小数部補正部の補間処理による補正
を禁止する。 [0010] Then, the main scanning direction included in the image data
A black thin line detection unit that detects a black thin line that extends to the black thin line detection unit is provided.If the width of the black thin line is larger than a predetermined value based on the output signal of the black thin line detection unit, the decimal part correction unit is activated to set the width In the following cases, the operation of the fractional part correction unit is prohibited. That is, when the black thin line detection unit line width after reduction projection detects black thin line of approximately one dot, you prohibit the correction by interpolation of the fraction correction unit based on the detection output.
【0011】さらに、好ましくは、エッジ強調などの画
像処理の対象となる領域を判別する領域判別部を更に備
え、領域判別部における明度データの作成方法を黒細線
検出部の出力信号に応じて切り換える。例えば、通常の
処理ではR,G,Bカラー画像データの最小値を明度デ
ータとして出力するところを、黒細線検出部が黒細線を
検出した場合に限ってR,G,Bカラー画像データの最
大値を明度データとして出力する。これにより、コント
ラストが向上する。また、領域判別部における黒エッジ
部判定用のしきい値を黒細線検出部の出力信号に応じて
切り換える。例えば、黒細線検出部が黒細線を検出した
場合は、そうでない場合に比べて黒エッジ部判定用のし
きい値を高く設定する。これにより、ノイズによる誤判
別を防止する。 Further, preferably, an area discriminating section for discriminating an area to be subjected to image processing such as edge enhancement is further provided, and a method of creating lightness data in the area discriminating section is switched according to an output signal of the black fine line detecting section. . For example, in the normal processing, the minimum value of the R, G, B color image data is output as the lightness data, but the maximum of the R, G, B color image data is output only when the black thin line detection unit detects the black thin line. The value is output as brightness data. This improves the contrast. Further, it switches the threshold for determining the black edge in the realm discriminator in accordance with the output signal of the black thin line detection unit. For example, when the black fine line detection unit detects a black fine line, the threshold value for determining the black edge portion is set to be higher than that in the case where it is not. This prevents erroneous discrimination due to noise.
【0012】また、請求項5の発明に係る装置は、領域
判別部における黒エッジ部判定用のしきい値を黒細線検
出部の出力信号に応じて切り換える。例えば、黒細線検
出部が黒細線を検出した場合は、そうでない場合に比べ
て黒エッジ部判定用のしきい値を高く設定する。これに
より、ノイズによる誤判別を防止する。According to the fifth aspect of the present invention, the threshold value for determining the black edge portion in the area discriminating unit is switched according to the output signal of the black fine line detecting unit. For example, when the black fine line detection unit detects a black fine line, the threshold value for determining the black edge portion is set to be higher than that in the case where it is not. This prevents erroneous discrimination due to noise.
【0013】[0013]
【発明の実施の形態】図1は本発明に係る画像処理装置
M1の全体構成を示すブロック図である。1 is a block diagram showing the overall configuration of an image processing apparatus M1 according to the present invention.
【0014】図1において、光学系を介して原稿画像を
縮小投影した情報が、縮小型カラーCCDセンサ12で
読み取られる。得られたR,G,B各色のカラー画像信
号は、A/D変換器13に入力される。A/D変換器1
3は、アナログ信号であるR,G,Bカラー画像信号を
8ビットのディジタルデータ(256階調の濃度デー
タ)であるR,G,Bカラー画像データに変換する。得
られたR,G,Bカラー画像データは、シェーディング
補正部14によって、主走査方向の光量むらを補正する
シェーディング補正が施された後、ライン間補正部15
に入力される。In FIG. 1, information obtained by reducing and projecting an original image through an optical system is read by a reduction type color CCD sensor 12. The obtained R, G, and B color image signals are input to the A / D converter 13. A / D converter 1
3 converts an R, G, B color image signal which is an analog signal into R, G, B color image data which is 8-bit digital data (density data of 256 gradations). The obtained R, G, B color image data is subjected to shading correction for correcting light amount unevenness in the main scanning direction by the shading correction unit 14, and then the interline correction unit 15
Entered in.
【0015】ライン間補正部15は、縮小型カラーCC
Dセンサ12のR,G,Bライン間の位置ずれに起因す
るR,G,Bカラー画像信号(データ)の位相ずれを補
正する回路である。フィールドメモリを用いてR,Gの
カラー画像データを遅延させることにより補正を行う。
具体的な回路構成については後述する。ライン間補正部
15から出力されたR,G,Bカラー画像データは、色
収差補正部16にてレンズ系の色収差に起因する色ずれ
を補正される。更に、変倍用ラインメモリを含む変倍・
移動処理部17にて、変倍率に応じた主走査方向の拡大
・縮小処理が施される。The line-to-line correction unit 15 is a reduction type color CC.
This is a circuit for correcting the phase shift of the R, G, B color image signals (data) due to the positional shift between the R, G, B lines of the D sensor 12. Correction is performed by delaying R and G color image data using a field memory.
The specific circuit configuration will be described later. The R, G, B color image data output from the interline correction unit 15 is corrected by the chromatic aberration correction unit 16 for color misregistration due to chromatic aberration of the lens system. In addition, scaling including line memory for scaling
The movement processing unit 17 performs enlargement / reduction processing in the main scanning direction according to the scaling ratio.
【0016】変倍・移動処理部17から出力されたR,
G,Bカラー画像データは、色変換部18に入力され、
R,G,B間の調整が行われた後、色補正部19にてR
GB系(加色系)のカラー画像データからCMY系(減
色系)のカラー画像データC(シアン)、M(マゼン
タ)、Y(イエロー)、Bk(ブラック)に変換され
る。C,M,Y,Bkのカラー画像データは、MTF補
正部20にてエッジ強調、スムージングなどの処理を施
された後、プリンタインターフェイス21を介してプリ
ンタ部に与えられる。R output from the scaling / movement processing unit 17,
The G and B color image data are input to the color conversion unit 18,
After the adjustment between R, G, B is performed, the color correction unit 19 performs R
The color image data of GB (addition color system) is converted into CMY (color reduction system) color image data C (cyan), M (magenta), Y (yellow), and Bk (black). The C, M, Y, and Bk color image data are subjected to processing such as edge enhancement and smoothing by the MTF correction unit 20 and then given to the printer unit via the printer interface 21.
【0017】また、色変換部18から出力されたR,
G,Bカラー画像データは領域判別部22にも与えら
れ、読み取られた画像が網点画像か、文字画像か、又は
写真画像かといった判別が領域判別部22で行われる。
その判別結果がMTF補正部20に与えられることによ
り、MTF補正部20はその領域の画像の種類に応じ
て、エッジ強調、スムージングなどの補正処理を施すか
否かを切り換える。Further, R, which is output from the color conversion unit 18,
The G and B color image data is also given to the area discriminating unit 22, and the area discriminating unit 22 discriminates whether the read image is a halftone dot image, a character image or a photographic image.
By providing the determination result to the MTF correction unit 20, the MTF correction unit 20 switches whether to perform correction processing such as edge enhancement and smoothing according to the type of image in the area.
【0018】図1において、1ドット幅黒細線検出部2
3は現在読み取り中の画像がほぼ1ドット幅の黒細線で
あるか否かを検出する回路である。1ドット幅黒細線検
出部23は、シェーディング補正部14の出力信号BI
Nとライン間補正部15から出力されるR画像遅延デー
タRMD及びG画像遅延データGMDとに基づいて、縮
小型カラーCCDセンサ12に投影された画像情報にお
ける現在処理中の画像部分が1ドット幅黒細線か否かを
後述のようにして判断する。そして、1ドット幅黒細線
であると判断すればその出力信号SELをL(低)レベ
ルにし、そうでなければH(高)レベルにする。この出
力信号SELはライン間補正部15及び領域判別部22
に与えられる。In FIG. 1, a 1-dot-width black fine line detection unit 2
Reference numeral 3 is a circuit for detecting whether or not the image currently being read is a black thin line having a width of approximately 1 dot. The 1-dot width black thin line detection unit 23 outputs the output signal BI of the shading correction unit 14.
Based on N and the R image delay data RMD and the G image delay data GMD output from the interline correction unit 15, the image portion currently being processed in the image information projected on the reduction type color CCD sensor 12 has a 1-dot width. Whether or not the line is a black thin line is determined as described below. If it is determined that the line is a 1-dot-width black thin line, its output signal SEL is set to L (low) level, and otherwise, it is set to H (high) level. This output signal SEL is used for the interline correction unit 15 and the area determination unit 22.
Given to.
【0019】図2はライン間補正部15のブロック図で
ある。FIG. 2 is a block diagram of the interline correction unit 15.
【0020】図2において、信号RIN,BIN,GI
NはそれぞれR(赤)、B(青)、G(緑)のカラー画
像データ入力である。これらのカラー画像データ入力R
IN,BIN,GINは、第1補正部30で整数ライン
分の遅延補正が施され、第2補正部31で端数(小数)
分の補間処理が施されて、カラー画像データ出力ROU
T,BOUT,GOUTとなる。In FIG. 2, signals RIN, BIN, GI
N is color image data input of R (red), B (blue), and G (green), respectively. Input these color image data R
IN, BIN, and GIN are subjected to delay correction for integer lines by the first correction unit 30, and are fractional (decimal) by the second correction unit 31.
Minute image interpolation processing is performed, and color image data output ROU
T, BOUT, GOUT.
【0021】第1補正部30は、フィールドメモリ33
〜35を用いて、カラー画像データ入力RIN及びGI
Nをカラー画像データ入力BINに対して遅延させる。
つまり、従来技術の説明で述べたように、カラー画像デ
ータ入力RINをCCDセンサ12の副走査方向でのR
素子列とB素子列との間の間隔(素子列間隔)2dに相
当する時間だけ遅延させると共に、カラー画像データ入
力GINをCCDセンサ12の副走査方向でのG素子列
とB素子列との間の素子列間隔dに相当する時間だけ遅
延させる。素子列間隔dは、両素子列間においてずれた
ライン数で表される。本実施形態では、G素子列とB素
子列との素子列間隔dは「4」であり、R素子列とB素
子列との素子列間隔2dは「8」である。The first correction section 30 includes a field memory 33.
~ 35 for color image data input RIN and GI
Delay N with respect to color image data input BIN.
That is, as described in the description of the prior art, the color image data input RIN is set to R in the sub scanning direction of the CCD sensor 12.
The color image data input GIN is delayed by a time corresponding to a distance (element row interval) 2d between the element row and the B element row, and the color image data input GIN is divided between the G element row and the B element row in the sub scanning direction of the CCD sensor 12. It is delayed by a time corresponding to the element row interval d between them. The element row interval d is represented by the number of lines shifted between both element rows. In the present embodiment, the element row interval d between the G element row and the B element row is “4”, and the element row interval 2d between the R element row and the B element row is “8”.
【0022】フィールドメモリ33〜35は、画像デー
タを複数のライン単位で遅延させるために用いられてい
る。例えば、各フィールドメモリ33〜35が256K
Byteの記憶容量を有し、1ライン当たりの各色の画
像データ容量が5KByte(5,000画素分)とす
れば、1フィールドメモリ当たり51ライン分の画像デ
ータを遅延させることができる。図2に示すように、カ
ラー画像データ入力RINはシリアル接続された2つの
フィールドメモリ33,34によって102ライン分ま
で遅延することができ、カラー画像データ入力GINは
1つのフィールドメモリ35によって51ライン分まで
遅延させることができる。The field memories 33 to 35 are used to delay the image data in units of a plurality of lines. For example, each field memory 33-35 has 256K
If the memory capacity is Bytes and the image data capacity of each color per line is 5 KBytes (for 5,000 pixels), the image data for 51 lines per field memory can be delayed. As shown in FIG. 2, the color image data input RIN can be delayed up to 102 lines by two field memories 33 and 34 connected in series, and the color image data input GIN can be delayed by 51 lines by one field memory 35. Can be delayed until.
【0023】実際の遅延量は、各フィールドメモリ33
〜35のリードリセット端子RRES及びライトリセッ
ト端子WRESに与えられるリセット信号のタイミング
を制御することによって行われる。なお、図2におい
て、各信号の符号の頭に付された「−」は負論理信号で
あることを意味し、本説明中では「−」を省略して記
す。他の図とその説明についても同様である。The actual amount of delay is determined by each field memory 33.
This is performed by controlling the timing of the reset signals given to the read reset terminal RRES and the write reset terminal WRES of ~ 35. Note that, in FIG. 2, "-" added to the head of the sign of each signal means a negative logic signal, and "-" is omitted in this description. The same applies to the other figures and their description.
【0024】各フィールドメモリ33〜35は、ライト
リセット端子WRESにリセット信号が与えられると入
力データを書き始め、リードリセット端子RRESにリ
セット信号が与えられると蓄積されたデータの出力を始
める。したがって、ライトリセット端子WRESにリセ
ット信号が与えられてからリードリセット端子RRES
にリセット信号が与えられるまでの期間が遅延量とな
る。Each of the field memories 33 to 35 starts writing input data when a reset signal is applied to the write reset terminal WRES, and starts output of accumulated data when a reset signal is applied to the read reset terminal RRES. Therefore, after the reset signal is applied to the write reset terminal WRES, the read reset terminal RRES
The period until the reset signal is applied to is the delay amount.
【0025】図2において、フィールドメモリ33及び
35のライトリセット端子WRESにはリセット信号R
ES0が与えられ、リードリセット端子RRESにはリ
セット信号RES1が与えられる。また、フィールドメ
モリ34のライトリセット端子WRESにはリセット信
号RES1が与えられ、リードリセット端子RRESに
はリセット信号RES2が与えられる。したがって、カ
ラー画像データ入力RINRはシリアル接続された2つ
のフィールドメモリ33,34によってリセット信号R
ES0からリセット信号RES2までの期間だけ遅延
し、カラー画像データ入力GINRはフィールドメモリ
35によってリセット信号RES0からリセット信号R
ES1までの期間だけ遅延する。カラー画像データ入力
BINRは遅延なしで第2補正部31に渡される。In FIG. 2, the reset signal R is applied to the write reset terminals WRES of the field memories 33 and 35.
ES0 is applied, and the reset signal RES1 is applied to the read reset terminal RRES. Further, the reset signal RES1 is applied to the write reset terminal WRES of the field memory 34, and the reset signal RES2 is applied to the read reset terminal RRES. Therefore, the color image data input RINR is reset by the reset signal R by the two field memories 33 and 34 connected in series.
The color image data input GINR is delayed by the period from ES0 to the reset signal RES2, and the color image data input GINR is reset by the field memory 35 from the reset signal RES0 to the reset signal R.
It is delayed by the period until ES1. The color image data input BINR is passed to the second correction unit 31 without delay.
【0026】図3に、リセット信号RES0,RES
1,RES2、及びR,G,B各出力画像データのタイ
ミングチャートを示す。FIG. 3 shows reset signals RES0 and RES.
1 shows a timing chart of RES2 and R, G, B output image data.
【0027】図3において、B画像データに対してnラ
イン遅れでG画像遅延データGMDが得られ、更にnラ
イン遅れでR画像遅延データRMDが得られる様子が示
されている。nの値、つまり、リセット信号RES0か
らリセット信号RES1までの遅延時間に相当するライ
ン数は、素子列間隔に変倍率を掛けた値の整数部(in
t)である。等倍の場合は素子列間隔そのもの、例えば
4ラインであるが、例えば変倍率が0.6の場合は、4
×0.6=2.4の整数部2となる。実際には、この値
に1を加えたものを最終的な遅延量(ライン数)として
いる。これは、後述する第2補正部31における補間処
理を容易にするためである。リセット信号RES0から
リセット信号RES2までの遅延時間に相当するライン
数についても同様に、素子列間隔に変倍率を掛けた値の
整数部(int)の2倍に1を加えたものを最終的な遅
延量(ライン数)としている。FIG. 3 shows that the G image delay data GMD is obtained with an n line delay with respect to the B image data, and the R image delay data RMD is obtained with an n line delay. The value of n, that is, the number of lines corresponding to the delay time from the reset signal RES0 to the reset signal RES1, is the integer part (in
t). In the case of the same size, the element row interval itself is, for example, 4 lines, but, for example, in the case of a scaling factor of 0.6, it is 4
The integral part 2 is × 0.6 = 2.4. Actually, the value obtained by adding 1 to this value is the final delay amount (number of lines). This is for facilitating the interpolation process in the second correction unit 31 described later. Similarly, regarding the number of lines corresponding to the delay time from the reset signal RES0 to the reset signal RES2, the value obtained by adding 1 to twice the integer part (int) of the value obtained by multiplying the element column interval by the scaling factor is finally determined. The delay amount (number of lines) is used.
【0028】上記のようにして、得られたR遅延画像デ
ータ及びG遅延画像データは遅延していないB画像デー
タと共に第2補正部31に与えられる。第2補正部31
は、G遅延画像データについては補正処理を行わずにそ
のままカラー画像データ出力GOUTとして出力し、R
遅延画像データ及びB画像データについてはG遅延画像
データを基準として補間処理を施す。これは、R(赤)
の画像及びB(青)の画像より目立ちやすいG(緑)の
画像については補間処理による濃度低下を回避するため
である。As described above, the R delayed image data and the G delayed image data obtained are given to the second correction section 31 together with the B image data which is not delayed. Second correction unit 31
Outputs the G delayed image data as it is as the color image data output GOUT without performing the correction processing,
The delayed image data and the B image data are interpolated based on the G delayed image data. This is R (red)
This is for avoiding a decrease in density due to the interpolation processing for the image of G and the image of G (green) which is more noticeable than the image of B (blue).
【0029】第2補正部31は、R遅延画像データ及び
B画像データのそれぞれについて、画像データを1ライ
ン分遅延させるためのFIFOメモリ36,37と補間
演算部38,39を有する。補間演算部38のA入力端
子にはR遅延画像データRnが入力され、B端子にはF
IFOメモリ36で1ライン分更に遅延したR遅延画像
データRn-1 が入力される。また、K端子には補間係数
αが入力される。補間演算部38は、補間係数αを用い
て後述の式にしたがってデータRn とデータR n-1 との
補間データRn ’を演算する。The second corrector 31 is provided with R delay image data and
For each of the B image data, one image data
And FIFO memory 36 and 37 for delaying
It has arithmetic units 38 and 39. A input terminal of the interpolation calculation unit 38
R delayed image data R for the childnIs input and F is input to the B terminal.
R delay image further delayed by one line in the IFO memory 36
Data Rn-1Is entered. Also, the K terminal has an interpolation coefficient
α is input. The interpolation calculation unit 38 uses the interpolation coefficient α.
Data R according to the formula described belownAnd data R n-1With
Interpolation data Rn’Is calculated.
【0030】一方、補間演算部39のA入力端子にはF
IFOメモリ37で1ライン分遅延したB画像データB
n-1 が入力され、B端子には遅延前のB画像データBn
が入力される。また、K端子には補間係数αが入力され
る。補間演算部39は、補間係数αを用いて後述の式に
したがってデータBn とデータBn-1 との補間データB
n ’を演算する。On the other hand, F is connected to the A input terminal of the interpolation calculation section 39.
B image data B delayed by one line in the IFO memory 37
n-1 is input, and B image data B n before delay is input to the B terminal.
Is entered. Further, the interpolation coefficient α is input to the K terminal. The interpolation calculation unit 39 uses the interpolation coefficient α to interpolate the data B n and the data B n-1 according to the equation described later.
Calculates n '.
【0031】補間係数αは、素子列間隔に変倍率を掛け
たときの端数(小数部)であり、上述の例では、素子列
間隔「4」に変倍率が0.6を掛けた値2.4の小数部
0.4である。したがって、補間係数αは下記の式から
求められる。The interpolation coefficient α is a fraction (fractional part) when the element row interval is multiplied by the scaling factor. In the above example, the element row interval "4" is multiplied by the scaling factor of 0.6. It is 0.4 of 0.4. Therefore, the interpolation coefficient α is obtained from the following equation.
【0032】[0032]
【数1】 α=素子列間隔×変倍率−int(素子列間
隔×変倍率)
ただし、int( )は、( )の数値の整数部を抽出
する演算子である。## EQU00001 ## .alpha. = Element row interval.times.magnification-int (element row interval.times.magnification) where int () is an operator for extracting the integer part of the numerical value in ().
【0033】この補間係数αを用いて、補間演算後のR
及びBの画像データ、すなわち補間データRn ’及びB
n ’は下記の式から求められる。Using this interpolation coefficient α, R after interpolation calculation
And B image data, that is, interpolation data R n 'and B
n 'is calculated from the following formula.
【0034】[0034]
【数2】 [Equation 2]
【0035】[0035]
【数3】 [Equation 3]
【0036】上記の式(数2及び数3)において、第
(n−1)ラインのデータと第nラインのデータとに掛
けられる係数α又は(α−1)がR画像データとB画像
データとで逆になっている。これに関連して、図2に示
すように、補間演算部38,39のA端子及びB端子に
入力される画像データとその1ライン分遅延データとの
関係がR画像データ用の補間演算部38とB画像データ
用の補間演算部39とで逆になっている。これは、前述
のように、縮小型カラーCCDセンサ12においてG素
子列を挟んでR素子列とB素子列とが前後に配置されて
いる構造を有するからである。つまり、式(数2及び数
3)の関係を模式的に示すと図4のようになる。In the above equations (Equations 2 and 3), the coefficient α or (α-1) by which the data of the (n-1) th line and the data of the nth line are multiplied is the R image data and the B image data. And are reversed. In this regard, as shown in FIG. 2, the relationship between the image data input to the A and B terminals of the interpolation calculation units 38 and 39 and the delay data for one line thereof is the interpolation calculation unit for R image data. 38 and the interpolation calculation unit 39 for B image data are reversed. This is because, as described above, the reduction type color CCD sensor 12 has a structure in which the R element row and the B element row are arranged in front of and behind the G element row. That is, the relationship between the equations (Equation 2 and Equation 3) is schematically shown in FIG.
【0037】図4において、Rn ,Rn-1 ,Bn ,B
n-1 の位置が固定とすれば、補間係数αの値が0から1
まで変化すると、Gn は位置がBn-1 (Rn )側からB
n (R n-1 )側まで変化する。前述のように、第1補正
部30において、B画像データに比べてR画像データを
1ライン余分に遅延させているが、この、第2補正部3
1での補間演算によって、その1ライン分が補償され、
R,G,Bそれぞれの画像データの位相が揃うことにな
る。In FIG. 4, Rn, Rn-1, Bn, B
n-1If the position of is fixed, the value of the interpolation coefficient α is 0 to 1
Change to GnIs in position Bn-1(Rn) Side to B
n(R n-1) Side changes. As mentioned above, the first correction
In the part 30, the R image data is compared with the B image data.
Although it is delayed by one extra line, this second correction unit 3
By the interpolation calculation in 1, the one line is compensated,
The phases of the R, G, and B image data must be aligned.
It
【0038】上記のようにして、第1補正部30での整
数ライン分の位置ずれ補正に加えて第2補正部31での
小数部の補間処理を行うことにより、より詳細な色ずれ
補正を行うことができる。しかしながら、小数部の補間
処理は、前後のラインにおける濃度の加重平均をとるも
のであるから、例えば1ドット幅細線の場合には、その
濃度がこの補間処理により大きく低下する。このため、
黒細線の場合にR,G,B各色の濃度のバランスが大き
く崩れ、再現性が悪くなることがわかった。As described above, in addition to the positional deviation correction for the integer line in the first correction unit 30, the decimal correction processing in the second correction unit 31 is performed, so that more detailed color misregistration correction can be performed. It can be carried out. However, since the decimal part interpolation process takes a weighted average of the densities of the preceding and following lines, in the case of a 1-dot wide thin line, the density is greatly reduced by this interpolation process. For this reason,
It was found that in the case of a black thin line, the balance of the densities of R, G, and B colors is greatly disturbed, and reproducibility is deteriorated.
【0039】図5を用いて説明を加える。図5は、1ド
ット幅黒細線の場合のR,G,B各画像データの位置
(位相)と濃度を示しており、(a)はライン間補正部
15による補正前の状態を示している。(b)は変倍率
が等倍の場合、つまり補正係数αが0の場合における補
正後のR,G,B各画像データの位置(位相)と濃度を
示している。この場合、第2補正部31での小数部の補
間処理は実際上行われないので、各画像データの濃度低
下は無く、第1補正部30での整数ライン分の位置ずれ
補正のみが行われることになる。なお、これらの説明で
明らかなように、検出される黒細線は、CCDセンサ1
2の各素子列ののびる方向つまり主走査方向にのびるも
のであり、したがって、1ドット幅黒細線の各素子列に
より得られる画像データは、図5(a)に示すように副
走査方向でほぼ1画素分のみとなる。 A description will be added with reference to FIG. FIG. 5 shows positions (phases) and densities of R, G, and B image data in the case of a 1-dot-width black thin line, and (a) shows a state before correction by the interline correction unit 15. . (B) shows the positions (phases) and densities of the R, G, and B image data after correction when the scaling factor is equal, that is, when the correction coefficient α is 0. In this case, since the fractional part interpolation process in the second correction unit 31 is not actually performed, the density of each image data does not decrease, and the first correction unit 30 only performs the positional deviation correction for an integer line. become. In addition, in these explanations
As is apparent, the black thin line detected is the CCD sensor 1
2 also extends in the direction in which each element row extends, that is, in the main scanning direction.
Therefore, for each element row of the 1-dot-width black thin line,
The image data obtained from the sub-image data is, as shown in FIG.
There is only one pixel in the scanning direction.
【0040】図5の(c)は変倍率が等倍ではなく、補
正係数αが0にならない場合において、ライン間補正部
15の第1補正部30及び第2補正部31の両方による
補正が行われたときのR,G,B各画像データの位置
(位相)と濃度を示している。この場合、基準となる
(補間処理が行われない)G画像データの濃度が変化し
ないのに対して、R及びBの画像データの濃度が補間処
理によって大きく低下している。この結果、前述のよう
に、各色の濃度のバランスが大きく崩れ、黒細線の再現
性が悪くなる。In FIG. 5C, when the scaling factor is not equal and the correction coefficient α does not become 0, correction by both the first correction unit 30 and the second correction unit 31 of the interline correction unit 15 is performed. The positions (phases) and densities of the R, G, and B image data are shown when they are performed. In this case, the density of the G image data that is the reference (no interpolation processing is performed) does not change, whereas the densities of the R and B image data are greatly reduced by the interpolation processing. As a result, as described above, the density balance of each color is largely lost, and the reproducibility of the black fine line is deteriorated.
【0041】そこで、図2に示すように、セレクタ32
を設け、図1の1ドット幅黒細線検出部23の出力信号
(以下、補間禁止信号という)SELに基づいて、第2
補正部31での小数部の補間処理を行うか否かを自動選
択するように構成している。図5の(c)において、第
1補正部30による整数ライン分の位置補正のみを行
い、第2補正部31による小数部の補間処理を行わない
場合は、(d)に示すようになる。この場合、R,G,
B間の位置ずれは少し残るが、補間処理による濃度低下
は生じないので、各色の濃度特性のバランスが崩れるこ
とはなく、黒細線の再現性が(c)より改善される。Therefore, as shown in FIG. 2, the selector 32
And a second dot based on an output signal (hereinafter referred to as an interpolation prohibition signal) SEL of the 1-dot-width black thin line detection unit 23 in FIG.
The correction unit 31 is configured to automatically select whether or not to perform the interpolation processing of the decimal part. In FIG. 5C, when only the position correction for the integer line is performed by the first correction unit 30 and the decimal part interpolation processing is not performed by the second correction unit 31, the process is as shown in FIG. 5D. In this case, R, G,
Although the positional deviation between B slightly remains, the density deterioration due to the interpolation processing does not occur, so that the balance of the density characteristics of each color is not lost, and the reproducibility of the black fine line is improved as compared with (c).
【0042】図2において、セレクタ32は、S端子に
入力される補間禁止信号SELがHレベル(非アクティ
ブレベル)のときはB端子に入力される補間係数αを選
択して補間演算部38,39のK入力端子に与える。し
かし、1ドット幅黒細線検出部23が1ドット幅黒細線
を検出して、補間禁止信号SELがLレベル(アクティ
ブレベル)になると、A端子に入力される“00”を選
択して補間演算部38,39のK入力端子に与える。つ
まり、式(数2及び数3)及び図4における補間係数α
の値を強制的に0にする。In FIG. 2, the selector 32 selects the interpolation coefficient α input to the B terminal when the interpolation prohibition signal SEL input to the S terminal is at the H level (inactive level), and the interpolation calculation unit 38, 39 K input terminal. However, when the 1-dot-width black thin line detection unit 23 detects the 1-dot-width black thin line and the interpolation prohibition signal SEL becomes L level (active level), "00" input to the A terminal is selected and interpolation calculation is performed. It is applied to the K input terminals of the parts 38 and 39. That is, the equation (Equations 2 and 3) and the interpolation coefficient α in FIG.
Is forced to 0.
【0043】このようにして、1ドット幅黒細線の場合
は小数部の補間処理を実行しないことにより、位置ずれ
(色ずれ)の詳細補正より濃度低下の回避を優先して黒
細線の再現性を改善している。In this way, in the case of a 1-dot-width black fine line, by not performing the interpolation processing of the decimal part, the reproducibility of the black fine line is prioritized over the avoidance of the density decrease over the detailed correction of the positional shift (color shift). Has improved.
【0044】1ドット幅黒細線検出部23は、R,G,
Bそれぞれのカラー画像データについて現在の画像デー
タと前後のデータとの差の絶対値を求め、6個の値が所
定のしきい値より大きい場合は1ドット幅黒細線である
と判断して補間禁止信号SELをLレベル(アクティブ
レベル)にする。少なくともいずれか一つの値がしきい
値より小さい場合は補間禁止信号SELをHレベル(非
アクティブレベル)にする。すなわち、下記の式を満た
す場合のみ、補間禁止信号SELはLレベルになる。The 1-dot-width black thin line detecting section 23
B For each color image data, the absolute value of the difference between the current image data and the preceding and following data is obtained, and if the six values are greater than a predetermined threshold value, it is determined to be a 1-dot-width black thin line and interpolation is performed. The prohibition signal SEL is set to L level (active level). When at least one of the values is smaller than the threshold value, the interpolation prohibiting signal SEL is set to H level (inactive level). That is, the interpolation prohibiting signal SEL becomes L level only when the following formula is satisfied.
【0045】[0045]
【数4】 [Equation 4]
【0046】それぞれのしきい値S1〜S6は各色の特
性に応じて変えてもよいし、同じでもよい。The respective threshold values S1 to S6 may be changed or may be the same depending on the characteristics of each color.
【0047】つぎに、図1における領域判別部22の詳
細回路を図6〜8に示す。まず、図6において、R,
G,Bカラー画像データの最小値が最小値回路41によ
って求められ、出力される。また、R,G,Bカラー画
像データの最大値が最大値回路42によって求められ、
出力される。更に、彩度演算部43によってR,G,B
カラー画像データの最大値と最小値との差が求められ、
彩度データW7−0として出力される。なお、R,G,
Bカラー画像データの最大値と最小値との差が大きいほ
ど、彩度が大きい。Next, detailed circuits of the area discriminating unit 22 in FIG. 1 are shown in FIGS. First, in FIG. 6, R,
The minimum value of the G and B color image data is obtained by the minimum value circuit 41 and output. Further, the maximum value of the R, G, B color image data is obtained by the maximum value circuit 42,
Is output. Further, the saturation calculation unit 43 causes R, G, B
The difference between the maximum and minimum values of color image data is calculated,
The saturation data W7-0 is output. In addition, R, G,
The greater the difference between the maximum value and the minimum value of the B color image data, the greater the saturation.
【0048】一方、R,G,Bカラー画像データの最大
値と最小値はセレクタ44のA端子又はB端子に入力さ
れる。選択制御端子Sには前述の1ドット幅黒細線検出
部23の出力信号(以下、黒細線検出信号という)SE
Lが入力される。セレクタ44は、黒細線検出信号SE
LがHレベルであれば、R,G,Bカラー画像データの
最小値(B端子入力)を選択して明度データV7−0と
して出力する。一方、黒細線検出信号SELがLレベル
であれば、R,G,Bカラー画像データの最大値(A端
子入力)を選択して明度データV7−0として出力す
る。これにより、1ドット幅黒細線の場合の領域判別部
22におけるエッジ検出が容易になり、コントラストが
向上する。On the other hand, the maximum value and the minimum value of the R, G, B color image data are input to the A terminal or the B terminal of the selector 44. The selection control terminal S has an output signal SE (hereinafter referred to as a black thin line detection signal) SE of the 1-dot-width black thin line detection unit 23.
L is input. The selector 44 outputs the black thin line detection signal SE
If L is at H level, the minimum value (B terminal input) of R, G, B color image data is selected and output as lightness data V7-0. On the other hand, if the black fine line detection signal SEL is at the L level, the maximum value of the R, G, B color image data (A terminal input) is selected and output as the brightness data V7-0. This facilitates the edge detection in the area discrimination unit 22 in the case of a 1-dot-width black thin line, and improves the contrast.
【0049】明度データV7−0は、図7に示すよう
に、特徴量抽出フィルタ51に与えられる。特徴量抽出
フィルタ51は、明度データV7−0の主走査方向及び
副走査方向のそれぞれについて、1次微分と2次微分を
演算する。主走査方向及び副走査方向の1次微分値のう
ち大きいほうが最大値回路52で選択され、その値がコ
ンパレータ54及び55に入力される。The brightness data V7-0 is given to the feature quantity extraction filter 51, as shown in FIG. The feature amount extraction filter 51 calculates a primary differential and a secondary differential in each of the main scanning direction and the sub scanning direction of the brightness data V7-0. The larger one of the primary differential values in the main scanning direction and the sub scanning direction is selected by the maximum value circuit 52, and the value is input to the comparators 54 and 55.
【0050】コンパレータ54はP端子に入力される1
次微分値がQ端子に入力されるエッジ部1判定用しきい
値より大きければエッジ部1判定出力EDG1をHレベ
ルにし、小さければLレベルにする。エッジ部1判定用
しきい値として、2通りのしきい値REF1A及びRE
F1Bが用意され、セレクタ50aがいずれか一方を選
択する。黒細線検出信号SELがHレベル(非アクティ
ブ)であればしきい値REF1Aが選択され、Lレベル
(アクティブ)であればしきい値REF1Aが選択され
る。ただし、REF1BよりREF1Aのほうが大き
い、つまりきびしい。The comparator 54 inputs 1 to the P terminal.
If the second derivative value is larger than the threshold value for determining the edge portion 1 input to the Q terminal, the edge portion 1 determination output EDG1 is set to H level, and if it is smaller, it is set to L level. There are two thresholds REF1A and RE as the threshold for determining the edge portion 1.
F1B is prepared, and the selector 50a selects either one. If the black thin line detection signal SEL is at H level (inactive), the threshold value REF1A is selected, and if it is at L level (active), the threshold value REF1A is selected. However, REF1A is larger than REF1B, that is, severe.
【0051】コンパレータ55はQ端子に入力される1
次微分値がP端子に入力される非エッジ部1判定用しき
い値より小さければ非エッジ部1判定出力NEDG1を
Hレベルにし、大きければLレベルにする。非エッジ部
1判定用しきい値として、2通りのしきい値REF2A
及びREF2Bが用意され、セレクタ50bがいずれか
一方を選択する。黒細線検出信号SELがHレベル(非
アクティブ)であればしきい値REF2Bが選択され、
Lレベル(アクティブ)であればしきい値REF1Aが
選択される。ただし、REF1BよりREF1Aのほう
が小さい、つまりきびしい。The comparator 55 receives 1 input to the Q terminal.
The non-edge portion 1 determination output NEDG1 is set to H level if the next differential value is smaller than the non-edge portion 1 determination threshold value input to the P terminal, and is set to L level if larger. There are two thresholds REF2A as the thresholds for determining the non-edge portion 1.
And REF2B are prepared, and the selector 50b selects either one. If the black thin line detection signal SEL is at H level (inactive), the threshold value REF2B is selected,
If it is at L level (active), the threshold value REF1A is selected. However, REF1A is smaller than REF1B, that is, severe.
【0052】同様に、主走査方向及び副走査方向の2次
微分値のうち大きいほうが最大値回路53で選択され、
その値がコンパレータ56及び57に入力される。Similarly, the larger one of the secondary differential values in the main scanning direction and the sub scanning direction is selected by the maximum value circuit 53,
The value is input to the comparators 56 and 57.
【0053】コンパレータ56はP端子に入力される2
次微分値がQ端子に入力されるエッジ部2判定用しきい
値より大きければエッジ部2判定出力EDG2をHレベ
ルにし、小さければLレベルにする。エッジ部2判定用
しきい値として、2通りのしきい値REF3A及びRE
F3Bが用意され、セレクタ50cがいずれか一方を選
択する。黒細線検出信号SELがHレベル(非アクティ
ブ)であればしきい値REF3Bが選択され、Lレベル
(アクティブ)であればしきい値REF3Aが選択され
る。ただし、REF3BよりREF3Aのほうが大き
い、つまりきびしい。The comparator 56 inputs 2 to the P terminal.
If the second derivative value is larger than the threshold value for determining the edge portion 2 input to the Q terminal, the edge portion 2 determination output EDG2 is set to H level, and if it is smaller, it is set to L level. There are two thresholds REF3A and RE as the threshold for determining the edge portion 2.
F3B is prepared, and the selector 50c selects either one. If the black thin line detection signal SEL is at H level (inactive), the threshold value REF3B is selected, and if it is at L level (active), the threshold value REF3A is selected. However, REF3A is larger than REF3B, that is, severe.
【0054】コンパレータ57はQ端子に入力される2
次微分値がP端子に入力される非エッジ部2判定用しき
い値より小さければ非エッジ部2判定出力NEDG2を
Hレベルにし、大きければLレベルにする。非エッジ部
2判定用しきい値として、2通りのしきい値REF4A
及びREF4Bが用意され、セレクタ50dがいずれか
一方を選択する。黒細線検出信号SELがHレベル(非
アクティブ)であればしきい値REF4Bが選択され、
Lレベル(アクティブ)であればしきい値REF4Aが
選択される。ただし、REF4BよりREF4Aのほう
が小さい、つまりきびしい。The comparator 57 inputs 2 to the Q terminal.
The non-edge portion 2 determination output NEDG2 is set to H level if the next differential value is smaller than the non-edge portion 2 determination threshold value input to the P terminal, and is set to L level if it is larger. There are two thresholds REF4A as thresholds for determining the non-edge portion 2.
And REF4B are prepared, and the selector 50d selects either one. If the black thin line detection signal SEL is at H level (inactive), the threshold value REF4B is selected,
If it is at L level (active), the threshold value REF4A is selected. However, REF4A is smaller than REF4B, that is, severe.
【0055】上記のように、エッジ部の判定に際して、
黒細線検出信号SELがLレベルのとき、すなわち1ド
ット幅黒細線が検出されたときは、そうでないときより
しきい値をきびしくしている。非エッジ部の判定出力は
後述のように黒文字誤判別を防止するための信号に用い
られるが、非エッジ部の判定に際しても、1ドット幅黒
細線が検出されたときは、そうでないときよりもしきい
値をきびしくしている。As described above, when determining the edge portion,
When the black fine line detection signal SEL is at the L level, that is, when a 1-dot-width black fine line is detected, the threshold value is set to be more severe than when it is not. The determination output of the non-edge portion is used as a signal for preventing a black character erroneous determination as described later, but when determining the non-edge portion, when a 1-dot-width black thin line is detected, it is more likely than not. The threshold is tight.
【0056】エッジ部1判定出力EDG1とエッジ部2
判定出力EDG2はNOR回路58に入力され、いずれ
か一方の入力がHレベルであれば出力がLレベルとな
る。この出力信号はLレベルでエッジ部であることを示
すエッジ部信号EDGとして他の回路に出力されると共
に、後述の更なる処理によって黒エッジ部を示す信号B
KEDGEが生成される。Edge portion 1 determination output EDG1 and edge portion 2
The determination output EDG2 is input to the NOR circuit 58, and if either input is at H level, the output becomes L level. This output signal is output to another circuit as an edge portion signal EDG indicating an edge portion at the L level, and a signal B indicating a black edge portion is further processed as described later.
KEDGE is generated.
【0057】非エッジ部1判定出力NEDG1と非エッ
ジ部2判定出力NEDG2は、カラー領域であることを
示す信号COLORと共にANDゲート59に入力され
る。NEDG1とNEDG2が共にHレベルで、かつ、
カラー領域である場合はANDゲート59の出力である
黒文字誤判別信号CANがHレベルになる。この信号C
ANは後述のように、黒文字の誤判別を防止するために
使用される。The non-edge portion 1 determination output NEDG1 and the non-edge portion 2 determination output NEDG2 are input to the AND gate 59 together with the signal COLOR indicating the color region. Both NEDG1 and NEDG2 are at H level, and
In the case of the color area, the black character erroneous discrimination signal CAN output from the AND gate 59 becomes H level. This signal C
The AN is used to prevent erroneous discrimination of black characters, as described later.
【0058】カラー領域であることを示す信号COLO
Rは、明度データV7−0及びしきい値REF5の比較
結果と、彩度データW7−0及びしきい値REF6の比
較結果とをAND回路63で論理積演算して得られる。
コンパレータ60は、明度データV7−0がしきい値R
EF5より小さければ出力をアクティブにする。コンパ
レータ61は、彩度データW7−0がしきい値REF6
より大きければ出力をアクティブにする。A signal COLO indicating the color area
R is obtained by ANDing the comparison result of the brightness data V7-0 and the threshold value REF5 and the comparison result of the saturation data W7-0 and the threshold value REF6 by the AND circuit 63.
In the comparator 60, the brightness data V7-0 is the threshold value R.
If it is smaller than EF5, the output is activated. In the comparator 61, the saturation data W7-0 has a threshold value REF6.
If larger, activate output.
【0059】エッジ部信号EDG、つまりNOR回路5
8の出力は、クロージング処理回路64に入力され、3
×3マトリクス演算によるエッジ部の拡大処理が行われ
る。クロージング処理回路64の出力はセレクタ65の
A端子に入力される。セレクタ65の他の入力であるB
端子には、NOR回路58の出力、つまり拡大処理前の
エッジ部信号EDGが入力される。セレクタ65は、選
択制御端子Sに入力される内エッジ信号INEDGがL
レベルのときはA端子に入力された拡大処理後のエッジ
部信号を選択し、HレベルのときはB端子に入力された
拡大処理前のエッジ部信号を選択する。Edge signal EDG, that is, NOR circuit 5
The output of 8 is input to the closing processing circuit 64 and 3
Enlargement processing of the edge portion is performed by a × 3 matrix calculation. The output of the closing processing circuit 64 is input to the A terminal of the selector 65. B which is another input of the selector 65
The output of the NOR circuit 58, that is, the edge portion signal EDG before the enlargement processing is input to the terminal. In the selector 65, the inner edge signal INEDG input to the selection control terminal S is L
When the level is high, the edge portion signal after the enlargement processing input to the A terminal is selected, and when the level is H, the edge portion signal before the enlargement processing input to the terminal B is selected.
【0060】結局、内エッジ信号INEDGがLレベル
のときは拡大処理され、Hレベルのときは拡大処理され
ないエッジ部信号がセレクタ65のY端子から出力され
る。なお、内エッジ信号INEDGは特徴量抽出フィル
タ51中の内エッジ検出フィルタの出力信号をコンパレ
ータ67で“00”と比較して得られる信号であり、エ
ッジ領域の内側部分、つまり黒線上であることをLレベ
ルによって示す信号である。したがって、エッジ領域の
外側部分、つまり、黒線の背景側では内エッジ信号IN
EDGがHレベルとなる。この内エッジ信号INEDG
は、他の回路でも使用される。After all, when the inner edge signal INEDG is at the L level, enlargement processing is performed, and when the inner edge signal INEDG is at the H level, the edge portion signal that is not subjected to the expansion processing is output from the Y terminal of the selector 65. The inner edge signal INEDG is a signal obtained by comparing the output signal of the inner edge detection filter in the feature quantity extraction filter 51 with “00” by the comparator 67, and is on the inner side of the edge region, that is, on the black line. Is a signal indicating L level. Therefore, on the outer side of the edge region, that is, on the background side of the black line, the inner edge signal IN
EDG becomes H level. This edge signal INEDG
Is also used in other circuits.
【0061】セレクタ65の出力は負論理ANDゲート
66の一方の入力となり、他方の入力には黒領域である
ことを示す負論理の黒領域信号BLKが入力される。負
論理ANDゲート66は2つの信号の論理積(負論理で
の)をとり、負論理の黒エッジ信号BKEDGとして出
力する。黒領域信号BLKは、明度データV7−0を黒
判定用しきい値テーブル(WREF)68にて変換して
得られたデータと彩度信号W7−0とを比較して得られ
る信号である。つまり、コンパレータ69は、端子Pに
入力された黒判定用しきい値テーブル(WREF)68
の出力データが端子Qに入力された彩度信号W7−0よ
り大きければその出力BLKをLレベルにする。The output of the selector 65 becomes one input of the negative logic AND gate 66, and the negative logic black area signal BLK indicating the black area is input to the other input. The negative logic AND gate 66 takes the logical product (in negative logic) of the two signals and outputs it as the negative logic black edge signal BKEDG. The black area signal BLK is a signal obtained by comparing the saturation signal W7-0 with the data obtained by converting the brightness data V7-0 by the black determination threshold value table (WREF) 68. That is, the comparator 69 uses the black determination threshold value table (WREF) 68 input to the terminal P.
If the output data of is larger than the saturation signal W7-0 input to the terminal Q, the output BLK is set to L level.
【0062】黒判定用しきい値テーブル68は、図9に
実線及び破線で示すような2通りの変換特性を有し、切
換端子A8に入力される黒細線検出信号SELによって
いずれか一方の変換特性が選択される。黒細線検出信号
SELがHレベル(非アクティブ)の通常時は破線の変
換特性が選択されているが、黒細線検出信号SELがL
レベル(アクティブ)のとき、すなわち1ドット幅黒細
線が検出されたときは実線の変換特性が選択される。つ
まり、1ドット幅黒細線が検出されたときはコンパレー
タ69のP端子に入力されるレファレンスデータが、そ
うでないときより高く(ゆるく)なり、黒領域と判定さ
れやすくなる。The black judgment threshold value table 68 has two kinds of conversion characteristics as shown by a solid line and a broken line in FIG. 9, and either one of them is converted by the black thin line detection signal SEL input to the switching terminal A8. The characteristic is selected. When the black fine line detection signal SEL is at the H level (inactive) normally, the conversion characteristic indicated by the broken line is selected, but the black fine line detection signal SEL is L.
At the level (active), that is, when the 1-dot-width black thin line is detected, the solid line conversion characteristic is selected. That is, when the 1-dot-width thin black line is detected, the reference data input to the P terminal of the comparator 69 becomes higher (loose) than otherwise, and it is easy to determine the black area.
【0063】ANDゲート59から出力された黒文字誤
判別信号CANは、図8に示すように、黒文字誤判別個
数カウント部71に与えられ、ここで9×9マトリクス
内の黒文字誤判別個数が計数される。その結果はコンパ
レータ72に与えられ、しきい値REF7と比較され
る。黒文字誤判別個数がしきい値REF7より小さけれ
ば、コンパレータ72の出力はLレベルとなり、大きけ
ればHレベルとなる。この出力は負論理ANDゲート7
3に与えられ、前述の黒エッジ信号BKEDG(図7の
負論理ANDゲート66の出力)との間で論理積演算さ
れる。The black character erroneous discrimination signal CAN output from the AND gate 59 is applied to the black character erroneous discrimination number counting section 71, as shown in FIG. 8, where the number of black character erroneous discriminations in the 9 × 9 matrix is counted. It The result is given to the comparator 72 and compared with the threshold value REF7. If the number of black character misidentifications is smaller than the threshold value REF7, the output of the comparator 72 becomes L level, and if larger, it becomes H level. This output is a negative logic AND gate 7
3 and is logically ANDed with the black edge signal BKEDG (output of the negative logic AND gate 66 in FIG. 7).
【0064】負論理ANDゲート73の出力が最終的に
黒文字エッジ部を示す負論理の信号PAPAとなる。つ
まり、黒エッジ信号BKEDGがLレベル(アクティ
ブ)で、かつ、黒文字誤判別個数カウント部71で計数
された黒文字誤判別個数がしきい値REF7より小さい
場合に、黒文字エッジ部信号PAPAがLレベルにな
る。これらの領域判別信号が図1の領域判別部22の出
力としてMTF補正回路20に与えられ、MTF補正回
路20はその領域判別信号に応じて、エッジ強調、スム
ージングなどの補正処理を行う。The output of the negative logic AND gate 73 finally becomes the negative logic signal PAPA indicating the black character edge portion. That is, when the black edge signal BKEDG is at the L level (active) and the number of black character misidentifications counted by the black character misidentification number counting unit 71 is smaller than the threshold value REF7, the black character edge signal PAPA becomes L level. Become. These area discrimination signals are given to the MTF correction circuit 20 as the output of the area discrimination unit 22 in FIG. 1, and the MTF correction circuit 20 performs correction processing such as edge enhancement and smoothing according to the area discrimination signal.
【0065】上述の実施形態において、素子列間隔dを
「4」とし、素子列間隔2dを「8」としたが、これら
以外の数値とし、又は整数でない数値としてもよい。In the above-described embodiment, the element row interval d is "4" and the element row interval 2d is "8". However, other numerical values or non-integer numerical values may be used.
【0066】[0066]
【発明の効果】以上に説明したように、本発明による
と、縮小型カラーCCDセンサを用いた場合のR,G,
B間の位相ずれの補正をできるだけ正確に行いながら
も、黒細線の場合は補間処理を禁止してその再現性を高
めることができる。As described above, according to the present invention, R, G, and
While the phase shift between B is corrected as accurately as possible, the interpolating process can be prohibited in the case of a black thin line to improve its reproducibility.
【図1】本発明の実施形態に係る画像処理装置の全体構
成を示すブロック図である。FIG. 1 is a block diagram showing an overall configuration of an image processing apparatus according to an embodiment of the present invention.
【図2】画像処理装置を構成するライン間補正回路の構
成例を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration example of an interline correction circuit that constitutes the image processing apparatus.
【図3】ライン間補正回路の第1補正部による整数部補
正を示すタイミングチャートである。FIG. 3 is a timing chart showing the integer part correction by the first correction unit of the line correction circuit.
【図4】ライン間補正回路の第2補正部による小数部補
間処理を説明するための模式図である。FIG. 4 is a schematic diagram for explaining a decimal part interpolation process by a second correction unit of the interline correction circuit.
【図5】1ドット幅黒細線の場合のR,G,B各画像デ
ータの位相と濃度とを模式的に示すグラフである。FIG. 5 is a graph schematically showing the phase and density of R, G, and B image data in the case of a 1-dot-width black thin line.
【図6】画像処理装置を構成する領域判別部の構成例を
示すブロック図である。FIG. 6 is a block diagram illustrating a configuration example of an area determination unit included in the image processing apparatus.
【図7】画像処理装置を構成する領域判別部の構成例を
示すブロック図である。FIG. 7 is a block diagram illustrating a configuration example of an area determination unit included in the image processing apparatus.
【図8】画像処理装置を構成する領域判別部の構成例を
示すブロック図である。FIG. 8 is a block diagram illustrating a configuration example of an area determination unit included in the image processing apparatus.
【図9】領域判別部を構成する黒判定用しきい値テーブ
ルの変換特性を示すグラフである。FIG. 9 is a graph showing conversion characteristics of a black determination threshold value table that constitutes an area determination unit.
【図10】縮小型カラーCCDセンサの構造を示す模式
図である。FIG. 10 is a schematic view showing the structure of a reduction type color CCD sensor.
M1 画像処理装置 12 縮小型カラーCCDセンサ 13 A/D変換器 14 シェーディング補正回路 15 ライン間補正回路 16 色収差補正回路 17 変倍・移動処理回路 18 色変換回路 19 色補正回路 20 MTF補正回路 21 プリンタインターフェイス 22 領域判別部 23 1ドット幅黒細線検出部 M1 image processing device 12 Reduction type color CCD sensor 13 A / D converter 14 Shading correction circuit 15 line correction circuit 16 chromatic aberration correction circuit 17 Magnification / movement processing circuit 18 color conversion circuit 19 color correction circuit 20 MTF correction circuit 21 Printer Interface 22 Area discriminator 23 1-dot width black fine line detector
───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI H04N 1/48 H04N 1/04 D (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60 ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 7 identification code FI H04N 1/48 H04N 1/04 D (58) Fields investigated (Int.Cl. 7 , DB name) H04N 1/40-1 / 409 H04N 1/46 H04N 1/60
Claims (4)
向に所定ピッチで互いに平行に配置された構造を有する
イメージセンサから得られる画像データの補正処理を行
う画像処理装置であって、 前記イメージセンサの副走査方向における素子列間の位
置ずれを補正するライン間補正部を備え、前記ライン間
補正部は、1ライン単位の補正を行う整数部補正部と、
1ライン未満の補正を補間演算によって行う小数部補正
部とを含み、前記小数部補正部の作動・非作動が選択可
能に構成されており、 前記画像データに含まれる主走査方向にのびる黒細線を
検出する黒細線検出部を備え、前記黒細線検出部の出力
信号に基づいて前記黒細線が1ドット幅の黒細線である
場合に前記小数部補正部を非作動とするように構成され
ている、 ことを特徴とする画像処理装置。1. An image processing apparatus for correcting image data obtained from an image sensor having a structure in which a plurality of element rows long in the main scanning direction are arranged in parallel with each other at a predetermined pitch in the sub scanning direction, An inter-line correction unit that corrects a positional deviation between the element rows in the sub-scanning direction of the image sensor is provided, and the inter-line correction unit includes an integer part correction unit that performs correction on a line-by-line basis.
A fractional part correction unit that performs correction of less than one line by interpolation calculation, and it is configured such that activation or non-operation of the fractional part correction unit can be selected, and a black thin line extending in the main scanning direction included in the image data. A thin black line detecting unit for detecting the black thin line detecting unit, and the black thin line is a black thin line having a one-dot width based on the output signal of the black thin line detecting unit.
In this case, the fractional part correction unit is configured to be inoperative, and the image processing device is characterized by the above.
報を縮小型カラーCCDセンサで読み取り、前記縮小型
カラーCCDセンサからのR,G,B各色の画像信号を
A/D変換して得られる画像データの補正処理を行う画
像処理装置であって、 縮小型カラーCCDセンサの副走査方向におけるR,
G,B間の位置ずれを前記縮小投影の変倍率に応じて補
正するライン間補正部を備え、前記ライン間補正部は、
1ライン単位の補正を行う整数部補正部と、1ライン未
満の補正を補間演算によって行う小数部補正部とを含
み、前記小数部補正部の作動・非作動が選択可能に構成
されており、 前記画像データに含まれる主走査方向にのびる黒細線を
検出する黒細線検出部を備え、前記黒細線検出部の出力
信号に基づいて前記黒細線が1ドット幅の黒細線である
場合に前記小数部補正部を非作動とするように構成され
ている、 ことを特徴とする画像処理装置。2. A reduction type color CCD sensor reads information obtained by reducing and projecting an original image through an optical system, and A / D-converts R, G, and B color image signals from the reduction type color CCD sensor. An image processing apparatus for performing correction processing of obtained image data, comprising: R in a sub-scanning direction of a reduction type color CCD sensor;
An inter-line correction unit that corrects the positional deviation between G and B according to the scaling factor of the reduced projection is provided.
An integer part correcting unit corrects the per-line, the correction less than a line and a fractional part correction unit that performs the interpolation operation, operation or non-operation of the fractional part correction unit is configured to be selectable, A black fine line detection unit for detecting a black fine line extending in the main scanning direction included in the image data is provided, and the black fine line is a black fine line having a one-dot width based on an output signal of the black fine line detection unit.
In this case, the fractional part correction unit is configured to be inoperative, and the image processing device is characterized by the above.
域を判別する領域判別部を備え、前記領域判別部におけ
る明度データの作成方法が前記黒細線検出部の出力信号
に応じて切り換えられる、 請求項1又は2記載の画像処理装置。3. A region discriminating unit for discriminating a region to be subjected to image processing such as edge enhancement, and a method of creating lightness data in the region discriminating unit is switched according to an output signal of the black fine line detecting unit. The image processing device according to claim 1.
域を判別する領域判別部を備え、前記領域判別部におけ
る黒エッジ部判定用のしきい値が前記黒細線検出部の出
力信号に応じて切り換えられる、 請求項1又は2記載の画像処理装置。4. A region discriminating unit for discriminating a region to be subjected to image processing such as edge enhancement, and a threshold for discriminating a black edge portion in the region discriminating unit depends on an output signal of the black fine line detecting unit. The image processing apparatus according to claim 1, wherein the image processing apparatus is switched over.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP02573399A JP3379462B2 (en) | 1999-02-03 | 1999-02-03 | Image processing device |
US09/495,899 US7339699B1 (en) | 1999-02-03 | 2000-02-02 | Image processing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP02573399A JP3379462B2 (en) | 1999-02-03 | 1999-02-03 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2000224417A JP2000224417A (en) | 2000-08-11 |
JP3379462B2 true JP3379462B2 (en) | 2003-02-24 |
Family
ID=12174028
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP02573399A Expired - Fee Related JP3379462B2 (en) | 1999-02-03 | 1999-02-03 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3379462B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8174734B2 (en) | 2005-11-29 | 2012-05-08 | Ricoh Company, Ltd. | Reduction of memory size required for correction of displacement of scan positions |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3823933B2 (en) | 2003-03-07 | 2006-09-20 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing device |
-
1999
- 1999-02-03 JP JP02573399A patent/JP3379462B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8174734B2 (en) | 2005-11-29 | 2012-05-08 | Ricoh Company, Ltd. | Reduction of memory size required for correction of displacement of scan positions |
Also Published As
Publication number | Publication date |
---|---|
JP2000224417A (en) | 2000-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7095438B2 (en) | Image signal processing device for minimizing false signals at color boundaries | |
US8013914B2 (en) | Imaging apparatus including noise suppression circuit | |
US6542187B1 (en) | Correcting for chrominance interpolation artifacts | |
JP3664231B2 (en) | Color image processing device | |
US7339699B1 (en) | Image processing apparatus | |
US20030007183A1 (en) | Image processing apparatus, image processing method, and program product for image processing | |
JP4702912B2 (en) | Signal processing method and signal processing apparatus | |
JP3379462B2 (en) | Image processing device | |
US6025586A (en) | Image processing device, image recording apparatus, and image reading device and image forming apparatus | |
JP4006947B2 (en) | Image reading device | |
JP3662949B2 (en) | Signal interpolation method | |
JP4178919B2 (en) | Noise removal method, imaging apparatus, and noise removal program | |
US6819453B1 (en) | Image processing apparatus | |
JP3230282B2 (en) | Image reading device | |
US8938120B2 (en) | Image sensing device and image data processing method using the same | |
JP4314141B2 (en) | Document image identification device, color copying machine, and document image identification method | |
JP3989636B2 (en) | Image processing device | |
JP2010283888A (en) | Image processing apparatus, and image processing program | |
JP2000236450A (en) | Image processing unit | |
JP4042335B2 (en) | Document reader | |
US6137921A (en) | Image processing apparatus and method for performing image inclination | |
JP3700456B2 (en) | Color image processing device | |
JP3709733B2 (en) | Image processing device | |
JPS5834677A (en) | Mtf compensating system of picture information reader | |
JP3999420B2 (en) | Image processing apparatus and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
TRDD | Decision of grant or rejection written | ||
R151 | Written notification of patent or utility model registration |
Ref document number: 3379462 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071213 Year of fee payment: 5 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081213 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081213 Year of fee payment: 6 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091213 Year of fee payment: 7 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101213 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101213 Year of fee payment: 8 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111213 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111213 Year of fee payment: 9 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121213 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20131213 Year of fee payment: 11 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |