JP3245600B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP3245600B2
JP3245600B2 JP06596492A JP6596492A JP3245600B2 JP 3245600 B2 JP3245600 B2 JP 3245600B2 JP 06596492 A JP06596492 A JP 06596492A JP 6596492 A JP6596492 A JP 6596492A JP 3245600 B2 JP3245600 B2 JP 3245600B2
Authority
JP
Japan
Prior art keywords
image signal
signal
color
output
density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP06596492A
Other languages
Japanese (ja)
Other versions
JPH05167842A (en
Inventor
浩樹 菅野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba Corp
Toshiba TEC Corp
Original Assignee
Toshiba Corp
Toshiba TEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Toshiba Corp, Toshiba TEC Corp filed Critical Toshiba Corp
Priority to JP06596492A priority Critical patent/JP3245600B2/en
Publication of JPH05167842A publication Critical patent/JPH05167842A/en
Application granted granted Critical
Publication of JP3245600B2 publication Critical patent/JP3245600B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、文字、写真、網点写真
が混在する文書画像を対象とし、画像中の文字、写真、
網点写真の各領域を像域分離して、文字は解像性よく、
写真および網点写真は色再現性よく処理を行なうことが
できる画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention is directed to a document image containing a mixture of characters, photographs, and halftone dots,
Each area of the halftone dot photograph is separated into image areas, and the characters have good resolution,
The present invention relates to an image processing apparatus capable of performing a process for a photograph and a halftone photograph with good color reproducibility.

【0002】[0002]

【従来の技術】一般に、コード情報だけだなくイメージ
情報をも扱える文書画像処理装置においては、スキャナ
などの読取手段で読取った画像情報に対して、文字や線
図などのコントラストのある画像情報は、固定しきい値
により単純2値化を行ない、写真などの階調を有する画
像情報は、誤差拡散法などの疑似階調化手段によって2
値化を行なっている。これは、読取った画像情報を固定
しきい値により単純2値化処理を行なうと、文字や線画
像の領域は解像性が保存されるため画質劣化は生じない
が、写真画像の領域では階調性や色再現性が保存されな
いために画質劣化が生じた画像となってしまう。
2. Description of the Related Art Generally, in a document image processing apparatus capable of handling not only code information but also image information, image information having contrast such as characters and diagrams is compared with image information read by reading means such as a scanner. The simple binarization is performed using a fixed threshold value, and image information having a gradation such as a photograph is binarized by pseudo gradation conversion means such as an error diffusion method.
The price is being converted. This is because if the read image information is subjected to simple binarization processing using a fixed threshold value, the resolution of the character and line image areas is preserved, so that the image quality does not deteriorate. Since the tonality and the color reproducibility are not preserved, the image is deteriorated in image quality.

【0003】一方、読取った画像情報を誤差拡散法など
で階調化処理を行なうと、写真画像の領域は階調性が保
存されるため画質劣化は生じないが、文字や線画像の領
域では解像性が低下するため画質の劣化した画像となっ
てしまう。すなわち、読取った画像情報に対しては、単
一の2値化処理では、特徴の異なるそれぞれの領域の画
質を同時に満足することは不可能である。
On the other hand, if the read image information is subjected to gradation processing by an error diffusion method or the like, the gradation of the photographic image is preserved, so that the image quality is not deteriorated. Since the resolution is reduced, the image is degraded in image quality. That is, with respect to the read image information, it is impossible to simultaneously satisfy the image qualities of the respective regions having different features by a single binarization process.

【0004】このような問題に対し、文字、写真、網点
写真の3領域を分離する方法として、文献「網点写真の
識別処理方法」(電子情報通信学会論文誌 1987/
2Vol.J70−B No.2)において、「ブロッ
ク分離変換法」(Block Separate Tr
ansformation Method:BSET
法)が提案されている。この方法は、処理対象の画像情
報をブロックに分割し、ブロック内の濃度変化により3
領域を分離する方法である。その際、 写真はブロック内の濃度変化が小さい 文字および網点写真はブロック内の濃度変化が大きい 文字は濃度変化の周期が大きい 網点写真は濃度変化の周期が小さい といった濃度変化の性質を利用している。以下に、その
詳細を説明する。 (1)処理対象の画像情報を(m×n)画素のブロック
に分割する。 (2)ブロック内の最大濃度Dmax と最小濃度Dmin を
求め、ブロック内の最大濃度差ΔDmax を算出する。
In order to solve such a problem, as a method for separating three regions of a character, a photograph, and a halftone dot photograph, a document “Method of identifying halftone dot photograph” (Transactions of the Institute of Electronics, Information and Communication Engineers 1987 /
2Vol. J70-B No. 2) In “Block separation conversion method” (Block Separate Tr
information Method: BSET
Law) has been proposed. In this method, image information to be processed is divided into blocks, and 3
This is a method of separating regions. At that time, the characteristics of the density change are used, such as a photo with a small density change in the block and a halftone dot photo with a large density change in the block. are doing. The details will be described below. (1) The image information to be processed is divided into blocks of (m × n) pixels. (2) The maximum density Dmax and the minimum density Dmin in the block are obtained, and the maximum density difference ΔDmax in the block is calculated.

【0005】(3)算出した最大濃度差ΔDmax とあら
かじめ設定されるしきい値Th1とを比較し、以下の条件
で写真領域と非写真領域(文字および網点写真領域)と
を分離する。 ΔDmax ≦Th1 …… 写真領域 ΔDmax >Th1 …… 非写真領域 (4)ブロック内の平均濃度Da でブロック内の各画素
を2値化(0/1)する。 (5)ブロック内の主走査方向に連続する画素間の0/
1変化回数Kh を求める。同様に、副走査方向について
も変化回数Kv を求める。 (6)求めた変化回数Kh ,Kv とあらかじめ設定され
るしきい値Th2とを比較し、以下の条件で文字領域と網
点写真領域とを分離する。 Kh ≧Th2 かつ Kv ≧Th2 …… 網点写真領域 Kh <Th2 または Kv <Th2 …… 文字領域 以上の手順で文字、写真、網点写真領域を分離でき、各
領域に対し適切な2値化処理を施すことが可能となる。
(3) The calculated maximum density difference ΔDmax is compared with a preset threshold value Th1 to separate a photographic area from a non-photographic area (text and halftone photographic area) under the following conditions. ΔDmax ≦ Th1... Photographic area ΔDmax> Th1... Non-photographic area (4) Each pixel in the block is binarized (0/1) with the average density Da in the block. (5) 0/0 between pixels consecutive in the main scanning direction in the block
The number of times of change Kh is determined. Similarly, the number of changes Kv is obtained for the sub-scanning direction. (6) The obtained number of changes Kh, Kv is compared with a preset threshold value Th2, and the character area and the halftone picture area are separated under the following conditions. Kh ≧ Th2 and Kv ≧ Th2 ... Dot area Photo area Kh <Th2 or Kv <Th2 ... Character area Character, photo and halftone area can be separated by the above procedure, and appropriate binarization processing for each area Can be applied.

【0006】[0006]

【発明が解決しようとする課題】一般に、網点写真画像
は、65〜200線にわたる多種の線数がある。ところ
が、上述した従来技術は、高い線数の網点写真について
は有効であるが、低い線数の網点写真の場合は文字と特
徴が類似しているため分離が困難である。また、対象網
点写真画像の線数が低くなるとともに、分離に要するブ
ロックサイズが大きくなるため、ハードウェアの負担が
大となる。
Generally, halftone photographic images have various numbers of lines ranging from 65 to 200 lines. However, the above-described prior art is effective for a halftone dot photograph having a high screen ruling, but it is difficult to separate a halftone dot photograph having a low screen ruling because characters and features are similar. In addition, since the number of lines of the target halftone photographic image is reduced and the block size required for separation is increased, the burden on hardware is increased.

【0007】そこで、本発明は、文字領域と写真領域、
さらには網点写真領域が混在する文書画像であっても、
文字領域については解像性よく2値化することができ、
また、写真領域および網点写真領域については色再現性
よく2値化することができ、しかも、特に低い線数の網
点領域の判定はその精度が向上し、さらに、簡単なハー
ドウェアで構成することができる画像処理装置を提供す
ることを目的とする。
Accordingly, the present invention provides a character area and a photographic area,
Furthermore, even for a document image in which halftone dot photo regions are mixed,
The character area can be binarized with good resolution.
In addition, the photograph area and the halftone dot photograph area can be binarized with good color reproducibility, and the accuracy of the determination of the halftone dot area having a particularly low number of lines is improved. It is an object of the present invention to provide an image processing apparatus capable of performing the above.

【0008】[0008]

【課題を解決するための手段】本発明の画像処理装置
は、第1カラー画像信号を第2カラー画像信号に変換す
る色変換手段と、この色変換手段で変換された第2カラ
ー画像信号から処理対象のカラー画像信号を出力する出
力手段と、この出力手段から出力される処理対象のカラ
ー画像信号から、注目画素を含む所定の領域における
大濃度および最小濃度をそれぞれ算出し、この算出した
最大濃度と最小濃度との差を最大濃度差として算出する
第1算出手段と、この第1算出手段で算出された最大濃
度差に基づいて前記所定の領域の画像の種別を判定する
第1判定手段と、前記注目画素を含む所定の領域におけ
る各画素の色信号間の濃度差の総和を算出する第2算出
手段と、この第2算出手段で算出された色信号間濃度差
の総和に基づいて前記所定の領域の画像の種別を判定す
る第2判定手段と、画像信号を2値化するための第1し
きい値を発生する第1しきい値発生手段と、画像信号を
2値化するための第2しきい値を発生する第2しきい値
発生手段と、この第1,第2しきい値発生手段から出力
される第1,第2しきい値のいずれかを、前記第1判定
手段および第2判定手段の各判定結果に基づき選択する
第1選択手段と、前記出力手段から出力される処理対象
のカラー画像信号を平滑化して平滑化カラー画像信号を
出力する平滑化手段と、この平滑化手段から出力される
平滑化カラー画像信号、あるいは、前記出力手段から出
力される処理対象のカラー画像信号のいずれかを、前記
第1判定手段および第2判定手段の各判定結果に基づき
選択する第2選択手段と、この第2選択手段から出力さ
れる画像信号を前記第1選択手段から出力されるしきい
値により2値化する2値化手段とを具備している。
An image processing apparatus according to the present invention comprises a color conversion means for converting a first color image signal into a second color image signal, and a second color image signal converted by the color conversion means. and output means for outputting a color image signal to be processed, from the color image signal to be processed that is output from the output means, the uppermost in the predetermined region including the pixel of interest
The maximum density and the minimum density were calculated respectively, and this calculated
First calculating means for calculating the difference between the maximum density and the minimum density as the maximum density difference; and first determination for determining the type of the image of the predetermined area based on the maximum density difference calculated by the first calculating means. Means, a second calculating means for calculating a sum of density differences between color signals of respective pixels in a predetermined area including the target pixel, and a second calculating means for calculating a sum of density differences between color signals calculated by the second calculating means. Second determining means for determining the type of image of the predetermined area, first threshold value generating means for generating a first threshold value for binarizing the image signal, and binarizing the image signal. A second threshold value generating means for generating a second threshold value, and one of the first and second threshold values output from the first and second threshold value generating means, First selection means for selecting based on each determination result of the first determination means and the second determination means, A smoothing means for smoothing a color image signal to be processed output from the output means and outputting a smoothed color image signal; and a smoothed color image signal output from the smoothing means, or from the output means. A second selecting means for selecting one of the output color image signals to be processed based on the respective determination results of the first and second determining means, and an image signal output from the second selecting means. A binarizing unit for performing binarization based on a threshold value output from the first selecting unit.

【0009】また、本発明の画像処理装置は、第1カラ
ー画像信号を第2カラー画像信号に変換する色変換手段
と、この色変換手段で変換された第2カラー画像信号か
ら処理対象のカラー画像信号を出力する出力手段と、こ
の出力手段から出力される処理対象のカラー画像信号か
ら、注目画素を含む所定の領域における最大濃度および
最小濃度をそれぞれ算出し、この算出した最大濃度と最
小濃度との差を最大濃度差として算出する第1算出手段
と、この第1算出手段で算出された最大濃度差とあらか
じめ設定される第1しきい値とを比較して前記所定の領
域の画像の種別を判定し、第1判定信号を出力する第1
判定手段と、前記注目画素を含む所定の領域における各
画素の色信号間の濃度差の総和を算出する第2算出手段
と、この第2算出手段で算出された色信号間濃度差の総
和とあらかじめ設定される第2しきい値とを比較して前
記所定の領域の画像の種別を判定し、第2判定信号を出
力する第2判定手段と、前記出力手段から出力される処
理対象のカラー画像信号に対し、前記第1判定信号およ
び第2判定信号により適応的に誤差拡散処理を行ない、
その処理後のカラー画像信号を2値化する処理手段とを
具備している。
Further, the image processing apparatus of the present invention comprises a color conversion means for converting a first color image signal into a second color image signal, and a color to be processed from the second color image signal converted by the color conversion means. An output unit that outputs an image signal, and a maximum density and a maximum density in a predetermined area including a pixel of interest are calculated from a color image signal to be processed output from the output unit.
Calculate the minimum density and calculate the maximum density and maximum
A first calculating means for calculating a difference from the small density as a maximum density difference, and comparing the maximum density difference calculated by the first calculating means with a first threshold value set in advance to determine the predetermined area. A first type that determines a type of an image and outputs a first determination signal
Determining means, second calculating means for calculating the sum of the density differences between the color signals of the respective pixels in a predetermined area including the target pixel, and calculating the sum of the density differences between the color signals calculated by the second calculating means. A second determination unit that determines a type of the image in the predetermined area by comparing with a second threshold value set in advance, and outputs a second determination signal; and a processing target color output from the output unit. Performing an error diffusion process on the image signal adaptively using the first determination signal and the second determination signal;
Processing means for binarizing the processed color image signal.

【0010】さらに、本発明の画像処理装置は、第1カ
ラー画像信号を第2カラー画像信号に変換する色変換手
段と、この色変換手段で変換された第2カラー画像信号
から処理対象のカラー画像信号を出力する出力手段と、
この出力手段から出力される処理対象のカラー画像信号
から、注目画素を含む所定の領域における最大濃度およ
び最小濃度をそれぞれ算出し、この算出した最大濃度と
最小濃度との差を最大濃度差として算出する第1算出手
段と、この第1算出手段で算出された最大濃度差とあら
かじめ設定される第1しきい値とを比較して前記所定の
領域の画像の種別を判定し、第1判定信号を出力する第
1判定手段と、前記注目画素を含む所定の領域における
各画素の色信号間の濃度差の総和を算出する第2算出手
段と、この第2算出手段で算出された色信号間濃度差の
総和とあらかじめ設定される第2,第3しきい値とを比
較して前記所定の領域の画像の種別を判定し、第2およ
び第3判定信号を出力する第2判定手段と、前記出力手
段から出力される処理対象のカラー画像信号に対し、前
記第1ないし第3判定信号により適応的に誤差拡散処理
を行ない、その処理後のカラー画像信号を2値化する処
理手段とを具備している。
The image processing apparatus according to the present invention further comprises a color conversion means for converting the first color image signal into a second color image signal, and a color to be processed from the second color image signal converted by the color conversion means. Output means for outputting an image signal;
From the color image signal to be processed output from the output means, the maximum density and the maximum density in a predetermined area including the target pixel are obtained.
And minimum density, respectively, and calculate the calculated maximum density and
A first calculating means for calculating a difference from the minimum density as a maximum density difference, and comparing the maximum density difference calculated by the first calculating means with a first threshold value set in advance to determine the predetermined area. A first determination unit that determines a type of an image and outputs a first determination signal; a second calculation unit that calculates a sum of density differences between color signals of respective pixels in a predetermined region including the target pixel; The type of the image of the predetermined area is determined by comparing the sum of the density differences between the color signals calculated by the second calculation means with the second and third threshold values set in advance. A second determination unit for outputting a determination signal, and an error diffusion process is adaptively performed on the color image signal to be processed, which is output from the output unit, using the first to third determination signals. Processing means for binarizing the image signal. There.

【0011】[0011]

【0012】[0012]

【作用】本発明によれば、処理対象のカラーの画像信号
をその画像の種別に応じた領域に高精度に分離して、各
領域ごとに画像の種別に応じた最適な2値化処理を高精
度に行なうことができる。したがって、文字領域と写真
領域、さらには、網点写真領域が混在する文書画像であ
っても、文字領域については解像性よく2値化すること
ができ、また、写真領域および網点写真領域については
色再現性よく2値化することができる。特に、従来困難
であった低い線数の網点領域の判定はその精度が向上
し、さらに、簡単なハードウェアで構成することができ
る。
According to the present invention, a color image signal to be processed is separated into regions corresponding to the type of the image with high precision, and an optimum binarization process corresponding to the type of the image is performed for each region. It can be performed with high accuracy. Therefore, even in a document image in which a character area, a photograph area, and a halftone photograph area are mixed, the character area can be binarized with good resolution. Can be binarized with good color reproducibility. In particular, the determination of a halftone dot region having a low number of lines, which has conventionally been difficult, has improved accuracy, and can be configured with simple hardware.

【0013】[0013]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0014】図1は、第1実施例に係る画像処理装置の
構成を概略的に示すものである。この画像処理装置は、
たとえば、イメージスキャナなどの画像読取装置にて読
取り入力された画像信号を、1画素当り8ビットのデジ
タルデータとして入力し、これを2値化処理してプリン
タなどに出力するものである。図1において、ラインバ
ッファ1は、上記8ビットの画像信号(原画像信号)を
一時的に格納して、以下に示す画像処理に供する。
FIG. 1 schematically shows the configuration of the image processing apparatus according to the first embodiment. This image processing device
For example, an image signal read and input by an image reading device such as an image scanner is input as digital data of 8 bits per pixel, and this is binarized and output to a printer or the like. In FIG. 1, a line buffer 1 temporarily stores the 8-bit image signal (original image signal) and provides the image processing described below.

【0015】まず、最大濃度差算出回路2は、ラインバ
ッファ1内の画像信号から、図2に示すように斜線で示
す注目画素を含む(4×4)画素の領域(ウインドウ)
内の最大濃度Dmax および最小濃度Dmin を算出し、以
下に示す式により(4×4)画素の領域内の最大濃度差
ΔDmax を求める。 ΔDmax =Dmax −Dmin
First, the maximum density difference calculation circuit 2 calculates a region (window) of (4 × 4) pixels including a target pixel indicated by oblique lines from the image signal in the line buffer 1 as shown in FIG.
The maximum density Dmax and the minimum density Dmin are calculated, and the maximum density difference ΔDmax in the area of (4 × 4) pixels is calculated by the following equation. ΔDmax = Dmax−Dmin

【0016】最大濃度差算出回路2は、たとえば図3に
示すように構成されている。すなわち、ラインバッファ
1からクロックCLKに同期して列方向に4画素単位で
順次入力される画像信号(8ビット/画素)をセレクタ
21を介して比較器22,23,24,25にそれぞれ
順次分配している。なお、この列単位に入力される画像
信号のセレクタ21による比較器22,23,24,2
5への分配は、クロックCLKを受けて動作する2ビッ
トカウンタ26からの選択信号SE1,SE2により動
作制御されて行なわれる。
The maximum density difference calculation circuit 2 is configured, for example, as shown in FIG. That is, image signals (8 bits / pixel) sequentially input in units of four pixels in the column direction from the line buffer 1 in synchronization with the clock CLK are sequentially distributed to the comparators 22, 23, 24, 25 via the selector 21. are doing. In addition, the comparators 22, 23, 24, 2 by the selector 21 for the image signals input in units of columns.
5 is controlled by the selection signals SE1 and SE2 from the 2-bit counter 26 which operates in response to the clock CLK.

【0017】比較器22,23,24,25は、入力さ
れる画像信号を4画素単位でそれぞれ列方向に比較し、
その列における最大濃度と最小濃度をそれぞれ求める。
そして、次段の比較器27,28は、比較器22,2
3,24,25の各出力信号をそれぞれ入力し、列方向
にそれぞれ求められた最大値と最小値をそれぞれ求める
ものである。
The comparators 22, 23, 24 and 25 compare the input image signals in the column direction in units of four pixels, respectively.
The maximum density and the minimum density in the row are obtained respectively.
Then, the comparators 27 and 28 at the next stage are compared with the comparators 22 and 2 respectively.
3, 24, and 25 are input, and the maximum value and the minimum value obtained in the column direction are obtained.

【0018】以上の比較処理によって、図2に示す(4
×4)画素の領域内における濃度の最大値Dmax と最小
値Dmin とがそれぞれ求められ、出力される。そして、
減算器29は、このようにして求められた濃度の最大値
Dmax と最小値Dmin との差である最大濃度差ΔDmax
を求めるものである。
FIG. 2 shows (4)
X4) The maximum value Dmax and the minimum value Dmin of the density in the pixel area are obtained and output. And
The subtractor 29 calculates a maximum density difference ΔDmax which is a difference between the maximum value Dmax and the minimum value Dmin of the density thus obtained.
Is what you want.

【0019】次に、比較回路3は、上記したように求め
られた最大濃度差ΔDmax とあらかじめ設定される所定
のしきい値Th1とを比較し、次に示す式により写真領域
と文字および網点写真領域を判定し、第1判定信号を出
力する。 ΔDmax ≧Th1 …… 写真領域 …… 判
定信号 0 ΔDmax <Th1 …… 文字/網点写真領域 …… 判
定信号 1
Next, the comparison circuit 3 compares the maximum density difference ΔDmax obtained as described above with a predetermined threshold value Th1, and calculates the photographic area, characters and halftone dots by the following equation. The photographic area is determined, and a first determination signal is output. ΔDmax ≧ Th1… Photo area …… Judgment signal 0 ΔDmax <Th1… Text / dot photographic area… Judgment signal 1

【0020】ここで、上記写真領域と文字および網点写
真領域の判定原理について以下に説明する。図4は、写
真領域、文字領域および網点写真領域の画像信号レベル
の変化を表わしている。文字領域および網点写真領域で
の濃度変化は、図4におけるAのようになっており、濃
度変化が激しい。一方、写真領域での濃度変化は、図4
におけるBのようになっており、濃度変化は比較的に緩
やかである。すなわち、局所領域における最大濃度差は
文字および網点写真領域では大きく、写真領域では小さ
い。上述した写真領域と文字および網点写真領域の判定
は、以上の原理に基づいて行なわれるものである。
Here, the principle of determining the above-mentioned photographic area, character and halftone photographic area will be described below. FIG. 4 shows changes in image signal levels in a photograph area, a character area, and a halftone dot photograph area. The density change in the character area and the halftone dot picture area is as shown in A in FIG. 4, and the density change is remarkable. On the other hand, the density change in the photographic area is shown in FIG.
And the density change is relatively gradual. That is, the maximum density difference in the local area is large in the character and halftone photographic areas, and small in the photographic area. The above-described determination of the photograph area, the character, and the halftone dot photograph area is performed based on the above principle.

【0021】一方、平滑化回路4は、ラインバッファ1
内の画像信号から、図2に示すように斜線で示す注目画
素を含む(4×4)画素の領域内の平均濃度Dave を下
記数1により求める。
On the other hand, the smoothing circuit 4
The average density Dave in the area of (4 × 4) pixels including the pixel of interest indicated by oblique lines as shown in FIG.

【0022】[0022]

【数1】 ただし、Dk,j は注目画素の画像信号の濃度レベルを表
す。また、m,nは領域サイズを示し、m=n=4とす
る。
(Equation 1) Here, Dk, j represents the density level of the image signal of the target pixel. Further, m and n indicate the area size, and m = n = 4.

【0023】平滑化回路4は、たとえば図5に示すよう
に構成されている。すなわち、ラインバッファ1からク
ロックCLKに同期して列方向に4画素単位で順次入力
される画像信号(8ビット/画素)をセレクタ31を介
して加算器32,33,34,35にそれぞれ順次分配
している。なお、この列単位に入力される画像信号のセ
レクタ31による加算器32,33,34,35への分
配は、クロックCLKを受けて動作する2ビットカウン
タ36からの選択信号SE0,SE1により動作制御さ
れて行なわれる。
The smoothing circuit 4 is configured, for example, as shown in FIG. That is, image signals (8 bits / pixel) sequentially input in units of four pixels in the column direction from the line buffer 1 in synchronization with the clock CLK are sequentially distributed to the adders 32, 33, 34, 35 via the selector 31. are doing. The distribution of the image signals input in units of columns to the adders 32, 33, 34 and 35 by the selector 31 is controlled by selection signals SE0 and SE1 from a 2-bit counter 36 which operates in response to the clock CLK. It is done.

【0024】加算器32,33,34,35は、入力さ
れる画像信号を4画素単位でそれぞれ列方向に加算す
る。そして、次段の加算器37は、加算器32,33,
34,35の各出力信号をそれぞれ入力し、列方向にそ
れぞれ求められた加算値を更に加算するものである。
The adders 32, 33, 34 and 35 add the input image signals in the column direction in units of four pixels. The adder 37 at the next stage includes adders 32, 33,
Each of the output signals 34 and 35 is input, and the added value obtained in the column direction is further added.

【0025】以上の加算処理によって、図2に示す(4
×4)画素の領域内における濃度の合計値が求められ
る。そして、除算器38は、このようにして求められた
濃度を領域内の画素数16(=4×4)で除算し、図2
に示す(4×4)画素の領域内における画像信号の平均
濃度Dave を出力する。
By the above addition processing, FIG.
X4) The total value of the densities in the pixel area is obtained. Then, the divider 38 divides the density obtained in this manner by the number of pixels 16 (= 4 × 4) in the area, and FIG.
The average density Dave of the image signal in the area of (4 × 4) pixels shown in FIG.

【0026】次に、最大濃度差算出回路5は、上記した
ように求められた平均濃度Dave から、図2に示すよう
に斜線で示す注目画素を含む(4×4)画素の領域内の
最大濃度Damaxおよび最小濃度Daminを算出し、以下に
示す式により(4×4)画素の領域内の最大濃度差ΔD
amaxを求める。 ΔDamax=Damax−Damin 最大濃度差算出回路5は、たとえば、前述した最大濃度
差算出回路2と同じ構成であり、したがって説明は省略
する。
Next, the maximum density difference calculating circuit 5 calculates the maximum density in the (4 × 4) pixel area including the target pixel indicated by oblique lines as shown in FIG. 2 from the average density Dave obtained as described above. The density Damax and the minimum density Damin are calculated, and the maximum density difference ΔD in the area of (4 × 4) pixels is calculated by the following equation.
Find amax. ΔDamax = Damax−Damin The maximum density difference calculation circuit 5 has, for example, the same configuration as the maximum density difference calculation circuit 2 described above, and therefore, the description is omitted.

【0027】比較回路6は、上記したように求められた
最大濃度差ΔDamaxとあらかじめ設定される所定のしき
い値Th2とを比較し、次に示す式により文字領域と網点
写真領域を判定し、第2判定信号を出力する。 ΔDamax≧Th2 …… 文字領域 …… 判定信号
0 ΔDamax<Th2 …… 網点写真領域 …… 判定信号
The comparison circuit 6 compares the maximum density difference ΔDamax obtained as described above with a predetermined threshold value Th2, and determines a character area and a halftone picture area by the following equation. , And outputs a second determination signal. ΔDamax ≧ Th2 …… Character area …… Judgment signal 0 ΔDamax <Th2 …… Dot picture area …… Judgment signal 1

【0028】ここで、上記文字領域と網点写真領域の判
定原理について以下に説明する。図6は、網点写真画像
の原画像信号と平均濃度信号(平滑化画像信号)との関
係を示し、図7は、文字画像の原画像信号と平均濃度信
号(平滑化画像信号)との関係を示すものである。図6
(a)および図7(a)に示すように、一般に網点写真
画像も文字画像も濃度変化は大きい。しかし、網点写真
画像の濃度変化は周期的であり、またその周期は小さ
い。したがって、図6(b)および図7(b)に示すよ
うに、局所領域で平滑化すると、網点写真画像は濃度変
化が小さくなるが、文字画像は濃度変化が大きい。すな
わち、平滑化画像信号の最大濃度差の大小により網点写
真画像と文字画像とを識別することができる。上述した
網点写真領域と文字領域の判定は、以上の原理に基づい
て行なわれるものである。
Here, the principle of determining the character area and the halftone picture area will be described below. FIG. 6 shows the relationship between the original image signal of the halftone photographic image and the average density signal (smoothed image signal), and FIG. 7 shows the relationship between the original image signal of the character image and the average density signal (smoothed image signal). It shows the relationship. FIG.
As shown in FIG. 7A and FIG. 7A, in general, the density change of both halftone photographic images and character images is large. However, the density change of a halftone dot photographic image is periodic, and its cycle is small. Therefore, as shown in FIG. 6B and FIG. 7B, when the local area is smoothed, the density change of the halftone photographic image is small, but the density change of the character image is large. That is, a halftone dot photographic image and a character image can be distinguished by the magnitude of the maximum density difference of the smoothed image signal. The determination of the halftone dot photograph area and the character area is performed based on the above principle.

【0029】以上のようにして出力される第1判定信号
および第2判定信号により、しきい値セレクタ9は、第
1しきい値発生回路7から出力される第1しきい値、あ
るいは、第2しきい値発生回路8から出力される第2し
きい値のいずれかを選択し、2値化しきい値として出力
する。第1しきい値発生回路7は、たとえば、図8に示
すような組織的ディザ信号を発生するROM(リード・
オンリ・メモリ)などから構成される。また、第2しき
い値発生回路8は、たとえば、固定信号(たとえば12
8)を発生するバッファより構成される。この2つのし
きい値の選択方法は、以下に示す通りである。 第1判定信号:0 第2判定信号:0 …… 第1しき
い値 第1判定信号:0 第2判定信号:1 …… 第1しき
い値 第1判定信号:1 第2判定信号:0 …… 第2しき
い値 第1判定信号:1 第2判定信号:1 …… 第1しき
い値
Based on the first determination signal and the second determination signal output as described above, the threshold value selector 9 determines whether the first threshold value output from the first threshold value generation circuit 7 One of the second thresholds output from the two-threshold generation circuit 8 is selected and output as a binarized threshold. The first threshold value generating circuit 7 is, for example, a ROM (read / read) for generating an organized dither signal as shown in FIG.
(Only memory). Second threshold value generating circuit 8 outputs, for example, a fixed signal (eg, 12
8). The method for selecting these two thresholds is as follows. First judgment signal: 0 Second judgment signal: 0 First threshold signal First judgment signal: 0 Second judgment signal: 1 First threshold signal First judgment signal: 1 Second judgment signal: 0 ... Second threshold value First judgment signal: 1 Second judgment signal: 1 First threshold value

【0030】次に、画像セレクタ10は、原画像信号
(非平滑化画像信号)と原画像信号を平滑化回路4で平
滑化した平滑化画像信号(平均濃度信号)を、第1判定
信号および第2判定信号により選択し、2値化すべき画
像信号として出力する。この2つの画像信号の選択方法
は、以下に示す通りである。 第1判定信号:0 第2判定信号:0 …… 非平滑化
画像信号 第1判定信号:0 第2判定信号:1 …… 非平滑化
画像信号 第1判定信号:1 第2判定信号:0 …… 非平滑化
画像信号 第1判定信号:1 第2判定信号:1 …… 平滑化画
像信号
Next, the image selector 10 converts the original image signal (non-smoothed image signal) and the smoothed image signal (average density signal) obtained by smoothing the original image signal by the smoothing circuit 4 into a first determination signal and It is selected by the second determination signal and output as an image signal to be binarized. The method for selecting these two image signals is as follows. First judgment signal: 0 Second judgment signal: 0 Unsmoothed image signal First judgment signal: 0 Second judgment signal: 1 Unsmoothed image signal First judgment signal: 1st judgment signal: 0 ... Non-smoothed image signal First judgment signal: 1 Second judgment signal: 1 Smoothed image signal

【0031】最後に、2値化回路11は、画像セレクタ
10が出力する画像信号を、しきい値セレクタ9が出力
する2値化しきい値により2値化を行ない、2値化画像
信号を出力する。2値化回路11は、たとえば比較器に
より構成され、画像セレクタ10が出力する画像信号が
しきい値セレクタ9が出力する2値化しきい値よりも大
きければ、2値化画像信号として“1”(黒画素)を出
力し、小さければ“0”(白画素)を出力する。
Finally, the binarization circuit 11 binarizes the image signal output from the image selector 10 by the binarization threshold output from the threshold selector 9 and outputs the binarized image signal. I do. The binarization circuit 11 is configured by, for example, a comparator. If the image signal output from the image selector 10 is larger than the binarization threshold output from the threshold selector 9, "1" is used as the binarized image signal. (Black pixel), and outputs "0" (white pixel) if smaller.

【0032】以上説明した第1実施例によれば、処理対
象の画像信号をその画像の種別に応じた領域に高精度に
分離して、各領域ごとに画像の種別に応じた最適な2値
化処理を高精度に行なうことができる。したがって、文
字領域と写真領域、さらには網点写真領域が混在する文
字画像であっても、文字領域については解像性よく2値
化することができ、また、写真領域および網点写真領域
については色再現性よく2値化することができる。特
に、従来困難であった低い線数の網点写真領域の判定は
その精度が著しく向上し、さらに簡単なハードウェアで
構成することができる。
According to the first embodiment described above, an image signal to be processed is separated into regions corresponding to the type of the image with high precision, and an optimum binary signal corresponding to the type of the image is provided for each region. Conversion processing can be performed with high accuracy. Therefore, even in a character image in which a character area, a photograph area, and a halftone photograph area are mixed, the character area can be binarized with good resolution. Can be binarized with good color reproducibility. In particular, the determination of a halftone dot photographic area having a low number of lines, which has conventionally been difficult, has remarkably improved accuracy, and can be configured with simpler hardware.

【0033】図9は、第2実施例に係る画像処理装置の
構成を概略的に示すものである。この画像処理装置は、
たとえば、イメージスキャナなどの画像読取装置にて読
取り入力されたR(レッド),G(グリーン),B(ブ
ルー)のカラー画像信号を、1画素当たり24ビット
(R,G,B各8ビット)のデジタルデータとして入力
し、これを2値化処理してカラープリンタなどに出力す
るものである。
FIG. 9 schematically shows the configuration of an image processing apparatus according to the second embodiment. This image processing device
For example, R (red), G (green), and B (blue) color image signals read and input by an image reading device such as an image scanner are converted into 24 bits per pixel (8 bits for each of R, G, and B). , And binarize the digital data, and output it to a color printer or the like.

【0034】図9において、色修正回路41は、入力さ
れた注目画素のR,G,B各8ビットのカラー画像信号
(第1カラー画像信号)を、イメージスキャナおよびプ
リンタなどの特性を考慮して、Y(イエロウ),M(マ
ゼンタ),C(シアン)の各8ビットのカラー画像信号
(第2カラー画像信号)に変換する。この変換処理は、
下記数2に示すように3×3のマトリクス演算により行
なわれる。
In FIG. 9, a color correction circuit 41 converts an input 8-bit color image signal (first color image signal) of R, G, and B of a target pixel into consideration in consideration of characteristics of an image scanner, a printer, and the like. Then, the image data is converted into 8-bit color image signals (second color image signals) of Y (yellow), M (magenta), and C (cyan). This conversion process
The calculation is performed by a 3 × 3 matrix operation as shown in the following Expression 2.

【0035】[0035]

【数2】 (Equation 2)

【0036】色修正回路41は、上記数2の演算を行な
うように構成されたものであり、たとえば図10に示す
ように構成されている。すなわち、入力されたR,G,
Bのカラー画像信号は、それぞれ乗算器61,62,6
3に入力され、係数a11,a12,a13とそれぞれ乗算さ
れる。次に、乗算器61,62の各乗算結果がそれぞれ
加算器70に入力され、両者が加算される。そして、加
算器73では、乗算器63の乗算結果と加算器70の加
算結果とが加算され、その加算結果がC濃度信号として
出力される。
The color correction circuit 41 is configured to perform the operation of the above equation 2, for example, as shown in FIG. That is, the input R, G,
The B color image signal is supplied to multipliers 61, 62, and 6 respectively.
3 and are multiplied by coefficients a11, a12 and a13, respectively. Next, the multiplication results of the multipliers 61 and 62 are input to the adder 70, respectively, and both are added. Then, the adder 73 adds the multiplication result of the multiplier 63 and the addition result of the adder 70, and outputs the addition result as a C density signal.

【0037】また、入力されたR,G,Bのカラー画像
信号は、それぞれ乗算器64,65,66に入力され、
係数a21,a22,a23とそれぞれ乗算される。次に、乗
算器64,65の各乗算結果がそれぞれ加算器71に入
力され、両者が加算される。そして、加算器74では、
乗算器66の乗算結果と加算器71の加算結果とが加算
され、その加算結果がM濃度信号として出力される。
The input R, G, B color image signals are input to multipliers 64, 65, 66, respectively.
The coefficients are multiplied by coefficients a21, a22, and a23, respectively. Next, the multiplication results of the multipliers 64 and 65 are input to the adder 71, respectively, and the two are added. Then, in the adder 74,
The multiplication result of the multiplier 66 and the addition result of the adder 71 are added, and the addition result is output as an M density signal.

【0038】さらに、入力されたR,G,Bのカラー画
像信号は、それぞれ乗算器67,68,69に入力さ
れ、係数a31,a32,a33とそれぞれ乗算される。次
に、乗算器67,68の各乗算結果がそれぞれ加算器7
2に入力され、両者が加算される。そして、加算器75
では、乗算器69の乗算結果と加算器72の加算結果と
が加算され、その加算結果がY濃度信号として出力され
る。次に、ラインバッファ42は、上記Y,M,C各8
ビットのカラー画像信号を一時的に格納して、以下に示
す画像処理に供する。
Further, the input R, G, B color image signals are input to multipliers 67, 68, 69, respectively, where they are multiplied by coefficients a31, a32, a33, respectively. Next, the multiplication results of the multipliers 67 and 68 are respectively added to the adders 7.
2 and both are added. And the adder 75
Then, the multiplication result of the multiplier 69 and the addition result of the adder 72 are added, and the addition result is output as a Y density signal. Next, the line buffer 42 stores the Y, M, and C
The bit color image signal is temporarily stored and subjected to the following image processing.

【0039】まず、色信号セレクタ43は、ラインバッ
ファ42からのY,M,Cのカラー画像信号をY,M,
Cの順に1画面(1頁)ごとに選択し、処理対象カラー
画像信号として出力する。次に、最大濃度差算出回路4
4は、色信号セレクタ43からの処理対象カラー画像信
号から、図2に示すように斜線で示す注目画素を含む
(4×4)画素の領域内の最大濃度Dmax および最小濃
度Dmin を算出し、以下に示す式により(4×4)画素
の領域内の最大濃度差ΔDmax を求める。 ΔDmax =Dmax −Dmin 最大濃度差算出回路44は、たとえば、前述した最大濃
度差算出回路2と同じ構成であり、したがって説明は省
略する。
First, the color signal selector 43 converts the Y, M, C color image signals from the line buffer 42 into Y, M,
C is selected for each screen (one page) in the order of C and output as a color image signal to be processed. Next, the maximum density difference calculation circuit 4
4 calculates, from the color image signal to be processed from the color signal selector 43, the maximum density Dmax and the minimum density Dmin in the area of the (4 × 4) pixels including the pixel of interest indicated by oblique lines as shown in FIG. The maximum density difference ΔDmax in the area of (4 × 4) pixels is obtained by the following equation. ΔDmax = Dmax−Dmin The maximum density difference calculation circuit 44 has, for example, the same configuration as the above-described maximum density difference calculation circuit 2, and therefore, the description is omitted.

【0040】比較回路45は、上記したように求められ
た最大濃度差ΔDmax とあらかじめ設定される所定のし
きい値Th1とを比較し、次に示す式により写真領域と文
字および網点写真領域を判定し、第1判定信号を出力す
る。 ΔDmax ≧Th1 …… 写真領域 …… 判
定信号 0 ΔDmax <Th1 …… 文字/網点写真領域 …… 判
定信号 1 なお、上記写真領域と文字および網点写真領域の判定原
理は、前述した比較回路3における判定原理と同様であ
るので説明は省略する。
The comparison circuit 45 compares the maximum density difference ΔDmax obtained as described above with a predetermined threshold value Th1 and determines the photographic area and the character and halftone photographic area by the following equation. Make a decision and output a first decision signal. ΔDmax ≧ Th1 photo area judgment signal 0 ΔDmax <Th1 character / dot photo area judgment signal 1 The above-described comparison principle between the photo area and the character and halftone photo area is based on the comparison circuit 3 described above. The description is omitted because it is the same as the determination principle in.

【0041】一方、色信号間濃度差総和算出回路46
は、ラインバッファ42からのY,M,Cのカラー画像
信号から、図2に示すように斜線で示す注目画素を含む
(4×4)画素の領域内の色信号間の濃度差の総和の平
均値Dsub を下記数3により算出する。
On the other hand, a color signal density difference sum total calculation circuit 46
Is the sum of the density differences between the color signals in the (4 × 4) pixel area including the target pixel indicated by oblique lines from the Y, M, and C color image signals from the line buffer 42 as shown in FIG. The average value Dsub is calculated by the following equation (3).

【0042】[0042]

【数3】 (Equation 3)

【0043】ただし、Dc ,Dm ,Dy はそれぞれカラ
ー画像信号のY,M,Cの濃度レベルを、また、ABS
(X)はXの絶対値を表す。さらに、m,nは領域サイ
ズを示し、m=n=4とする。
Where D c , D m , D y Represents the density levels of Y, M, and C of the color image signal, respectively, and ABS
(X) represents the absolute value of X. Further, m and n indicate the area size, and m = n = 4.

【0044】色信号間濃度差総和算出回路46は、たと
えば図11に示すように構成されている。すなわち、ラ
インバッファ42から色信号セレクタ43を介してクロ
ックCLKに同期して列方向に4画素単位で順次入力さ
れるY,M,Cのカラー画像信号(24ビット/画素)
を、セレクタ81を介して色信号間濃度差算出回路8
2,83,84,85にそれぞれ順次分配している。な
お、この列単位に入力される画像信号のセレクタ81に
よる色信号間濃度差算出回路82,83,84,85へ
の分配は、クロックCLKを受けて動作する2ビットカ
ウンタ86からの選択信号SE0,SE1により動作制
御されて行なわれる。
The color signal density difference sum total calculation circuit 46 is configured, for example, as shown in FIG. That is, Y, M, and C color image signals (24 bits / pixel) sequentially input in units of four pixels in the column direction from the line buffer 42 via the color signal selector 43 in synchronization with the clock CLK.
To the color signal density difference calculation circuit 8 via the selector 81
2, 83, 84, and 85, respectively. Note that the distribution of the image signals input in units of columns to the density difference calculation circuits 82, 83, 84, 85 between the color signals by the selector 81 is performed by selecting signals SE0 from a 2-bit counter 86 operating in response to the clock CLK. , SE1.

【0045】色信号間濃度差算出回路82,83,8
4,85は、4画素単位でそれぞれ列方向に画像信号の
色信号間濃度差を算出し、その列における色信号間濃度
差の総和を求める。
Color signal density difference calculation circuits 82, 83, 8
Nos. 4, 85 calculate the density difference between the color signals of the image signals in the column direction in units of four pixels, and obtain the sum of the density differences between the color signals in the column.

【0046】加算器87は、色信号間濃度差算出回路8
2,83,84,85の各出力信号をそれぞれ入力し、
列方向にそれぞれ求められた色信号間濃度差を加算す
る。そして、次段の除算器88は、このようにして求め
られた色信号間濃度差を領域内の画素数16(=4×
4)で除算し、図2に示す(4×4)画素の領域内にお
ける色信号間濃度差の総和の平均値Dsub を出力する。
The adder 87 is provided for calculating the density difference between color signals 8.
2, 83, 84, 85 output signals are input,
The density differences between the color signals obtained in the column direction are added. Then, the divider 88 at the next stage calculates the density difference between the color signals obtained in this way to the number of pixels 16 (= 4 ×
4), and outputs the average value Dsub of the sum of the density differences between the color signals in the (4 × 4) pixel area shown in FIG.

【0047】色信号間濃度差算出回路82,83,8
4,85は、たとえば図12に示すように構成されてい
る。すなわち、減算器91〜93,94〜96,97〜
99,100〜102には、それぞれ列方向に順次入力
される4画素のY,M,Cのカラー画像信号が1画素づ
つ入力される。まず、減算器91,92,93には、そ
れぞれYとM、MとC、CとYの画像信号が入力され、
それぞれの差が算出される。次に、減算器91,92の
各減算結果がそれぞれ加算器103に入力され、両者が
加算される。そして、加算器107では、加算器103
の加算結果と減算器93の減算結果とが加算される。
Color signal density difference calculation circuits 82, 83, 8
4 and 85 are configured, for example, as shown in FIG. That is, the subtractors 91-93, 94-96, 97-
To 99, 100 to 102, four pixel Y, M, C color image signals sequentially input in the column direction are input one pixel at a time. First, image signals of Y and M, M and C, and C and Y are input to the subtractors 91, 92, and 93, respectively.
Each difference is calculated. Next, the respective subtraction results of the subtracters 91 and 92 are input to the adder 103, respectively, and both are added. Then, in the adder 107, the adder 103
And the subtraction result of the subtractor 93 are added.

【0048】また、減算器94,95,96には、それ
ぞれYとM、MとC、CとYの画像信号が入力され、そ
れぞれの差が算出される。次に、減算器94,95の各
減算結果がそれぞれ加算器104に入力され、両者が加
算される。そして、加算器108では、加算器104の
加算結果と減算器96の減算結果とが加算される。
The subtracters 94, 95, and 96 receive the image signals of Y and M, M and C, and C and Y, respectively, and calculate the differences between them. Next, the respective subtraction results of the subtracters 94 and 95 are input to the adder 104, respectively, and both are added. Then, the adder 108 adds the addition result of the adder 104 and the subtraction result of the subtractor 96.

【0049】また、減算器97,98,99には、それ
ぞれYとM、MとC、CとYの画像信号が入力され、そ
れぞれの差が算出される。次に、減算器97,98の各
減算結果がそれぞれ加算器105に入力され、両者が加
算される。そして、加算器109では、加算器105の
加算結果と減算器99の減算結果とが加算される。
The subtracters 97, 98, and 99 receive the image signals of Y and M, M and C, and C and Y, respectively, and calculate the difference between them. Next, the respective subtraction results of the subtracters 97 and 98 are input to the adder 105, respectively, and the two are added. Then, in the adder 109, the addition result of the adder 105 and the subtraction result of the subtractor 99 are added.

【0050】さらに、減算器100,101,102に
は、それぞれYとM、MとC、CとYの画像信号が入力
され、それぞれの差が算出される。次に、減算器10
0,101の各減算結果がそれぞれ加算器106に入力
され、両者が加算される。そして、加算器110では、
加算器106の加算結果と減算器102の減算結果とが
加算される。
Further, image signals of Y and M, M and C, and C and Y are input to the subtractors 100, 101, and 102, respectively, and the respective differences are calculated. Next, the subtractor 10
The subtraction results of 0 and 101 are respectively input to the adder 106, and both are added. Then, in the adder 110,
The addition result of the adder 106 and the subtraction result of the subtractor 102 are added.

【0051】加算器111は、加算器107,108の
各加算結果を加算し、加算器112は、加算器109,
110の各加算結果を加算する。そして、加算器113
は、加算器111,112の各加算結果を加算し、その
加算結果を列方向の色信号間濃度差の総和として出力す
る。
An adder 111 adds the respective addition results of the adders 107 and 108, and an adder 112 adds
The respective addition results of 110 are added. Then, the adder 113
Add the respective addition results of the adders 111 and 112 and output the addition result as the sum of the color signal density differences in the column direction.

【0052】次に、比較回路47は、上記したように求
められた色信号間濃度差の総和の平均値Dsub とあらか
じめ設定される所定のしきい値Th2とを比較し、次に示
す式により文字領域と網点写真領域を判定し、第2判定
信号を出力する。 Dsub ≧Th2 …… 網点写真領域 …… 判定信号
0 Dsub <Th2 …… 文字領域 …… 判定信号
Next, the comparison circuit 47 compares the average value Dsub of the sum of the density differences between the color signals obtained as described above and a predetermined threshold value Th2, and calculates the following equation. The character area and the halftone picture area are determined, and a second determination signal is output. Dsub ≧ Th2… Dot picture area …… Judgment signal
0 Dsub <Th2 …… Character area …… Judgment signal
1

【0053】ここで、上記網点写真領域と文字領域の判
定原理について以下に説明する。図13は、網点写真の
Y,M,C各濃度信号のパターンを示し、図14は、文
字のY,M,C各濃度信号のパターンを示すものであ
る。この図に示すように、一般に網点写真領域はY,
M,Cの各網点の位相が異なっている。したがって、各
画素のY,M,Cの濃度信号のレベル差を比較するとそ
の差は大きい。
Here, the principle of determining the halftone picture area and the character area will be described below. FIG. 13 shows a pattern of each density signal of Y, M and C of the halftone picture, and FIG. 14 shows a pattern of each density signal of Y, M and C of the character. As shown in this figure, generally, the halftone dot photograph area is Y,
The phases of the halftone dots of M and C are different. Therefore, when the level difference between the density signals of Y, M, and C of each pixel is compared, the difference is large.

【0054】一方、文字領域ではY,M,Cの濃度信号
レベルはほぼ等しい。したがって、局所領域における色
信号間濃度差の総和が大きいときは網点写真領域、小さ
いときは文字領域である。上述した網点写真領域と文字
領域の判定は、以上の原理に基づいて行なわれるもので
ある。
On the other hand, in the character area, the density signal levels of Y, M and C are almost equal. Therefore, when the total sum of the density differences between the color signals in the local area is large, it is a halftone dot photographic area, and when it is small, it is a character area. The determination of the halftone dot photograph area and the character area is performed based on the above principle.

【0055】以上のようにして出力される第1判定信号
および第2判定信号により、しきい値セレクタ50は、
第1しきい値発生回路48から出力される第1しきい
値、あるいは、第2しきい値発生回路49から出力され
る第2しきい値のいずれかを選択し、2値化しきい値と
して出力する。第1,第2しきい値発生回路48,49
は、たとえば、前述した第1,第2しきい値発生回路
7,8と同様な構成である。この2つのしきい値の選択
方法は、以下に示す通りである。 第1判定信号:0 第2判定信号:0 …… 第1しき
い値 第1判定信号:0 第2判定信号:1 …… 第1しき
い値 第1判定信号:1 第2判定信号:0 …… 第1しき
い値 第1判定信号:1 第2判定信号:1 …… 第2しき
い値
Based on the first determination signal and the second determination signal output as described above, the threshold selector 50
Either the first threshold value output from the first threshold value generation circuit 48 or the second threshold value output from the second threshold value generation circuit 49 is selected and used as a binary threshold value. Output. First and second threshold value generating circuits 48 and 49
Has a configuration similar to that of the above-described first and second threshold value generation circuits 7 and 8, for example. The method for selecting these two thresholds is as follows. First judgment signal: 0 Second judgment signal: 0 First threshold signal First judgment signal: 0 Second judgment signal: 1 First threshold signal First judgment signal: 1 Second judgment signal: 0 ... 1st threshold 1st judgment signal: 1 2nd judgment signal: 1 ... 2nd threshold

【0056】次に、画像セレクタ52は、色信号セレク
タ43が出力する処理対象カラー画像信号(非平滑化画
像信号)と処理対象カラー画像信号を平滑化回路51で
平滑化した平滑化画像信号を、第1判定信号および第2
判定信号により選択し、2値化すべき画像信号として出
力する。この2つの画像信号の選択方法は、以下に示す
通りである。 第1判定信号:0 第2判定信号:0 …… 非平滑化
画像信号 第1判定信号:0 第2判定信号:1 …… 非平滑化
画像信号 第1判定信号:1 第2判定信号:0 …… 平滑化画
像信号 第1判定信号:1 第2判定信号:1 …… 非平滑化
画像信号
Next, the image selector 52 converts the color image signal to be processed (non-smoothed image signal) output from the color signal selector 43 and the smoothed image signal obtained by smoothing the color image signal to be processed by the smoothing circuit 51. , The first determination signal and the second
The image is selected by the determination signal and output as an image signal to be binarized. The method for selecting these two image signals is as follows. First judgment signal: 0 Second judgment signal: 0 Unsmoothed image signal First judgment signal: 0 Second judgment signal: 1 Unsmoothed image signal First judgment signal: 1st judgment signal: 0 ... Smoothed image signal First judgment signal: 1 Second judgment signal: 1 Non-smoothed image signal

【0057】平滑化回路51は、図2に示すように斜線
で示す注目画素を含む(4×4)画素の領域内における
平均濃度を求めるものであり、たとえば、前述した平滑
化回路4と同様な構成である。
The smoothing circuit 51 calculates the average density in the area of (4 × 4) pixels including the target pixel indicated by oblique lines as shown in FIG. Configuration.

【0058】最後に、2値化回路53は、画像セレクタ
52が出力する画像信号を、しきい値セレクタ50が出
力する2値化しきい値により2値化を行ない、2値化画
像信号を出力する。2値化回路53は、たとえば比較器
により構成され、画像セレクタ52が出力する画像信号
がしきい値セレクタ50が出力する2値化しきい値より
も大きければ、2値化画像信号として“1”(黒画素)
を出力し、小さければ“0”(白画素)を出力する。以
上説明した第2実施例によれば、カラーの画像信号に対
して第1実施例と同様な作用効果が得られる。
Finally, the binarization circuit 53 binarizes the image signal output from the image selector 52 with the binarization threshold output from the threshold selector 50, and outputs the binarized image signal. I do. The binarization circuit 53 is composed of, for example, a comparator. If the image signal output from the image selector 52 is larger than the binarization threshold output from the threshold selector 50, "1" is used as the binarized image signal. (Black pixel)
And outputs “0” (white pixel) if smaller. According to the second embodiment described above, the same operation and effect as in the first embodiment can be obtained for a color image signal.

【0059】図15は、第3実施例に係る画像処理装置
の構成を概略的に示すものである。この画像処理装置
は、上述した第2実施例における符号48〜53で示す
部分を適応形誤差拡散回路54に置き換えたものであ
る。したがって、図9と同一部分には同一符号を付して
その説明は省略し、異なる部分についてのみ詳細に説明
する。
FIG. 15 schematically shows the structure of an image processing apparatus according to the third embodiment. This image processing apparatus is obtained by replacing the parts indicated by reference numerals 48 to 53 in the second embodiment with an adaptive error diffusion circuit 54. Therefore, the same parts as those in FIG. 9 are denoted by the same reference numerals, and the description thereof will be omitted. Only different parts will be described in detail.

【0060】第2実施例と同様にして出力される第1判
定信号(比較回路45の出力)および第2判定信号(比
較回路47の出力)は、色信号セレクタ43からの処理
対象カラー画像信号とともに適応形誤差拡散回路54に
それぞれ入力される。適応形誤差拡散回路54は、処理
対象カラー画像信号に対し、第1判定信号および第2判
定信号により適応的に誤差拡散処理を行ない、その処理
後の画像信号を2値化する。
The first determination signal (the output of the comparison circuit 45) and the second determination signal (the output of the comparison circuit 47) output in the same manner as in the second embodiment are the color image signals to be processed from the color signal selector 43. And input to the adaptive error diffusion circuit 54. The adaptive error diffusion circuit 54 adaptively performs error diffusion processing on the color image signal to be processed based on the first determination signal and the second determination signal, and binarizes the processed image signal.

【0061】以下、適応形誤差拡散回路54について図
16を参照して説明する。まず、アンド回路で構成され
る識別信号発生器121は、第1判定信号と第2判定信
号との論理積をとり、以下に示す識別信号122を出力
する。 識別信号:0 …… 写真・網点領域 識別信号:1 …… 文字領域
Hereinafter, the adaptive error diffusion circuit 54 will be described with reference to FIG. First, the identification signal generator 121 constituted by an AND circuit calculates a logical product of the first determination signal and the second determination signal, and outputs an identification signal 122 shown below. Identification signal: 0 Photo / dot area Identification signal: 1 Character area

【0062】補正回路123は、注目画素の画像情報を
補正する加算器であり、処理対象カラー画像信号124
と後述する選択画像補正信号125とを加算し、補正画
像信号126を出力する。補正画像信号126は、2値
化回路127で所定のしきい値Thと比較することによ
り2値化され、2値化画像信号128が出力される。こ
の場合、補正画像信号126がしきい値Thよりも大き
ければ2値化画像信号128として“1”(黒画素)を
出力し、小さければ“0”(白画素)を出力する。
The correction circuit 123 is an adder for correcting the image information of the pixel of interest, and is a color image signal 124 to be processed.
And a selected image correction signal 125 to be described later, and a corrected image signal 126 is output. The corrected image signal 126 is binarized by comparing it with a predetermined threshold value Th in a binarization circuit 127, and a binarized image signal 128 is output. In this case, if the corrected image signal 126 is larger than the threshold value Th, “1” (black pixel) is output as the binarized image signal 128, and if it is smaller, “0” (white pixel) is output.

【0063】2値化誤差算出回路129は、減算器で構
成されていて、補正回路123が出力する補正画像信号
(CI)126と2値化画像信号(B)128との減算
処理を行なうことにより、前記2値化処理で生じた2値
化誤差信号(EB)130を算出する。すなわち、2値
化誤差(EB)を EB=CI−B として求める。
The binarization error calculation circuit 129 is constituted by a subtractor, and performs a subtraction process between the correction image signal (CI) 126 output from the correction circuit 123 and the binarization image signal (B) 128. Thus, a binarization error signal (EB) 130 generated in the binarization processing is calculated. That is, the binarization error (EB) is obtained as EB = CI-B.

【0064】重み誤差算出回路131は、乗算器で構成
されていて、重み係数発生器132で発生する重み係数
と2値化誤差信号130との乗算処理を行なうことによ
り、重み誤差信号133を出力する。重み係数発生器1
32は、4つの重み係数(A=7/16、B=1/1
6、C=5/16、D=3/16)を注目画素の周辺で
4画素の対応する位置に応じて発生するメモリで構成さ
れる。4画素の重み誤差は、それぞれ eA =A×EB eB =B×EB eC =C×EB eD =D×EB とする。ただし、eB は eB =EB−(eA +eC +eD ) としてもよい。
The weight error calculating circuit 131 is composed of a multiplier, and outputs a weight error signal 133 by multiplying the weight coefficient generated by the weight coefficient generator 132 with the binary error signal 130. I do. Weight coefficient generator 1
32 indicates four weighting factors (A = 7/16, B = 1/1)
6, C = 5/16, D = 3/16) in a memory generated in accordance with the corresponding position of four pixels around the target pixel. The weight error of the four pixels is eA = A * EBeB = B * EBeC = C * EBeD = D * EB. However, eB may be eB = EB- (eA + eC + eD).

【0065】選択回路134は、識別信号122を基
に、重み誤差信号133を選択するか否かを決定する。
すなわち、識別信号122が“0”であれば、選択重み
誤差信号135として2値化誤差信号130を、識別信
号122が“1”であれば、選択重み誤差信号135と
して“0”を出力する。そして、各重み誤差は、誤差記
憶部136のそれぞれ対応する位置に記憶される。誤差
記憶部136は、2ライン分のラインメモリで構成され
ている。画像補正信号137は、誤差記憶部136の*
の位置から読出した信号である。*の位置には、既に処
理された4画素分の重み誤差が記憶されている。
The selection circuit 134 determines whether to select the weight error signal 133 based on the identification signal 122.
That is, if the identification signal 122 is “0”, the binarization error signal 130 is output as the selection weight error signal 135, and if the identification signal 122 is “1”, “0” is output as the selection weight error signal 135. . Then, each weight error is stored in a corresponding position in the error storage unit 136. The error storage unit 136 is configured by a line memory for two lines. The image correction signal 137 is stored in the error storage unit 136 as *
Is a signal read from the position. At the position of *, the weight error of four pixels already processed is stored.

【0066】選択回路138は、識別信号122を基
に、誤差記憶部136から読出される画像補正信号13
7を選択するか否かを決定する。すなわち、識別信号1
22が“0”であれば、選択画像補正信号125として
画像補正信号137を、識別信号122が“1”であれ
ば、選択画像補正信号125として“0”を出力する。
補正回路123は、以上述べた方法で算出した選択画像
補正信号125と処理対象カラー画像信号124との加
算処理を行なう。以上説明した第3実施例によれば、第
2実施例と同様な作用効果が得られる。
The selection circuit 138 outputs the image correction signal 13 read from the error storage unit 136 based on the identification signal 122.
7 is determined. That is, the identification signal 1
If 22 is “0”, an image correction signal 137 is output as the selected image correction signal 125, and if the identification signal 122 is “1”, “0” is output as the selected image correction signal 125.
The correction circuit 123 performs an addition process on the selected image correction signal 125 calculated by the method described above and the processing target color image signal 124. According to the third embodiment described above, the same functions and effects as those of the second embodiment can be obtained.

【0067】図17は、第4実施例に係る画像処理装置
の構成を概略的に示すものである。この画像処理装置
は、たとえば、イメージスキャナなどの画像読取装置に
て画像を4回走査し、入力のR,G,Bのカラー画像信
号からページ単位にY,M,C,Kの2値化信号を出力
するもので、上述した第3実施例において、文字領域を
更にカラー文字領域と黒文字領域とに分割するようらし
たものである。したがって、図15と同一部分には同一
符号を付してその説明は省略し、異なる部分についての
み詳細に説明する。
FIG. 17 schematically shows the structure of an image processing apparatus according to the fourth embodiment. This image processing apparatus scans an image four times using an image reading device such as an image scanner, for example, and binarizes Y, M, C, and K in units of pages from input R, G, and B color image signals. A signal is output. In the third embodiment described above, the character area is further divided into a color character area and a black character area. Therefore, the same portions as those in FIG. 15 are denoted by the same reference numerals, and description thereof will be omitted. Only different portions will be described in detail.

【0068】色信号セレクタ43は、4回変換される
Y,M,Cのカラー画像信号を最初の3回はY,M,C
の順にページごとに選択し、4回目はY,M,Cいずれ
かの信号(どれでもよい)をKとして選択し、処理対象
カラー画像信号を出力する。
The color signal selector 43 converts the Y, M, and C color image signals converted four times into Y, M, and C signals for the first three times.
, And for the fourth time, any one of Y, M, and C signals (any signal is selected) is selected as K, and a color image signal to be processed is output.

【0069】比較回路45は、最大濃度差算出回路44
で求められた最大濃度差ΔDmax とあらかじめ設定され
る第1しきい値Th1とを比較し、次に示す式により写真
領域と文字および網点写真領域を判定し、第1判定信号
ID1を出力する。 ΔDmax ≧Th1 …… 写真領域 …… I
D1:0 ΔDmax <Th1 …… 文字/網点写真領域 …… I
D1:1 なお、上記写真領域と文字および網点写真領域の判定原
理は、前述した比較回路3における判定原理と同様であ
る。
The comparison circuit 45 includes a maximum density difference calculation circuit 44
The maximum density difference ΔDmax obtained in the above is compared with a first threshold value Th1 which is set in advance, and the photographic area, the character and the halftone photographic area are determined by the following equation, and the first determination signal ID1 is output. . ΔDmax ≧ Th1 …… Photo area …… I
D1: 0 ΔDmax <Th1 ... Character / halftone picture area ... I
D1: 1 Note that the principle of determination of the above-described photographic area and the text and halftone photographic area is the same as that of the comparison circuit 3 described above.

【0070】比較回路55(比較回路47に対応)は、
色信号間濃度差総和算出回路46で求められた色信号間
濃度差の総和の平均値Dsub とあらかじめ設定される第
2しきい値Th2、第3しきい値Th3とを比較し、次に示
す条件により黒文字領域、カラー文字領域、および網点
写真領域を判定し、第2判定信号ID2および第3判定
信号ID3をそれぞれ出力する。 Dsub ≧Th2 …… 網点写真領域 …… ID2:
0 ID3:0 Dsub <Th2 かつ Dsub ≧Th3…… カラー文字領
域 …… ID2:1 ID3:0 Dsub <Th3 …… 黒文字領域 …… ID2:
1 ID3:1
The comparison circuit 55 (corresponding to the comparison circuit 47)
The average value Dsub of the sum of the color signal density differences calculated by the color signal density difference sum calculation circuit 46 is compared with a preset second threshold value Th2 and third threshold value Th3. The black character area, the color character area, and the halftone picture area are determined according to the conditions, and the second determination signal ID2 and the third determination signal ID3 are output. Dsub ≧ Th2 …… Dot picture area …… ID2:
0 ID3: 0 Dsub <Th2 and Dsub ≧ Th3 ... color character area ID2: 1 ID3: 0 Dsub <Th3 ... black character area ID2:
1 ID3: 1

【0071】ここで、上記網点写真領域、カラー文字領
域、および黒文字領域の判定原理について以下に説明す
る。図18は、網点写真のY,M,C各濃度信号のパタ
ーンを示し、図19は、カラー文字のY,M,C各濃度
信号のパターンを示し、図20は、黒文字のY,M,C
各濃度信号のパターンを示すものである。図18に示す
ように、一般に網点写真はY,M,Cの各網点の位相が
異なっている。したがって、(m×n)のウインドウ内
における各画素のY,M,Cの濃度信号のレベル差の総
和を求めると、その値は大きい。
Here, the principle of determining the halftone picture area, the color character area and the black character area will be described below. 18 shows a pattern of each density signal of Y, M, and C of a halftone dot photograph, FIG. 19 shows a pattern of each density signal of Y, M, and C of a color character, and FIG. , C
9 shows a pattern of each density signal. As shown in FIG. 18, a halftone picture generally has different phases of Y, M, and C halftone dots. Therefore, when the sum of the level differences of the density signals of Y, M, and C of each pixel in the (m × n) window is obtained, the sum is large.

【0072】また、図19に示すように、カラー文字で
はY,M,Cのうち2つの信号はそのレベルがほぼ等し
い。したがって、(m×n)のウインドウ内における各
画素のY,M,Cの濃度信号のレベル差の総和を求める
と、その値は中位である。
As shown in FIG. 19, in a color character, two signals among Y, M, and C have almost the same level. Therefore, when the sum of the level differences of the density signals of Y, M, and C of each pixel in the (m × n) window is calculated, the value is medium.

【0073】また、図20に示すように、黒文字では
Y,M,Cの濃度信号レベルはほぼ等しい。したがっ
て、(m×n)のウインドウ内における各画素のY,
M,Cの濃度信号のレベル差の総和を求めると、その値
は小さい。
As shown in FIG. 20, the density signal levels of Y, M, and C are substantially equal in black characters. Therefore, Y, Y of each pixel in the (m × n) window
When the sum of the level differences between the M and C density signals is obtained, the value is small.

【0074】したがって、局所領域における色信号間濃
度差の総和が大きいときは網点写真領域、中位のときは
カラー文字領域、小さいときは黒文字領域である。上述
した網点写真領域、カラー文字領域、および黒文字領域
の判定は、以上の原理に基づいて行なわれるものであ
る。
Therefore, when the total sum of the density differences between the color signals in the local area is large, it is a halftone dot photographic area; The determination of the halftone dot photograph area, the color character area, and the black character area described above is performed based on the above principle.

【0075】適応形誤差拡散回路56(適応形誤差拡散
回路54に対応)は、上記したようして出力される第1
ないし第3判定信号ID1〜ID3により、処理対象カ
ラー画像信号に対し適応的に誤差拡散処理を行ない、そ
の処理後の画像信号を2値化する。適応形誤差拡散回路
56は、図21に示すように構成されているが、第3実
施例の適応形誤差拡散回路54とほぼ同様な構成である
ので、図16と同様な部分には同一符号を付してその説
明は省略し、異なる部分についてのみ説明する。アンド
回路で構成される識別信号発生器121は、第1判定信
号ID1と第2判定信号ID2との論理積をとり、以下
に示す識別信号122を出力する。 識別信号:0 …… 写真・網点領域 識別信号:1 …… 文字領域
The adaptive error diffusion circuit 56 (corresponding to the adaptive error diffusion circuit 54) outputs the first
Based on the third determination signals ID1 to ID3, error diffusion processing is adaptively performed on the color image signal to be processed, and the processed image signal is binarized. Although the adaptive error diffusion circuit 56 is configured as shown in FIG. 21, the configuration is substantially the same as that of the adaptive error diffusion circuit 54 of the third embodiment. The description thereof is omitted, and only different parts will be described. The identification signal generator 121 configured by an AND circuit calculates the logical product of the first determination signal ID1 and the second determination signal ID2, and outputs the following identification signal 122. Identification signal: 0 Photo / dot area Identification signal: 1 Character area

【0076】セレクタ139は、2値化回路127の出
力側に設けられていて、第3判定信号ID3と処理対象
カラー画像信号により、2値化画像信号128または
“0”を出力する。すなわち、処理対象カラー画像信号
がY、MまたはCで、かつID3=0のときは2値化画
像信号128を、処理対象カラー画像信号がY、Mまた
はCで、かつID3=1のときは“0”を、処理対象カ
ラー画像信号がKで、かつID3=0のときは“0”
を、処理対象カラー画像信号がKで、かつID3=1の
ときは2値化画像信号128を出力する。以上説明した
第4実施例によれば、第3実施例と同様な作用効果が得
られる。
The selector 139 is provided on the output side of the binarization circuit 127, and outputs the binarized image signal 128 or "0" according to the third determination signal ID3 and the color image signal to be processed. That is, when the color image signal to be processed is Y, M or C and ID3 = 0, the binarized image signal 128 is output. When the color image signal to be processed is Y, M or C and ID3 = 1, the binary image signal 128 is output. “0” is set to “0” when the color image signal to be processed is K and ID3 = 0.
When the color image signal to be processed is K and ID3 = 1, a binarized image signal 128 is output. According to the fourth embodiment described above, the same functions and effects as those of the third embodiment can be obtained.

【0077】なお、本発明は前記実施例に限定されるも
のではない。たとえば、最大濃度差、色信号間濃度差の
総和、あるいは、平滑化画像信号などを抽出するための
参照範囲の領域は、(4×4)画素に限定されるもので
はなく、適宜範囲を自由に変更してもよい。
The present invention is not limited to the above embodiment. For example, the range of the reference range for extracting the maximum density difference, the sum of the density differences between the color signals, or the smoothed image signal is not limited to (4 × 4) pixels, and the range can be freely set as appropriate. May be changed to

【0078】また、最大濃度差算出回路において、最大
濃度差ΔDmax を(最大濃度差)/(平均濃度)、ある
いは、画像の2次微分値であるラプラシアン値などの文
字/網点部と写真部で異なる性質を持つ特徴量で置き換
えてもよい。
In the maximum density difference calculation circuit, the maximum density difference ΔDmax is calculated by (maximum density difference) / (average density) or a character / halftone dot portion such as a Laplacian value which is a second derivative of an image and a photograph portion. May be replaced with a feature having a different property.

【0079】また、2値の出力を行なう場合を示した
が、しきい値を複数個設定することにより多値の出力も
可能であり、多値のレーザプリンタ、熱転写プリンタな
どに対応した最適な階調表現が可能となる。
Although the case where binary output is performed has been described, multivalue output can be performed by setting a plurality of threshold values, and the optimum value corresponding to a multivalue laser printer, a thermal transfer printer, or the like is provided. Gradation expression becomes possible.

【0080】また、特徴量の値および判定しきい値は、
Y,M,Cの画像濃度に変換した値を基に算出している
が、画像読取手段で読取った画像信号、つまり、画像情
報の反射率に対応したR,G,Bのカラー画像信号、さ
らには、人間の視覚特性を考慮した変換信号を基に識別
を行なってもよい。
The value of the feature value and the judgment threshold value are
Although the calculation is based on the values converted into the image densities of Y, M, and C, the image signals read by the image reading means, that is, the R, G, and B color image signals corresponding to the reflectance of the image information, Further, the identification may be performed based on the converted signal in consideration of human visual characteristics.

【0081】さらに、処理対象とするカラー画像信号は
R,G,B信号であるが、Y,M,C、あるいは、Y,
M,C,Kの色素量信号や網点%信号、あるいは、X,
Y,Z、L***、L***などのカラー画像信号で
もよい。
Further, the color image signals to be processed are R, G, B signals, but Y, M, C, or Y, M, C.
M, C, K dye amount signals and halftone dot% signals, or X,
Color image signals such as Y, Z, L * a * b * , L * u * v * may be used.

【0082】[0082]

【発明の効果】以上詳述したように本発明によれば、文
字領域と写真領域、さらには、網点写真領域が混在する
文書画像であっても、文字領域については解像性よく2
値化することができ、また、写真領域および網点写真領
域については色再現性よく2値化することができ、しか
も、特に低い線数の網点写真領域の判定はその精度が向
上し、さらに、簡単なハードウェアで構成することがで
きる画像処理装置を提供できる。
As described above in detail, according to the present invention, even in a document image in which a character area and a photographic area and a halftone photographic area are mixed, the character area has high resolution.
It can be binarized, and the photo area and the halftone dot area can be binarized with good color reproducibility. In addition, the accuracy of the determination of the halftone dot area with a particularly low number of lines is improved. Further, it is possible to provide an image processing device that can be configured with simple hardware.

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

【図1】本発明の第1実施例に係る画像処理装置の構成
を概略的に示すブロック図。
FIG. 1 is a block diagram schematically showing a configuration of an image processing apparatus according to a first embodiment of the present invention.

【図2】注目画素と参照領域(ウィンドウ)の位置関係
を示す図。
FIG. 2 is a diagram showing a positional relationship between a target pixel and a reference area (window).

【図3】最大濃度差算出回路の構成を示すブロック図。FIG. 3 is a block diagram illustrating a configuration of a maximum density difference calculation circuit.

【図4】各種画像の濃度変化を表す図。FIG. 4 is a diagram illustrating a density change of various images.

【図5】平滑化回路の構成を示すブロック図。FIG. 5 is a block diagram illustrating a configuration of a smoothing circuit.

【図6】網点写真領域の判定原理を説明する図。FIG. 6 is a view for explaining the principle of determining a halftone dot photograph area.

【図7】文字領域の判定原理を説明する図。FIG. 7 is a view for explaining the principle of determining a character area;

【図8】第1しきい値発生回路のしきい値の一例を示す
図。
FIG. 8 is a diagram illustrating an example of a threshold value of a first threshold value generation circuit.

【図9】本発明の第2実施例に係る画像処理装置の構成
を概略的に示すブロック図。
FIG. 9 is a block diagram schematically showing a configuration of an image processing apparatus according to a second embodiment of the present invention.

【図10】色修正回路の構成を示すブロック図。FIG. 10 is a block diagram illustrating a configuration of a color correction circuit.

【図11】色信号間濃度差総和算出回路の構成を示すブ
ロック図。
FIG. 11 is a block diagram showing a configuration of a circuit for calculating the sum of density differences between color signals.

【図12】色信号間濃度差算出回路の構成を示すブロッ
ク図。
FIG. 12 is a block diagram showing a configuration of a circuit for calculating a density difference between color signals.

【図13】網点写真領域のY,M,C各濃度信号のパタ
ーンを示す図。
FIG. 13 is a diagram showing patterns of density signals of Y, M, and C in a halftone dot photograph area.

【図14】文字領域のY,M,C各濃度信号のパターン
を示す図。
FIG. 14 is a view showing patterns of Y, M, and C density signals in a character area.

【図15】本発明の第3実施例に係る画像処理装置の構
成を概略的に示すブロック図。
FIG. 15 is a block diagram schematically showing a configuration of an image processing apparatus according to a third embodiment of the present invention.

【図16】適応形誤差拡散回路の構成を示すブロック
図。
FIG. 16 is a block diagram showing a configuration of an adaptive error diffusion circuit.

【図17】本発明の第4実施例に係る画像処理装置の構
成を概略的に示すブロック図。
FIG. 17 is a block diagram schematically showing a configuration of an image processing apparatus according to a fourth embodiment of the present invention.

【図18】網点写真のY,M,C各濃度信号のパターン
を示す図。
FIG. 18 is a diagram showing patterns of Y, M, and C density signals of a halftone dot photograph.

【図19】カラー文字のY,M,C各濃度信号のパター
ンを示す図。
FIG. 19 is a diagram showing a pattern of Y, M, and C density signals of a color character.

【図20】黒文字のY,M,C各濃度信号のパターンを
示す図。
FIG. 20 is a diagram showing patterns of density signals of Y, M, and C for black characters.

【図21】適応形誤差拡散回路の構成を示すブロック
図。
FIG. 21 is a block diagram showing a configuration of an adaptive error diffusion circuit.

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

1,42…ラインバッファ、41…色修正回路、2,
5,44…最大濃度差算出回路、43…色信号セレク
タ、3,6,45,47,55…比較回路、4,51…
平滑化回路、7,48…第1しきい値発生回路、8,4
9…第2しきい値発生回路、9,50…しきい値セレク
タ、10,52…画像セレクタ、11,53…2値化回
路、46…色信号間濃度差総和算出回路、54,56…
適応形誤差拡散回路。
1, 42: line buffer, 41: color correction circuit, 2,
5, 44: maximum density difference calculation circuit; 43, color signal selector; 3, 6, 45, 47, 55 ... comparison circuit, 4, 51 ...
Smoothing circuit, 7, 48 first threshold value generation circuit, 8, 4
9: second threshold value generating circuit, 9, 50: threshold value selector, 10, 52: image selector, 11, 53: binarizing circuit, 46: color signal density difference sum calculating circuit, 54, 56 ...
Adaptive error diffusion circuit.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平2−100575(JP,A) 特開 平3−133262(JP,A) 特開 平3−80770(JP,A) 特開 平3−109868(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/40 - 1/409 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-2-100575 (JP, A) JP-A-3-133262 (JP, A) JP-A-3-80770 (JP, A) JP-A-3-300 109868 (JP, A) (58) Field surveyed (Int. Cl. 7 , DB name) H04N 1/40-1/409

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 第1カラー画像信号を第2カラー画像信
号に変換する色変換手段と、 この色変換手段で変換された第2カラー画像信号から処
理対象のカラー画像信号を出力する出力手段と、 この出力手段から出力される処理対象のカラー画像信号
から、注目画素を含む所定の領域における最大濃度およ
び最小濃度をそれぞれ算出し、この算出した最大濃度と
最小濃度との差を最大濃度差として算出する第1算出手
段と、 この第1算出手段で算出された最大濃度差に基づいて前
記所定の領域の画像の種別を判定する第1判定手段と、 前記注目画素を含む所定の領域における各画素の色信号
間の濃度差の総和を算出する第2算出手段と、 この第2算出手段で算出された色信号間濃度差の総和に
基づいて前記所定の領域の画像の種別を判定する第2判
定手段と、 画像信号を2値化するための第1しきい値を発生する第
1しきい値発生手段と、 画像信号を2値化するための第2しきい値を発生する第
2しきい値発生手段と、 この第1,第2しきい値発生手段から出力される第1,
第2しきい値のいずれかを、前記第1判定手段および第
2判定手段の各判定結果に基づき選択する第1選択手段
と、 前記出力手段から出力される処理対象のカラー画像信号
を平滑化して平滑化カラー画像信号を出力する平滑化手
段と、 この平滑化手段から出力される平滑化カラー画像信号、
あるいは、前記出力手段から出力される処理対象のカラ
ー画像信号のいずれかを、前記第1判定手段および第2
判定手段の各判定結果に基づき選択する第2選択手段
と、 この第2選択手段から出力される画像信号を前記第1選
択手段から出力されるしきい値により2値化する2値化
手段と を具備したことを特徴とする画像処理装置。
1. Color conversion means for converting a first color image signal into a second color image signal, and output means for outputting a color image signal to be processed from the second color image signal converted by the color conversion means. From the color image signal to be processed output from the output means, the maximum density and the density in a predetermined area including the target pixel are obtained.
And minimum density, respectively, and calculate the calculated maximum density and
First calculating means for calculating a difference from the minimum density as a maximum density difference; first determining means for determining a type of an image of the predetermined area based on the maximum density difference calculated by the first calculating means; Second calculating means for calculating the sum of the density differences between the color signals of the respective pixels in a predetermined area including the target pixel; and Second determination means for determining the type of the image in the region, first threshold value generation means for generating a first threshold value for binarizing the image signal, and second threshold value generation means for binarizing the image signal. Second threshold value generating means for generating a second threshold value, and first and second output values from the first and second threshold value generating means.
First selecting means for selecting any one of the second threshold values based on the respective judgment results of the first judging means and the second judging means; and smoothing a processing target color image signal outputted from the output means. A smoothing means for outputting a smoothed color image signal, and a smoothed color image signal output from the smoothing means.
Alternatively, any one of the color image signals to be processed output from the output unit is determined by the first determination unit and the second
A second selection unit for selecting based on each determination result of the determination unit; a binarization unit for binarizing an image signal output from the second selection unit with a threshold value output from the first selection unit; an image processing apparatus characterized by comprising a.
【請求項2】 第1カラー画像信号を第2カラー画像信
号に変換する色変換手段と、 この色変換手段で変換された第2カラー画像信号から処
理対象のカラー画像信号を出力する出力手段と、 この出力手段から出力される処理対象のカラー画像信号
から、注目画素を含む所定の領域における最大濃度およ
び最小濃度をそれぞれ算出し、この算出した最大濃度と
最小濃度との差を最大濃度差として算出する第1算出手
段と、 この第1算出手段で算出された最大濃度差とあらかじめ
設定される第1しきい値とを比較して前記所定の領域の
画像の種別を判定し、第1判定信号を出力する第1判定
手段と、 前記注目画素を含む所定の領域における各画素の色信号
間の濃度差の総和を算出する第2算出手段と、 この第2算出手段で算出された色信号間濃度差の総和と
あらかじめ設定される第2しきい値とを比較して前記所
定の領域の画像の種別を判定し、第2判定信号を出力す
る第2判定手段と、 前記出力手段から出力される処理対象のカラー画像信号
に対し、前記第1判定信号および第2判定信号により適
応的に誤差拡散処理を行ない、その処理後のカラー画像
信号を2値化する処理手段と を具備したことを特徴とする画像処理装置。
2. A color conversion means for converting a first color image signal into a second color image signal, and an output means for outputting a color image signal to be processed from the second color image signal converted by the color conversion means. From the color image signal to be processed output from the output means, the maximum density and the maximum density in a predetermined area including the target pixel are obtained.
And minimum density, respectively, and calculate the calculated maximum density and
A first calculating means for calculating a difference from the minimum density as a maximum density difference; and comparing the maximum density difference calculated by the first calculating means with a first threshold value set in advance. A first determination unit that determines a type of an image and outputs a first determination signal; a second calculation unit that calculates a sum of density differences between color signals of respective pixels in a predetermined area including the target pixel; Comparing the sum of the density differences between the color signals calculated by the second calculation means with a preset second threshold to determine the type of the image in the predetermined area, and outputting a second determination signal; (2) an error diffusion process is adaptively performed on the color image signal to be processed output from the output device by the first determination signal and the second determination signal, and the processed color image signal is this equipped and processing means for binarizing, the An image processing apparatus characterized by the following.
【請求項3】 第1カラー画像信号を第2カラー画像信
号に変換する色変換手段と、 この色変換手段で変換された第2カラー画像信号から処
理対象のカラー画像信号を出力する出力手段と、 この出力手段から出力される処理対象のカラー画像信号
から、注目画素を含む所定の領域における最大濃度およ
び最小濃度をそれぞれ算出し、この算出した最大濃度と
最小濃度との差を最大濃度差として算出する第1算出手
段と、 この第1算出手段で算出された最大濃度差とあらかじめ
設定される第1しきい値とを比較して前記所定の領域の
画像の種別を判定し、第1判定信号を出力する第1判定
手段と、 前記注目画素を含む所定の領域における各画素の色信号
間の濃度差の総和を算出する第2算出手段と、 この第2算出手段で算出された色信号間濃度差の総和と
あらかじめ設定される第2,第3しきい値とを比較して
前記所定の領域の画像の種別を判定し、第2および第3
判定信号を出力する第2判定手段と、 前記出力手段から出力される処理対象のカラー画像信号
に対し、前記第1ないし第3判定信号により適応的に誤
差拡散処理を行ない、その処理後のカラー画像信号を2
値化する処理手段と を具備したことを特徴とする画像処理装置。
3. Color conversion means for converting a first color image signal into a second color image signal, and output means for outputting a color image signal to be processed from the second color image signal converted by the color conversion means. From the color image signal to be processed output from the output means, the maximum density and the maximum density in a predetermined area including the target pixel are obtained.
And minimum density, respectively, and calculate the calculated maximum density and
A first calculating means for calculating a difference from the minimum density as a maximum density difference; and comparing the maximum density difference calculated by the first calculating means with a first threshold value set in advance. A first determination unit that determines a type of an image and outputs a first determination signal; a second calculation unit that calculates a sum of density differences between color signals of respective pixels in a predetermined area including the target pixel; The type of the image of the predetermined area is determined by comparing the sum of the density differences between the color signals calculated by the second calculation means with the second and third threshold values set in advance.
A second determination unit that outputs a determination signal; and an error diffusion process that is adaptively performed by the first to third determination signals on the color image signal to be processed output from the output unit. Image signal 2
The image processing apparatus being characterized in that comprising processing means for binarizing the.
JP06596492A 1991-10-17 1992-03-24 Image processing device Expired - Fee Related JP3245600B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06596492A JP3245600B2 (en) 1991-10-17 1992-03-24 Image processing device

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP26944691 1991-10-17
JP3-269446 1991-10-17
JP06596492A JP3245600B2 (en) 1991-10-17 1992-03-24 Image processing device

Publications (2)

Publication Number Publication Date
JPH05167842A JPH05167842A (en) 1993-07-02
JP3245600B2 true JP3245600B2 (en) 2002-01-15

Family

ID=26407127

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06596492A Expired - Fee Related JP3245600B2 (en) 1991-10-17 1992-03-24 Image processing device

Country Status (1)

Country Link
JP (1) JP3245600B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3105168B2 (en) * 1996-06-19 2000-10-30 株式会社東芝 Image forming apparatus and image processing method
JP3576808B2 (en) 1998-05-20 2004-10-13 シャープ株式会社 Image processing device
JP3576810B2 (en) 1998-05-28 2004-10-13 シャープ株式会社 Image processing device
JP2002171410A (en) 2000-12-01 2002-06-14 Minolta Co Ltd Image processing apparatus

Also Published As

Publication number Publication date
JPH05167842A (en) 1993-07-02

Similar Documents

Publication Publication Date Title
US6118547A (en) Image processing method and apparatus
EP1505821B1 (en) Image processing apparatus, an image forming apparatus and an image processing method
US6192152B1 (en) Image processing apparatus
EP0454457B1 (en) Image processing apparatus
US5339171A (en) Image processing apparatus especially suitable for producing smooth-edged output multi-level tone data having fewer levels than input multi-level tone data
US6373990B1 (en) Image processing utilizing luminance-density conversion
US8259357B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer readable recording medium
US5886797A (en) Method and apparatus for controlling a spatial filtering process based on characteristics of image data
US7116443B2 (en) Neutral pixel detection using color space feature vectors wherein one color space coordinate represents lightness
JPS60204177A (en) Picture signal processor
JPH05308514A (en) Method for quantizing pixel value
JPH077619A (en) Document processing system
US5805738A (en) Image processing apparatus and method
JP3339610B2 (en) Improved method and apparatus for reducing warm in halftone images using gray balance correction
JPH02253765A (en) Picture processor
JP3031994B2 (en) Image processing device
JP3245600B2 (en) Image processing device
EP0382580B1 (en) Image processing apparatus
JP3334047B2 (en) IMAGE PROCESSING APPARATUS, IMAGE READING APPARATUS AND IMAGE FORMING APPARATUS EQUIPPED WITH THE SAME, IMAGE PROCESSING METHOD, AND COMPUTER-READABLE STORAGE MEDIUM CONTAINING IMAGE PROCESSING PROCEDURE
JP2621865B2 (en) Image processing device
JPS63169174A (en) Picture processing method
JPH0722327B2 (en) Color image processor
JP3679522B2 (en) Image processing method and apparatus
JPH0691605B2 (en) Image processing device
JP3082931B2 (en) Color image processing method

Legal Events

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