JPH0540825A - Image processor - Google Patents

Image processor

Info

Publication number
JPH0540825A
JPH0540825A JP3193930A JP19393091A JPH0540825A JP H0540825 A JPH0540825 A JP H0540825A JP 3193930 A JP3193930 A JP 3193930A JP 19393091 A JP19393091 A JP 19393091A JP H0540825 A JPH0540825 A JP H0540825A
Authority
JP
Japan
Prior art keywords
binarizing
pixel value
reducing
binarization
pattern
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3193930A
Other languages
Japanese (ja)
Other versions
JP2851724B2 (en
Inventor
Masami Kato
政美 加藤
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP3193930A priority Critical patent/JP2851724B2/en
Publication of JPH0540825A publication Critical patent/JPH0540825A/en
Application granted granted Critical
Publication of JP2851724B2 publication Critical patent/JP2851724B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PURPOSE:To suppress the scale increase of a circuit at the time of realizing hardware, to reduce the disappearance of fine lines at the time of reduction and to enable excellent conversion of pseudo-intermediate tones. CONSTITUTION:A pattern detection processing part 12 detects a pattern preliminarily set based on an original image, a conversion picture element value calculation pad 11 performs the reduction conversion of the picture element of the original image based on a projection method, a picture element value reduction processing part 13 further reduces the picture element value reduced in the conversion picture element value calculation part 11, and a detection result reduction processing part 14 reduces the detection result obtained in the pattern detection processing part 12. A concentration retention binaryzing processing part 18 binaryzes the picture element value reduced in the picture element value reduction processing part 13, a simple binaryzing processing part 16 binaryzes the picture element value similar to that used when the binaryzation was conducted in the concentration retention binaryzing processing part 18, a selection part 19 selects the binaryzation result obtained in the simple binaryzing processing part 16 when the pattern was detected in the pattern detection processing part 12 one hand and selects the binaryzation result obtained in the concentration retention binaryzing processing part 18 on the other hand when the pattern was not detected.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、特
にフアクシミリ等における文字や線画と疑似中間調画像
の混在した2値画像の解像度変換や拡大縮小変換を行う
画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus and, more particularly, to an image processing apparatus for performing resolution conversion and enlargement / reduction conversion of a binary image in which characters and line drawings and pseudo-halftone images are mixed in facsimile and the like.

【0002】[0002]

【従来の技術】解像度の異なるフアクシミリ間での通信
や画像編集装置等でイメージデータの拡大・縮小を行う
場合には、画像の画素密度変換処理を必要とする。従
来、2値画像に対する画素密度変換法として、情報処理
学会誌Vol.25 No.5 に記載されているように、SPC
法,論理和法,9分割法,投影法,線形補間法,距離反
比例法等様々な方式が提案されている。これらの方式の
中で、投影法や線形補間法は変換による幾何学的形状の
保存性に優れ、縮小時の細線の消失が比較的少ない方式
であることが知られている。
2. Description of the Related Art In the case of performing communication between facsimiles having different resolutions and enlarging / reducing image data in an image editing apparatus or the like, a pixel density conversion process of an image is required. Conventionally, as a pixel density conversion method for a binary image, as described in IPSJ Journal Vol.25 No.5, SPC is used.
Various methods such as a method, a logical sum method, a 9-division method, a projection method, a linear interpolation method, and a distance inverse proportion method have been proposed. Among these methods, it is known that the projection method and the linear interpolation method are methods that are excellent in the preservation of the geometrical shape due to the conversion and that the thin line disappears relatively at the time of reduction.

【0003】[0003]

【発明が解決しようとしている課題】しかしながら、上
記方式に於ても、変換倍率が小さい場合、線形の抜けや
つぶれが生じ、文字等を対象とした場合、十分でないと
いう欠点があった。論理和法はこの様な点から考案され
たものであるが、如何なる変換倍率に於ても文字のつぶ
れや、太線化が生じる等の欠点が有った。又、上記従来
例では、いずれの方式も疑似中間調処理された画像に対
して処理を行った場合、階調特性が変化したり、モワレ
が発生する等のように大きな欠点があつた。
However, even in the above-mentioned method, there is a drawback in that when the conversion magnification is small, linear omission or crushing occurs, and it is not sufficient when targeting characters or the like. The logical sum method was devised from this point of view, but it had drawbacks such as crushed characters and thick lines at any conversion ratio. Further, in the above-mentioned conventional examples, when processing is performed on an image which has been subjected to pseudo halftone processing in any of the methods, there are major drawbacks such as change in gradation characteristics and moire.

【0004】更に投影法等をハードウエアで実現する場
合、縮小倍率が1/2以下の場合、参照画素数の増加に
伴い回路規模が大幅に増加するという欠点があつた。本
発明は、上述した従来例の欠点に鑑みてなされたもので
あり、その目的とするところは、ハードウエア実現時の
回路規模の増加を抑え、縮小時の細線消失の軽減と良好
な疑似中間調の変換を可能とする画像処理装置を提供す
る点にある。
Further, when the projection method or the like is realized by hardware, if the reduction ratio is 1/2 or less, there is a drawback that the circuit scale increases significantly with an increase in the number of reference pixels. The present invention has been made in view of the above-mentioned drawbacks of the conventional example, and an object of the present invention is to suppress an increase in the circuit scale at the time of hardware realization, reduce thin line disappearance at the time of reduction, and a good pseudo intermediate. The point is to provide an image processing apparatus capable of converting tones.

【0005】[0005]

【課題を解決するための手段】上述した課題を解決し、
目的を達成するため、本発明に係る画像処理装置は、原
画像に基づいて予め設定したパターンを検出する検出手
段と、前記原画像の画素値を縮小する第1の縮小手段
と、前記第1の縮小手段で縮小した画素値を縮小する第
2の縮小手段と、前記検出手段で得た検出結果を縮小す
る第3の縮小手段と、前記第2の縮小手段で縮小した画
素値を2値化する第1の2値化手段と、前記第3の縮小
手段で縮小した検出結果に基づいて前記第1の2値化手
段で2値化するときの画素値と同様の画素値を前記第1
の2値化手段とは異なる方法で2値化する第2の2値化
手段と、前記検出手段で前記パターンを検出したときに
前記第2の2値化手段で得た2値化結果を選択し、前記
検出手段で前記パターンを検出しないときに前記第1の
2値化手段で得た2値化結果を選択する選択手段とを備
えることを特徴とする。
[Means for Solving the Problems]
To achieve the object, an image processing apparatus according to the present invention includes a detection unit that detects a preset pattern based on an original image, a first reduction unit that reduces a pixel value of the original image, and the first reduction unit. Second reducing means for reducing the pixel value reduced by the reducing means, third reducing means for reducing the detection result obtained by the detecting means, and binary pixel values reduced by the second reducing means. First binarizing means for binarizing, and a pixel value similar to the pixel value when binarizing by the first binarizing means based on the detection result reduced by the third reducing means. 1
Second binarizing means for binarizing by a method different from that of the binarizing means, and a binarizing result obtained by the second binarizing means when the pattern is detected by the detecting means. Selection means for selecting and selecting the binarization result obtained by the first binarization means when the pattern is not detected by the detection means.

【0006】[0006]

【作用】かかる構成によれば、検出手段は原画像に基づ
いて予め設定したパターンを検出し、第1の縮小手段は
原画像の画素値を縮小し、第2の縮小手段は第1の縮小
手段で縮小した画素値を縮小し、第3の縮小手段は検出
手段で得た検出結果を縮小し、第1の2値化手段は第2
の縮小手段で縮小した画素値を2値化し、第2の2値化
手段は第3の縮小手段で縮小した検出結果に基づいて第
1の2値化手段で2値化するときの画素値と同様の画素
値を第1の2値化手段とは異なる方法で2値化し、選択
手段は、検出手段で前記パターンを検出したときに第2
の2値化手段で得た2値化結果を選択し、検出手段で前
記パターンを検出しないときに第1の2値化手段で得た
2値化結果を選択する。
According to this structure, the detection means detects a preset pattern based on the original image, the first reduction means reduces the pixel value of the original image, and the second reduction means the first reduction. The pixel value reduced by the means is reduced, the third reducing means reduces the detection result obtained by the detecting means, and the first binarizing means is the second.
The pixel value reduced by the reducing means of 2 is binarized, and the second binarizing means binarizes the pixel value by the first binarizing means based on the detection result reduced by the third reducing means. The same pixel value is binarized by a method different from that of the first binarizing means, and the selecting means generates the second pixel value when the detecting means detects the pattern.
The binarization result obtained by the binarization means is selected, and the binarization result obtained by the first binarization means is selected when the pattern is not detected by the detection means.

【0007】[0007]

【実施例】以下、添付図面を参照して本発明の好適な実
施例を詳細に説明する。 <第1の実施例>図1は本発明に係る画像処理装置の第
1の実施例の構成を示すブロツク図である。同図におい
て、11は変換画素値演算部、12はパターン検出処理
部、13は画素縮小処理部、14,15は検出結果縮小
処理部、16は単純2値化処理部、17は2値化閾値処
理部、18は濃度保存2値化処理部、19は選択部をそ
れぞれ示している。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings. <First Embodiment> FIG. 1 is a block diagram showing the arrangement of a first embodiment of the image processing apparatus according to the present invention. In the figure, 11 is a converted pixel value calculation unit, 12 is a pattern detection processing unit, 13 is a pixel reduction processing unit, 14 and 15 are detection result reduction processing units, 16 is a simple binarization processing unit, and 17 is a binarization. A threshold processing unit, 18 is a density storage binarization processing unit, and 19 is a selection unit.

【0008】次に、上記構成による動作を説明する。図
2は第1の実施例による信号及びデータのタイミングチ
ヤートである。入力画像は例えば図2に示す様に、ライ
ン同期信号に同期して1ライン分の画像データが、ペー
ジ同期信号に同期して1ページ分の画像データが、画像
同期クロツクに同期して入力されるものとする。図2の
場合、説明のために、1ラインが7画素で構成される画
像を示している。
Next, the operation of the above configuration will be described. FIG. 2 is a timing chart of signals and data according to the first embodiment. As shown in FIG. 2, for example, as the input image, one line of image data is input in synchronization with the line synchronization signal, and one page of image data is input in synchronization with the page synchronization signal in synchronization with the image synchronization clock. Shall be. In the case of FIG. 2, an image in which one line is composed of 7 pixels is shown for the sake of explanation.

【0009】変換画素値演算部11は、例えば投影法等
により、変換画素値の演算と各同期信号の制御とを行
い、1/2より大きい倍率の端数倍変換を行う。パター
ン検出処理部12は、予め設定したパターンと原画像パ
ターンとのパターンマツチングを行い、細線や文字のエ
ツジ等を検出する。変換画素値縮小処理部13は、変換
画素値演算部11で得られた変換画像を1/n倍(n:
整数)に変換する為の信号処理と同期信号の制御を行
う。最終的な変換倍率は変換画素値演算部11での変換
倍率と1/n倍処理部での積で決定される。検出結果縮
小処理部14は、パターン検出処理部12で得られたパ
ターン検出結果(細線パターン)を1/n倍に変換する
処理を行う。検出結果縮小処理部15は、パターン検出
処理部12で得られたパターン検出結果(エツジパター
ン)を1/n倍に変換する処理を行う。単純2値化処理
部16は、パターン検出処理結果及びその縮小変換処理
結果から2値化閾値を選択する選択部17で決定された
閾値を用いて変換画素値の2値化処理を行う。濃度保存
2値化処理部18は、画素値縮小処理結果を濃度保存2
値化処理する。選択部19は、パターン検出結果の縮小
処理結果により前記2つの2値化結果を選択する。
The conversion pixel value calculation unit 11 calculates a conversion pixel value and controls each synchronization signal by, for example, a projection method, etc., and performs a fractional conversion with a magnification greater than ½. The pattern detection processing unit 12 performs pattern matching between a preset pattern and an original image pattern to detect thin lines, edges of characters, and the like. The conversion pixel value reduction processing unit 13 multiplies the conversion image obtained by the conversion pixel value calculation unit 11 by 1 / n (n:
(Integer) signal processing for conversion and control of synchronization signal. The final conversion magnification is determined by the product of the conversion magnification in the conversion pixel value calculator 11 and the 1 / n times processor. The detection result reduction processing unit 14 performs processing for converting the pattern detection result (thin line pattern) obtained by the pattern detection processing unit 12 into 1 / n times. The detection result reduction processing unit 15 performs processing for converting the pattern detection result (edge pattern) obtained by the pattern detection processing unit 12 into 1 / n times. The simple binarization processing unit 16 performs binarization processing of the converted pixel value using the threshold value determined by the selection unit 17 that selects the binarization threshold value from the pattern detection processing result and the reduction conversion processing result. The density storage binarization processing unit 18 stores the pixel value reduction processing result in the density storage 2
Quantize. The selection unit 19 selects the two binarization results according to the reduction processing result of the pattern detection result.

【0010】次に、各部の詳細について順を追って説明
する。図3は第1の実施例による投影法の原理を説明す
る図であり、図4は第1の実施例において投影法で16
画素を参照する場合の例を示す図である。ここでは説明
のために主走査,副走査双方の倍率が2/3の場合を示
している。まず、変換画像を原画像上に投影し、1画素
を方形の領域として、注目画素である変換画素Aの画素
面と重なる画素面を有する原画素をP,Q,R,Sとす
る。ここで、投影された変換画素Aの画素面内に原画素
P,Q,R,Sの画素面が占める面積をSP ,SQ ,S
R ,SS とすると注目画素の平均濃度IA は次式(1)
で表される。すなわち、
Next, the details of each part will be described step by step. FIG. 3 is a diagram for explaining the principle of the projection method according to the first embodiment, and FIG. 4 is a diagram for explaining the principle of the projection method according to the first embodiment.
It is a figure which shows the example at the time of referring to a pixel. Here, for the sake of explanation, the case where the magnifications of both the main scanning and the sub scanning are 2/3 is shown. First, the converted image is projected on the original image, and one pixel is set as a rectangular area, and original pixels having a pixel surface overlapping the pixel surface of the converted pixel A which is the target pixel are defined as P, Q, R, and S. Here, the area occupied by the pixel planes of the original pixels P, Q, R, and S in the projected pixel plane of the converted pixel A is S P , S Q , S
Assuming R and S S , the average density I A of the pixel of interest is expressed by the following equation (1)
It is represented by. That is,

【0011】[0011]

【数1】 である。このIA を2値化することで変換画素の濃度が
決定される。
[Equation 1] Is. The density of the converted pixel is determined by binarizing this I A.

【0012】図3は参照画素が4画素となる場合の変換
例であるが、この参照画素数は変換倍率によつて変化す
る(変換倍率が小さいほど参照画素数が増加する)。例
えば、変換倍率1/3(主走査,副走査共)の場合には
図4に示すように最大16画素を参照する場合が生じ
る。従つて、ハードウエアにより実現する場合、変換画
素の平均濃度を求める際に必要な乗算回路も16個必要
となる等、回路規模が大幅に増加する。そこで、本実施
例の投影法では4画素のみの参照とし、ここで得られた
変換画素値を整数分の1倍に変換することで最終的な変
換倍率を得る。例えば、1/3倍の変換を行う場合、投
影法処理部で2/3倍の変換を、画素値縮小処理部で1
/2倍の変換を行う。
FIG. 3 shows an example of conversion when the number of reference pixels is 4, but the number of reference pixels changes according to the conversion magnification (the smaller the conversion magnification, the larger the number of reference pixels). For example, in the case of a conversion magnification of 1/3 (both main scanning and sub-scanning), a maximum of 16 pixels may be referred to as shown in FIG. Therefore, when it is realized by hardware, the circuit scale is significantly increased, for example, 16 multiplication circuits are required for obtaining the average density of the converted pixels. Therefore, in the projection method of the present embodiment, only four pixels are referred to, and the conversion pixel value obtained here is converted into a multiple of 1 to obtain the final conversion magnification. For example, in the case of performing 1/3 times conversion, the projection method processing unit performs 2/3 times conversion and the pixel value reduction processing unit performs 1/3 times conversion.
/ 2 times conversion is performed.

【0013】図5は第1の実施例による投影法による変
換画素値演算部11の構成を示すブロツク図であり、図
6は第1の実施例による同期信号制御部の構成を示すブ
ロツク図である。同図において、51は変換画素位置演
算部で、原画像上に投影した変換画素の相対位置(X,
Y)を演算する。52は参照画素取出部で、変換画素の
画素面内に現れる画素面を有する原画素を取り出す。具
体的には、図3に示す例の場合はIP ,IQ ,IR ,I
S を取り出す。53は面積演算部で、変換画素の画素面
に含まれる原画像の画素面面積を計算する。図3で示す
例の場合SP ,SQ ,SR ,SS の演算を行う。54は
平均濃度演算部で、参照画素値及び面積演算結果を用い
て変換画素の平均濃度を演算する。図3の例では(1)
式の演算を行う。55は同期信号制御部で、例えば図6
に示す様に、画素数カウンタ61、ラインカウンタ6
4、ROM(リード・オンリ・メモリ)62,65、論
理積ゲート63,66により構成することが可能であ
る。各カウンタ出力(下位アドレスへ)及び変換倍率
(上位アドレスへ)をROMのアドレスとして与え、予
めプログラムしておいた倍率に応じた周期的な間引きパ
ターンを出力する。更に、間引きパターンとの論理積に
より、縮小変換時に必要な間引き同期信号(変換同期信
号)を得る。
FIG. 5 is a block diagram showing the configuration of the conversion pixel value calculation unit 11 by the projection method according to the first embodiment, and FIG. 6 is a block diagram showing the configuration of the synchronization signal control unit according to the first embodiment. is there. In the figure, 51 is a conversion pixel position calculation unit, which is a relative position (X,
Y) is calculated. Reference numeral 52 denotes a reference pixel extraction unit that extracts an original pixel having a pixel surface that appears in the pixel surface of the converted pixel. Specifically, in the case of the example shown in FIG. 3, I P , I Q , I R , I
Take out S. An area calculator 53 calculates the pixel surface area of the original image included in the pixel surface of the converted pixel. In the case of the example shown in FIG. 3, S P , S Q , S R , and S S are calculated. An average density calculator 54 calculates the average density of the converted pixels using the reference pixel value and the area calculation result. In the example of FIG. 3, (1)
Calculates the expression. Reference numeral 55 is a synchronization signal control unit, for example, as shown in FIG.
As shown in, the pixel number counter 61 and the line counter 6
4, ROM (read only memories) 62 and 65, and AND gates 63 and 66. The output of each counter (to the lower address) and the conversion ratio (to the higher address) are given as the ROM address, and the periodic thinning pattern according to the previously programmed ratio is output. Furthermore, a thinning-out synchronizing signal (conversion synchronizing signal) required at the time of reduction conversion is obtained by a logical product with the thinning-out pattern.

【0014】図7は第1の実施例による変換倍率2/3
倍時の主走査に関するタイミングチヤートである。同図
に示するように、画像同期クロツクが2/3に間引かれ
ている。副走査方向に関しては、ライン同期信号に対し
て同様の処理を行えば良い。図8は第1の実施例による
画素値縮小処理部の構成を示すブロツク図であり、図9
は図8の画素値縮小処理部の参照画素を説明する図であ
る。図8において、81はラインバツフアで、投影法に
よつて演算された変換画素データ列を1ライン遅延させ
る。82a〜82dは1画素遅延素子で、ラインバツフ
ア81及び82により画像データ列から図9に示す参照
画素を取出す。83は平均値処理部で、縮小倍率に応じ
て以下の式(2)に従って演算を行う。すなわち、 IV=(A+B+C+D)/4 (主走査1/2倍,副走査1/2倍) IV=(A+B)/2 (主走査1/2倍,副走査1倍) IV=(B+D)/2 (主走査1倍,副走査1/2倍) IV=B (主走査1倍,副走査1倍) …(2) である。同期信号間引き処理部84では上記変換倍率に
応じて画像同期クロツク及びライン同期信号の間引き処
理が行われる。85はレジスタで、平均値処理された画
像データを間引き処理された出力同期信号でストローブ
する。投影法に対しこのような平均値処理を行う事は、
参照画素数を拡張したことと等価になる。以上の処理に
より最終的な変換倍率に画素密度変換された変換画素の
画素値が求められる。
FIG. 7 shows a conversion ratio 2/3 according to the first embodiment.
This is a timing chart for main scanning at double time. As shown in the figure, the image synchronization clock is thinned to 2/3. In the sub-scanning direction, similar processing may be performed on the line synchronization signal. FIG. 8 is a block diagram showing the configuration of the pixel value reduction processing unit according to the first embodiment.
FIG. 9 is a diagram illustrating reference pixels of the pixel value reduction processing unit of FIG. 8. In FIG. 8, reference numeral 81 is a line buffer that delays the converted pixel data string calculated by the projection method by one line. Reference numerals 82a to 82d denote 1-pixel delay elements, and the line buffers 81 and 82 extract the reference pixels shown in FIG. 9 from the image data string. An average value processing unit 83 performs calculation according to the following equation (2) according to the reduction ratio. In other words, IV = (A + B + C + D) / 4 (main scanning 1/2 times, sub scanning 1/2 times) IV = (A + B) / 2 (main scanning 1/2 times, sub scanning 1 time) IV = (B + D) / 2 (1x main scan, 1 / 2x subscan) IV = B (1x main scan, 1x subscan) (2). In the sync signal thinning-out processing unit 84, the image sync clock and the line sync signal are thinned out according to the conversion magnification. A register 85 strobes the averaged image data with the thinned output synchronizing signal. Performing such average value processing for the projection method is
This is equivalent to expanding the number of reference pixels. By the above processing, the pixel value of the converted pixel whose pixel density has been converted to the final conversion magnification is obtained.

【0015】次に、2値化処理について説明する。図1
0は第1の実施例によるパターン検出処理部の構成を示
すブロツク図であり、図11は第1の実施例による図1
0のパターン検出処理部での参照画素点を説明する図で
あり、図12は第1の実施例による細線及びエツジパタ
ーンの一例を示す図である。図10において、101a
〜101cは1ライン遅延素子で、ラインメモリ等で構
成され、画像データを1ライン分遅らせる。102a〜
102mは1画素遅延素子で、画像データを1クロツク
遅らせる。この様な構成によりシリアル画像データから
図11に示す16画素の参照が可能となる。103はR
OMで、前記参照画素値をROMのアドレスとして与え
ることで予め設定したパターンとのパターンマツチング
が可能となる。例えば一例として、参照画素が図12に
示す黒細線パターンの場合、ROMの出力を1、白細線
パターンの場合を2、エツジパターンの場合を3、その
他の場合を0として出力するように予めROMをプログ
ラムしておく。104はレジスタで、得られた判定結果
を同期信号でストローブする。
Next, the binarization process will be described. Figure 1
0 is a block diagram showing the configuration of the pattern detection processing unit according to the first embodiment, and FIG. 11 is a block diagram showing the configuration of the pattern detection processing unit according to the first embodiment.
It is a figure explaining the reference pixel point in the pattern detection process part of 0, and FIG. 12 is a figure which shows an example of the thin line and edge pattern by a 1st Example. In FIG. 10, 101a
Numerals 101 to 101c are one-line delay elements, which are composed of line memories and the like, and delay the image data by one line. 102a ~
102m is a 1-pixel delay element, which delays image data by 1 clock. With such a configuration, 16 pixels shown in FIG. 11 can be referred to from the serial image data. 103 is R
By providing the reference pixel value as the ROM address in the OM, pattern matching with a preset pattern becomes possible. For example, when the reference pixel is the black thin line pattern shown in FIG. 12, the ROM output is set to 1, the white thin line pattern is set to 2, the edge pattern is set to 3 and the other cases are set to 0 in advance. Program. A register 104 strobes the obtained determination result with a synchronization signal.

【0016】図13は第1の実施例による検出結果縮小
処理部の構成を示すブロツク図である。同図において、
131はラインバツフアであり、パターン検出部によつ
て判定されたパターン検出結果のデータ列を1ライン遅
延させる。132a〜132dは1画素遅延素子であ
り、131及び132によりデータ列から画素縮小処理
部と同様に図9に示す参照データを取出す。133は検
出結果変換演算部であり、検出結果縮小処理部14の場
合、縮小倍率に応じて例えば以下の式(3)に従う演算
を行う。すなわち、 PV1=A・B+C・D+A・C+B・D (主走査1/2倍,副走査1/2倍) PV1=A・B (主走査1/2倍,副走査1倍 ) PV1=B・D (主走査1倍 ,副走査1/2倍) PV1=B (主走査1倍 ,副走査1倍 ) …(3) である。A,B,C,Dの各値は1または0、+は論理
和演算、・は論理積演算を現す。
FIG. 13 is a block diagram showing the structure of the detection result reduction processing unit according to the first embodiment. In the figure,
A line buffer 131 delays the data string of the pattern detection result determined by the pattern detection unit by one line. Reference numerals 132a to 132d denote 1-pixel delay elements, and the reference data shown in FIG. 9 is extracted from the data string by 131 and 132 as in the pixel reduction processing unit. Reference numeral 133 is a detection result conversion calculation unit, and in the case of the detection result reduction processing unit 14, for example, calculation according to the following formula (3) is performed according to the reduction ratio. That is, PV1 = A / B + C / D + A / C + B / D (main scanning 1/2 times, sub scanning 1/2 times) PV1 = A / B (main scanning 1/2 times, sub scanning 1 time) PV1 = B D (1 × main scanning, 1/2 × subscanning) PV1 = B (1 × main scanning, 1 × subscanning) (3). Each value of A, B, C and D is 1 or 0, + is a logical sum operation, and · is a logical product operation.

【0017】上記演算を黒細線、白細線それぞれの判定
結果(各細線と判定された場合を1とする)に対して行
う。また、演算の結果、白黒双方の細線と判定された場
合を1とする)に対して行う。また、演算の結果、白黒
双方の細線と判定された場合には黒細線を優先する。検
出結果縮小処理部15の場合には、縮小倍率に応じて例
えば以下の式(4)に従う演算を行う。すなわち、 PV1=A+B+C+D (主走査1/2倍,副走査1/2倍) PV1=A+B (主走査1/2倍,副走査1倍 ) PV1=B+D (主走査1倍 ,副走査1/2倍) PV1=B (主走査1倍 ,副走査1倍 ) …(4) である。上記演算をエツジと判定された結果に対して行
う(エツジと判定された倍を1とする)。
The above calculation is performed for each of the determination results of the black thin line and the white thin line (1 is determined when each thin line is determined). Further, it is set to 1 when it is determined that the thin line is both black and white as a result of the calculation. If the result of the calculation is that both the black and white thin lines are determined, the black thin line is given priority. In the case of the detection result reduction processing unit 15, for example, calculation according to the following formula (4) is performed according to the reduction ratio. That is, PV1 = A + B + C + D (1/2 main scan, 1/2 sub scan) PV1 = A + B (1/2 main scan, 1 sub scan) PV1 = B + D (1 main scan, 1/2 sub scan) PV1 = B (1 × main scanning, 1 × sub-scanning) (4). The above calculation is performed on the result determined to be edge (the multiplication factor determined to be edge is 1).

【0018】演算された結果は画素値縮小処理部13の
出力タイミングと同じ同期信号でレジスタ134にスト
ローブする。上記演算による縮小により1/n倍処理時
の、パターン検出情報の欠落を防ぐ事が可能である。
The calculated result is strobed to the register 134 with the same synchronizing signal as the output timing of the pixel value reduction processing section 13. By the reduction by the above calculation, it is possible to prevent the loss of the pattern detection information during the 1 / n times processing.

【0019】ここでの縮小判定結果を使用した単純2値
化処理のしきい値選択及び2つの2値化手段の選択を行
う。具体的には、黒細線パターン時には通常より低いし
きい値による単純2値化処理を、白細線パターン時には
通常のしきい値より高いしきい値による単純2値化処理
により細線の保存を行い、エツジパターン時には通常の
しきい値で単純2値化処理を行い濃度保存処理により発
生するエツジでのノツチを防止する。又、それ以外の場
合には濃度保存2値化処理を行い疑似中間調処された画
像を処理する場合に生じるモワレを防ぐ。
The threshold value of the simple binarization process and the selection of the two binarization means are performed using the result of the reduction judgment. Specifically, when a black thin line pattern is used, a simple binarization process with a threshold value lower than usual is performed, and when a white thin line pattern is used, a thin line is saved by a simple binarization process with a threshold value higher than a normal threshold value. At the time of edge pattern, simple binarization processing is performed with a normal threshold value to prevent the edge notch caused by the density storage processing. In other cases, the density-preserving binarization process is performed to prevent moiré that occurs when processing a pseudo-halftone image.

【0020】図14は第1の実施例による2値化閾値選
択部及び単純2値化処理部の構成を示すブロツク図であ
る。同図において、2値化閾値選択部17は、黒細線,
白細線,その他の場合に対応してそれぞれ3つの閾値格
納用のレジスタ141〜143及び、前記パターン検出
結果に基づいて閾値を選択する選択部144を有してい
る。例えば、レジスタ1〜3に、それぞれしきい値T−
a,T+a,Tを設定し、パターン結果に基づいて、黒
細線の場合レジスタ1(T−a)、白細線の場合レジス
タ3(T+a)、それ以外の場合レジスタ1(T)を選
択部144で選択する。単純2値化処理部16におい
て、145は比較器で、選択部144で選択された閾値
と投影法によつて求められた変換画素平均濃度を比較し
結果を2値化データとする。
FIG. 14 is a block diagram showing the configurations of the binarization threshold value selection unit and the simple binarization processing unit according to the first embodiment. In the figure, the binarization threshold selection unit 17 is
It has three threshold value storage registers 141 to 143 corresponding to white thin lines and other cases, and a selection unit 144 for selecting a threshold value based on the pattern detection result. For example, the thresholds T-
a, T + a, T are set, and the selection unit 144 selects the register 1 (T-a) for the black thin line, the register 3 (T + a) for the white thin line, and the register 1 (T) for other cases based on the pattern result. Select with. In the simple binarization processing unit 16, 145 is a comparator, which compares the threshold value selected by the selection unit 144 and the converted pixel average density obtained by the projection method, and sets the result as binarized data.

【0021】図15は第1の実施例において投影法によ
る黒細線消失の例を示す図であり、図16は第1の実施
例による黒細線保存の例を示す図である。具体的には、
図15で示されるような変換(主走査,副走査共に1/
3倍)を行う場合、まず投影法により2/3倍の変換を
行い、次に得られた変換画素値に対して1/2倍の縮小
処理を行う。この場合通常の閾値で変換を行うと図15
に示すように細線が消失する(図中の濃度値は最大値を
1に正規化して表現している)。そこで本発明では図1
6に示すように、投影法処理と同期したパターン検出に
より細線の検出を行い、さらに検出結果に対して縮小変
換処理を行うことで検出結果を保存し、2値化処理部で
は例えば黒細線の場合、閾値を通常の閾値より低い値に
設定することで、前記例の場合黒線保存を行う。
FIG. 15 is a diagram showing an example of black thin line disappearance by the projection method in the first embodiment, and FIG. 16 is a diagram showing an example of black thin line storage according to the first embodiment. In particular,
The conversion as shown in FIG. 15 (both main scanning and sub-scanning is 1 /
(3 times), first, 2/3 times conversion is performed by the projection method, and then reduction processing of 1/2 times is performed on the obtained conversion pixel value. In this case, if conversion is performed with a normal threshold value, the result shown in FIG.
The thin line disappears as shown in (the density value in the figure is expressed by normalizing the maximum value to 1). Therefore, in the present invention, FIG.
As shown in FIG. 6, the thin line is detected by pattern detection synchronized with the projection method process, and the detection result is saved by performing the reduction conversion process on the detection result. In this case, the black line is saved in the above example by setting the threshold value to a value lower than the normal threshold value.

【0022】次に、濃度保存2値化処理部について説明
する。投影法あるいはその他補間法を疑似中間調処理さ
れた画像に適用した場合、その演算結果である変換画素
値を単純2値化すると、量子化誤差のためにモワレが強
調され画質劣化が激しい。本発明では、パターン検出処
理結果を使用して、細線や文字画像のエツジ部以外は濃
度保存処理を行いモワレの発生を抑える。
Next, the density storage binarization processing unit will be described. When a projection method or other interpolation method is applied to an image that has been subjected to pseudo halftone processing, if the converted pixel value that is the calculation result is simply binarized, moire is emphasized due to a quantization error, resulting in severe image quality deterioration. In the present invention, the pattern detection processing result is used to perform density preservation processing on portions other than the thin line and the edge portion of the character image to suppress the occurrence of moire.

【0023】実施例では一例として、誤差拡散法による
濃度保存2値化処理部について説明する。図17は第1
の実施例による2値化処理部の構成を示すブロツク図で
あり、図18は第1の実施例による誤差拡散位置を説明
する図である。図17において、171a〜171eは
1画素遅延素子、172a〜172dは加算器、173
はラインバツフア、174は2値化処理部、175は2
値化誤差算出部、176は誤差分配部をそれぞれ示して
いる。
In the embodiment, as an example, a density storage binarization processing unit using the error diffusion method will be described. FIG. 17 shows the first
19 is a block diagram showing a configuration of a binarization processing unit according to the embodiment of FIG. 18, and FIG. 18 is a diagram explaining an error diffusion position according to the first embodiment. In FIG. 17, 171a to 171e are 1-pixel delay elements, 172a to 172d are adders, and 173.
Is a line buffer, 174 is a binarization processing unit, and 175 is 2
The digitization error calculation unit and 176 are error distribution units, respectively.

【0024】上記構成による動作について、投影法によ
つて求められた変換画素値である平均濃度ADは1画素
遅延素子171a〜171e、及び、1ラインより3画
素少ないラインバツフア173及び加算器172a〜1
72dを通過する間にそれ以前の周囲画素の2値化時に
生じた量子化誤差e1 〜e4 が加算される。この周囲画
素の量子化画素を含む濃度を2値化処理部174により
一定閾値で2値化した値が求める画素データとなる。
With respect to the operation of the above configuration, the average density AD which is the converted pixel value obtained by the projection method is one pixel delay element 171a to 171e, and the line buffer 173 and adder 172a to 172a to 1 are three pixels less than one line.
Quantization error e 1 to e 4 generated during binarizing of previous neighboring pixels while passing through the 72d is added. The binarization processing unit 174 binarizes the densities including the quantized pixels of the surrounding pixels with a constant threshold value to obtain pixel data.

【0025】次に、この2値化で生じた量子化誤差を2
値化誤差算出部175で求め、誤差分配処理部176で
1 〜e4 として分配する。2値化誤差算出部175で
は、2値化誤差をe、2値化処理部への入力濃度を
ED、閾値をT、2値化出力を“1”又は“0”とする
と、下式(5)のように、
Next, the quantization error generated by this binarization is set to 2
Calculated by binarization error calculating unit 175, distributed as e 1 to e 4 by the error distribution processing unit 176. In the binarization error calculation unit 175, if the binarization error is e, the input density to the binarization processing unit is I ED , the threshold value is T, and the binarization output is “1” or “0”, then As in (5),

【0026】[0026]

【数2】 となる。又、誤差分配部では例えば次のようにe1 〜e
4 が演算される。すなわち、e1 =E/6,e2 =2×
E/6,e3 =E/6,e4 =2×E/6となり、e1
〜e4 は、図18に示すように、注目画素の周囲画素へ
分配されることになる。尚、図17に示す例では、誤差
を周囲4画素に拡散させた場合であるが、本発明はこれ
に限るわけではなく、画質と回路規模を考慮して決定す
れば良い。但し、モワレを良好に消失させるためには2
値化誤差を100%周囲へ拡散させる必要がある。即
ち、Σen =E(n:誤差を分配させる周囲画素の数)
を満たすようにen を決定する。以上の処理により、濃
度保存2値化処理が実現され、疑似中間調処理された画
像に対して良好な変換が可能となる。
[Equation 2] Becomes In the error distribution unit, for example, e1 to e
4 is calculated. That is, e 1 = E / 6, e 2 = 2 ×
E / 6, e 3 = E / 6, e 4 = 2 × E / 6, and e 1
As shown in FIG. 18, the symbols e to e 4 are distributed to the pixels around the pixel of interest. In the example shown in FIG. 17, the error is diffused to the surrounding four pixels, but the present invention is not limited to this and may be determined in consideration of the image quality and the circuit scale. However, in order to eliminate moiré properly, 2
It is necessary to diffuse the digitization error 100% to the surroundings. That is, Σe n = E (n: number of surrounding pixels for distributing error)
Determine e n so that By the above processing, the density-preserving binarization processing is realized, and good conversion can be performed on the image subjected to the pseudo halftone processing.

【0027】選択部19はパターン検出結果の縮小結果
により細線やエツジと判定された画素に対しては、単純
2値化処理を、それ以外の場合は誤差拡散法による2値
化結果を選択する。
The selecting unit 19 selects the simple binarization process for the pixels which are determined to be thin lines or edges based on the reduction result of the pattern detection result, and selects the binarization result by the error diffusion method in other cases. ..

【0028】以上説明したように、第1の実施例では、
投影法によつて得られた変換画素の平均濃度を原画像の
パターンによつて選択された閾値で2値化することで、
縮小時の細線の抜けを防ぐことが可能になる。更にパタ
ーン検出結果により細線やエツジ部以外は誤差拡散法に
よる2値化結果を選択することで疑似中間調の混在した
画像に対しても良好に変換処理することが可能になる。
As described above, in the first embodiment,
By binarizing the average density of the converted pixels obtained by the projection method with the threshold value selected by the pattern of the original image,
It is possible to prevent the thin lines from falling out during reduction. Further, by selecting the binarization result by the error diffusion method except for the thin line and the edge portion according to the pattern detection result, it is possible to perform excellent conversion processing even on an image in which pseudo halftones are mixed.

【0029】又、投影法を端数倍処理と整数分の1倍処
理に分離して処理することでハードウエアにより実現し
た場合の回路規模の増大を軽減し、パターン検出結果に
対しても整数分の1倍処理を行うことで、分離処理時の
検出結果情報の欠落を防ぐことが可能になる。
Further, by dividing the projection method into a fractional multiplication processing and an integral multiple processing, the increase in the circuit scale when realized by hardware is reduced, and the pattern detection result is also divided into an integral portion. It is possible to prevent the loss of the detection result information at the time of the separation processing by performing the 1 × processing.

【0030】<第2の実施例>本発明は、変換画素値演
算部の処理を投影法に限るわけではなく、その他様々な
補間法等を用いてもよく、その一例である第2の実施例
により線形補間法を用いた場合について述べる。
<Second Embodiment> The present invention is not limited to the projection method for the processing of the conversion pixel value computing section, and various other interpolation methods may be used, which is an example of the second embodiment. The case where the linear interpolation method is used will be described as an example.

【0031】図19は第2の実施例による線型補間法の
原理を説明する図である。線形補間法では、図19に示
す様に変換画素を原画像上に投影し、その投影面上の変
換画素の近傍である4つの原画素P,Q,R,Sの濃度
と、原画像格子内の変換画素Aの近傍原画素に対する相
対座標(x,y)から、次式(6)により、変換画素A
の濃度を決定する方法である。すなわち、 IA =(1−x)・(1−y)・IP +x・(1−y)・IQ +(1−x)・y・IR +x・y・IS …(6) 但し、In を画素nの濃度とし、このIA を2値化する
ことで変換画像を得る。
FIG. 19 is a diagram for explaining the principle of the linear interpolation method according to the second embodiment. In the linear interpolation method, the converted pixels are projected on the original image as shown in FIG. 19, and the densities of the four original pixels P, Q, R, and S that are in the vicinity of the converted pixels on the projection surface and the original image grid. From the relative coordinates (x, y) of the converted pixel A in the
Is a method of determining the concentration of. That, I A = (1-x ) · (1-y) · I P + x · (1-y) · I Q + (1-x) · y · I R + x · y · I S ... (6) However, the I n the density of a pixel n, the I a get converted image by binarization.

【0032】図20は第2の実施例による線型補間法に
よる黒細線消失の一例を示す図であり、図21は第2の
実施例による黒細線保存の一例を示す図である。上記補
間法を用いた場合でも例えば主走査,副走査共に1/3
倍の場合、図20に示すように、変換により細線が消失
する。ところが、本発明によれば、図21に示すよう
に、パターン検出処理により低い閾値が選択されるため
に細線の保存がなされる。
FIG. 20 is a diagram showing an example of black thin line disappearance by the linear interpolation method according to the second embodiment, and FIG. 21 is a diagram showing an example of black thin line storage according to the second embodiment. Even when the above interpolation method is used, for example, both main scanning and sub scanning are 1/3.
In the case of double, as shown in FIG. 20, the thin line disappears by the conversion. However, according to the present invention, as shown in FIG. 21, since a low threshold value is selected by the pattern detection process, the thin line is saved.

【0033】以上説明したように、第2の実施例によれ
ば、変換画素値を処理の過程で一旦多値データに変換す
る様な密度変換処理法であればどのようなものに対して
も適用できる。
As described above, according to the second embodiment, any density conversion processing method can be used as long as the conversion pixel value is once converted into multi-valued data in the process of processing. Applicable.

【0034】さて、パターン検出処理部は、第1,第2
の実施例で説明した方法に限るわけではなくどの様な方
法でもよい。例えば参照画素のウインドウサイズ等も実
施例に示す4×4だけでなくどの様なものでもよい。
又、細線パターンも実施例で示す場合に限るわけではな
く例えば斜線パターンや、2画素幅の細線パターンを加
える等、様々なパターンを適用してもよい。更に、テン
プレートマチングによる簡単なパターン検出だけでな
く、例えば参照ウインドウ内の周期性や空間周波数等の
特徴パラメータによるパターン検出等も考えられる。
By the way, the pattern detection processing section is provided with the first and second patterns.
The method is not limited to the method described in the embodiment, and any method may be used. For example, the window size of the reference pixel is not limited to 4 × 4 shown in the embodiment and may be any size.
Further, the thin line pattern is not limited to the case shown in the embodiment, and various patterns such as a slanted line pattern and a thin line pattern having a width of 2 pixels may be applied. Further, not only simple pattern detection by template matching, but also pattern detection by characteristic parameters such as periodicity and spatial frequency in the reference window can be considered.

【0035】さらに、画素値縮小処理部も第1,第2の
実施例に示した平均値処理に限るわけではなく、最も簡
単な例としては間引き処理等どの様な処理でもよい。
又、検出結果縮小処理も第1,第2の実施例に示す例に
限るわけではなく、画質を考慮して様々なものが考えら
れる。更に、実施例では上記2つの縮小は1/2倍の場
合について説明したが、参照ウインドウを広げることで
更に小さい倍率に変換することが可能である。又、濃度
保存2値化処理は第1,第2の実施例のような誤差拡散
法に限るわけではなく、濃度保存される2値化処理であ
ればどの様な処理でもよい。
Further, the pixel value reduction processing unit is not limited to the average value processing shown in the first and second embodiments, and the simplest example may be any processing such as thinning processing.
Further, the detection result reduction processing is not limited to the examples shown in the first and second embodiments, and various ones can be considered in consideration of the image quality. Further, in the embodiment, the case where the above two reductions are 1/2 times has been described, but it is possible to convert to a smaller magnification by expanding the reference window. Further, the density-preserving binarization process is not limited to the error diffusion method as in the first and second embodiments, and any process can be used as long as it is the density-preserving binarization process.

【0036】図22は平均誤差最小法による濃度保存2
値化部を示すブロツク図である。画素値演算処理部によ
つて得られた変換画素の平均濃度は、エラーバツフアメ
モリ220に保存されている以前に発生した入力データ
i,j と出力データYi,j との誤差データei,j に重み
付け係数を発生する重み付け発生器221により指示さ
れた重み係数ai,j をかけた値が規格化され、加算器2
22で加算される。これを式で書くと次式(7)のよう
になる。すなわち、
FIG. 22 shows the density storage 2 by the minimum mean error method.
It is a block diagram which shows a digitization part. The average density of the converted pixels obtained by the pixel value calculation processing unit is the error data e between the previously generated input data X i, j and output data Y i, j stored in the error buffer memory 220. The value obtained by multiplying i, j by the weighting coefficient a i, j designated by the weighting generator 221 for generating the weighting coefficient is standardized, and the adder 2
It is added at 22. When this is written as an expression, it becomes as shown in the following expression (7). That is,

【0037】[0037]

【数3】 である。上式(7)に当てはめるまた重み付け係数の一
例を図23に示す。
[Equation 3] Is. FIG. 23 shows an example of the weighting coefficient applied to the above equation (7).

【0038】補正データXi,j'は2値化回路223で閾
値と比較され、出力データYi,j を出力する。ここでY
i,j は“1”又は“0”に2値化されている。一方、演
算器224では補正データと出力データYi,j の差分e
i,j が演算され、この結果はエラーバツフアメモリの対
応する画素位置225に保存される。以上の操作を繰り
返す事により濃度保存2値化処理が実行され疑似中間調
画像に対して変換を行った場合のモワレ発生を抑える効
果を得る。
The correction data X i, j ' is compared with a threshold value in the binarization circuit 223, and output data Y i, j is output. Where Y
i, j are binarized to "1" or "0". On the other hand, in the calculator 224, the difference e between the correction data and the output data Y i, j
i, j is calculated and the result is stored in the corresponding pixel location 225 in the error buffer memory. By repeating the above operation, the density preservation binarization process is executed, and an effect of suppressing moire when the pseudo halftone image is converted is obtained.

【0039】<第3の実施例>次に、第3の実施例につ
いて説明する。図24は第3の実施例による画像処理装
置の構成を示すブロツク図である。同図において、24
1は変換画素値演算部、242はパターン検出処理部、
243は画素値縮小処理部、244は検出結果縮小処理
部、245は単純2値化処理部、246は濃度保存2値
化処理部、247は選択部をそれぞれ示している。上記
構成において、入力画像は、図2に示す様に、ライン同
期信号に同期して、1ライン分の画像データが、ページ
同期信号に同期して、1ページ分の画像データが、画像
同期クロツクに同期して入力される。
<Third Embodiment> Next, a third embodiment will be described. FIG. 24 is a block diagram showing the structure of the image processing apparatus according to the third embodiment. In the figure, 24
1 is a converted pixel value calculation unit, 242 is a pattern detection processing unit,
243 is a pixel value reduction processing unit, 244 is a detection result reduction processing unit, 245 is a simple binarization processing unit, 246 is a density storage binarization processing unit, and 247 is a selection unit. In the above structure, as shown in FIG. 2, the input image is synchronized with the line synchronizing signal, the image data for one line is synchronized with the page synchronizing signal, and the image data for one page is synchronized with the image synchronizing clock. It is input in synchronization with.

【0040】さらに詳述すると、変換画素値演算部24
1は、投影法等により変換画素値の演算と、各同期信号
の制御が行われる。ここでは、1/2より大きい倍率の
単数倍変換を行う。パターン検出処理部242は、予め
設定したパターンと原画像パターンとのパターンマッチ
ングを行い、細線や文字のエツジ等を検出する。画素値
縮小処理部243は、変換画素値演算部241で得られ
た変換画素を1/n倍(n:整数)に変換するための信
号処理と同期信号の制御を行う。最終的な変換倍率は、
変換画素値演算部241での変換倍率と1/n倍処理部
での倍率の積で決定される。検出結果縮小処理部244
はパターン検出処理部242で得られたパターン検出結
果を1/n倍に変換する処理を行う。単純2値化処理部
245は画素値縮小結果の2値化処理を行う。濃度保存
2値化処理部246は、画素値縮小処理結果を濃度保存
2値化処理する。選択部17は、パターン検出結果の縮
小処理結果により、濃度保存2値化処理部246と単純
2値化処理部245の各2値化結果から一つを選択す
る。
More specifically, the converted pixel value calculator 24
1, the calculation of the converted pixel value and the control of each synchronization signal are performed by the projection method or the like. Here, singular multiple conversion with a magnification larger than ½ is performed. The pattern detection processing unit 242 performs pattern matching between a preset pattern and the original image pattern to detect thin lines, edges of characters, and the like. The pixel value reduction processing unit 243 performs signal processing for converting the conversion pixel obtained by the conversion pixel value calculation unit 241 to 1 / n times (n: integer) and control of the synchronization signal. The final conversion ratio is
It is determined by the product of the conversion magnification in the conversion pixel value calculation unit 241 and the magnification in the 1 / n times processing unit. Detection result reduction processing unit 244
Performs processing for converting the pattern detection result obtained by the pattern detection processing unit 242 to 1 / n times. The simple binarization processing unit 245 binarizes the pixel value reduction result. The density storage binarization processing unit 246 performs density storage binarization processing on the pixel value reduction processing result. The selection unit 17 selects one from the binarization results of the density-saving binarization processing unit 246 and the simple binarization processing unit 245 according to the reduction processing result of the pattern detection result.

【0041】第1の実施例では、図1に示すように、単
純2値化処理部16の閾値を検出結果縮小処理部14及
び2値化閾値選択部17によって選択するように構成さ
れ、またそのように動作したが、第3の実施例において
は、単純2値化処理部245で扱う閾値を固定として、
他の構成及び動作については、第1の実施例と同様であ
る。
In the first embodiment, as shown in FIG. 1, the threshold value of the simple binarization processing unit 16 is selected by the detection result reduction processing unit 14 and the binarization threshold value selection unit 17, and Although it operates as described above, in the third embodiment, the threshold value handled by the simple binarization processing unit 245 is fixed,
Other configurations and operations are similar to those of the first embodiment.

【0042】以上説明した第3の実施例によれば、投影
法を端数倍処理と整数分の1倍処理に分離して処理する
ことでハードウエアにより実現した場合の回路規模の増
大を軽減し、パターン検出結果に対しても整数分の1倍
処理を行うことで、分離処理時の検出結果情報の欠落を
防ぐことが可能になり、文字画像と擬似中間調画像の混
在した画像を良好に処理する装置を容易に実現すること
が可能になる。
According to the third embodiment described above, the projection method is divided into the fractional multiplication processing and the integral division processing to reduce the increase in the circuit scale when implemented by hardware. By performing the integral multiple processing also on the pattern detection result, it is possible to prevent the loss of the detection result information at the time of the separation processing, and it is possible to improve the image in which the character image and the pseudo halftone image are mixed. It becomes possible to easily realize a processing device.

【0043】<第4の実施例>次に、第4の実施例につ
いて説明する。図25は第4の実施例による画像処理装
置の構成を示すブロツク図である。同図において、25
1は変換画素値演算部、252はパターン検出処理部、
253は画素値縮小処理部、254は検出結果縮小処理
部、255は単純2値化処理部、256は2値化閾値選
択部をそれぞれ示している。上記構成において、入力画
像は、図2に示す様に、ライン同期信号に同期して、1
ライン分の画像データが、ページ同期信号に同期して、
1ページ分の画像データが、画像同期クロツクに同期し
て入力される。
<Fourth Embodiment> Next, a fourth embodiment will be described. FIG. 25 is a block diagram showing the structure of the image processing apparatus according to the fourth embodiment. In the figure, 25
1 is a converted pixel value calculation unit, 252 is a pattern detection processing unit,
253 is a pixel value reduction processing unit, 254 is a detection result reduction processing unit, 255 is a simple binarization processing unit, and 256 is a binarization threshold value selection unit. In the above configuration, the input image is synchronized with the line sync signal as shown in FIG.
Image data for lines is synchronized with the page sync signal,
Image data for one page is input in synchronization with the image synchronization clock.

【0044】さらに詳述すると、変換画素値演算部25
1は、投影法等により変換画素値の演算と、各同期信号
の制御が行われる。ここでは、1/2より大きい倍率の
単数倍変換を行う。パターン検出処理部252は、予め
設定したパターンと原画像パターンとのパターンマッチ
ングを行う。画素値縮小処理部253は、変換画素値演
算部251で得られた変換画素を1/n倍(n:整数)
に変換するための信号処理と同期信号の制御を行う。最
終的な変換倍率は、変換画素値演算部251での変換倍
率と1/n倍処理部での倍率の積で決定される。検出結
果縮小処理部254はパターン検出処理部252で得ら
れたパターン検出結果を1/n倍に変換する処理を行
う。単純2値化処理部255は、パターン検出処理結果
及びその縮小変換処理結果から2値化閾値選択部256
で決定された閾値を用いて変換画素値の2値化処理を行
う。
More specifically, the converted pixel value calculation unit 25
1, the calculation of the converted pixel value and the control of each synchronization signal are performed by the projection method or the like. Here, singular multiple conversion with a magnification larger than ½ is performed. The pattern detection processing unit 252 performs pattern matching between a preset pattern and the original image pattern. The pixel value reduction processing unit 253 multiplies the conversion pixel obtained by the conversion pixel value calculation unit 251 by 1 / n (n: integer)
The signal processing for converting to and the control of the synchronizing signal are performed. The final conversion magnification is determined by the product of the conversion magnification in the conversion pixel value calculator 251 and the magnification in the 1 / n times processor. The detection result reduction processing unit 254 performs processing for converting the pattern detection result obtained by the pattern detection processing unit 252 into 1 / n times. The simple binarization processing unit 255 uses the binarization threshold selection unit 256 based on the pattern detection processing result and the reduction conversion processing result.
Binarization processing of the converted pixel value is performed using the threshold value determined in.

【0045】図26は第4の実施例による細線検出パタ
ーンを示す図である。パターン検出処理部252におい
て、参照画素は黒細線パターンのどれかあるいは白細線
パターンのどれかとして検出される。
FIG. 26 is a diagram showing a fine line detection pattern according to the fourth embodiment. In the pattern detection processing unit 252, the reference pixel is detected as either a black thin line pattern or a white thin line pattern.

【0046】以上説明したように、第4の実施例では、
第1の実施例のように、濃度保存2値化処理を具備せ
ず、単純2値化処理を行うときの閾値を可変として、縮
小時の細線の抜けやつぶれを軽減することができる。換
言すれば、投影法によって得られた変換画素の平均濃度
を平均値処理により整数分の1に縮小し、縮小された画
素値を原画像のパターンによって選択された閾値で2値
化することにより、縮小倍率が小さい場合のハード規模
増大を抑えた細線保存縮小変換を行うことができる。さ
らに、パターン検出結果に対しても縮小変換処理を行う
ことで縮小倍率が小さい場合の検出結果情報の欠落を防
ぐことが可能になる。
As described above, in the fourth embodiment,
Unlike the first embodiment, the density preserving binarization process is not provided, and the threshold value when performing the simple binarization process can be made variable to reduce omissions and collapses of thin lines at the time of reduction. In other words, the average density of the converted pixels obtained by the projection method is reduced to an integer fraction by the average value processing, and the reduced pixel value is binarized by the threshold value selected by the pattern of the original image. It is possible to perform thin line saving reduction conversion that suppresses an increase in hardware scale when the reduction ratio is small. Furthermore, by performing reduction conversion processing on the pattern detection result as well, it becomes possible to prevent the loss of detection result information when the reduction ratio is small.

【0047】<第5の実施例>次に、第5の実施例につ
いて説明する。図27は第5の実施例による画像処理装
置の構成を示すブロツク図である。同図において、27
1は変換画素値演算部、272はパターン検出処理部、
273は単純2値化処理部、274は2値化閾値選択
部、275は濃度保存2値化処理部をそれぞれ示してい
る。
<Fifth Embodiment> Next, a fifth embodiment will be described. FIG. 27 is a block diagram showing the structure of the image processing apparatus according to the fifth embodiment. In the figure, 27
1 is a converted pixel value calculation unit, 272 is a pattern detection processing unit,
273 is a simple binarization processing unit, 274 is a binarization threshold value selection unit, and 275 is a density storage binarization processing unit.

【0048】本実施例では、図1の画素値縮小処理部1
3及び検出結果縮小処理部14,15を除いた構成によ
って、画素密度変換が行われる。そこで、まず簡単に動
作を述べる。上記構成において、入力画像は、図2に示
す様に、ライン同期信号に同期して、1ライン分の画像
データが、ページ同期信号に同期して、1ページ分の画
像データが、画像同期クロツクに同期して入力される。
In this embodiment, the pixel value reduction processing unit 1 shown in FIG.
Pixel density conversion is performed by the configuration excluding 3 and the detection result reduction processing units 14 and 15. Therefore, the operation will be briefly described first. In the above structure, as shown in FIG. 2, the input image is synchronized with the line synchronizing signal, the image data for one line is synchronized with the page synchronizing signal, and the image data for one page is synchronized with the image synchronizing clock. It is input in synchronization with.

【0049】さらに詳述すると、変換画素値演算部27
1は、投影法等により変換画素値の演算と、各同期信号
の制御を行う。パターン検出処理部272は、予め設定
したパターンと原画像パターンとのパターンマッチング
を行う。単純2値化処理部273は、パターン検出処理
結果から2値化閾値選択部274で決定された閾値を用
いて変換画素値の2値化処理を行う。濃度保存2値化処
理部275は変換画素値演算部271で得られた変換画
素値を濃度保存2値化処理する。選択部276は、パタ
ーン検出結果により単純2値化処理部273と濃度保存
2値化処理部275の各2値化結果から一つを選択す
る。
More specifically, the converted pixel value calculation unit 27
Reference numeral 1 calculates a converted pixel value by a projection method or the like and controls each synchronization signal. The pattern detection processing unit 272 performs pattern matching between a preset pattern and the original image pattern. The simple binarization processing unit 273 performs binarization processing of the converted pixel value using the threshold value determined by the binarization threshold value selection unit 274 from the pattern detection processing result. The density storage binarization processing unit 275 performs density storage binarization processing on the converted pixel values obtained by the converted pixel value calculation unit 271. The selection unit 276 selects one from the binarization results of the simple binarization processing unit 273 and the density storage binarization processing unit 275 based on the pattern detection result.

【0050】次に、本実施例の細線の処理方法について
説明する。図28は投影法による黒細線消失の例を示す
図、図29は第5の実施例による黒細線保存の例を示す
図、図30は投影法による白細線消失の例を示す図、そ
して、図31は第5の実施例による白細線保存の例を示
す図である。
Next, the thin line processing method of this embodiment will be described. 28 is a diagram showing an example of black thin line disappearance by the projection method, FIG. 29 is a diagram showing an example of black thin line storage according to the fifth embodiment, FIG. 30 is a diagram showing an example of white thin line disappearance by the projection method, and FIG. 31 is a diagram showing an example of white thin line storage according to the fifth embodiment.

【0051】図28で示されるような変換を行う場合、
通常、閾値で変換を行うと、図に示すように細線が消失
する(図中の濃度値は最大値を1に正規化して表現して
いる)。そこで第5の実施例では、パターン検出により
細線の検出を行い、例えば、黒細線の場合、閾値を通常
の閾値より低い値に設定することで、本実施例の場合、
図29に示すような黒線保存を行う。また図30に示す
ような白細線の場合、通常の閾値では細線が消失する
が、本実施例ではパターン検出結果から低い閾値が選択
され、図31に示すように白線の保存がなされる。
When performing the conversion shown in FIG. 28,
Normally, when conversion is performed with a threshold value, thin lines disappear as shown in the figure (the density value in the figure is expressed by normalizing the maximum value to 1). Therefore, in the fifth embodiment, fine lines are detected by pattern detection. For example, in the case of a black fine line, the threshold value is set to a value lower than a normal threshold value.
A black line is stored as shown in FIG. Further, in the case of a white thin line as shown in FIG. 30, the thin line disappears with a normal threshold value, but in the present embodiment, a low threshold value is selected from the pattern detection results, and the white line is saved as shown in FIG.

【0052】以上説明したように、第5の実施例によれ
ば、投影法によって得られた変換画素の平均濃度を原画
像のパターンによって選択された閾値で2値化すること
で、縮小時の細線の抜けを防ぐことが可能になる。さら
にパターン検出結果により細線やエツジ部以外は誤差拡
散法による2値化結果を選択することで疑似中間調の混
在した画像に対しても良好に変換処理することが可能に
なる。
As described above, according to the fifth embodiment, the average density of the converted pixels obtained by the projection method is binarized by the threshold value selected by the pattern of the original image, so that the reduced density is reduced. It is possible to prevent the thin lines from coming off. Furthermore, by selecting the binarization result by the error diffusion method except for the thin line and the edge portion according to the pattern detection result, it is possible to perform excellent conversion processing even on an image in which pseudo halftones are mixed.

【0053】<第6の実施例>本発明は、変換画素値演
算部の処理を投影法に限るわけではなく、その他様々な
補間法等を用いてもよく、その一例である第6の実施例
により線形補間法を用いた場合について述べる。
<Sixth Embodiment> The present invention is not limited to the projection method for the processing of the conversion pixel value calculation section, and various other interpolation methods may be used, and the sixth embodiment is one example. The case where the linear interpolation method is used will be described as an example.

【0054】図32は黒細線消失の例を示す図であり、
図33は第6の実施例による黒細線保存の例を示す図で
ある。図32に示すような変換では、変換により細線が
消失する。これに対して、図33に示す方法によれば、
パターン検出処理により、低い閾値が選択されるため、
細線の保存がなされる。さらに細線やエツジと判定され
た以外の画素に対しては、濃度保存処理を行うことで、
擬似中間画像を処理した場合に生じるモワレを軽減する
ことができる。このように、変願画素を処理の過程で一
旦多値データに変換するような密度変換処理法であれ
ば、どのようなものに対しても適用できる。
FIG. 32 is a diagram showing an example of disappearance of a black thin line,
FIG. 33 is a diagram showing an example of black thin line storage according to the sixth embodiment. In the conversion shown in FIG. 32, the thin line disappears due to the conversion. On the other hand, according to the method shown in FIG.
Since the low threshold is selected by the pattern detection process,
The thin line is saved. Furthermore, for pixels other than those determined to be thin lines and edges, by performing density preservation processing,
Moire that occurs when a pseudo intermediate image is processed can be reduced. As described above, the density conversion processing method can be applied to any method as long as the density conversion processing method is such that the changed pixels are once converted into multi-valued data in the process.

【0055】<第7の実施例>次に、第7の実施例につ
いて説明する。図34は第7の実施例による画像処理装
置の構成を示すブロツク図である。同図において、34
1は変換画素値演算部、342はパターン検出処理部、
343は単純2値化処理部、344は2値化閾値選択部
をそれぞれ示している。上記構成において、入力画像
は、図2に示す様に、ライン同期信号に同期して、1ラ
イン分の画像データが、ページ同期信号に同期して、1
ページ分の画像データが、画像同期クロツクに同期して
入力される。
<Seventh Embodiment> Next, a seventh embodiment will be described. FIG. 34 is a block diagram showing the structure of the image processing apparatus according to the seventh embodiment. In the figure, 34
1 is a converted pixel value calculation unit, 342 is a pattern detection processing unit,
Reference numeral 343 represents a simple binarization processing unit, and 344 represents a binarization threshold value selection unit. In the above configuration, as shown in FIG. 2, the input image is synchronized with the line sync signal, and the image data for one line is synchronized with the page sync signal to
Image data for a page is input in synchronization with the image synchronization clock.

【0056】さらに詳述すると、変換画素値演算部34
1は、投影法等により変換画素値の演算と、各同期信号
の制御を行う。パターン検出処理部342は、予め設定
したパターンと原画像パターンとのパターンマッチング
を行う。単純2値化処理部343は、パターン検出処理
結果から2値化閾値選択部344で決定された閾値を用
いて変換画素値の2値化処理を行う。このように本実施
例においては、濃度保存2値化処理部、画素値縮小処理
部、及び、検出結果縮小処理部を具備しない画像処理装
置の例を挙げる。
More specifically, the converted pixel value calculation unit 34
Reference numeral 1 calculates a converted pixel value by a projection method or the like and controls each synchronization signal. The pattern detection processing unit 342 performs pattern matching between a preset pattern and the original image pattern. The simple binarization processing unit 343 performs binarization processing of the converted pixel value using the threshold value determined by the binarization threshold value selection unit 344 from the pattern detection processing result. As described above, in the present embodiment, an example of the image processing apparatus that does not include the density storage binarization processing unit, the pixel value reduction processing unit, and the detection result reduction processing unit will be given.

【0057】図35は第7の実施例による変換画素値演
算部341の構成を示すブロツク図である。同図におい
て、351は変換画素位置演算部、352は参照画素取
出部、353は面積演算部、354は平均濃度演算部、
355は同期信号制御部をそれぞれ示している。
FIG. 35 is a block diagram showing the structure of the converted pixel value calculation unit 341 according to the seventh embodiment. In the figure, 351 is a conversion pixel position calculation unit, 352 is a reference pixel extraction unit, 353 is an area calculation unit, 354 is an average density calculation unit,
Reference numerals 355 respectively indicate the synchronization signal control units.

【0058】上記構成において、変換画素位置演算部3
51は、原画像上に投影した変換画素の相対位置を演算
する。参照画素位置演算部352は、変換倍率に応じて
変換画素の画素内に現れる画素面を有する原画素を取り
出す。具体的には、図3に示す場合、IP ,IQ ,I
R ,IS を取り出す。面積演算部353は、変換画素の
画素面に含まれる原画像の画素面面積を計算する。図3
で示す例の場合、SP ,SQ ,SR ,SS の演算を行
う。平均濃度演算部354は、参照画素値及び面積演算
結果を用いて変換画素の平均濃度を演算する。図3の例
では、(1)式の演算を行う。一般的には、参照される
画素数は、変換倍率によって変化し、次式(8)で表さ
れる演算により変換画素の平均濃度を求める。すなわ
ち、
In the above configuration, the converted pixel position calculation unit 3
51 calculates the relative position of the converted pixel projected on the original image. The reference pixel position calculation unit 352 extracts an original pixel having a pixel surface that appears in the pixel of the conversion pixel according to the conversion magnification. Specifically, in the case shown in FIG. 3, I P , I Q , and I
Take out R and I S. The area calculation unit 353 calculates the pixel surface area of the original image included in the pixel surface of the converted pixel. Figure 3
In the case of the example shown in, the calculation of S P , S Q , S R , and S S is performed. The average density calculator 354 calculates the average density of the converted pixels using the reference pixel value and the area calculation result. In the example of FIG. 3, the calculation of the expression (1) is performed. Generally, the number of pixels referred to varies depending on the conversion magnification, and the average density of the converted pixels is obtained by the calculation represented by the following equation (8). That is,

【0059】[0059]

【数4】 である。ここで、In は注目画素nの平均濃度又は輝
度、IKは投影面上の注目画素nの画素面に重なる画素
面を有する原画素Kの濃度又は輝度、そして、SKは原
画素Kの画素面のうち変換画素nの画素面に重なる面積
である。
[Equation 4] Is. Here, I n is the average density or brightness of the target pixel n, I K is the density or brightness of the original pixel K having a pixel surface overlapping the pixel surface of the target pixel n on the projection surface, and S K is the original pixel K. Area of the pixel surface of the converted pixel n.

【0060】図36は第7の実施例による同期信号制御
部の構成を示すブロツク図である。同図において、36
1は画素数カウンタ、362,365はROM、36
3,366は論理積ゲート、364はラインカウンタを
それぞれ示している。
FIG. 36 is a block diagram showing the structure of the synchronizing signal controller according to the seventh embodiment. In the figure, 36
1 is a pixel number counter, 362 and 365 are ROMs, 36
Reference numeral 3366 indicates a logical product gate and reference numeral 364 indicates a line counter.

【0061】上記構成において、各カウンタ出力(下記
アドレスへ)及び変換倍率(上位アドレスへ)をROM
のアドレスとして与え、予めプログラムしておいた倍率
に応じた周期的な間引きパターンを出力する。さらに間
引きパターンとの論理積により、縮小変換時に必要な間
引き同期信号(出力同期信号)を得る。
In the above configuration, each counter output (to the address below) and conversion rate (to the higher address) are stored in the ROM.
, And outputs a periodic thinning pattern according to a preprogrammed magnification. Further, the logical product of the thinning pattern and the thinning pattern is used to obtain the thinning sync signal (output sync signal) necessary for the reduction conversion.

【0062】以上説明したように、第7の実施例によれ
ば、投影法によって得られた変換画素の平均濃度を原画
像のパターンによって選択された閾値で2値化すること
で、縮小時の細線の抜けを防ぐことが可能になる。
As described above, according to the seventh embodiment, the average density of the converted pixels obtained by the projection method is binarized by the threshold value selected according to the pattern of the original image, thereby reducing It is possible to prevent the thin lines from coming off.

【0063】さて、パターン検出処理部は、上述した第
1〜第7の実施例で説明した方法に限るわけではなくど
の様な方法でもよい。例えば参照画素のウインドウサイ
ズ等も実施例に示す4×4だけでなくどの様なものでも
よい。又、細線パターンも実施例で示す場合に限るわけ
ではなく例えば斜線パターンや、2画素幅の細線パター
ンを加える等、様々なパターンを適用してもよい。更
に、テンプレートマチングによる簡単なパターン検出だ
けでなく、例えば参照ウインドウ内の周期性や空間周波
数等の特徴パラメータによるパターン検出等も考えられ
る。
The pattern detection processing unit is not limited to the method described in the above-mentioned first to seventh embodiments, but may be any method. For example, the window size of the reference pixel is not limited to 4 × 4 shown in the embodiment and may be any size. Further, the thin line pattern is not limited to the case shown in the embodiment, and various patterns such as a slanted line pattern and a thin line pattern having a width of 2 pixels may be applied. Further, not only simple pattern detection by template matching, but also pattern detection by characteristic parameters such as periodicity and spatial frequency in the reference window can be considered.

【0064】さらに、画素値縮小処理部も、上述した第
1〜第7の実施例に示した平均値処理に限るわけではな
く、最も簡単な例としては間引き処理等どの様な処理で
もよい。又、検出結果縮小処理も上記各実施例に示す例
に限るわけではなく、画質を考慮して様々なものが考え
られる。更に、上記2つの縮小は1/2倍の場合につい
て説明したが、本発明においては、参照ウインドウを広
げることで更に小さい倍率に変換することが可能であ
る。
Further, the pixel value reduction processing unit is not limited to the average value processing shown in the above-described first to seventh embodiments, and the simplest example may be any processing such as thinning processing. Further, the detection result reduction processing is not limited to the examples shown in the above-mentioned respective embodiments, and various ones can be considered in consideration of image quality. Furthermore, although the above two reductions have been described in the case of 1/2 times, in the present invention, it is possible to convert to a smaller magnification by expanding the reference window.

【0065】又、濃度保存2値化処理は、第1〜第7の
実施例のような誤差拡散法に限るわけではなく、濃度保
存される2値化処理であればどの様な処理でもよい。図
22は平均誤差最小法による濃度保存2値化部を示すブ
ロツク図である。画素値演算処理部によつて得られた変
換画素の平均濃度は、エラーバツフアメモリ220に保
存されている以前に発生した入力データXi,j と出力デ
ータYi,j との誤差データei,j に重み付け係数を発生
する重み付け発生器221により指示された重み係数a
i,j をかけた値が規格化され、加算器222で加算され
る。これを式で書くと次式(9)のようになる。すなわ
ち、
Further, the density preservation binarization process is not limited to the error diffusion method as in the first to seventh embodiments, and any process can be used as long as it is a concentration preservation binarization process. .. FIG. 22 is a block diagram showing the density storage binarization unit by the minimum average error method. The average density of the converted pixels obtained by the pixel value calculation processing unit is the error data e between the previously generated input data X i, j and output data Y i, j stored in the error buffer memory 220. The weighting coefficient a designated by the weighting generator 221 for generating the weighting coefficient for i, j
A value obtained by multiplying i, j is standardized and added by the adder 222. When this is written as an expression, it becomes as shown in the following expression (9). That is,

【0066】[0066]

【数5】 である。上式(9)に当てはめるまた重み付け係数の一
例を図23に示す。
[Equation 5] Is. FIG. 23 shows an example of the weighting coefficient applied to the above equation (9).

【0067】補正データXi,j'は2値化回路223で閾
値と比較され、出力データYi,j を出力する。ここでY
i,j は“1”又は“0”に2値化されている。一方、演
算器224では補正データと出力データYi,j の差分e
i,j が演算され、この結果はエラーバツフアメモリの対
応する画素位置225に保存される。以上の操作を繰り
返すことにより濃度保存2値化処理が実行され疑似中間
調画像に対して変換を行った場合のモワレ発生を抑える
効果を得る。
The correction data X i, j ' is compared with a threshold value in the binarization circuit 223, and output data Y i, j is output. Where Y
i, j are binarized to "1" or "0". On the other hand, in the calculator 224, the difference e between the correction data and the output data Y i, j
i, j is calculated and the result is stored in the corresponding pixel location 225 in the error buffer memory. By repeating the above operation, the density preservation binarization processing is executed, and an effect of suppressing moire when the pseudo halftone image is converted is obtained.

【0068】尚、本発明は、複数の機器から構成される
システムに適用しても、1つの機器から成る装置に適用
しても良い。また、本発明はシステム或は装置にプログ
ラムを供給することによつて達成される場合にも適用で
きることは言うまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of one device. Further, it goes without saying that the present invention can be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0069】[0069]

【発明の効果】以上説明したように、本発明によれば、
投影法やその他補間法を用いた画素密度変換装置におい
て縮小時の細線の抜けやつぶれを軽減することが可能と
なり、更に疑似中間調画像の混在した原稿も良好に画素
密度変換処理することが可能になる。
As described above, according to the present invention,
In a pixel density conversion device that uses a projection method or other interpolation method, it is possible to reduce thin lines that are missing or collapsed at the time of reduction, and it is also possible to perform good pixel density conversion processing on documents that include pseudo-halftone images. become.

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

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

【図2】第1の実施例による信号及びデータのタイミン
グチヤートである。
FIG. 2 is a timing chart of signals and data according to the first embodiment.

【図3】第1の実施例による投影法の原理を説明する図
である。
FIG. 3 is a diagram illustrating the principle of the projection method according to the first embodiment.

【図4】第1の実施例において投影法で16画素を参照
する場合の例を示す図である。
FIG. 4 is a diagram showing an example in which 16 pixels are referred to by a projection method in the first embodiment.

【図5】第1の実施例による投影法による変換画素値演
算部11の構成を示すブロツク図である。
FIG. 5 is a block diagram showing a configuration of a conversion pixel value calculation unit 11 by a projection method according to the first embodiment.

【図6】第1の実施例による同期信号制御部の構成を示
すブロツク図である。
FIG. 6 is a block diagram showing a configuration of a synchronization signal controller according to the first embodiment.

【図7】第1の実施例による変換倍率2/3倍時の主走
査に関するタイミングチヤートである。
FIG. 7 is a timing chart regarding main scanning at a conversion magnification of 2/3 according to the first embodiment.

【図8】第1の実施例による画素値縮小処理部の構成を
示すブロツク図である。
FIG. 8 is a block diagram showing the configuration of a pixel value reduction processing unit according to the first embodiment.

【図9】図8の画素値縮小処理部の参照画素を説明する
図である。
9 is a diagram illustrating reference pixels of the pixel value reduction processing unit in FIG.

【図10】第1の実施例によるパターン検出処理部の構
成を示すブロツク図である。
FIG. 10 is a block diagram showing the configuration of a pattern detection processing unit according to the first embodiment.

【図11】第1の実施例による図10のパターン検出処
理部での参照画素点を説明する図である。
FIG. 11 is a diagram illustrating reference pixel points in the pattern detection processing unit of FIG. 10 according to the first embodiment.

【図12】第1の実施例による細線及びエツジパターン
の一例を示す図である。
FIG. 12 is a diagram showing an example of a thin line and an edge pattern according to the first embodiment.

【図13】第1の実施例による検出結果縮小処理部の構
成を示すブロツク図である。
FIG. 13 is a block diagram showing the configuration of a detection result reduction processing unit according to the first embodiment.

【図14】第1の実施例による2値化閾値選択部及び単
純2値化処理部の構成を示すブロツク図である。
FIG. 14 is a block diagram showing a configuration of a binarization threshold value selection unit and a simple binarization processing unit according to the first embodiment.

【図15】第1の実施例において投影法による黒細線消
失の例を示す図である。
FIG. 15 is a diagram showing an example of black thin line disappearance by a projection method in the first embodiment.

【図16】第1の実施例による黒細線保存の例を示す図
である。
FIG. 16 is a diagram showing an example of saving a black thin line according to the first embodiment.

【図17】第1の実施例による2値化処理部の構成を示
すブロツク図であり、図18は第1の実施例による誤差
拡散位置を説明する図である。
FIG. 17 is a block diagram showing a configuration of a binarization processing unit according to the first embodiment, and FIG. 18 is a diagram explaining an error diffusion position according to the first embodiment.

【図18】第1の実施例による誤差拡散位置を説明する
図である
FIG. 18 is a diagram illustrating an error diffusion position according to the first embodiment.

【図19】第2の実施例による線型補間法の原理を説明
する図である。
FIG. 19 is a diagram illustrating the principle of the linear interpolation method according to the second embodiment.

【図20】第2の実施例による線型補間法による黒細線
消失の一例を示す図である。
FIG. 20 is a diagram showing an example of disappearance of a black thin line by the linear interpolation method according to the second embodiment.

【図21】第2の実施例による黒細線保存の一例を示す
図である。
FIG. 21 is a diagram showing an example of saving a black thin line according to the second embodiment.

【図22】平均誤差最小法による濃度保存2値化部を示
すブロツク図である。
FIG. 22 is a block diagram showing a density storage binarization unit by the minimum average error method.

【図23】重み付け係数の一例を示す図である。FIG. 23 is a diagram showing an example of weighting coefficients.

【図24】第3の実施例による画像処理装置の構成を示
すブロツク図である。
FIG. 24 is a block diagram showing the configuration of an image processing apparatus according to a third embodiment.

【図25】第4の実施例による画像処理装置の構成を示
すブロツク図である。
FIG. 25 is a block diagram showing the configuration of an image processing apparatus according to a fourth embodiment.

【図26】第4の実施例による細線検出パターンを示す
図である。
FIG. 26 is a diagram showing a fine line detection pattern according to the fourth embodiment.

【図27】第5の実施例による画像処理装置の構成を示
すブロツク図である。
FIG. 27 is a block diagram showing the configuration of an image processing apparatus according to a fifth embodiment.

【図28】投影法による黒細線消失の例を示す図であ
る。
FIG. 28 is a diagram showing an example of black thin line disappearance by a projection method.

【図29】第5の実施例による黒細線保存の例を示す図
である。
FIG. 29 is a diagram showing an example of saving a black fine line according to the fifth embodiment.

【図30】投影法による白細線消失の例を示す図であ
る。
FIG. 30 is a diagram showing an example of white thin line disappearance by a projection method.

【図31】第5の実施例による白細線保存の例を示す図
である。
FIG. 31 is a diagram showing an example of white thin line storage according to the fifth embodiment.

【図32】黒細線消失の例を示す図である。FIG. 32 is a diagram showing an example of disappearance of a black thin line.

【図33】第6の実施例による黒細線保存の例を示す図
である。
FIG. 33 is a diagram showing an example of saving a black fine line according to the sixth embodiment.

【図34】第7の実施例による画像処理装置の構成を示
すブロツク図である。
FIG. 34 is a block diagram showing the configuration of an image processing apparatus according to a seventh embodiment.

【図35】第7の実施例による変換画素値演算部341
の構成を示すブロツク図である。
FIG. 35 is a conversion pixel value calculation unit 341 according to the seventh embodiment.
3 is a block diagram showing the configuration of FIG.

【図36】第7の実施例による同期信号制御部の構成を
示すブロツク図である。
FIG. 36 is a block diagram showing the configuration of a synchronization signal controller according to the seventh embodiment.

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

11,241,251,271,341 変換画素値演
算部 12,242,252,272,342 パターン検出
処理部 13,243,253 画素値縮小処理部 14,15,244,254 検出結果縮小処理部 16,245,255,273,343 単純2値化処
理部 17,256,274,344 2値化閾値選択部 18,246,275 濃度保存2値化処理部 19,144,247,276 選択部 51,351 変換画素位置演算部 52,352 参照画素取出部 53,353 面積演算部 54,354 平均濃度演算部 55,355 同期信号制御部 61,361 画素数カウンタ 62,65,103 ,362,365 ROM 63,66,365,366 論理積ゲート 64 ラインカウンタ 81,131,173 ラインバツフア 82a〜82d,102a〜102m,132a〜13
2d 1画素遅延素子 83 平均値処理部 84 同期信号間引き処理部 85,104,134,141〜143 レジスタ 101a〜101c 1ライン遅延素子 133 検出結果変換演算部 145 比較器 171a〜171d 1画素遅延素子 172a〜172d,222 加算器 174 2値化処理部 175 2値化誤差算出部 176 誤差分配部 220 エラーバツフアメモリ 221 重み付け回路 223 2値化回路 224 演算器 225 画素位置
11, 241, 251, 271, 341 Converted pixel value calculation unit 12, 242, 252, 272, 342 Pattern detection processing unit 13, 243, 253 Pixel value reduction processing unit 14, 15, 244, 254 Detection result reduction processing unit 16 , 245, 255, 273, 343 Simple binarization processing unit 17, 256, 274, 344 Binarization threshold value selection unit 18, 246, 275 Concentration preservation binarization processing unit 19, 144, 247, 276 selection unit 51, 351 Conversion pixel position calculation unit 52,352 Reference pixel extraction unit 53,353 Area calculation unit 54,354 Average density calculation unit 55,355 Synchronous signal control unit 61,361 Pixel counter 62,65,103,362,365 ROM 63 , 66, 365, 366 AND gate 64 line counter 81, 131, 173 line buffer 82a to 82d, 102a to 102m, 132a to 13
2d 1-pixel delay element 83 Average value processing section 84 Sync signal thinning-out processing section 85, 104, 134, 141-143 Registers 101a-101c 1-line delay element 133 Detection result conversion operation section 145 Comparator 171a-171d 1-pixel delay element 172a To 172d, 222 adder 174 binarization processing unit 175 binarization error calculation unit 176 error distribution unit 220 error buffer memory 221 weighting circuit 223 binarization circuit 224 calculator 225 pixel position

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】原画像に基づいて予め設定したパターンを
検出する検出手段と、前記原画像の画素値を縮小する第
1の縮小手段と、前記第1の縮小手段で縮小した画素値
を縮小する第2の縮小手段と、前記検出手段で得た検出
結果を縮小する第3の縮小手段と、前記第2の縮小手段
で縮小した画素値を2値化する第1の2値化手段と、前
記第3の縮小手段で縮小した検出結果に基づいて前記第
1の2値化手段で2値化するときの画素値と同様の画素
値を前記第1の2値化手段とは異なる方法で2値化する
第2の2値化手段と、前記検出手段で前記パターンを検
出したときに前記第2の2値化手段で得た2値化結果を
選択し、前記検出手段で前記パターンを検出しないとき
に前記第1の2値化手段で得た2値化結果を選択する選
択手段とを備えることを特徴とする画像処理装置。
1. A detecting means for detecting a preset pattern based on an original image, a first reducing means for reducing a pixel value of the original image, and a pixel value reduced by the first reducing means. Second reducing means for reducing, a third reducing means for reducing the detection result obtained by the detecting means, and a first binarizing means for binarizing the pixel value reduced by the second reducing means. A method different from that of the first binarizing unit for the same pixel value as the pixel value when binarizing by the first binarizing unit based on the detection result reduced by the third reducing unit. Second binarizing means for binarizing with, and the binarizing result obtained by the second binarizing means when the pattern is detected by the detecting means is selected, and the pattern is detected by the detecting means. Selection means for selecting the binarization result obtained by the first binarization means when not detecting The image processing apparatus according to claim and.
【請求項2】前記第2の2値化手段は、複数の閾値を予
め記憶する記憶手段と、前記第3の縮小手段で縮小した
検出結果に基づいて前記記憶手段で記憶した複数の閾値
からひとつの閾値を選択する閾値選択手段と、前記閾値
選択手段で選択した閾値に基づいて前記第1の2値化手
段で2値化するときの画素値と同様の画素値を単純2値
化する単純2値化手段とを含むことを特徴とする請求項
1記載の画像処理装置。
2. The second binarizing means comprises a storage means for storing a plurality of threshold values in advance, and a plurality of threshold values stored in the storage means based on a detection result reduced by the third reducing means. A threshold value selecting means for selecting one threshold value and a simple binarizing the pixel value similar to the pixel value when binarizing by the first binarizing means based on the threshold value selected by the threshold value selecting means. The image processing apparatus according to claim 1, further comprising a simple binarization unit.
【請求項3】原画像に基づいて予め設定したパターンを
検出する検出手段と、前記原画像の画素値を縮小する第
1の縮小手段と、前記第1の縮小手段で縮小した画素値
を縮小する第2の縮小手段と、前記検出手段で得た検出
結果を縮小する第3の縮小手段と、前記第2の縮小手段
で縮小した画素値を2値化する第1の2値化手段と、前
記第2の縮小手段で縮小した画素値を前記第1の2値化
手段とは異なる方法で2値化する第2の2値化手段と、
前記検出手段で前記パターンを検出したときに前記第2
の2値化手段で得た2値化結果を選択し、前記検出手段
で前記パターンを検出しないときに前記第1の2値化手
段で得た2値化結果を選択する選択手段とを備えること
を特徴とする画像処理装置。
3. A detecting means for detecting a preset pattern based on an original image, a first reducing means for reducing a pixel value of the original image, and a pixel value reduced by the first reducing means. Second reducing means for reducing, a third reducing means for reducing the detection result obtained by the detecting means, and a first binarizing means for binarizing the pixel value reduced by the second reducing means. A second binarizing means for binarizing the pixel value reduced by the second reducing means by a method different from the first binarizing means,
When the pattern is detected by the detecting means, the second
Selecting means for selecting the binarization result obtained by the binarization means and selecting the binarization result obtained by the first binarization means when the pattern is not detected by the detection means. An image processing device characterized by the above.
【請求項4】原画像に基づいて予め設定したパターンを
検出する検出手段と、前記原画像の画素値を縮小する第
1の縮小手段と、前記第1の縮小手段で縮小した画素値
を縮小する第2の縮小手段と、前記検出手段で得た検出
結果を縮小する第3の縮小手段と、前記第3の縮小手段
で縮小した検出結果に基づいて前記第2の縮小手段で縮
小した画素値を2値化する2値化手段とを特徴とする画
像処理装置。
4. A detecting means for detecting a preset pattern based on an original image, a first reducing means for reducing a pixel value of the original image, and a pixel value reduced by the first reducing means. Second reducing means, a third reducing means for reducing the detection result obtained by the detecting means, and a pixel reduced by the second reducing means based on the detection result reduced by the third reducing means. An image processing apparatus, comprising: a binarizing unit that binarizes a value.
【請求項5】前記2値化手段は、複数の閾値を予め記憶
する記憶手段と、前記第3の縮小手段で縮小した検出結
果に基づいて前記記憶手段で記憶した複数の閾値からひ
とつの閾値を選択する閾値選択手段と、前記閾値選択手
段で選択した閾値に基づいて前記画素値を単純2値化す
る単純2値化手段とを含むことを特徴とする請求項4記
載の画像処理装置。
5. The binarizing means stores a plurality of threshold values in advance, and one threshold value among the plurality of threshold values stored in the storage means based on the detection result reduced by the third reducing means. 5. The image processing apparatus according to claim 4, further comprising: a threshold value selecting unit for selecting the pixel value, and a simple binarizing unit for binarizing the pixel value based on the threshold value selected by the threshold value selecting unit.
【請求項6】原画像に基づいて予め設定したパターンを
検出する検出手段と、前記原画像の画素値を縮小する縮
小手段と、前記縮小手段で縮小した画素値を2値化する
第1の2値化手段と、前記検出手段で得た検出結果に基
づいて前記第1の2値化手段で2値化するときの画素値
と同様の画素値を前記第1の2値化手段とは異なる方法
で2値化する第2の2値化手段と、前記検出手段で前記
パターンを検出したときに前記第2の2値化手段で得た
2値化結果を選択し、前記検出手段で前記パターンを検
出しないときに前記第1の2値化手段で得た2値化結果
を選択する選択手段とを備えることを特徴とする画像処
理装置。
6. A detection means for detecting a preset pattern based on an original image, a reduction means for reducing the pixel value of the original image, and a first means for binarizing the pixel value reduced by the reduction means. The binarization means and the first binarization means have the same pixel value as the pixel value when binarized by the first binarization means based on the detection result obtained by the detection means. Second binarizing means for binarizing by a different method, and a binarizing result obtained by the second binarizing means when the pattern is detected by the detecting means is selected by the detecting means. An image processing apparatus comprising: a selection unit that selects a binarization result obtained by the first binarization unit when the pattern is not detected.
【請求項7】前記第2の2値化手段は、複数の閾値を予
め記憶する記憶手段と、前記検出手段で得た検出結果に
基づいて前記記憶手段で記憶した複数の閾値からひとつ
の閾値を選択する閾値選択手段と、前記閾値選択手段で
選択した閾値に基づいて前記第1の2値化手段で2値化
するときの画素値と同様の画素値を単純2値化する単純
2値化手段とを含むことを特徴とする請求項6記載の画
像処理装置。
7. The second binarizing means stores a plurality of threshold values in advance, and one threshold value from the plurality of threshold values stored in the storage means based on a detection result obtained by the detecting means. And a simple binary for binarizing a pixel value similar to the pixel value when binarizing by the first binarizing means based on the threshold selected by the threshold selecting means. The image processing device according to claim 6, further comprising:
【請求項8】原画像に基づいて予め設定したパターンを
検出する検出手段と、前記原画像の画素値を縮小する縮
小手段と、前記検出手段で得た検出結果に基づいて前記
縮小手段で縮小した画素値を2値化する2値化手段とを
特徴とする画像処理装置。
8. A detecting means for detecting a preset pattern based on the original image, a reducing means for reducing the pixel value of the original image, and a reducing means for reducing the pixel value based on the detection result obtained by the detecting means. An image processing apparatus, characterized by: a binarizing unit that binarizes the pixel value.
【請求項9】前記2値化手段は、複数の閾値を予め記憶
する記憶手段と、前記検出手段で得た検出結果に基づい
て前記記憶手段で記憶した複数の閾値からひとつの閾値
を選択する閾値選択手段と、前記閾値選択手段で選択し
た閾値に基づいて前記縮小手段で縮小した画素値を単純
2値化する単純2値化手段とを含むことを特徴とする請
求項8記載の画像処理装置。
9. The binarizing means selects one threshold value from a plurality of threshold values stored in the storage means based on a detection result obtained by the detection means and a storage means for storing a plurality of threshold values in advance. 9. The image processing according to claim 8, further comprising: threshold value selecting means; and simple binarizing means for binarizing the pixel value reduced by the reducing means based on the threshold value selected by the threshold value selecting means. apparatus.
JP3193930A 1991-08-02 1991-08-02 Image processing device Expired - Fee Related JP2851724B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3193930A JP2851724B2 (en) 1991-08-02 1991-08-02 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3193930A JP2851724B2 (en) 1991-08-02 1991-08-02 Image processing device

Publications (2)

Publication Number Publication Date
JPH0540825A true JPH0540825A (en) 1993-02-19
JP2851724B2 JP2851724B2 (en) 1999-01-27

Family

ID=16316112

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3193930A Expired - Fee Related JP2851724B2 (en) 1991-08-02 1991-08-02 Image processing device

Country Status (1)

Country Link
JP (1) JP2851724B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1011571A (en) * 1996-06-20 1998-01-16 Mitsubishi Electric Corp Binary picture multi-valuing and reducing processor
JP2010021974A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution conversion method
JP2010021952A (en) * 2008-07-14 2010-01-28 Canon Inc Apparatus and method for image processing and program
JP2010021964A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution converting method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1011571A (en) * 1996-06-20 1998-01-16 Mitsubishi Electric Corp Binary picture multi-valuing and reducing processor
JP2010021974A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution conversion method
JP2010021952A (en) * 2008-07-14 2010-01-28 Canon Inc Apparatus and method for image processing and program
JP2010021964A (en) * 2008-07-14 2010-01-28 Konica Minolta Business Technologies Inc Resolution converting method
JP4569679B2 (en) * 2008-07-14 2010-10-27 コニカミノルタビジネステクノロジーズ株式会社 Resolution conversion method
JP4569680B2 (en) * 2008-07-14 2010-10-27 コニカミノルタビジネステクノロジーズ株式会社 Resolution conversion method
US7907788B2 (en) 2008-07-14 2011-03-15 Konica Minolta Business Technologies, Inc. Resolution conversion method
US8294791B2 (en) 2008-07-14 2012-10-23 Canon Kabushiki Kaisha Image correction apparatus for digital dodging
US8295646B2 (en) 2008-07-14 2012-10-23 Konica Minolta Business Technologies, Inc. Resolution converting method

Also Published As

Publication number Publication date
JP2851724B2 (en) 1999-01-27

Similar Documents

Publication Publication Date Title
JP3585703B2 (en) Image processing device
JPH05268462A (en) Picture processor
JP3176195B2 (en) Image processing device
US7460276B2 (en) Systems and methods for rank-order error diffusion image processing
US6728425B1 (en) Image processing device
JP2851724B2 (en) Image processing device
JPH07307866A (en) Processing unit and method for binarizing image signal
JP2784278B2 (en) Image scaling processor
JP3142279B2 (en) Halftone dot area separation device
JPH10283470A (en) Image processor, image processing method and recording medium
JP3262425B2 (en) Image processing device
JP3386203B2 (en) Image information processing method and image information processing apparatus
JPH0793563A (en) Image processor
JP2845376B2 (en) Pixel density converter
JP2833670B2 (en) Pixel density conversion method
JP2962742B2 (en) Image processing device
JP2555199B2 (en) Image reading method
JPH07170393A (en) Image processor
JP3347395B2 (en) Image processing apparatus and method
JP4437621B2 (en) Region detection apparatus and method
JP3245586B2 (en) Pole pixel detection device
JP3253140B2 (en) Image processing device
JP2836992B2 (en) Image scaling processor
JPH09200499A (en) Image processor
JP2000149009A (en) Image processor

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19981006

LAPS Cancellation because of no payment of annual fees