JP2504225B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2504225B2
JP2504225B2 JP1274408A JP27440889A JP2504225B2 JP 2504225 B2 JP2504225 B2 JP 2504225B2 JP 1274408 A JP1274408 A JP 1274408A JP 27440889 A JP27440889 A JP 27440889A JP 2504225 B2 JP2504225 B2 JP 2504225B2
Authority
JP
Japan
Prior art keywords
minimum value
output
maximum value
maximum
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP1274408A
Other languages
Japanese (ja)
Other versions
JPH03135167A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP1274408A priority Critical patent/JP2504225B2/en
Publication of JPH03135167A publication Critical patent/JPH03135167A/en
Application granted granted Critical
Publication of JP2504225B2 publication Critical patent/JP2504225B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] この発明は画像処理に係り、特にファクシミリ等で写
真等の中間調レベルを有する部分と文字図形等の文書部
分をそれぞれに適合した形態で2値化するに好適な画像
処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of use] The present invention relates to image processing, and particularly in a facsimile or the like, a portion having a halftone level such as a photograph and a document portion such as a character pattern are adapted to each other. The present invention relates to an image processing apparatus suitable for digitization.

[従来の技術] 従来から、写真等の中間調レベルに有する画像を白ま
たは黒の2値で擬似的に実現する方法としてはディザ法
がよく知られている。このディザ法は画信号の閾値をそ
の画素が表示されるべき座標情報によって定めて2値化
するもので、通常は一定サイズの閾値マトリックスを繰
り返し表現して全画面の閾値情報として用いることにな
る。
[Prior Art] Conventionally, a dither method has been well known as a method for artificially realizing an image having a halftone level such as a photograph by a binary value of white or black. In this dither method, the threshold value of the image signal is determined by the coordinate information on which the pixel is to be displayed and binarized. Normally, a threshold matrix of a fixed size is repeatedly expressed and used as the threshold information of the entire screen. .

かかる組織的なディザ法は写真等の中間調画像の表現
には優れるが、一方通常の文書や図形等の2値画像に適
用すると輪郭部分がぼやける等の問題点がある。係る問
題点に対して写真等の中間調画像部分と文字・図形から
なる文書等の2値画像部分を自動的に識別して中間調部
分のみにディザしきい値で2値化処理を施し、文書等の
文字・図形部分は固定閾値で2値化処理する方法が考え
られている。
The systematic dithering method is excellent for expressing a halftone image such as a photograph, but when applied to a binary image such as an ordinary document or figure, it has a problem that a contour portion is blurred. To solve the problem, a halftone image portion such as a photograph and a binary image portion such as a document including characters and figures are automatically identified, and only the halftone portion is binarized with a dither threshold. A method of binarizing a character / graphic portion of a document or the like with a fixed threshold is considered.

このような方法の一例として「2値画像と濃淡画像の
混在する原稿の2値化処理法」(鉄谷信司、越智宏著
電子通信学会論文誌′84/7 Vol.J67-B No.7)に示され
るような「ブロック別領域分離法」が知られている。こ
の方式では画像の一定のブロック内のレベルの最大値と
最小値の差を基にして各ブロックが中間調領域か文書領
域かを判定し、ディザ閾値2値化処理と固定閾値2値化
処理を切り換えている。
As an example of such a method, "Binarization processing method of a document in which a binary image and a grayscale image are mixed" (Shinji Tetsutani, Hiroshi Ochi)
The "area separation method for each block" as shown in IEICE Transactions '84 / 7 Vol.J67-B No.7) is known. In this method, it is determined whether each block is a halftone area or a document area based on the difference between the maximum value and the minimum value in a certain block of the image, and the dither threshold binarization processing and the fixed threshold binarization processing are performed. Is being switched.

第12図は係る従来の画像処理装置のブロック図であ
り、特に画像ブロック・サイズを4画素×4画素、画像
信号のレベル数を16レベル、レベルの最大値と最小値の
差が8以下であれば中間調ブロック、レベルの最大値と
最小値の差が8を越えていれば文書ブロックと判定する
構成を例示するものである。同図において、(1)は水
平4画素、垂直4画素のブロックサイズであることか
ら、少なくとも3ライン分格納できるサイズを有し、各
画素をレベル数16で記憶できる中間調メモリ、(2)は
中間調メモリ(1)に格納された画像の各ブロック内の
最大値と最小値を検出する最大値・最小値検出回路、
(3)は最大値・最小値検出回路(2)によって検出さ
れたブロック内の最大値と最小値の差に基づいて、この
ブロックが中間調ブロックか文書ブロックかを判定する
判定回路、(4)は中間調メモリ(1)からの画像ブロ
ックを固定閾値で2値化する固定閾値2値化回路、
(5)は中間調メモリ(1)からの画像ブロックをディ
ザ閾値で2値化するディザ閾値2値化回路、(6)は判
定回路(3)の判定結果に基づいて固定閾値2値化回路
(4)とディザ閾値2値化回路(5)の出力を切り換え
て出力する切換え器、(7)は4ライン分の出力をライ
ン順次に取り出すための2値メモリ、(8)は4画素×
4画素のブロック内の画素を順次固定閾値で2値化回路
(4)とディザ閾値2値化回路(5)の2値化回路に送
出する信号選択回路である。
FIG. 12 is a block diagram of such a conventional image processing apparatus. In particular, the image block size is 4 pixels × 4 pixels, the number of image signal levels is 16 levels, and the difference between the maximum and minimum levels is 8 or less. If there is a halftone block, and if the difference between the maximum value and the minimum value of the level exceeds 8, it is determined as a document block. In the figure, (1) is a block size of horizontal 4 pixels and vertical 4 pixels, so it has a size capable of storing at least 3 lines, and a halftone memory capable of storing each pixel at 16 levels, (2) Is a maximum value / minimum value detection circuit for detecting the maximum value and the minimum value in each block of the image stored in the halftone memory (1),
(3) is a determination circuit for determining whether the block is a halftone block or a document block, based on the difference between the maximum value and the minimum value in the block detected by the maximum value / minimum value detection circuit (2), ) Is a fixed threshold binarization circuit that binarizes the image block from the halftone memory (1) with a fixed threshold,
(5) is a dither threshold binarization circuit that binarizes the image block from the halftone memory (1) with a dither threshold, and (6) is a fixed threshold binarization circuit based on the determination result of the determination circuit (3). (4) and a switch for switching and outputting the outputs of the dither threshold binarization circuit (5), (7) is a binary memory for line-sequentially extracting outputs for four lines, and (8) is 4 pixels ×
It is a signal selection circuit for sequentially sending pixels in a block of 4 pixels to a binarization circuit (4) and a dither threshold binarization circuit (5) with a fixed threshold value.

かかる構成において、中間調メモリ(1)に格納され
た画像のブロックは、最大値、最小値検出回路(2)で
最大値と最小値を検出され判定回路(3)で中間調画像
かを判定される。一方、中間調メモリ(1)の内容は信
号選択回路(8)を通じて固定閾値2値化回路(4)と
ディザ閾値2値化回路(5)に与えられそれぞれ固定閾
値で2値化されると共にディザ閾値でも2値化される。
各2値化回路の出力は判定回路(3)の出力で判断され
る切換え器(6)を通じて選択され2値メモリ(7)に
一端格納され4ライン分の2値化信号がライン順次に取
り出される。
In such a configuration, the block of the image stored in the halftone memory (1) detects the maximum value and the minimum value in the maximum value / minimum value detection circuit (2), and the determination circuit (3) determines whether the image is a halftone image. To be done. On the other hand, the contents of the halftone memory (1) are given to the fixed threshold binarization circuit (4) and the dither threshold binarization circuit (5) through the signal selection circuit (8) and binarized with the fixed threshold values. The dither threshold is also binarized.
The output of each binarization circuit is selected through the switch (6) judged by the output of the judgment circuit (3) and is temporarily stored in the binary memory (7), and the binarized signals for four lines are sequentially extracted line by line. Be done.

[発明が解決しようとする課題] 従来の画像処理装置は以上のように構成されているの
で、ブロック単位で画像の領域を分割した後で各ブロッ
クを中間調領域か文書領域か判定しているため、たまた
まブロックの境界で背景が白で、ここから文書領域に移
るような場合、両方のブロック共に中間調領域と判定さ
れる可能性があるため画質が劣化してしまうという課題
があった。
[Problems to be Solved by the Invention] Since the conventional image processing apparatus is configured as described above, it is determined whether each block is a halftone area or a document area after dividing the image area in block units. Therefore, when the background happens to be white at the boundary of blocks and the area moves from here to the document area, there is a possibility that both blocks may be determined to be a halftone area, which causes a problem that the image quality deteriorates.

発明の目的 この発明は、上記のような課題を解決するためになさ
れたもので、領域判定のためのブロックを注目画素に応
じて逐次的に移動させることによって逐次的に中間調領
域か文書領域かを判定させるようにし、より適合性良く
画像を2値化することを可能として高品位な画質を確保
することができる画像処理装置を得ることを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and sequentially moves a block for area determination according to a pixel of interest to thereby sequentially output a halftone area or a document area. It is an object of the present invention to provide an image processing apparatus capable of determining whether or not it is possible, binarizing an image with higher compatibility, and ensuring high-quality image quality.

[課題を解決するための手段] この発明の画像処理装置は上記課題を解決するため
に、中間調レベルを有する画信号を2値化して出力する
画像処理装置において、所定画素ブロック内の主走査方
向上の位置が同一である複数の画素内の最大値と最小値
を検出する第1の最大値最小値検出手段と、前記第1の
最大値最小値検出手段の出力を一時記憶する第1の記憶
手段と、前記第1の記憶手段出力と前記第1の最大値最
小値検出手段とにより最大値と最小値を検出する第2の
最大値最小値検出手段と、前記第2の最大値最小値検出
手段出力を一時記憶する第2の記憶手段と、前記第2の
記憶手段出力と前記第1の最大値最小値検出手段出力と
により最大値と最小値を検出する第3の最大値最小値検
出手段と、前記第3の最大値最小値検出手段出力を一時
記憶する第3の記憶手段と、前記第3の記憶手段出力で
ある所定の画素ブロック内の最大値と最小値に基づいて
同一主走査線上で隣接する複数画素が2値画像領域か中
間調画像領域かを判定する判定手段と、画信号を相異な
る手段で2値化する複数の2値化手段と、前記判定手段
出力に基づいて前記複数の2値化手段の出力の1つを選
択しこれを出力する切替え手段とを備え、前記第3の最
大値最小値検出手段出力は前記第2の記憶手段にも入力
され、前記第2の記憶手段は前記第2の最大値最小値検
出手段出力と前記第3の最大値最小値検出手段出力とを
選択的に記憶して出力し、所定画素ブロック内の同一主
走査線上に隣接する複数画素を一括して2値化すること
を特徴とするものである。
[Means for Solving the Problems] In order to solve the above problems, the image processing device of the present invention is an image processing device that binarizes and outputs an image signal having a halftone level, and performs main scanning within a predetermined pixel block. First maximum / minimum value detecting means for detecting maximum / minimum values in a plurality of pixels at the same position in the direction, and first storage for temporarily storing outputs of the first maximum / minimum value detecting means. Storage means, a second maximum value / minimum value detection means for detecting a maximum value and a minimum value by the first storage means output and the first maximum / minimum value detection means, and the second maximum value. Second storage means for temporarily storing the output of the minimum value detection means, and third maximum value for detecting the maximum value and the minimum value by the output of the second storage means and the output of the first maximum value minimum value detection means. The minimum value detecting means and the third maximum value minimum value detecting means are output. A third storage unit for temporarily storing the force, and a plurality of adjacent pixels on the same main scanning line based on the maximum value and the minimum value in the predetermined pixel block which is the output of the third storage unit are binary image areas. One of an output of the plurality of binarizing means based on the output of the determining means, a plurality of binarizing means for binarizing the image signal by different means And a switching means for selecting and outputting the third maximum value / minimum value detection means, the output of the third maximum / minimum value detection means is also input to the second storage means, and the second storage means has the second maximum / minimum value. Selectively storing and outputting the output of the value detecting means and the output of the third maximum / minimum value detecting means, and binarizing a plurality of adjacent pixels on the same main scanning line in a predetermined pixel block all together. It is characterized by.

[作用] 上記手段において、第1の最大値最小値検出手段によ
り主走査方向上の位置が同一である画素内の最大値と最
小値を検出すると共に、第1の記憶手段により最大値と
最小値を記憶する。また、第2の最大値最小値検出手段
は前記第1の最大値最小値検出手段の出力と前記記憶手
段の出力とにより最大値と最小値を検出すると共に、第
2の記憶手段により最大値と最小値を記憶する。そし
て、第3の最大値最小値検出手段は第1の検出手段の出
力と第2の記憶手段の出力により最大値と最小値を検出
して第3の記憶手段に記憶する。この第3の記憶手段か
らの出力は所定画素ブロック内の最大値と最小値であ
り、判断手段によりこの最大値と最小値から画素が2値
画像領域か中間調画像領域かを判定する。
[Operation] In the above means, the first maximum value / minimum value detection means detects the maximum value and the minimum value in the pixel having the same position in the main scanning direction, and the first storage means causes the maximum value and the minimum value to be detected. Remember the value. Further, the second maximum value minimum value detecting means detects the maximum value and the minimum value from the output of the first maximum value minimum value detecting means and the output of the storage means, and the maximum value is detected by the second storage means. And memorize the minimum value. Then, the third maximum value / minimum value detection means detects the maximum value and the minimum value from the output of the first detection means and the output of the second storage means, and stores them in the third storage means. The output from the third storage means is the maximum value and the minimum value in the predetermined pixel block, and the determination means determines whether the pixel is a binary image area or a halftone image area from the maximum value and the minimum value.

一方複数の2値化手段は画素信号を複数の相異なる手
段で2値化する。切替え手段は前記判定手段の出力に基
づき、複数の2値化手段の出力の1つを選択しこれを出
力する。
On the other hand, the plurality of binarizing means binarize the pixel signal by a plurality of different means. The switching means selects one of the outputs of the binarizing means based on the output of the judging means and outputs it.

[発明の実施例] 以下、図面を参照しながらこの発明の実施例を説明す
る。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図および第2図はこの発明の一実施例に係る画像
処理装置のブロック図で、特に画信号のレベル数を16レ
ベル(白レベル=16、黒レベル=1)とする構成を例示
するものである。また領域判定の参照領域は注目画素を
中心とした3画素×3画素でこの内の最大値と最小値を
調べて、画素逐次に領域を判定、2値化方法を切り換え
るものである。第1図において、(1)は3画素×3画
素の参照領域から少なくとも画信号を2ライン分格納す
ることができるサイズを有し、各画素をレベル数16で記
憶できる中間調メモリ、(3)は最大値・最小値検出回
路(2)の検出結果に基づき、最大値と最小値の差によ
って各ブロックが中間調領域か文書領域かを判定する判
定回路である。
1 and 2 are block diagrams of an image processing apparatus according to an embodiment of the present invention, and particularly exemplify a configuration in which the number of levels of image signals is 16 levels (white level = 16, black level = 1). It is a thing. The reference region for the region determination is 3 pixels × 3 pixels centering on the pixel of interest, and the maximum value and the minimum value of these are checked to sequentially determine the region and switch the binarization method. In FIG. 1, (1) is a halftone memory having a size capable of storing at least two lines of image signals from a reference area of 3 pixels × 3 pixels, and storing each pixel at 16 levels, (3 ) Is a determination circuit for determining whether each block is a halftone area or a document area based on the detection result of the maximum value / minimum value detection circuit (2) based on the difference between the maximum value and the minimum value.

第2図は、第1図最大値最小値検出回路(2)の詳細
構成図で、(21)は中間調メモリ(1)よりの前走査線
および現走査線および次走査線の同一位置の1画信号
(21a、21b、21c)を入力し、その最大値・最小値を出
力(21d)する第1の最大値最小値検出器、(22)はこ
の検出器出力(21d)を1画素クロック分および2画素
クロック分遅延出力(22a、22b)するレジスタ、(23)
は第1の最大値最小値検出器(21)の出力(21d)とレ
ジスタ(22)の2出力(22a、22b)の内の最大値最小値
を検出し判定回路(3)に出力(23a)する第2の最大
値最小値検出器、(24)は現走査線画信号(21b)を1
画素クロック分遅延し注目画信号として2値化回路
(4、5)へ出力(24a)する遅延回路である。
FIG. 2 is a detailed configuration diagram of the maximum value / minimum value detection circuit (2) in FIG. 1, and (21) shows the same position of the previous scanning line, the current scanning line and the next scanning line from the halftone memory (1). The first maximum / minimum value detector that inputs one image signal (21a, 21b, 21c) and outputs the maximum value / minimum value (21d), (22) outputs this detector output (21d) as one pixel Registers (23a) for delayed output (22a, 22b) for clock and two pixel clocks
Detects the maximum value minimum value of the output (21d) of the first maximum value minimum value detector (21) and the two outputs (22a, 22b) of the register (22) and outputs it to the determination circuit (3) (23a The second maximum value / minimum value detector, (24) outputs the current scanning line image signal (21b) to 1
The delay circuit delays the pixel clock and outputs (24a) to the binarization circuit (4, 5) as the image signal of interest.

なお、実施例の構成では、画像の2値化信号は1ライ
ン単位で処理または出力されるので、従来の第12図の構
成では必要であった信号選択回路(8)や2値メモリ
(7)は不要である。
In the configuration of the embodiment, the binarized signal of the image is processed or output on a line-by-line basis. Therefore, the signal selection circuit (8) and the binary memory (7) which are necessary in the conventional configuration of FIG. ) Is unnecessary.

かかる構成において、次にその作用を説明する。 Next, the operation of this structure will be described.

第3図は文字のエッジ部等に見られる画信号の一例を
示す説明図である。また、第4図はディザ閾値2値化回
路(5)に設定されるディザ閾値のマトリックスの一例
を示す説明図である。さて、画像信号をV、閾値をT、
2値化表示信号をRとし、V>TならばR=1、V≦T
ならばR=0とする。第5図(a)は第3図の画信号を
ディザ閾値2値化回路(5)によって常に第4図に示す
ようなディザ閾値で2値量子化したものである。一方、
第5図(b)は第3図の画信号を固定閾値2値化回路
(4)によってレベル7の閾値で2値量子化したもので
ある。
FIG. 3 is an explanatory diagram showing an example of an image signal seen at an edge portion of a character. FIG. 4 is an explanatory diagram showing an example of a matrix of dither threshold values set in the dither threshold binarization circuit (5). Now, the image signal is V, the threshold is T,
Let R be a binarized display signal, and if V> T, R = 1, V ≦ T
If so, R = 0. FIG. 5 (a) shows the image signal of FIG. 3 binarized by the dither threshold binarization circuit (5) with a dither threshold as shown in FIG. on the other hand,
FIG. 5B shows the image signal of FIG. 3 which has been quantized by the fixed threshold binarization circuit (4) using the threshold of level 7.

従来方式の領域判定では左側の4画素×4画素の領域
は最大値と最小値のレベル差が7で、右側の4画素×4
画素の領域は最大値と最小値のレベル差が2でいずれも
判定回路(3)によって第6図(a)に示すように中間
調領域Pと判定された。その結果、切換え器(6)はデ
ィザ閾値2値化回路(5)の出力を選択して第7図
(a)に示すようなディザ閾値に基づく表示信号Rが得
られた。
In the area determination of the conventional method, the level difference between the maximum value and the minimum value is 7 in the area of 4 pixels × 4 pixels on the left side, and the level difference of 4 pixels × 4 pixels on the right side.
In the pixel area, the level difference between the maximum value and the minimum value is 2, and the determination circuit (3) determines that the pixel area is the halftone area P as shown in FIG. 6 (a). As a result, the switch (6) selected the output of the dither threshold binarization circuit (5) to obtain the display signal R based on the dither threshold as shown in FIG. 7 (a).

これに対して、本実施例では注目画素を中心とする3
画素×3画素の領域内で判定回路(3)は最大値・最小
値検出回路(2)の出力から最大値と最小値の差が8以
上あれば文書領域Cと判定し、差が7以下であれば中間
調領域Pと判定するので、第6図(b)に示すように画
素単位で領域判定する。その結果、切換え器(6)は判
定回路(3)の出力に基づいて固定閾値2値化回路
(4)の出力とディザ閾値2値化回路(5)の出力を画
素単位で切り換え、第7図(b)に示すようなディザ閾
値に基づく表示信号と固定閾値に基づく表示信号Rが得
られる。
On the other hand, in this embodiment, 3
If the difference between the maximum value and the minimum value from the output of the maximum value / minimum value detection circuit (2) is 8 or more in the area of pixels × 3 pixels, the determination circuit (3) determines that it is the document area C, and the difference is 7 or less. If so, it is determined to be the halftone region P, and therefore the region determination is performed in pixel units as shown in FIG. 6 (b). As a result, the switcher (6) switches the output of the fixed threshold binarization circuit (4) and the output of the dither threshold binarization circuit (5) on a pixel-by-pixel basis based on the output of the determination circuit (3), and the seventh A display signal based on the dither threshold and a display signal R based on the fixed threshold as shown in FIG.

ここで最大値最小値検出回路(2)の詳細な動作は第
8図に示す通りである。同図でa1、a2…は前走査線の第
1,2…番目の画信号、同じくb1、b2…は現走査線のc1、c2
…は次走査線のそれぞれ第1、2…番目の画信号であ
る。またM(ijk…)は画信号i、j、k…内の最大値
最小値を示す。
The detailed operation of the maximum / minimum value detection circuit (2) is as shown in FIG. In the figure, a 1 , a 2 ... are the first scan line
The 1,2 ... th image signals, b 1 , b 2 ... are also c 1 , c 2 of the current scanning line
Are image signals of the first, second ... Further, M (ijk ...) Shows the maximum and minimum values in the image signals i, j, k.

図から明らかなように、画像メモリ(1)からの画信
号が走査線単位に最大値最小値検出回路(2)に入力さ
れると、1画素クロック分ずつ遅れて注目画信号(24
a)およびそれを中心とした3画素×3画素の領域の検
出最大値・最小値信号(23a)がそれぞれ2値化回路
(4、5)および判定回路(3)に出力されることとな
る。
As is clear from the figure, when the image signal from the image memory (1) is input to the maximum value / minimum value detection circuit (2) for each scanning line, the image signal of interest (24
a) and the detection maximum value / minimum value signal (23a) of the area of 3 pixels × 3 pixels centered on it are output to the binarization circuit (4, 5) and the determination circuit (3), respectively. .

ここでレジスタ(22)は走査線の最初において最大値
=1、最小値=16に初期設定されている。また各走査線
の最後には有効画信号の後で各ライン最後の画素と同一
の信号が1画素分、本回路に入力される。
Here, the register (22) is initially set to the maximum value = 1 and the minimum value = 16 at the beginning of the scanning line. At the end of each scanning line, the same signal as that of the last pixel of each line is input to this circuit after the effective image signal.

この場合に得られる2値化信号には従来のように文書
領域で2値信号の凹凸がないので画質の向上が実現でき
る。
Since the binary signal obtained in this case has no unevenness of the binary signal in the document area as in the conventional case, the image quality can be improved.

一般に、文字等のエッジ部では積分効果によって必ず
中間調レベルが現れるが、この発明の構成では常に注目
画素を中心とする3画素×3画素程度の範囲の画素信号
を参照することで領域の判定を精度よく行うことが可能
である。なお背景の白の部分と文字の黒部分では中間調
と判定されても十分に白あるいは黒となっているので固
定閾値で2値化してもディザ閾値で2値しても2値化信
号への影響は少ない。しかしながら、エッジ部分を文書
領域として固定閾値で2値化すると、ここを中間調領域
としてディザ閾値で2値化する場合に比べてはるかに高
品位な2値化画像信号を得ることができる。
Generally, the halftone level always appears at the edge portion of a character or the like due to the integration effect, but in the configuration of the present invention, the area determination is always made by referring to the pixel signal in the range of 3 pixels × 3 pixels centering on the pixel of interest. Can be performed accurately. It should be noted that the white part of the background and the black part of the character are sufficiently white or black even if they are judged to be halftone, so even if binarized with a fixed threshold or binarized with the dither threshold, it becomes a binarized signal. Has little effect. However, if the edge part is binarized as a document region with a fixed threshold value, a binarized image signal having a much higher quality can be obtained as compared with the case where the edge part is binarized with the dither threshold value as the halftone region.

なお上記実施例では領域判定のための参照領域を注目
画素を中心とする3画素×3画素としたが、画素解像度
が高いような場合に、より広い範囲を参照領域としても
良い。
Although the reference area for area determination is 3 pixels × 3 pixels centered on the pixel of interest in the above embodiment, a wider range may be used as the reference area when the pixel resolution is high.

第9図はこのような場合の最大値最小値検出回路
(2)の一例を示すもので、本実施例では1走査線を3
画素ずつのブロックに分け、この各注目画素ブロックに
対し、第10図で示す参照領域内の最大値最小値を用いて
2値化方法を切換えるものである。
FIG. 9 shows an example of the maximum value / minimum value detection circuit (2) in such a case. In the present embodiment, one scanning line has three lines.
It is divided into blocks for each pixel, and the binarization method is switched for each pixel block of interest by using the maximum and minimum values in the reference area shown in FIG.

第9図で、第2の最大値最小値検出器(25)は第1の
検出器(21)とレジスタ(22)の(1画素クロック分遅
延した)出力(22a)の内より最大値最小値を検出する
ものであり、この出力(25a)は順次最大値最小値を累
積して計算する第2のレジスタ(26)と第3の最大値最
小値検出器(27)の系に初期値として入力される構成と
なっている。このため第2のレジスタ(26)ではこの第
2の検出器出力(25a)はレジスタ(26)の第1の入力
となっており、一方この第2の入力にはフィードバック
入力として第3の検出器出力(27a)が入力されてい
る。第3の検出器(27)の第1の入力はこの第2のレジ
スタ出力(26a)が入力され、第2の入力には第1の最
大値最小値検出器出力(21d)が入力されている。そし
てこの第3の検出器出力(27a)は第3のレジスタ(2
8)の入力とされ3画素クロックに1度このレジスタに
取込まれ検出最大値最小値信号(23a)として判定回路
(3)に送られる。また、遅延回路(24)はこの最大値
最小値検出回路(2)内での検出信号(23a)の遅延を
補償するため4画素クロック分だけ現走査線信号を遅ら
せ注目画信号(24a)としている。第11図に本実施例に
おける最大値最小値検出回路(2)の動作を示す。図中
の▼印が第3のレジスタ(28)で(直前の)第3の検出
器出力(27a)を取り込むタイミングを示す。また第2
のレジスタ(26)における第1、第2の入力の選択方法
を矢印で示す。同図から明らかなように3画素ずつの画
素ブロック(例えばb4、b5、b6)が第10図に示す5画素×
3画素の参照画素領域(この場合a3〜a7、b3〜b7、c3
c7)の最大値最小値により2値/中間調の領域が判定さ
れる。
In FIG. 9, the second maximum / minimum value detector (25) is the maximum or minimum value from the outputs (22a) (delayed by one pixel clock) of the first detector (21) and the register (22). This output (25a) is used to detect the value, and the output (25a) is initially stored in the system of the second register (26) and the third maximum / minimum value detector (27) which sequentially calculate the maximum and minimum values. It is configured to be input as. Therefore, in the second register (26), this second detector output (25a) is the first input of the register (26), while this second input serves as a feedback input for the third detection. Output (27a) is input. This second register output (26a) is input to the first input of the third detector (27), and the first maximum / minimum value detector output (21d) is input to the second input. There is. This third detector output (27a) is then sent to the third register (2
It is taken as an input of 8) and taken into this register once every three pixel clocks and sent to the judgment circuit (3) as a detection maximum value minimum value signal (23a). The delay circuit (24) delays the current scanning line signal by four pixel clocks in order to compensate for the delay of the detection signal (23a) in the maximum value / minimum value detection circuit (2), and uses it as a target image signal (24a). There is. FIG. 11 shows the operation of the maximum / minimum value detection circuit (2) in this embodiment. The ▼ mark in the figure indicates the timing at which the (immediately before) third detector output (27a) is fetched by the third register (28). Also the second
The arrow indicates the method of selecting the first and second inputs in the register (26). As is clear from the figure, a pixel block of 3 pixels each (for example, b 4 , b 5 , b 6 ) has 5 pixels × 5 pixels shown in FIG.
3 pixels of the reference pixel region (in this case a 3 ~a 7, b 3 ~b 7, c 3 ~
The maximum / minimum value of c 7 ) determines the binary / halftone area.

また、上記実施例では領域判定の基準を最大値と最小
値の差が8以上か否かに置く場合を例示したが最大値と
最小値の差だけでなく最大値と最小値の絶対値も加味し
て各ブロックが中間調領域か文書領域かを判定するよう
にしても良い。この場合、例えば最大値と最小値の差が
8以上ならば文書領域、差が7より小さくても最大値の
レベル3以下あるいは最小値のレベルが14以上なら文書
領域というように最大値と最小値の差ならびにそれぞれ
の絶対値によって領域判定を行う。
Further, in the above embodiment, the case of setting the criterion of the region determination as to whether the difference between the maximum value and the minimum value is 8 or more is exemplified, but not only the difference between the maximum value and the minimum value, but also the absolute value of the maximum value and the minimum value. It may be possible to determine whether each block is a halftone area or a document area. In this case, for example, if the difference between the maximum value and the minimum value is 8 or more, the document area, and if the difference is less than 7, the maximum value is 3 or less, or if the minimum value is 14 or more, the document area is the maximum value and the minimum value. The area is determined based on the difference between the values and the absolute value of each.

また、ディザ閾値の配置や2値画像用2値化法におけ
る固定閾値についても、本実施例に限定されるものでは
なく、後者では例えばフローティングスライス等他の組
み合わせでも適用可能なことはもちろんである。
Further, the arrangement of the dither threshold and the fixed threshold in the binarization method for a binary image are not limited to those in this embodiment, and in the latter case, other combinations such as floating slices can be applied. .

[発明の効果] 以上のように、この発明によれば画像の文書等の2値
画像領域と写真等の中間調画像領域の判定を1走査線上
の複数の画素よりなるブロック単位で行えるように構成
したので、より精度の高い判定が可能になり高品質な画
像表現が可能となる。また2値化信号も1ライン単位で
処理され出力されるので回路構成が簡単になり安価に構
成できるという効果がある。
EFFECTS OF THE INVENTION As described above, according to the present invention, it is possible to determine a binary image area such as a document of an image and a halftone image area such as a photograph in a block unit composed of a plurality of pixels on one scanning line. Since it is configured, it is possible to make a more accurate determination, and it is possible to express a high quality image. Further, since the binarized signal is also processed and output in units of one line, there is an effect that the circuit configuration is simple and can be inexpensively constructed.

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

第1図はこの発明の一実施例に係る画像処理装置のブロ
ック図、第2図は第1図に示した最大値最小値検出回路
の詳細構成図、第3図は文字のエッジ部等にみられる画
信号の一例を示す説明図、第4図はディザ閾値のマトリ
ックスの一例を示す説明図、第5図(a)は第3図の画
信号を第4図に示すようなディザ閾値で2値量子化した
場合の説明図、第5図(b)は第3図の画信号を固定閾
値で2値量子化した場合の説明図、第6図(a)は従来
の方式で領域判定した場合の判定結果の説明図、第6図
(b)は第1図の構成で領域判定した場合の判定結果の
説明図、第7図(a)は従来の方式で2値化した場合の
表示信号の説明図、第7図(b)は第1図の構成で2値
化した場合の表示信号の説明図、第8図は第2図の最大
値最小値検出回路の動作説明図、第9図は最大値最小値
検出回路の他の一実施例を示す図、第10図はこの実施例
で領域判定に用いる参照画素領域を示す図、第11図
(a),(b)は同実施例の最大値最小値検出回路の動
作説明図、第12図は従来の画像処理装置のブロック図で
ある。 図において(3)は判定回路、(4)は2値画像用2値
化回路、(5)は中間調画像用2値化回路、(6)は切
換え器、(21)は第1の最大値最小値検出器、(22)は
第1の遅延手段(レジスタ)、(23)は第2の最大値最
小値検出器、(25)は最大値最小値検出器、(26)は第
2の遅延手段、(27)は最大値最小値検出器、(28)は
第3の遅延手段である。 また、図中同一符号は同一または相当部分を示す。
FIG. 1 is a block diagram of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a detailed configuration diagram of the maximum value / minimum value detection circuit shown in FIG. 1, and FIG. FIG. 4 is an explanatory view showing an example of a picture signal that can be seen, FIG. 4 is an explanatory view showing an example of a matrix of a dither threshold, and FIG. 5 (a) shows the picture signal of FIG. 3 with a dither threshold as shown in FIG. FIG. 5 (b) is an explanatory diagram in the case of binary quantization, FIG. 5 (b) is an explanatory diagram in the case of binary quantization of the image signal in FIG. 3 with a fixed threshold, and FIG. 6 (a) is a region determination by a conventional method. FIG. 6 (b) is an explanatory diagram of the determination result when the region determination is performed with the configuration of FIG. 1, and FIG. 7 (a) is a binary conversion result by the conventional method. 7 is an explanatory view of the display signal, FIG. 7 (b) is an explanatory view of the display signal when binarized in the configuration of FIG. 1, and FIG. 8 is a maximum value / minimum value detection circuit of FIG. FIG. 9 is an operation explanatory diagram, FIG. 9 is a diagram showing another embodiment of the maximum value / minimum value detection circuit, FIG. 10 is a diagram showing a reference pixel area used for area determination in this embodiment, FIG. 11 (a), (B) is an operation explanatory view of the maximum value / minimum value detection circuit of the embodiment, and FIG. 12 is a block diagram of a conventional image processing apparatus. In the figure, (3) is a judgment circuit, (4) is a binarization circuit for binary images, (5) is a binarization circuit for halftone images, (6) is a switch, and (21) is a first maximum. A value minimum value detector, (22) a first delay means (register), (23) a second maximum value minimum value detector, (25) a maximum value minimum value detector, and (26) a second. (27) is a maximum value / minimum value detector, and (28) is a third delay means. Further, the same reference numerals in the drawings indicate the same or corresponding parts.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】中間調レベルを有する画信号を2値化して
出力する画像処理装置において、 所定画素ブロック内の主走査方向上の位置が同一である
複数の画素内の最大値と最小値を検出する第1の最大値
最小値検出手段と、前記第1の最大値最小値検出手段の
出力を一時記憶する第1の記憶手段と、前記第1の記憶
手段出力と前記第1の最大値最小値検出手段とにより最
大値と最小値を検出する第2の最大値最小値検出手段
と、前記第2の最大値最小値検出手段出力を一時記憶す
る第2の記憶手段と、前記第2の記憶手段出力と前記第
1の最大値最小値検出手段出力とにより最大値と最小値
を検出する第3の最大値最小値検出手段と、前記第3の
最大値最小値検出手段出力を一時記憶する第3の記憶手
段と、前記第3の記憶手段出力である所定の画素ブロッ
ク内の最大値と最小値に基づいて同一主走査線上で隣接
する複数画素が2値画像領域か中間調画像領域かを判定
する判定手段と、画信号を相異なる手段で2値化する複
数の2値化手段と、前記判定手段出力に基づいて前記複
数の2値化手段の出力の1つを選択しこれを出力する切
替え手段とを備え、前記第3の最大値最小値検出手段出
力は前記第2の記憶手段にも入力され、前記第2の記憶
手段は前記第2の最大値最小値検出手段出力と前記第3
の最大値最小値検出手段出力とを選択的に記憶して出力
し、所定画素ブロック内の同一主走査線上に隣接する複
数画素を一括して2値化することを特徴とする画像処理
装置。
1. An image processing apparatus for binarizing and outputting an image signal having a halftone level, wherein a maximum value and a minimum value in a plurality of pixels having the same position in the main scanning direction in a predetermined pixel block are set. First maximum / minimum value detecting means for detecting, first storage means for temporarily storing the output of the first maximum / minimum value detecting means, output of the first storing means and the first maximum value Second maximum value / minimum value detection means for detecting the maximum value and minimum value by the minimum value detection means; second storage means for temporarily storing the output of the second maximum / minimum value detection means; and the second A third maximum value / minimum value detecting means for detecting a maximum value and a minimum value by the storage means output and a first maximum value / minimum value detecting means output; and a third maximum value / minimum value detecting means output. Third storage means for storing and a predetermined output which is the output of the third storage means Of the plurality of pixels adjacent to each other on the same main scanning line based on the maximum value and the minimum value in the pixel block, and the image signal is binarized by different means. A plurality of binarizing means and a switching means for selecting one of the outputs of the plurality of binarizing means based on the output of the judging means and outputting the selected one. The means output is also input to the second storage means, and the second storage means outputs the second maximum value / minimum value detection means output and the third value.
And a maximum value / minimum value output of the maximum value / minimum value detection means are selectively stored and output, and a plurality of pixels adjacent to each other on the same main scanning line in a predetermined pixel block are collectively binarized.
JP1274408A 1989-10-19 1989-10-19 Image processing device Expired - Fee Related JP2504225B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1274408A JP2504225B2 (en) 1989-10-19 1989-10-19 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1274408A JP2504225B2 (en) 1989-10-19 1989-10-19 Image processing device

Publications (2)

Publication Number Publication Date
JPH03135167A JPH03135167A (en) 1991-06-10
JP2504225B2 true JP2504225B2 (en) 1996-06-05

Family

ID=17541258

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1274408A Expired - Fee Related JP2504225B2 (en) 1989-10-19 1989-10-19 Image processing device

Country Status (1)

Country Link
JP (1) JP2504225B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6324239B2 (en) * 2014-07-01 2018-05-16 キヤノン株式会社 Image processing apparatus, image processing method, and program

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS575466A (en) * 1980-06-13 1982-01-12 Nec Corp Binary coded circuit
JPS6180958A (en) * 1984-09-28 1986-04-24 Fuji Xerox Co Ltd Picture signal processing method

Also Published As

Publication number Publication date
JPH03135167A (en) 1991-06-10

Similar Documents

Publication Publication Date Title
US6377711B1 (en) Methods and systems for detecting the edges of objects in raster images using diagonal edge detection
US4817174A (en) Image processing apparatus
JPS62118676A (en) Picture processing system
JPH02100575A (en) Picture processor
KR920001798B1 (en) Picture signal processing devices
JP2504225B2 (en) Image processing device
EP0630149A1 (en) Method and apparatus for image processing
GB2261340A (en) Image data processing method with mixture of simple binarization and half tone imaging
JPS6359272A (en) Picture processor
JPS5814673A (en) Gradation signal restoring system
KR940010474B1 (en) Picture improvement for fax
JPH03135166A (en) Picture processing unit
JP2521744B2 (en) Image processing device
JP2972171B2 (en) Halftone area detection method
JPS6080365A (en) Processor of pseudo medium gradation picture
JPH10253332A (en) Method and apparatus for inspecting defect in cyclic pattern
JPH03244276A (en) Image processor
JPH09247461A (en) Image reproducing device
JPS62281678A (en) Picture processor
JPH0429109B2 (en)
JPH0818780A (en) Method and device for processing picture
JPH11308438A (en) Image processor
JPS63289684A (en) Method for detecting edge
JPH07115539A (en) Image processor
JPH0413371A (en) Picture processor

Legal Events

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