JPS61146068A - Deciding method for image area - Google Patents

Deciding method for image area

Info

Publication number
JPS61146068A
JPS61146068A JP59269505A JP26950584A JPS61146068A JP S61146068 A JPS61146068 A JP S61146068A JP 59269505 A JP59269505 A JP 59269505A JP 26950584 A JP26950584 A JP 26950584A JP S61146068 A JPS61146068 A JP S61146068A
Authority
JP
Japan
Prior art keywords
image
data
image area
pixel
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP59269505A
Other languages
Japanese (ja)
Inventor
Yukio Sakano
坂野 幸男
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP59269505A priority Critical patent/JPS61146068A/en
Priority to DE19853545467 priority patent/DE3545467A1/en
Priority to US06/811,701 priority patent/US4707745A/en
Publication of JPS61146068A publication Critical patent/JPS61146068A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To decide respective image areas easily and securely on real-time basis by deciding on a pattern image part and a variable density part which are both present in the same original according to image information read by a scanner. CONSTITUTION:An image signal read by a readout part 11 is converted into a digital image signal (b), which is supplied to an image area decision part 16 and also applied to a pseudo half-tone processing part 13 and a simple binary- coding processing part 14. The image area decision part 16 performs binary coding with a threshold level lower than the binary coding level of the simple binary coding processing part 14 to generate decision signals of the pattern image part and variable density image part on the basis of the binary-coded data. Those decision signals are applied as a switching signal (f) to a data switching part 15, which switches and sends out the output (d) of the simple binary-coding processing part 14 for the pattern image part and the output (c) of the pseudo halftone processing part 14 for the variable density image part.

Description

【発明の詳細な説明】[Detailed description of the invention]

皮1汰乱 本発明は原稿の画像をスキャナにより画素単位でサンプ
リングして読み取った画情報を画像特性に応じて最適2
値化処理する画像処理に係り、特に処理対象となる画情
報の画像特性を判定させる画像領域判定方法に関する。 災末皮1 一般に、原稿画像をスキャナにより画素単位でサンプリ
ングし、かつ多値量子化することにより得られたデジタ
ル画情報をドツトプリンタにおいて記録再生させること
ができるように2値化処理する際、画像の再現性を良く
するために原稿画像の特性に応じた最適な2値化を行な
わせる必要がある。すなわち、文字、記号、図形などの
パターン画像の場合には、その記録画像が鮮明になるべ
くしきい値を固定した単純2値化処理を行なわせ。 また写真などの濃淡画像の場合には、特に中間調の再現
性を良くするために、記録画像の各局所ごとにその近傍
の画素の濃度を空間的に平均化して感するという視界系
の積分効果を利用したしきい値マトリクスを用いた空間
フィルタ処理(疑似中間調処理)によって2値化を行な
わせる必要がある。 しかして同一原稿中にパターン画像部と濃淡画像部とが
混在する場合、単純2値化処理または疑似中間調処理の
何れかによって一律に2値化するのでは、単純2値化処
理によれば濃淡画像部における階調性が失われて極めて
品質の悪い濃淡画像が再生され、また疑似中間調処理に
よればパターン画像部も空間フィルタ処理を受けて輪郭
のぼやけたパターン画像が再生されてしまうことになる
。 そのため従来では、画像特性に応じた所定のアルゴリズ
ムにしたがう論理判定により画像部の認識を行なわせな
がら単純2値化処理および疑似中間調処理の切換えを行
なわせるようにしている。 しかしこのような手段をとるのでは、ソフトウェアによ
ればその画像部の認識処理に時間を要してスキャナによ
る原稿画像の読取りに同期したリアルタイムでの画像の
記録再生を行なわせることができず、またハードウェア
によれば処理時間を上げることができるが装置が複雑化
してしまうという問題がある。 また従来、予め原稿画像中にパターン画像部分と濃淡画
像部分とを区別するマークを付しておき。 画像の読取走査時におけるマーク検出により画像領域の
判定をなしながら単純2値化処理および疑似中間調処理
の切換えを行なわせるようにしたものもあるが、操作性
が悪いものになっている。 1敗 本発明は以上の点を考慮してなされたもので、同一原稿
中にパターン画像部と濃淡画像部とが混在する場合、そ
のスキャナによって読み取られた画情報に応じて各画像
領域の判定をリアルタイムで簡単かつ確実に行なわせる
ことができるようにした画像領域判定方法を提供するも
のである。 1皮 本発明はその目的達成のため、スキャナにより画素単位
でサンプリングすることによって読み取られた原稿の画
情報を多値量子化することにより得られたデジタル画情
報のパターン画像に適した単純2値化処理と濃淡画像に
適した中間調をも表現した2値化処理とを選択的に行な
わせる際、前記デジタル画情報を単純2値化処理するた
めのしきい値とは異なるしきい値をもって2値化したデ
ータにもとづいてパターン画像部と濃淡画像部との画像
領域の判定を行なわせるとともに、その判定された濃淡
画像部のエツジ処理を最適に行なわせることができるよ
うにするものである。 以下、添付図面を参照して本発明の一実施例について詳
述する。 第1図は本発明を具体的に実施したときのデジタル複写
機のブロック構成図を示すもので、スキャナ1によって
読み取られた原稿の画情報にしたがってドツト式のプリ
ンタ2により画像の記録再生を行なわせるようになって
いる。そのスキャナ1は、原稿画像を主および副走査方
向に画素単位に分解して順次読み取る光学系およびCC
Dラインセンサ、ビデオ増幅器からなる読取部11と、
その読取画情報aを白黒変換したうえで多値量子化する
べくAD変換し、必要に応じてシェーディング補正、M
TF補正および地肌除去などの適宜処理を行なわせる画
像処理部12と、その処理されたデジタル画情報すにし
たがって濃淡画像部およびパターン画像部の最適2値化
処理をそれぞれ並列的に行なわせる疑似中間調処理部1
3および単純2値化処理部14と、それら各2値化処理
データc、dを切り換えて選択的にプリンタ2側に記録
データeを送出するデータ切換部15と、画像処理部1
2によって処理されたデジタル画情報すにしたがって2
値化処理の対象となるデジタル画情報が濃淡画像部分の
ものかパターン画像部分のものであるかを判定してデー
タ切換部15に切換信号fを与える画像領域判定部16
とからなっている。なお、疑似中間調処理部13は従来
のディザ法、濃度パターン法、サブマトリクス法などに
よる空間フィルタ処理による中間調をも加味した2値化
処理を行なわせるものである。 このようなものにあって、本発明では特に画像領域判定
部I6において、デジタル画情報すを単純2値化処理す
るためのしきい値とは異なるしきい値をもって2値化し
、その2値化されたデータを少なくとも主走査または副
走査の何れか一方に数画素分シフトさせてそのシフトデ
ータと前記2値化されたデータとのアンドをとった結果
が/71 IIのとき処理対象の画素が濃淡画像領域に
あり、その結果が110 #のとき処理対象の画素がパ
ターン画像領域にあると判定する手段をとるようにして
いる。 第2図はそのような画像領域判定手段を実施するための
画像領域判定部16における具体的な回路構成例を示す
もので、ここでは副走査および主走査方向の処理をなし
て画像領域の判定を行なわせるようにしており、デジタ
ル画情報すを単純2値化処理するためのしきい値よりも
低いしきい値をもって2値化する2値化回路161と、
その2値化データgを副走査Y方向に8画素分シフトさ
せたうえでそのシフトデータと2値化データgとのアン
ドをとるY方向シフト処理回路162と、さらにそのY
方向に8画素分シフトされた2値化データhを主走査X
方向に8画素分シフトさせたうえでそのシフトデータと
2値化データhとのアンドをとるX方向シフト処理回路
163と、それら各Y、X方向のシフト処理回路162
,163による処理データj、kをその各4画素分のシ
フト時における単純2値化データdの状態に応じてミキ
シングするミキサ164とによって構成されている。 2値化回路161は、第3図に示すように、デジタルコ
ンパレータCMPにおいて例えば64階調に量子化され
た6ビツトのデジタル画情報すをそれに応じて6ビツト
からなるしきい値THIと比較して、A>Bならばオア
回路がら論理tl I IIが出力し、A3Bならばオ
ア回路から論理″0′″が出力するようになっている。 Y方向シフト処理回路162は、第4図に示すように、
8ビツトのラッチLATCH!、8ビットX4にの容量
をもったRAM、ラッチ群LATCH2〜LATCH5
およびアンド回路がらなり、各ラッチのためのクロック
tlおよび出方制御信号t2.RAMのアドレス信号t
3およびリード/ライト制御信号
The present invention uses a scanner to sample the image of a document pixel by pixel and reads the image information, which is optimally read according to the image characteristics.
The present invention relates to image processing that involves value conversion processing, and particularly relates to an image region determination method for determining image characteristics of image information to be processed. The end of the disaster 1 Generally, when digital image information obtained by sampling a document image pixel by pixel with a scanner and performing multilevel quantization is subjected to binarization processing so that it can be recorded and reproduced on a dot printer, the image In order to improve reproducibility, it is necessary to perform optimal binarization according to the characteristics of the original image. That is, in the case of pattern images such as characters, symbols, figures, etc., simple binarization processing is performed with a fixed threshold value to make the recorded image as clear as possible. In addition, in the case of gradation images such as photographs, in order to particularly improve the reproducibility of intermediate tones, the visual field system integrates the density of pixels in the vicinity of each local area of the recorded image to be perceived by spatially averaging it. It is necessary to perform binarization by spatial filter processing (pseudo halftone processing) using a threshold matrix that utilizes the effect. However, when pattern image areas and grayscale image areas coexist in the same document, it is difficult to uniformly binarize them using either simple binarization processing or pseudo halftone processing. The gradation in the gray image area is lost, resulting in the reproduction of an extremely poor quality gray image.Furthermore, with pseudo halftone processing, the pattern image area is also subjected to spatial filter processing, resulting in the reproduction of a pattern image with blurred outlines. It turns out. Conventionally, therefore, switching between simple binarization processing and pseudo-halftone processing is performed while recognition of the image portion is performed by logical judgment according to a predetermined algorithm according to the image characteristics. However, if such a method is used, the software requires time to process the recognition of the image area, making it impossible to record and reproduce the image in real time in synchronization with the reading of the document image by the scanner. Further, although the processing time can be increased using hardware, there is a problem in that the device becomes complicated. Furthermore, conventionally, marks have been added in advance to the document image to distinguish between pattern image portions and grayscale image portions. Some devices are designed to switch between simple binarization processing and pseudo halftone processing while determining the image area by detecting marks during image reading and scanning, but these devices have poor operability. 1 loss The present invention was made in consideration of the above points, and when a pattern image area and a grayscale image area coexist in the same document, each image area is determined according to the image information read by the scanner. An object of the present invention is to provide an image area determination method that can easily and reliably perform the following in real time. 1. In order to achieve the object, the present invention uses a simple binary method suitable for pattern images of digital image information obtained by multi-level quantization of image information of a document read by sampling pixel by pixel with a scanner. When selectively performing conversion processing and binarization processing that also expresses intermediate tones suitable for grayscale images, a threshold value different from the threshold value for simple binarization processing of the digital image information is used. The image area of the pattern image part and the grayscale image part is determined based on the binarized data, and the edge processing of the determined grayscale image part can be performed optimally. . Hereinafter, one embodiment of the present invention will be described in detail with reference to the accompanying drawings. FIG. 1 shows a block configuration diagram of a digital copying machine in which the present invention is specifically implemented, and a dot-type printer 2 records and reproduces images according to image information of a document read by a scanner 1. It is now possible to The scanner 1 includes an optical system and a CC system that decomposes a document image into pixel units in the main and sub-scanning directions and sequentially reads the images.
A reading section 11 consisting of a D line sensor and a video amplifier;
The read image information a is converted into black and white, and then AD converted for multi-value quantization, and if necessary, shading correction and M
An image processing unit 12 that performs appropriate processing such as TF correction and background removal, and a pseudo intermediate unit that performs optimal binarization processing of the grayscale image portion and pattern image portion in parallel in accordance with the processed digital image information. Adjustment processing section 1
3, a simple binarization processing unit 14, a data switching unit 15 that switches between the respective binarized data c and d and selectively sends recording data e to the printer 2 side, and an image processing unit 1.
According to the digital image information processed by 2.
An image area determining unit 16 that determines whether the digital image information to be subjected to value conversion processing is for a grayscale image portion or a pattern image portion and provides a switching signal f to the data switching unit 15.
It consists of The pseudo-halftone processing section 13 performs binarization processing that also takes into account halftones obtained by spatial filter processing using conventional dithering methods, density pattern methods, submatrix methods, and the like. In the present invention, in particular, the image area determination unit I6 binarizes the digital image information using a threshold different from the threshold for simple binarization processing, and performs the binarization. The pixel to be processed is shifted by several pixels in at least one of main scanning or sub-scanning, and the result of ANDing the shifted data and the binarized data is /71 II. When the pixel is in the gray scale image area and the result is 110#, means is taken to determine that the pixel to be processed is in the pattern image area. FIG. 2 shows a specific example of the circuit configuration of the image area determining section 16 for implementing such an image area determining means. a binarization circuit 161 that binarizes digital image information with a threshold lower than the threshold for simple binarization processing;
A Y-direction shift processing circuit 162 that shifts the binarized data g by 8 pixels in the sub-scanning Y direction and then ANDs the shifted data and the binarized data g;
The binarized data h shifted by 8 pixels in the main scanning direction
an X-direction shift processing circuit 163 that shifts the data by 8 pixels in the direction and ANDs the shift data and the binarized data h; and a shift processing circuit 162 for each of the Y and X directions.
, 163 and a mixer 164 that mixes the processed data j, k according to the state of the simple binary data d when shifted by four pixels each. As shown in FIG. 3, the binarization circuit 161 compares the 6-bit digital image information quantized to, for example, 64 gradations by the digital comparator CMP with a 6-bit threshold value THI accordingly. If A>B, the OR circuit outputs logic tl I II, and if A3B, the OR circuit outputs logic "0". The Y direction shift processing circuit 162, as shown in FIG.
8-bit latch LATCH! , RAM with a capacity of 8 bits x 4, latch groups LATCH2 to LATCH5
and an AND circuit, which include a clock tl for each latch and an output control signal t2. RAM address signal t
3 and read/write control signals

【4はそれぞれ図示し
ないコン1−ローラから与えられるようになっている。 この構成によるものでは、RAMのアドレス0はX=0
に対応し、X方向に画素単位でアドレスが歩進される。 またRAMにおけるi / o 1〜1108の8ビツ
トはY方向に対応し、i / o 1がY=ylに対応
するとき、1102がyl−1にr  t103がyl
−2に、・・・、1108がyl−7にそれぞれ対応す
る。いま、X=x 1.Y=71の位置に対応する2値
化データgが入力するとき、RAMのアドレスt3はx
lに対応している。また、RAMからのリードデータと
しては、1101が(xl、yl−1)に、1102が
(xi、yl−2)に+−+ 110sが(xi、yl
  8)にそれぞれ対応している。そしてそのリードデ
ータは1ビツトシフトした形でラッチされ、再びRAM
の同一アドレスx1に書き込まれる。このとき2値化デ
ータgがi / o lに、1101からのリードデー
タがi / o 2に、1102からのリードデータが
i / o 3に、・・・、1107からのリードデー
タが1108にそれぞれ書き込まれる。このとき110
8からのリードデータは再書込みされることはない。す
なわち、その動作はY方向に関するリード/シフト/ラ
イト動作であり、Y方向に関して1画素分ずつデータが
遅延していくことを意味している。このリード/シフト
/ライト動作をX=0からX=m(mはX方向の画素数
+遅延画素数である)まで行なう。したがって、2値化
データhは入力2値化データgに対してY方向に8画素
分シフトされたものとなり、2値化データj4は入力2
値化データgに対してY方向に4画素分シフトされたも
のとなり、またアンド回路から出力される2値データj
はそれら各1画素分ごとのシフトデータと入力2値化デ
ータgとのアンドをとったものとなる。 またX方向シフト処理回路163は、第5図に示すよう
に、8ビツトのシフトレジスタSRと。 その各ビットの出力データとY方向シフト処理回路16
2から送られてくる2値データhとのアンドをとるアン
ド回路とによって構成されている。 シフトクロックt5はX方向での画素単位に対応するも
のであり、クリア信号t6とともに図示しないコントロ
ーラから与えられる。いま入力する2値データhがX=
xlに対応しているとき、出力データに1はxi−1に
、に2はxi−2に。 ・・・、に7はxl−7にそれぞれ対応している。すな
わち、kiは2値データhの1画素分の遅延データであ
り、換言すれば現在の2値データhに対する1画素分だ
け前の画素データである。 ミキサ1f34は、第6図に示すように、アンド回路と
オア回路およびインバータの組合せからなり、Y方向シ
フト処理回路162から送られてくる2値データjとX
方向シフト処理回路163から送られてくる2値データ
にとのアンド信号を、またj4およびに4が′1″でか
つ各2値データj。 kが′″0″になっていることをエツジ条件として単純
2値化データdの状態に応じた論理判定信号を画像領域
判定結果による切換信号fとしてデータ切換部15に送
出するようになっている。 また第7図に読取部11によって原稿面を光走査したと
きの光反射率と、画像処理部12により白黒変換され、
かつ64値量子化されたデジタル画情報すとの関係を示
しており、デジタル画情報すにおける原稿両面上の黒が
レベル64に、白がレベル1にそれぞれ対応している。 同図の特性にあって、光反射率が1付近での白の飽和は
地肌除去により原稿の地肌濃度分を除去したためであり
、また光反射率がO付近での黒の飽和はある一定以上の
濃度を全てレベル64にまとめることによって中間調レ
ベルに割り当てる階調数をかせぐようにするためである
。 以上のように構成されたものにあって、原稿画像を光走
査することによって得られたデジタル画情報すにもとづ
いて現在の読取画素がパターン画像部にあるか濃淡画像
部にあるかの画像領域判定のための動作について、以下
説明をする。 いま例えば、第8図に示すようなある副走査位置におけ
るデジタル画情報すのX方向の特性が得られたものとす
る。なおデジタル画情報すは実際には6ビツト構成によ
るものであるが、ここではわかり易くするためにアナロ
グ的な表現をなして縦軸を1〜64の階調レベルで示し
ている。実際にはX、Vの両方向の画情報から画像領域
の判定を行なうが、ここでは説明を簡単にするためにX
方向の画情報のみを考慮することとする。 同図において、THlは2値化回路】61におけるしき
い値を示し、TH2は単純2値化処理部14におけるし
きい値を示している。デジタル画情報すのうち、I31
.B2の特性部分は濃淡画像部を、B3.B4はパター
ン画像部をそれぞれ示している。またB5.B6は原H
1地肌の濃度むらあるいは薄い汚れに、B7は写真など
における特に白い部分をそれぞれ示している。 しかしてこのようなデジタル画情報すが画像領域判定部
16に与えられると、2値化回路161においてTHI
のしきい値により2値化されてその出力データgがデー
タhとしてX方向シフト処理回路163に与えられ、そ
こでX方向に8画素分シフトされる。このときの8画素
分シフトされたデータを、図中に8で示している。図中
Pは画素単位であり、データhとデータに8との間のず
れ8Pは8画素分だけ遅延していることを示している。 したがってX方向シフト処理回路163がらは図示のよ
うに2値化データhとそのシフトデータに8とのアンド
をとった出力データkが得られ、その出力データkが切
換信号fとしてデータ切換部15に与えられることにな
る。 同時に、そのデジタル画情報すは単純2値化処理部14
においてTH2のしきい値をもって2値化されてその処
理データdがデータ切換部15に送られる。なおその単
純2値化処理部14における出力データdは、疑似中間
調処理部13における処理遅延に合せるために実際の2
値化データdlよりも4画素分遅れて出力されるように
なっている。 なお第8図中には、疑似中間調処理の内容からして同図
への表現が困難なことと、無理に表現してもそれによっ
て画像領域の判定動作の理解が容易にならないことから
、疑似中間調処理部13の出力データCを特に示してい
ない。ここでは1便宜上デジタル画情報すを4画素分だ
けX方向に遅延させたものが疑似中間調処理部13の出
力データCに相応するものと考えれば充分である。 このように、第8図の関係から明らかなように、ミキサ
164から出力される切換信号f、すなわちこの場合に
はX方向シフト処理回路163の出力データkがハイレ
ベルII 1 pgのときに現在処理中の画素における
デジタル画情報すが濃淡画像部にあり、またそれがロー
レベル″0”のときに現在処理中の画素におけるデジタ
ル画情報すがパターン画像部にあるとの画像領域の判定
を正確になすことができるようになる。 したがって、X方向シフト処理回路163の出力データ
kが切換信号fとしてデータ切換部15に与えられる際
、その出力データkが゛′ビ″のときにデータ切換部1
5において疑似中間調処理部13による2値化処理デー
タCを選択し、またその出力データkがパ0″″のとき
にデータ切換部15において単純2値化処理部14によ
る2値化処理データdを選択するようにすれば、濃淡画
像部またはパターン画像部の画像領域の判定にしたがっ
てデジタル画情報すが最適に2値化処理された記録デー
タ8をプリンタ2側に送って高品質な画像の記録再生を
行なわせることができるようになる。 なお、第8図の場合には、デジタル画情報すにおけるB
1およびB2の部分が疑似中間調処理によって2値化さ
れることになる。またB3の部分にあっては、そのエツ
ジ部が幅4画素分だけ単純2値化処理され、その中央部
が疑似中間調処理によって2値化されることになる。そ
の際−83の中央部における中間調出力はその濃度を薄
くするということではなく、原稿画像の濃度に対応した
濃度となることを意味している。このB3の部分は線幅
の太いパターン画像部分を示しており、原稿中における
文字などのパターン画像はそれ自体が充分な濃度をもっ
ているために本発明の処理によって83部分における記
録画像の品質が何ら損われることがなくなるとともに、
そのエツジ部分が単純2値化処理されているために輪郭
がぼやけることのないシャープなパターン画像が得られ
ることになる。また線幅の狭いパターン画像部分を示す
B4の部分にあっては、全幅にわたって単純2値化処理
されることになる。記録データeの特性中、斜線部分は
疑似中間調処理されたデータ部分を示している。 また第9図はY方向での画像領域判定の動作を説明する
ためのもので、ここではY方向におけるデジタル画情報
すを特に図示していないが1図中88が太文字のパター
ン画像部分に、B9.B13が濃淡画像部分に、BIO
〜B12が細文字のパターン画像部分にそれぞれ対応し
ているものと考えてよい。この場合にあっても前述の場
合と同様に、Y方向シフト処理回路162における出力
データjがハイレベルII 1 ′gになることによっ
て現在処理中の画素におけるデジタル画情報すが濃淡画
像部にあり、またそれがローレベルrr Onになるこ
とによって現在処理中の画素におけるデジタル画情報す
がパターン画像部にあるとの画像領域の判定がなされ、
B9および813部分では記録データeとして疑似中間
調処理による2値化データCが選択され、810〜81
2部分では単純2値化処理されたデータdが選択され、
88部分ではそのエツジにおいて単純2値化処理された
データdが選択され、その中央において疑似中間調処理
による2値化データCが選択されることになる。 なお本発明による画像領域判定方法では、原稿中の濃淡
画像部が既に疑似中間調処理されたものにあってもそれ
が濃淡画像部であることを有効に判定することができる
ようになる。すなわち、疑似中間調処理は2値化された
ドツトの密度やドツト集合体のパターンによって中間調
をも表現するようにしたものであり、そのような表現に
よっても何ら中間調が夫れでいるものではないため、本
発明のように一定範囲以上にわたって一定以上の濃度が
連続した場合に濃淡画像部であると判定する手段をとれ
ば、例えば原稿中のドツト密度が高い部分は濃淡画像部
であると判定することが可能になる。したがって、原稿
中の既に疑似中間調処理された濃淡画像部にあっても良
好な画像の記録再生を行なわせることができるようにな
る。 以上説明したように、デジタル画情報すをしきい値TH
Iにより2値化したデータをX、Y両方向について8画
素分それぞれシフトさせたときの各遅延データj、にの
アンド信号のみをもって各2値化処理されたデータc、
dの切り換えを行なわせるのでは1例えば第8図におけ
るB1およびB2の濃淡画像部に対応する記録データe
の斜線で示す疑似中間屑処理されたデータ部分における
両端のわずかな部分で、原稿画像では濃淡画像部分であ
るにもかかわらず単iA2値化されたデータが生ずるも
のになっている。すなわち、濃淡画像領域両端の4画素
からなる図中ダブルハツチングで示すエツジ部にあって
、その対応するデジタル画情報すがしきい値TH2以上
のレベルを有していれば単純2値化処理によって論理”
 1 ”が出力し、またしきい値TH2よりも低いレベ
ルを有していれば単純2値化処理によって論理″0”′
が出力することになる。その場合、原稿画像中のエツジ
部における濃淡画像の濃度がもともとかなり低いかまた
は高いときには余り問題にならないが、その濃度がしき
い値THIとTH2との間にあるようなときにはそのエ
ツジ部において論理# OIIが出力することは記録再
生される濃淡画像部に劣化をきたすことにもなる。 そのため本発明では特に画像領域判定部16におけるミ
キサ164において、j4およびに4が′1”となって
いるタイミング時に各2値データj。 kが“0″になっていることをエツジ条件として単純2
値化データdの状態に応じた論理判定信号を画像領域判
定結果による切換信号fとしてデータ切換部15に送出
することにより、前述のように判定された濃淡画像領域
のエツジ部分に対応する単純2値化データがII O、
、のときにそのエツジ部分を濃淡画像領域として処理し
、また単純2値化データがtr 1 uのときにそのエ
ツジ部分をパターン画像領域として処理する手段をとる
ようにしている。 具体的には1画像領域判定部16のミキサ164にあっ
て、2値データJlkがともに11011でかつその4
画素分進んだ位巴にあろ2値データj4゜k4がともに
II 1 +1の状態にあるときをエツジ条件として、
そのときの単純2値化処理データdを切換信号fとして
データ切換部15に与えることができるようにしている
。その際、エツジ部分における濃度が低くてそのレベル
がしきい値TH2よりも低い場合にはd=”O”となり
、f=”I”となってデータ切換部15により疑似中間
調処理データCが選択される。またエツジ部分における
濃度が高くてそのレベルがしきい値TH2以上の場合に
はd=”1”となり、f=”O’″となってデータ切換
部15によりそのときの単純2値化処理データdが選択
される。第8図および第9図中における記録データeの
ダブルハツチング部分が疑似中間調処理によるエツジ出
力を示している。 したがって、J!1画像の実際の濃淡状態に応じたエツ
ジ部分の処理がなされ、記録再生される濃淡画像の品質
が向上するようになる。 以上の実施例にあってはデジタル画情報すをしきい値T
HIにより2値化したデータをX、Y両方向について数
画素分(8画素分)それぞれシフトさせたときの各遅延
データにもとづいて画像領域の判定を行なっているが、
XまたはY方向の何れかの遅延データにしたがって画像
領域の判定をなすようにしてもよい、また各回路構成に
あっても前述したものに限らずその回路構成を適宜変更
することができることはいうまでもなく、例えば処理対
象となるデジタル画情報すはスキャナによって読み取ら
れた原稿の画情報に限らず、あるシステムにおけるホス
トコンピュータなどから送られてくるデジタル画情報で
あってもよい。また前記実施例では画像領域判定部16
の2値化回路161におけるしきい値および単純2値化
処理部14におけるしきい値TH2をそれぞれ一定とし
ているが、それらの各しきい値THI、TH2にヒステ
リシス特性をもたせるようにしてもよい。すなわち、例
えばしきい値THIによる2値化データgが論理II 
1 ggかN OI+かによりそのしきい値TH1のレ
ベルをいくらか変化させるようにする。それにより1例
えばいったん濃淡画像部であると判定されると、その領
域中に濃度の薄い部分が現れても2値化領域に反転し難
く、濃淡画像部の判定モードを維持することができるよ
うになる。さらに前記実施例の場合には、X方向および
Y方向におけるデジタル画情報すの各遅延量を8画素分
に設定して疑似中間調処理部13.単純2値化処理部1
4および画像領域判定部16における各処理データが同
一の画素に対するものとなるようにそれぞれの処理遅延
を考慮したタイミングをとるとともに、特に疑似中間調
処理部13における処理遅延を考慮して太線からなるパ
ターン画像のエツジ部分を4画素分だけ単純2値化し、
その中央部分を疑似中間調処理するようにしているが、
そのX方向およびY方向におけるデジタル画情報すの各
遅延量を種々に設定することが可能で、また複数設定さ
れた遅延量のうちの何れかを原稿画像の状態に応じて選
択的に指定する手段を容易にとることができるようにな
る。 羞來 以上、本発明による画像領域判定方法にあっては、処理
対象となる画素単位で多値量子化されたデジタル画情報
を単純2値化処理するするためのしきい値とは異なるし
きい値をもって2値化したうえで、その2値化データを
主走査方向および副走査方向またはその何れか一方向に
数画素分シフトさせたデータにもとづいて現在のデジタ
ル画情報がパターン画像部にあるか濃淡画像部にあるか
の判定を行なわせるようにしたもので、簡単な手段によ
り画像領域の判定をリアルタイムで正確に行なわせるこ
とができるという優れた利点を有している。
[4] are each given from a controller (not shown). With this configuration, RAM address 0 is X=0
, the address is incremented pixel by pixel in the X direction. Also, the 8 bits of i/o 1 to 1108 in RAM correspond to the Y direction, and when i/o 1 corresponds to Y=yl, 1102 corresponds to yl-1, r t103 corresponds to yl
-2, . . . , 1108 correspond to yl-7, respectively. Now, X=x 1. When binary data g corresponding to position Y=71 is input, RAM address t3 is x
It corresponds to l. Also, as read data from RAM, 1101 is (xl, yl-1), 1102 is (xi, yl-2), +-+ 110s is (xi, yl-1), and 1102 is (xi, yl-2).
8) respectively. The read data is then latched in a 1-bit shifted form and stored in the RAM again.
is written to the same address x1. At this time, the binarized data g is transferred to i/o l, the read data from 1101 is transferred to i/o 2, the read data from 1102 is transferred to i/o 3,..., the read data from 1107 is transferred to 1108. Each is written. At this time 110
The read data from 8 is never rewritten. That is, the operation is a read/shift/write operation in the Y direction, which means that data is delayed by one pixel in the Y direction. This read/shift/write operation is performed from X=0 to X=m (m is the number of pixels in the X direction+the number of delayed pixels). Therefore, the binary data h is shifted by 8 pixels in the Y direction with respect to the input binary data g, and the binary data j4 is the input binary data g.
The value data g is shifted by 4 pixels in the Y direction, and the binary data j is output from the AND circuit.
is obtained by ANDing the shift data for each pixel and the input binary data g. Further, the X-direction shift processing circuit 163 is an 8-bit shift register SR, as shown in FIG. The output data of each bit and the Y direction shift processing circuit 16
2 and an AND circuit that performs AND with the binary data h sent from 2. The shift clock t5 corresponds to each pixel in the X direction, and is given from a controller (not shown) together with the clear signal t6. The binary data h to be input now is X=
When the output data corresponds to xl, 1 is set to xi-1, and 2 is set to xi-2. ..., and 7 correspond to xl-7, respectively. That is, ki is one pixel's worth of delayed data of the binary data h, in other words, it is pixel data that is one pixel before the current binary data h. As shown in FIG. 6, the mixer 1f34 is composed of a combination of an AND circuit, an OR circuit, and an inverter, and is configured to handle binary data j and
An AND signal is applied to the binary data sent from the direction shift processing circuit 163, and an edge signal is applied to indicate that j4 and 4 are ``1'' and each binary data j.k is ``0''. As a condition, a logic judgment signal corresponding to the state of the simple binarized data d is sent to the data switching unit 15 as a switching signal f based on the image area judgment result. The light reflectance when optically scanned, and the image processing unit 12 converts it into black and white,
It also shows the relationship with 64-value quantized digital image information, in which black on both sides of the original corresponds to level 64 and white to level 1, respectively. In the characteristics of the figure, the saturation of white when the light reflectance is around 1 is due to the removal of the background density of the original by background removal, and the saturation of black when the light reflectance is around 0 is above a certain level. This is to increase the number of gradations to be assigned to the intermediate tone level by combining all the densities into level 64. In the device configured as described above, the image area determines whether the current read pixel is in the pattern image area or the grayscale image area based on the digital image information obtained by optically scanning the original image. The operation for determination will be explained below. For example, assume that the characteristics of digital image information in the X direction at a certain sub-scanning position as shown in FIG. 8 have been obtained. The digital image information actually has a 6-bit configuration, but for the sake of clarity, it is represented here in an analog manner, with the vertical axis representing gradation levels from 1 to 64. In reality, the image area is determined from image information in both the X and V directions, but here we will use the
Only directional image information will be considered. In the figure, TH1 indicates the threshold value in the binarization circuit 61, and TH2 indicates the threshold value in the simple binarization processing section 14. Of the digital picture information, I31
.. The characteristic part of B2 is the grayscale image part, and the characteristic part of B3. B4 each indicates a pattern image portion. Also B5. B6 is Hara H
1. B7 indicates uneven density or light dirt on the background, and B7 indicates particularly white areas in photographs. However, when such digital image information is given to the image area determination section 16, the THI
The output data g is binarized using the threshold value , and is supplied as data h to the X direction shift processing circuit 163, where it is shifted by 8 pixels in the X direction. The data shifted by 8 pixels at this time is indicated by 8 in the figure. In the figure, P is a pixel unit, and a deviation 8P between data h and data 8 indicates a delay of 8 pixels. Therefore, as shown in the figure, the X-direction shift processing circuit 163 obtains output data k by ANDing the binary data h and its shift data with 8, and the output data k is used as the switching signal f by the data switching unit 15. will be given to At the same time, the digital image information is converted into simple binarization processing section 14.
The processed data d is binarized using a threshold value of TH2 and sent to the data switching section 15. Note that the output data d from the simple binarization processing unit 14 is converted to the actual binary data in order to match the processing delay in the pseudo halftone processing unit 13.
It is designed to be outputted four pixels later than the digitized data dl. Note that in FIG. 8, it is difficult to represent the pseudo-halftone processing in the same figure due to the content, and even if it is expressed forcibly, it will not make it easier to understand the image area determination operation. The output data C of the pseudo halftone processing section 13 is not particularly shown. Here, for convenience, it is sufficient to consider that the digital image information S delayed by four pixels in the X direction corresponds to the output data C of the pseudo halftone processing section 13. In this way, as is clear from the relationship in FIG. 8, when the switching signal f output from the mixer 164, that is, the output data k of the The digital image information for the pixel currently being processed is in the gray scale image area, and when the low level is "0", the image area is determined to be that the digital image information for the pixel currently being processed is in the pattern image area. Be able to do things accurately. Therefore, when the output data k of the X direction shift processing circuit 163 is given to the data switching section 15 as the switching signal f, the data switching section 15
5, the binary processing data C by the pseudo halftone processing section 13 is selected, and when the output data k is P0'', the data switching section 15 selects the binary processing data C by the simple binarization processing section 14. If d is selected, the digital image information is optimally binarized and the recorded data 8 is sent to the printer 2 side according to the determination of the image area of the grayscale image area or the pattern image area to produce a high quality image. It becomes possible to perform recording and playback of. In the case of Fig. 8, B in the digital image information
The portions 1 and B2 are binarized by pseudo halftone processing. Further, in the B3 portion, the edge portion is simply binarized by a width of four pixels, and the center portion is binarized by pseudo halftone processing. In this case, the halftone output at the center of -83 does not mean that the density is reduced, but that the density corresponds to the density of the original image. This part B3 shows a pattern image part with a thick line width, and since pattern images such as characters in the original document have sufficient density themselves, the quality of the recorded image in the 83 part is not affected by the processing of the present invention. As well as being no longer damaged,
Since the edge portion is subjected to simple binarization processing, a sharp pattern image with no blurred outline can be obtained. Furthermore, in the portion B4 indicating the pattern image portion with a narrow line width, simple binarization processing is performed over the entire width. In the characteristics of the recorded data e, the shaded portion indicates the data portion subjected to pseudo halftone processing. Also, Figure 9 is for explaining the operation of image area determination in the Y direction, and although the digital image information in the Y direction is not particularly shown here, 88 in Figure 1 is in the pattern image part in bold letters. , B9. B13 is in the gray image area, BIO
~B12 may be considered to correspond to the pattern image portions of fine letters, respectively. In this case, as in the case described above, when the output data j from the Y-direction shift processing circuit 162 becomes the high level II 1'g, the digital image information in the pixel currently being processed is in the grayscale image area. , and when it becomes low level rr On, it is determined that the image area is in the digital image information of the pixel currently being processed, but is in the pattern image area,
In the B9 and 813 portions, binarized data C by pseudo halftone processing is selected as recording data e, and 810 to 81
In the second part, simple binarized data d is selected,
In the 88th section, the data d that has been simply binarized is selected at its edges, and the binarized data C that has been subjected to pseudo halftone processing is selected at the center. In the image area determination method according to the present invention, it is possible to effectively determine that a grayscale image area in a document is a grayscale image area even if the grayscale image area has already been subjected to pseudo-halftone processing. In other words, pseudo-halftone processing expresses halftones by the density of binarized dots and the pattern of dot aggregates, and even with such expression, there is no difference between halftones. Therefore, if a method of the present invention is used to determine that the area is a gray image area when the density is higher than a certain level over a certain range, for example, a portion of the document with a high dot density is a gray image area. It becomes possible to determine that. Therefore, it is possible to record and reproduce a good image even in a gray-scale image portion of a document that has already been subjected to pseudo-halftone processing. As explained above, the digital image information is determined by the threshold value TH.
When the data binarized by I is shifted by 8 pixels in both the X and Y directions, each delayed data j, and the data c, which is binarized using only the AND signal of
For example, recording data e corresponding to the grayscale image portions B1 and B2 in FIG.
In the small portions at both ends of the pseudo-intermediate waste-processed data portion indicated by diagonal lines, single iA binarized data is generated even though the original image is a gray-scale image portion. In other words, if there is an edge portion indicated by double hatching in the figure consisting of four pixels at both ends of the grayscale image area, and the corresponding digital image information has a level equal to or higher than the threshold value TH2, simple binarization processing is performed. By logic”
1" is output, and if it has a level lower than the threshold TH2, it is converted to logic "0"' by simple binarization processing.
will be output. In that case, if the density of the grayscale image at the edge part of the original image is originally quite low or high, it will not be a problem, but if the density is between the thresholds THI and TH2, the logic # The output of OII also causes deterioration in the grayscale image portion that is recorded and reproduced. Therefore, in the present invention, especially in the mixer 164 in the image area determination unit 16, at the timing when j4 and 4 are '1', each binary data j and k are '0' as an edge condition. 2
By sending a logic judgment signal according to the state of the digitized data d to the data switching unit 15 as a switching signal f based on the image area judgment result, a simple 2 Valued data is II O,
, the edge portion is processed as a grayscale image area, and when the simple binarized data is tr 1 u, the edge portion is processed as a pattern image area. Specifically, in the mixer 164 of the 1-image area determination unit 16, the binary data Jlk are both 11011 and the 4
The edge condition is when the binary data j4゜k4 are both in the state of II 1 +1, which is at a position advanced by a pixel,
The simple binarized data d at that time can be given to the data switching section 15 as a switching signal f. At this time, if the density at the edge portion is low and its level is lower than the threshold value TH2, d="O", f="I", and the data switching unit 15 selects the pseudo halftone processing data C. selected. Further, when the density at the edge portion is high and its level is higher than the threshold value TH2, d="1", f="O'", and the data switching unit 15 selects the simple binarized data at that time. d is selected. The double-hatched portions of the recorded data e in FIGS. 8 and 9 indicate edge output by pseudo halftone processing. Therefore, J! The edge portions are processed according to the actual shading state of one image, and the quality of the shading image to be recorded and reproduced is improved. In the above embodiment, the digital image information is set to the threshold value T.
The image area is determined based on the delayed data obtained by shifting the binarized data by HI by several pixels (8 pixels) in both the X and Y directions.
It should be noted that the image area may be determined according to delay data in either the X or Y direction, and that each circuit configuration is not limited to the one described above and can be changed as appropriate. Needless to say, for example, the digital image information to be processed is not limited to image information of a document read by a scanner, but may also be digital image information sent from a host computer in a certain system. Furthermore, in the embodiment described above, the image area determination unit 16
Although the threshold value in the binarization circuit 161 and the threshold value TH2 in the simple binarization processing section 14 are fixed, each of the threshold values THI and TH2 may have a hysteresis characteristic. That is, for example, the binarized data g based on the threshold value THI is logical II.
The level of the threshold TH1 is made to change somewhat depending on whether it is 1gg or NOI+. As a result, for example, once it is determined that the area is a grayscale image area, even if a low-density area appears in that area, it is difficult to convert to a binary area, and the determination mode for the grayscale image area can be maintained. become. Further, in the case of the above embodiment, the amount of delay of each digital image information in the X direction and the Y direction is set to 8 pixels, and the pseudo halftone processing section 13. Simple binarization processing unit 1
4 and the image area determination unit 16 so that each processing data is for the same pixel, the timing is set in consideration of each processing delay, and in particular, the processing delay in the pseudo halftone processing unit 13 is taken into consideration. Simply binarize the edge part of the pattern image by 4 pixels,
I am trying to process the center part with pseudo halftone processing,
It is possible to set various delay amounts for the digital image information in the X and Y directions, and one of the multiple delay amounts can be selectively specified depending on the state of the original image. You will be able to take measures easily. As mentioned above, in the image region determination method according to the present invention, a threshold different from the threshold for performing simple binarization processing on digital image information that has been multivalued quantized in units of pixels to be processed is used. The current digital image information is in the pattern image area based on the data that is binarized with the value and then shifted by several pixels in the main scanning direction and/or the sub-scanning direction. It has the excellent advantage that the image area can be accurately determined in real time using simple means.

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

第1図は本発明による画像領域判定方法を具体的に実施
したときのデジタル複写機のブロック構成図、第2図は
本発明を具体的に実施するための回路構成例を示すブロ
ック図、第3図は同実施例における2値化回路の構成例
を示すブロック図、第4図は同じくそのY方向シフト処
理回路の構成例を示すブロック図、第5図は同じくその
X方向シフト処理回路の構成例を示すブロック図、第6
図は同じくミキサの構成例を示すブロック図、第7図は
スキャナにより原稿面を光走査したときの光反射率に対
する画情報の濃度階調特性を示す特性図、第8図は主走
査方向における画像領域判定時の各部信号のタイミング
を示すタイムチャート。 第9図は副走査方向における画像領域判定時の各部信号
のタイミングを示すタイムチャートである。 11・・・読取部 12・・画像処理部 13・・・疑
似中間調処理部 14・・・単純2値化処理部 15・
・データ切換部 I6・・・画像領域判定部 161・
・・2値化回路 162・・・Y方向シフト処理回路 
163・・・X方向シフト処理回路 164・・・ミキ
サ第1図
FIG. 1 is a block diagram of a digital copying machine in which an image area determination method according to the present invention is specifically implemented, and FIG. 2 is a block diagram showing an example of a circuit configuration for concretely implementing the present invention. FIG. 3 is a block diagram showing an example of the configuration of the binarization circuit in the same embodiment, FIG. 4 is a block diagram showing an example of the configuration of the Y-direction shift processing circuit, and FIG. 5 is a block diagram of the X-direction shift processing circuit. Block diagram showing a configuration example, No. 6
Figure 7 is a block diagram showing an example of the configuration of the mixer, Figure 7 is a characteristic diagram showing the density gradation characteristics of image information with respect to light reflectance when the document surface is optically scanned by a scanner, and Figure 8 is a characteristic diagram showing the density gradation characteristics of image information in the main scanning direction. A time chart showing the timing of each part signal when determining an image area. FIG. 9 is a time chart showing the timing of each part signal during image area determination in the sub-scanning direction. 11... Reading section 12... Image processing section 13... Pseudo halftone processing section 14... Simple binarization processing section 15.
・Data switching unit I6...Image area determination unit 161・
...Binarization circuit 162...Y direction shift processing circuit
163...X direction shift processing circuit 164...Mixer Fig. 1

Claims (1)

【特許請求の範囲】[Claims] スキャナにより画素単位でサンプリングすることによっ
て読み取られた原稿の画情報を多値量子化することによ
り得られたデジタル画情報のパターン画像に適した単純
2値化処理と濃淡画像に適した中間調をも表現した2値
化処理とを選択的に行なわせる際、前記デジタル画情報
を単純2値化処理するためのしきい値とは異なるしきい
値をもって2値化し、その2値化されたデータを少なく
とも主走査または副走査の何れか一方に数画素分シフト
させてそのシフトデータと前記2値化されたデータとの
アンドをとった結果が“1”のとき処理対象の画素が濃
淡画像領域にあり、その結果が“0”のとき処理対象の
画素がパターン画像領域にあると判定する手段と、その
判定された濃淡画像領域のエッジ部分に対応する単純2
値化データが“0”のときにそのエッジ部分を濃淡画像
領域として処理し、単純2値化データが“1”のときに
そのエッジ部分をパターン画像領域として処理する手段
とをとるようにした画像領域判定方法。
Simple binarization processing suitable for pattern images of digital image information obtained by multilevel quantization of the image information of the original read by sampling pixel by pixel with a scanner and halftone processing suitable for grayscale images. When selectively performing binarization processing, which expresses is shifted by at least several pixels in either main scanning or sub-scanning, and when the result of ANDing the shifted data and the binarized data is "1", the pixel to be processed is a grayscale image area. means for determining that the pixel to be processed is in the pattern image area when the result is "0", and a simple 2 corresponding to the edge part of the determined grayscale image area.
When the value data is "0", the edge part is processed as a grayscale image area, and when the simple binary data is "1", the edge part is processed as a pattern image area. Image region determination method.
JP59269505A 1984-12-20 1984-12-20 Deciding method for image area Pending JPS61146068A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP59269505A JPS61146068A (en) 1984-12-20 1984-12-20 Deciding method for image area
DE19853545467 DE3545467A1 (en) 1984-12-20 1985-12-20 DIGITAL COPIER
US06/811,701 US4707745A (en) 1984-12-20 1985-12-20 Digital copier with document image region decision device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59269505A JPS61146068A (en) 1984-12-20 1984-12-20 Deciding method for image area

Publications (1)

Publication Number Publication Date
JPS61146068A true JPS61146068A (en) 1986-07-03

Family

ID=17473353

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59269505A Pending JPS61146068A (en) 1984-12-20 1984-12-20 Deciding method for image area

Country Status (1)

Country Link
JP (1) JPS61146068A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0267571A2 (en) * 1986-11-14 1988-05-18 Konica Corporation Apparatus for processing halftone image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0267571A2 (en) * 1986-11-14 1988-05-18 Konica Corporation Apparatus for processing halftone image

Similar Documents

Publication Publication Date Title
JPS6198069A (en) Image processor
JPH05199413A (en) Picture processor
JP2801195B2 (en) Image processing device
JPH0683367B2 (en) Image processing device
JPH01115272A (en) Image processor
JPS61146068A (en) Deciding method for image area
US5200839A (en) Image processing apparatus
JPS61146067A (en) Deciding method for image area
JPS61146070A (en) Image binarization processing mode
JPS61146069A (en) Deciding method for image area
JPH0457274B2 (en)
JP2851662B2 (en) Image processing device
JPH0644800B2 (en) Image processing device
JPS5814673A (en) Gradation signal restoring system
JP3679522B2 (en) Image processing method and apparatus
JPS60116283A (en) System for recording half tone
JPH0546749B2 (en)
JPH10191038A (en) Multi-valued image binarization method
JPS6180971A (en) Picture signal processor
JPH01137378A (en) Picture processing system
JPS6180964A (en) Picture signal processing method
JPH0758953A (en) Binarizing device and device using the same
JPH0360276A (en) Picture information reader
JPS6255347B2 (en)
JPH07143338A (en) Image thresholding device