JP2920635B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2920635B2
JP2920635B2 JP63144523A JP14452388A JP2920635B2 JP 2920635 B2 JP2920635 B2 JP 2920635B2 JP 63144523 A JP63144523 A JP 63144523A JP 14452388 A JP14452388 A JP 14452388A JP 2920635 B2 JP2920635 B2 JP 2920635B2
Authority
JP
Japan
Prior art keywords
data
image
pixel
image data
density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP63144523A
Other languages
Japanese (ja)
Other versions
JPH01312671A (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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63144523A priority Critical patent/JP2920635B2/en
Publication of JPH01312671A publication Critical patent/JPH01312671A/en
Application granted granted Critical
Publication of JP2920635B2 publication Critical patent/JP2920635B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、画像処理装置に関し、特に簡単な構成で高
い画質の再生画像を得るのに好適な画像処理装置に関す
る。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, and particularly to an image processing apparatus suitable for obtaining a high-quality reproduced image with a simple configuration.

〔従来の技術〕[Conventional technology]

従来、画像処理装置では、白と黒の2値データで表現
された濃度情報を含む画像に対し、拡大,縮小,回転あ
るいは濃度変換や白黒の画素パターンの変換などの画像
処理を行い、2値の再生画像を得ている。
2. Description of the Related Art Conventionally, an image processing apparatus performs image processing such as enlargement, reduction, rotation, density conversion, and conversion of a black-and-white pixel pattern on an image including density information represented by binary data of white and black to perform binary processing. Has been obtained.

まず、このような画像処理装置における線密度変換を
例に従来の方式について説明する。いま、原画像を2/3
に縮小する場合を考えると、再生画像の画素は原画像の
3/2画素間隔に割り振られることになる。この原画像と
再生画像の画素の位置関係を第2図に示す。ここで、原
画像の各画素はP(x,y)、再生画像の各画素はQ(x,
y)で示される。
First, a conventional method will be described by taking a linear density conversion in such an image processing apparatus as an example. Now, the original image is 2/3
Considering the case where the image is reduced to
It will be allocated at 3/2 pixel intervals. FIG. 2 shows the positional relationship between the pixels of the original image and the reproduced image. Here, each pixel of the original image is P (x, y), and each pixel of the reproduced image is Q (x, y).
y).

この方式では、Q(0,0)やQ(2,0)などは、それぞ
れ原画像の値P(0,0)およびP(3,0)の値とし、Q
(1,1)など原画像の画素の間に位置する画素の値は論
理和法、最近傍法などの補間処理を用いて決定するもの
であった。これに関連する文献として、例えば、正嶋
博:「二値画像の各種拡大/縮小方式の性能評価および
処理速度の改良法」、情報処理学会論文誌 Vol.26 No5
(1985年9月)第920頁から第925頁がある。ここで、論
理和法は、Q(x,y)を囲む4つの画素P(m,n)を観察
し、その中に黒い画素があれば、Q(x,y)も黒と定め
る方式であり、最近傍法は4画素のうち最も近い画素の
値をQ(x,y)の値とする方式である。
In this method, Q (0,0) and Q (2,0) are the values of the original image values P (0,0) and P (3,0), respectively.
The value of a pixel located between pixels of the original image such as (1,1) is determined using an interpolation process such as a logical sum method or a nearest neighbor method. Related literature, for example, Masashima
Hiroshi: "Performance evaluation and improvement of processing speed of various scaling methods for binary images", Transactions of Information Processing Society of Japan Vol.26 No5
(September 1985) Pages 920 to 925. Here, the logical sum method is a method in which four pixels P (m, n) surrounding Q (x, y) are observed, and if there is a black pixel among them, Q (x, y) is also determined to be black. The nearest neighbor method is a method in which the value of the closest pixel among the four pixels is used as the value of Q (x, y).

また、画像の回転処理も同様に、論理和法や最近傍法
などの補間処理を用いていた。
Similarly, interpolation processing such as a logical sum method or a nearest neighbor method has been used for image rotation processing.

一方、組織的ディザ画像を対象とした拡大・縮小処理
方式として、以下の公知例が存在する(金他:ディザ化
画像拡大縮小の一検討、昭和62年電子情報通信学会 情
報・システム部門全国大会講演論文集(1987.11)Vol.1
94)。この例は、擬似中間調画像を生成する際に用いた
ディザマトリックスを用いて、ディザ画像を逆変換して
多値画像を推定する方式である。そして、再生画像は推
定された多値画像を拡大/縮小し、再び組織的ディザ法
により2値化することにより得る。
On the other hand, the following known examples exist as enlargement / reduction processing methods for organized dither images (Kim et al .: A study of dithered image enlargement / reduction, 1987 IEICE Information and Systems Division National Convention) Proceedings (1987.11) Vol.1
94). In this example, a multi-valued image is estimated by inversely transforming the dither image using the dither matrix used when generating the pseudo halftone image. Then, the reproduced image is obtained by enlarging / reducing the estimated multi-valued image and binarizing it again by the systematic dither method.

次に、画像の濃度を変換する処理について述べる。従
来、多値画像については、入出力装置の非線形性を補正
するなどのために、入力された多値データに対して、特
定の非線形処理を実行する例が存在している。例えば、
特開昭61−123275号公報が挙げられる。しかし、一度2
値化した画像に対しては、有効な手段は存在していな
い。
Next, processing for converting the density of an image will be described. Conventionally, for a multi-valued image, there is an example in which a specific non-linear process is executed on input multi-valued data in order to correct nonlinearity of an input / output device. For example,
JP-A-61-123275 can be mentioned. But once 2
There is no effective means for the binarized image.

〔発明が解決しようとする課題〕[Problems to be solved by the invention]

従来、2値の画像データを扱う装置は、文字や線図形
など元々2値で表現される画像を対象としていた。した
がって、従来の拡大、縮小、回転などの画像処理も、文
字や図形などの通常の2値画像に対する処理を目的とし
ており、擬似中間調画像を処理する場合を考慮していな
い。そのため、前述した論理和法は、擬似中間調画像の
ように白と黒の画素が頻繁に切り替わる場合、画像の大
半を黒く塗りつぶしてしまう。また、最近傍法は縮小時
にはヌケが目立ち、拡大時には画像の滑らかさが劣化す
る。
2. Description of the Related Art Conventionally, devices that handle binary image data target images originally represented by binary, such as characters and line figures. Therefore, the conventional image processing such as enlargement, reduction, rotation, and the like also aims at processing a normal binary image such as a character or a figure, and does not consider the case of processing a pseudo halftone image. Therefore, in the above-mentioned OR method, when white and black pixels are frequently switched as in a pseudo halftone image, most of the image is painted black. Also, in the nearest neighbor method, a drop is noticeable at the time of reduction, and the smoothness of the image is deteriorated at the time of enlargement.

また、ディザ画像を逆変換して多値画像を推定する方
式は、ディザ画像を生成する際に用いたディザマトリッ
クスの情報が必要であるうえ、元の多値画像と推定値の
差も生じる。そして、対象となる擬似中間調画像は組織
的ディザ法により生成された画像のみに限られ、文字等
の線図形が混在する画像に対しては考慮されていない。
In addition, the method of estimating a multi-valued image by inversely transforming a dither image requires information of a dither matrix used when generating the dither image, and also causes a difference between the original multi-valued image and an estimated value. The target halftone image is limited to only an image generated by the systematic dither method, and is not considered for an image in which line figures such as characters are mixed.

一方、画像の濃度を変換する処理に関しては、従来の
方式は、多値画像を対象とするもので、2値化処理を実
行した後の画像に対しては、適用できなかった。
On the other hand, with respect to the process of converting the density of an image, the conventional method targets a multivalued image and cannot be applied to an image after the binarization process has been executed.

また、中間調画像は出力装置により適切な2値化方式
が異なる場合も生じる。たとえば、LBP(レーザビーム
プリンタ)などでは、1画素の孤立した印字ができない
装置も多い。この装置に、たとえばBayer型のディザマ
トリックスにより生成した擬似中間調画像のように1画
素単位の孤立した白や黒の画素が数多く存在する画像を
出力する場合、黒画素のヌケやツブレが多く生じる。こ
の問題に対しては、従来有効な対策が存在しなかった。
In addition, a halftone image may have a different appropriate binarization method depending on the output device. For example, many devices such as an LBP (laser beam printer) cannot perform isolated printing of one pixel. When outputting an image in which a large number of isolated white or black pixels exist in one-pixel units, such as a pseudo halftone image generated by a Bayer-type dither matrix, to this apparatus, many black pixels are missing or blurred. . To date, there has been no effective countermeasure.

本発明の目的は、このような従来の課題を解決し、線
図形を2値化した通常の2値画像はもとより、各種の擬
似中間調処理により生成した擬似中間調画像に対して
も、簡単な処理で、任意変換率の拡大,縮小,回転など
の変換処理を実行可能とし、さらに必要に応じて擬似中
間調画像に対する濃度変換処理や出力装置に応じて白黒
パターンを変更する処理も実行可能とし、高い画質の再
生画像を得られる画像処理装置を提供することにある。
An object of the present invention is to solve such a conventional problem and to simplify a simple halftone image generated by various pseudo halftone processes as well as a normal binary image obtained by binarizing a line figure. Can perform conversion processing such as enlargement, reduction, and rotation of an arbitrary conversion rate, and can also execute density conversion processing for pseudo halftone images and change black-and-white patterns according to the output device, if necessary. It is another object of the present invention to provide an image processing apparatus capable of obtaining a high-quality reproduced image.

〔課題を解決するための手段〕[Means for solving the problem]

上記目的を解決するため、本発明の画像処理装置は、
2値のディジタル画像データPを一時保存する画像記憶
手段と、該画像記憶手段中の画像データPをM画素(M
≧1)の走査窓を用いて走査する手段とを有する画像処
理装置において、走査窓中のM画素の2値の画像デー
タより各画素の濃度データSpを復元する手段と、該復元
された濃度データSpに対して画像処理を行い多値データ
Sqを得る手段と、該多値データSqを再2値化し2値の画
像データQを決定する手段とを有し、濃度データSpを復
元する手段は、各画素の走査窓中の位置に応じた重み係
数を複数種類有し、該濃度データSpの直線部分に対し
て、該重み係数のうち非対称のものを選択する手段を有
し、画像処理を行い多値データSqを得る手段は、変換画
像データを囲む位置にある数画素の復元画像データの値
に、各画素までの距離の逆数を重みとして掛け合せ、各
画素の和の値より変換画像データを決定する手段を有す
ること、走査窓中のM画素の2値の画像データより各
画素の濃度データSpを復元する手段であって、アドレス
ラインを複数有するROMを濃度データ復元部とし、切り
替え信号を複数の2値データないし多値データとするこ
とにより、3種以上の重み係数を切り替えるものと、該
復元された濃度データSpに対して画像処理を行い多値デ
ータSqを得る手段と、該多値データSqを再2値化し2値
の画像データQを決定する手段とを有し、濃度データSp
を復元する手段は、各画素の走査窓中の位置に応じた重
み係数を複数種類有し、各種の重み係数の内1つを選択
する手段を有し、画像処理を行い多値データSqを得る手
段は、変換画像データを囲む位置にある数画素の復元画
像データの値に、各画素までの距離の逆数を重みとして
掛け合せ、各画素の和の値より変換画像データを決定す
る手段を有すること、走査窓中のM画素の2値の画像
データより各画素の濃度データSpを復元する手段と、該
復元された濃度データSpに対して画像処理を行い多値デ
ータSqを得る手段と、該多値データSqを再2値化し2値
の画像データQを決定する手段とを有し、濃度データSp
を復元する手段は、各画素の走査窓中の位置に応じた重
み係数を複数種類有し、外部からの指示もしくは画像の
特徴による判定結果により各種の重み係数の内1つを選
択する手段を有し、各画素の濃度データSpを復元する復
元手段は、濃度データを復元する際に参照する範囲を任
意に決定し、重み係数の行列を複数用意し、処理する画
像に応じて切り替え信号により上記複数行列のうちの1
つに切り替えることを特徴としている。
In order to solve the above object, an image processing apparatus according to the present invention includes:
An image storage means for temporarily storing binary digital image data P, and M pixels (M
≧ 1) a means for scanning using a scanning window, means for restoring density data Sp of each pixel from binary image data of M pixels in the scanning window, and the restored density Performs image processing on data Sp and multi-valued data
Means for obtaining Sq, and means for re-binarizing the multi-valued data Sq to determine binary image data Q. The means for restoring density data Sp depends on the position of each pixel in the scanning window. Has a plurality of types of weighting coefficients, and has means for selecting an asymmetrical one of the weighting coefficients with respect to the linear portion of the density data Sp, and means for performing image processing to obtain multi-valued data Sq. Means for multiplying the value of the restored image data of several pixels at the position surrounding the image data by a reciprocal of the distance to each pixel as a weight and determining the converted image data from the sum of the pixels; Means for restoring density data Sp of each pixel from binary image data of M pixels, wherein a ROM having a plurality of address lines is used as a density data restoring unit, and a switching signal is converted to a plurality of binary data or multi-value data. By doing, three or more weights And means for performing image processing on the restored density data Sp to obtain multi-value data Sq, and means for re-binarizing the multi-value data Sq to determine binary image data Q. Has concentration data Sp
Means has a plurality of types of weighting factors according to the position of each pixel in the scanning window, has means for selecting one of the various types of weighting factors, performs image processing, and converts the multi-valued data Sq The obtaining means has means for multiplying the value of the restored image data of several pixels at the position surrounding the converted image data by a reciprocal of the distance to each pixel as a weight, and determining the converted image data from the sum value of each pixel. Means for restoring the density data Sp of each pixel from the binary image data of M pixels in the scanning window, means for performing image processing on the restored density data Sp to obtain multi-value data Sq, Means for re-binarizing the multi-valued data Sq to determine binary image data Q;
The means for restoring has a plurality of types of weighting factors according to the position of each pixel in the scanning window, and selects one of the various weighting factors based on an external instruction or a determination result based on image characteristics. Restoring means for restoring the density data Sp of each pixel, arbitrarily determines a range to be referred to when restoring the density data, prepares a plurality of matrixes of weight coefficients, and uses a switching signal according to an image to be processed. One of the above matrices
It is characterized by switching to one.

〔作用〕[Action]

文字など線図形の2値画像は、白と黒のパターンによ
り情報を表現するため、各点の位置そのものが情報であ
る。したがって、本発明においては、線図形の2値画像
は、そのままアフィン変換を実行する。
In a binary image of a line figure such as a character, information is expressed by white and black patterns, and the position of each point itself is information. Therefore, in the present invention, the binary image of the line figure is subjected to the affine transformation as it is.

しかし、これに対して擬似中間調により生成した2値
画像は、濃度を黒画素の密度に変換したものである。し
たがって、擬似中間調画像においては情報は個々の画素
の白黒のパターンではなく、一定の面積中の黒画素の密
度によって表現される。この擬似中間調画像の個々の画
素に対して通常の2値画像と同様にアフィン変換などの
処理を実行することは適切ではない。
However, in contrast, the binary image generated by the pseudo halftone is obtained by converting the density into the density of black pixels. Therefore, in a pseudo halftone image, information is represented not by a black and white pattern of individual pixels but by the density of black pixels in a certain area. It is not appropriate to perform processing such as affine transformation on individual pixels of the pseudo halftone image in the same manner as in a normal binary image.

それ故に、2値データで表わされる擬似中間調画像を
パターン情報ではなく、濃度情報として扱うことが必要
である。しかしながら、従来例で示した逆変換による多
値画像の推定法では、擬似中間調画像を生成する時に用
いたディザマトリックスの情報が必要である。また、も
との多値画像と推定された値との間の差も大きい。
Therefore, it is necessary to handle a pseudo halftone image represented by binary data as density information instead of pattern information. However, the method of estimating a multi-valued image by the inverse transformation shown in the conventional example requires information on the dither matrix used when generating the pseudo halftone image. Also, the difference between the original multi-valued image and the estimated value is large.

したがって、本発明においては、人間が擬似中間調画
像から濃淡を感じるメカニズムと同様に、擬似中間調画
像の各画素の濃度を復元する。
Therefore, in the present invention, the density of each pixel of the pseudo halftone image is restored in the same manner as the mechanism in which a human senses the shade from the pseudo halftone image.

人間は、ディザマトリックスのサイズなどは意識せず
に、擬似中間調画像から濃淡を感じる。その場合、擬似
中間調画像上のある点の濃度は、その周辺の複数画素の
値が結合されて視覚に感じられる。ゆえに、ある画素の
濃度を決定する場合、注目点と周辺の各画素との距離に
応じて濃度の貢献度を決定すればよい。具体的には、各
画素ごとに、周囲の画素の白黒分布を調べ、それぞれの
画素と注目点との距離に応じた重み付けをして、演算処
理することにより濃度を決定する。
Humans perceive shading from a pseudo halftone image without being conscious of the size of the dither matrix. In this case, the density of a certain point on the pseudo halftone image is visually perceived by combining the values of a plurality of pixels around the point. Therefore, when determining the density of a certain pixel, the contribution of the density may be determined according to the distance between the point of interest and each of the surrounding pixels. Specifically, for each pixel, the black and white distribution of surrounding pixels is checked, weighted according to the distance between each pixel and the point of interest, and arithmetic processing is performed to determine the density.

この結果、擬似中間調処理の方式に拘らず、人間の視
覚に近い多値画像を得ることができる。
As a result, it is possible to obtain a multi-valued image close to human vision regardless of the method of the pseudo halftone processing.

一旦、画像の濃淡情報が復元されたならば、その濃淡
情報をアフィン変換することが可能である。
Once the grayscale information of the image is restored, it is possible to affine-transform the grayscale information.

また、多値の濃淡画像が復元されたことにより、その
濃淡画像を各出力装置に適した方式で2値化することも
できる。したがって、擬似中間調画像の白黒パターンを
出力装置に応じて変換することも可能になる。
Further, since the multi-valued gray image is restored, the gray image can be binarized by a method suitable for each output device. Therefore, it is also possible to convert the monochrome pattern of the pseudo halftone image according to the output device.

〔実施例〕〔Example〕

以下、本発明の一実施例を、図面により詳細に説明す
る。
Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings.

まず、本発明の原理的説明を第3図〜第7図により説
明する。いま、例えば、Mp画素*Np画素の2値の原画像
に対して、画像処理を行いMq*Nq画素の再生画像を得る
場合、本発明は以下の3段階の処理を行う。
First, the principle of the present invention will be described with reference to FIGS. Now, for example, for two values of the original image of M p pixels * N p pixels, the case of obtaining a reproduced image of the M q * N q pixels perform image processing, the present invention performs the following processes 3 steps.

(1)Mp*Np画素分の2値データPの各点に対して、周
辺の黒画素の分布状況を参照して濃度データの復元を行
う。その結果、Mp*Np画素分の濃度情報を持つ、復元画
像データSpが得られる。
(1) for each point M p * N p 2 value data P of pixels, to restore the density data by referring to the distribution of black pixels around. As a result, with the density information of M p * N p pixels, the restored image data S p is obtained.

(2)復元されたMp*Np画素の復元画像データSpに対し
て拡大,縮小,回転,あるいは濃度の変換など必要な画
像処理を行い、Mq*Nq画素分の濃度情報を持つ変換画像
データSqを得る。
(2) larger relative to the restored M p * N p restored image data S p of the pixel, reduction, rotation, or performs conversion such necessary image processing of the density, the density information of M q * N q pixels To obtain converted image data Sq .

(3)Mq*Nq画素分の変換画像データSqを擬似中間調処
理により2値化して、Mq*Nq画素の2値の再生画像デー
タQを得る。なお、擬似中間調処理の方式は、出力装置
や画像に応じて切り替えることができる。
(3) by binarizing by an M q * N q converted image data S q of pixels halftoning, obtaining M q * N q reproduced image data Q binary pixels. The method of the pseudo halftone processing can be switched according to the output device and the image.

まず、本発明の第1段階である(1)の処理について
説明する。
First, the first step (1) of the present invention will be described.

(1)の処理は、近傍の2値データを参照して、2値
画像の各点ごとに濃度情報を復元するものである。例と
して、第3図(a)に示す2値画像より、各画素の濃度
情報の復元を行う場合について述べる。なお、第3図
(a)では個々の小さな矩形が各画素を示し、そのうち
斜線で示した部分が黒画素を表す。
The process (1) is for restoring density information for each point of a binary image with reference to neighboring binary data. As an example, a case where the density information of each pixel is restored from the binary image shown in FIG. In FIG. 3 (a), each small rectangle represents each pixel, of which the shaded portions represent black pixels.

ここで、第3図(a)中の座標(x1,y1)の濃度の復
元は、基本的には画素(x1,y1)を中心とするm*n画
素中の値にそれぞれ中心からの距離に応じた重み付けを
して加算することにより求めることができる。例えば、
m=3,n=3の場合、第3図(a)中の点線で囲まれた
9画素の値にそれぞれ重み付けをし、それを加算してSp
(x1,y1)を決定する。重み係数αの一例を第4図に示
す。この重み係数を用いた場合、各画素の濃度Spの取り
得る値は0から16までの17段階となり、以下の式で得ら
れる。
Here, the restoration of the density of the coordinates (x 1 , y 1 ) in FIG. 3 (a) is basically performed by rewriting the values in the m * n pixels centered on the pixel (x 1 , y 1 ). It can be obtained by weighting and adding according to the distance from the center. For example,
m = 3, n = 3, then each weighted value of 9 pixels surrounded by a dotted line in FIG. 3 (a) and, S p by adding it
(X 1 , y 1 ) is determined. An example of the weight coefficient α is shown in FIG. When using this weighting factor, the possible values of concentration S p of each pixel becomes 17 steps from 0 to 16, obtained by the following equation.

ただし、x3=x1−1 y3=y1−1 として決定される。 However, it is determined as x 3 = x 1 −1 y 3 = y 1 −1.

第3図(a)の2値データに対して、この方式で各画
素の濃度情報を復元した結果を第3図(b)に示す。な
お、この濃度の復元で用いる重み係数αは、上下,左右
を非対称とすることもできる。これは、特に処理対象に
線図形が含まれている場合に有効である。
FIG. 3 (b) shows the result of restoring the density information of each pixel in this manner with respect to the binary data of FIG. 3 (a). The weighting coefficient α used in the restoration of the density can be asymmetrical in the vertical and horizontal directions. This is particularly effective when the processing target includes a line graphic.

以上の述べた本発明の処理により、擬似中間調画像よ
り、その画像の2値化方式に拘らず濃度情報を有する画
像が復元できる。
By the processing of the present invention described above, an image having density information can be restored from a pseudo halftone image regardless of the binarization method of the image.

次に本発明の第2段階である(2)の処理について説
明する。
Next, the process (2) which is the second stage of the present invention will be described.

これは、得られた濃度情報を用いて各種の画像処理を
実行する段階である。ここでの処理は、従来多値の画像
データに対して実行されていた処理が、そのまま適用で
きる。
This is a stage in which various types of image processing are executed using the obtained density information. The processing here conventionally performed on multi-valued image data can be applied as it is.

一例として、2/3の縮小処理を実行する場合について
説明する。この場合、元になる濃度情報Spと、処理の結
果得られる多値の濃度情報Sqの各画素の位置関係は第5
図に示す通りである。なお、以後画像処理の元となる画
像を復元画像と呼び、そのデータSpを復元画像データと
呼ぶ。また、処理の結果得られる画像を変換画像と呼
び、そのデータSqを変換画像データと呼ぶ。ここで、両
画像の始点Sp(0,0)とSq(0,0)は同一位置とする。2/
3の縮小処理の場合、図示した通り変換画像データSq(x
2−1,y2−1)やSq(x2−1,y2+1)は、それぞれ復元
画像データのSp(x1−1,y1−1)およびSp(x1−1,y1
2)に対応する。しかし、Sq(x2,y2)など復元画像デ
ータの画素の間に位置する値は、周辺の復元画像データ
より決定する必要がある。変換画像データSq(x,y)の
決定法の一例として、距離反比例法について述べる。こ
の方式は変換画像データSq(x,y)を囲む位置にある数
画素の復元画像データの値に、各画素までの距離の逆数
を重みとして掛けあわせ、各画素の和の値より変換画像
データSq(x,y)を決定するものである。例えば、Sq(x
2,y2)は以下の式により決定される。
As an example, a case where a 2/3 reduction process is executed will be described. In this case, the density information S p underlying, the positional relationship of each pixel of the density information S q multivalued obtained as a result of processing the fifth
As shown in the figure. Hereinafter, the image that is the basis of the image processing will be referred to as a restored image, and its data Sp will be referred to as restored image data. Further, an image obtained as a result of the processing is called a converted image, and its data Sq is called converted image data. Here, the starting points S p (0,0) and S q (0,0) of both images are at the same position. 2 /
3, the converted image data S q (x
2 −1, y 2 −1) and S q (x 2 −1, y 2 +1) are respectively S p (x 1 −1, y 1 −1) and S p (x 1 −1) of the restored image data. , y 1 +
Corresponds to 2). However, a value such as S q (x 2 , y 2 ) located between pixels of the restored image data needs to be determined from peripheral restored image data. As an example of a method of determining the converted image data Sq (x, y), a distance inverse proportional method will be described. In this method, the value of the restored image data of several pixels at the position surrounding the converted image data S q (x, y) is multiplied by the reciprocal of the distance to each pixel as a weight, and the converted image is calculated from the sum of the pixels. The data S q (x, y) is determined. For example, S q (x
2 , y 2 ) is determined by the following equation.

Sq(x2,y2)=1/4((β1Sp(x1,y1) +β2Sp(x1+1,y1) +β3Sp(x1,y1+1) +β4Sp(x1+1,y1+1)) ここで、係数βは第5図中に図示した距離Δl1,Δl2,
Δl3,Δl4の逆数により決定される重み係数である。こ
の場合、l1=l2=l3=l4なので、β=β=β=β
=1とする。この処理により、第6図(a)の多値の
復元画像に対して2/3の縮小処理を実行した結果、得ら
れた多値の変換画像を第6図(b)に示す。
S q (x 2, y 2 ) = 1/4 ((β 1 S p (x 1, y 1) + β 2 S p (x 1 + 1, y 1) + β 3 S p (x 1, y 1 +1) + Β 4 S p (x 1 +1, y 1 +1)) where the coefficient β is the distance Δl 1 , Δl 2 ,
It is a weight coefficient determined by the reciprocal of Δl 3 and Δl 4 . In this case, since l 1 = l 2 = l 3 = l 4 , β 1 = β 2 = β 3 = β
4 = 1. By performing this process, the multivalued restored image shown in FIG. 6 (a) is subjected to a 2/3 reduction process, and the resulting multivalued converted image is shown in FIG. 6 (b).

一方、濃度変換処理は、各画素ごとに濃度を線形ある
いは非線形に変換することにより実現できる。つまり、
この処理(2)において、 Mp=MqかつNp=Nq Sq(x,y)=f{Sp(x,y)} となる処理を実行する。
On the other hand, the density conversion processing can be realized by linearly or non-linearly converting the density for each pixel. That is,
In this process (2), M p = M q and N p = N q S q ( x, y) = f {S p (x, y)} executes processing that is.

ここで、関数f(x)は、線形あるいは非線形関数
で、たとえば、 f(x)Smax*(x/SmaxΓ ただし、Smax≧Sp(x,y) などである。
Here, the function f (x) is a linear or non-linear function, for example, f (x) S max * (x / S max) Γ However, S max ≧ S p (x , y) and the like.

この結果、本発明により、これまで多値の画像にしか
適用できなかった濃度の変換、たとえばΓ補正等が、す
でに2値化された後の擬似中間調画像に対しても適用で
きることになった。
As a result, according to the present invention, density conversion, which has been applied only to multi-valued images, for example, Δ correction, can be applied to a pseudo halftone image that has already been binarized. .

最後に、本発明の第3段階にあたる(3)の処理につ
いて説明する。これは、変換画像データSqより2値の再
生画像データQを決定する処理である。ここでは、その
うち一例について原理を説明する。なお、本発明におい
ては、この部分の処理として、従来より用いられている
各種の2値化処理方式も適用することができる。そこ
で、装置中に複数の2値化処理法を有し、対象となる画
像や出力装置に応じて切り替えることもできる。
Finally, the process (3) corresponding to the third stage of the present invention will be described. This is a process of determining binary reproduced image data Q from the converted image data Sq . Here, the principle will be described for one example. In the present invention, various types of binarization processing methods conventionally used can be applied as the processing of this portion. Therefore, a plurality of binarization processing methods may be provided in the apparatus, and switching may be performed according to a target image or an output apparatus.

この方式は、変換画像データを2値化する際に生じる
丸め誤差の累計を常に最小になるように2値データを決
定する方式である。第7図(a)は濃度0から16の17階
調の変換画像データSq(x,y)の例である。この各画素
を固定閾値Tで2値化すると、Sq(x,y)=0またはSq
(x,y)=16以外の場合、丸め誤差εを生じる。丸め誤
差εは、変換画像Sqの取り得る最大値をSmaxとすると、
以下の式で得られる。
This method is a method in which binary data is determined such that the cumulative sum of rounding errors generated when binarizing converted image data is always minimized. FIG. 7A shows an example of converted image data S q (x, y) of 17 gradations of density 0 to 16. When binarizing the pixels in the fixed threshold T, S q (x, y ) = 0 or S q
When (x, y) is other than 16, a rounding error ε occurs. The rounding error epsilon, the maximum possible value of the converted image S q When S max,
It is obtained by the following equation.

ε=Sq(x,y) :Sq(x,y)<T ε=Sq(x,y)−Smax:Sq(x,y)≧T のいずれかである。そこで、この誤差εを抽出し、まだ
2値化処理を行っていない画素の変換画像データに加算
することにより、誤差の累計を最小にできる。たとえ
ば、第7図(a)の各画素を閾値T=8にて2値化する
と、座標(1,1)の画素は、Sq(1,1)=7で7≦8(=
T)より、2値データQ(1,1)=0となり、丸め誤差
ε=7が生じる。そこで、このεを次の画素(2,1)を
2値化する際に変換画像データSq(2,1)に加算する。
すると、本来Sq(2,1)=5であるが、誤差7を加算す
ることにより12となる。そこで、Q(2,1)=1と判定
される。つまり、濃度7の画素を白とすると、その丸め
誤差が次の画素の濃度として加算されることにより、次
の画素は黒と判定されやすくなる。したがって、この処
理を繰り返すことにより、2値化により生じる丸め誤差
を分散させる形で、濃度を黒画素の密度に変換できる。
第7図(a)の全体に対してこの処理を行った結果を第
7図(b)に示す。なお、2値化により生じた誤差を近
傍の複数画素の変換画像データに二次元的に分散させる
こともできる。具体的には、たとえば第7図(a)の画
素番号(1,1)で生じた誤差7を、近傍の(2,1)(3,
1)(1,2)(2,2)等に分配する方式である。この場
合、処理は若干複雑になるものの、一層高画質の再生画
像が得られる。
ε = S q (x, y ): S q (x, y) <T ε = S q (x, y) -S max: is either S q (x, y) ≧ T. Therefore, by extracting this error ε and adding it to the converted image data of the pixel that has not been subjected to the binarization processing, the total error can be minimized. For example, when each pixel in FIG. 7A is binarized at a threshold value T = 8, the pixel at coordinates (1, 1) is S q (1, 1) = 7 and 7 ≦ 8 (=
T), the binary data Q (1,1) = 0, and a rounding error ε = 7 occurs. Therefore, this ε is added to the converted image data S q (2, 1) when binarizing the next pixel (2, 1).
Then, Sq (2,1) = 5 originally, but becomes 12 by adding the error 7. Therefore, it is determined that Q (2,1) = 1. That is, if a pixel having a density of 7 is set to white, the rounding error is added as the density of the next pixel, so that the next pixel is easily determined to be black. Therefore, by repeating this process, the density can be converted to the density of black pixels by dispersing the rounding error caused by the binarization.
FIG. 7 (b) shows the result of performing this processing on the whole of FIG. 7 (a). Note that an error generated by the binarization can be two-dimensionally dispersed in converted image data of a plurality of neighboring pixels. Specifically, for example, the error 7 generated at the pixel number (1,1) in FIG. 7 (a) is replaced with the neighboring (2,1) (3,
1) It is a method to distribute to (1,2) (2,2) and so on. In this case, although the processing is slightly complicated, a higher-quality reproduced image can be obtained.

以上の処理によって、濃度を黒画素の密度に変換しつ
つ、2値化により生じる丸め誤差を常に最小にできる。
Through the above processing, the rounding error caused by binarization can always be minimized while converting the density into the density of black pixels.

一方、文字などの線図形は2値化処理の際に擬似中間
調処理を施すと解像度が低下する。その場合は、この処
理(3)として、固定閾値による2値化処理を実行すれ
ばよい。具体的には、閾値Tを T=Smax/2 として定め、 Q(x,y)=1:T≦Sq(x,y) Q(x,y)=0:T>Sq(x,y) として再生画像Q(x,y)を定める。
On the other hand, the resolution of a line graphic such as a character is reduced when pseudo halftone processing is performed during the binarization processing. In this case, a binarization process using a fixed threshold may be performed as the process (3). Specifically, the threshold value T is defined as T = Smax / 2, and Q (x, y) = 1: T ≦ Sq (x, y) Q (x, y) = 0: T> Sq (x , y) to determine the reproduced image Q (x, y).

一方、処理(3)において、出力装置に応じた2値化
処理を実行することにより、白黒のパターンを変換して
画質を改善することもできる。たとえば、1画素の印字
が実行できない出力装置の場合、孤立画素の生じにくい
中央集中型のディザマトリックスを用いた組織的ディザ
法により擬似中間調処理を実行することで、出力画像の
画質を改善できる。
On the other hand, in the process (3), by executing the binarization process according to the output device, the image quality can be improved by converting the black and white pattern. For example, in the case of an output device that cannot execute the printing of one pixel, the image quality of the output image can be improved by executing the pseudo halftone processing by the systematic dither method using the centralized dither matrix in which isolated pixels are less likely to occur. .

以上の処理(1),(2),(3)を実行することに
より、原画像p(x,y)に画像処理を施して、画質の高
い再生画像Q(x,y)を得ることができる。
By executing the above processes (1), (2) and (3), it is possible to perform image processing on the original image p (x, y) to obtain a high-quality reproduced image Q (x, y). it can.

以上、述べてきた通り、本発明により、擬似中間調画
像を含め、いかなる2値画像に対しても高い画質の再生
画像が得られる画像処理が可能となる。また、これまで
擬似中間調画像に対しては実行できなかった濃度の変換
や、白黒のパターンの変換等も実現できる。
As described above, according to the present invention, it is possible to perform image processing for obtaining a high-quality reproduced image with respect to any binary image including a pseudo halftone image. Further, conversion of density, conversion of a black and white pattern, and the like, which could not be performed on a pseudo halftone image, can be realized.

第1図は、本発明の一実施例を示す画像処理装置の基
本構成図である。
FIG. 1 is a basic configuration diagram of an image processing apparatus showing one embodiment of the present invention.

第1図において、101は2値の原画像データを入力す
る信号線、100は原画像データを走査線数本分保存する
原画像データ一時記憶部である。200は原画像データ一
時記憶部100中の原画像データより、各画像の濃度情報
を表した復元画像データを得る濃度データ復元部、300
は復元画像データに拡大,縮小,あるいは濃度変換など
の必要な画像処理を実行し、変換画像データを得る画像
処理部、400は画像処理部300より出力された変換画像デ
ータを2値化する2値化処理部である。2値化されたデ
ータは、信号線491より再生画像データとして出力され
る。つまり、原画像データ一時記憶部100と濃度データ
復元部200により、2値の原画像データより多値の濃度
データを復元する処理(前述の原理で述べた処理
(1))が実行され、画像処理部300により必要な画像
処理(前述の原理で述べた処理(2))が実行され、2
値化処理部400により、変換画像データの2値化処理
(前述の原理で述べた処理(3))が実行される。ま
た、全体の動作は、制御部500により制御される。
In FIG. 1, 101 is a signal line for inputting binary original image data, and 100 is an original image data temporary storage unit for storing the original image data for several scanning lines. Reference numeral 200 denotes a density data restoring unit that obtains restored image data representing density information of each image from the original image data in the original image data temporary storage unit 100;
Denotes an image processing unit that performs necessary image processing such as enlargement, reduction, or density conversion on the restored image data and obtains converted image data. 400 denotes a unit that binarizes the converted image data output from the image processing unit 300 It is a value processing unit. The binarized data is output from a signal line 491 as reproduced image data. That is, the original image data temporary storage unit 100 and the density data restoring unit 200 execute the process of restoring multi-valued density data from the binary original image data (the process (1) described in the above-described principle). The necessary image processing (the processing (2) described in the above principle) is executed by the processing unit 300, and
The binarization processing unit 400 executes binarization processing of the converted image data (the processing (3) described in the above-described principle). Further, the entire operation is controlled by the control unit 500.

次に、装置各部について詳しく説明する。まず、2値
の原画像データP(x,y)より、濃度を示す復元画像デ
ータSp(x,y)を復元する部分の動作を説明する。第8
図は本方式により多値データSp(x,y)を求める、処理
部分のブロック図である。この部分は、第1図のうち原
画像データ一時記憶部100と濃度データ復元部200にあた
る。濃度データを復元する際に参照する画素数は、任意
であるが、ここでは3画素*3画素の範囲の2値データ
を参照する場合を例に説明する。復元画像データS
p(x1,y1)を求める場合に、参照する2値データは第3
図(a)に示した通り、原画像の座標(x1,y1)を中心
とした9画素のデータである。いま、信号線101より原
画像データP(x1+1,y1+1)が入力された場合、ラッ
チ列121の2つのラッチには、それぞれP(x1,y1
1),P(x1−1,y1+1)が記録されており、3本の出力
線131からは、その2画素分の2値データと、その時入
力された原画像データP(x1+1,y1+1)が出力され
る。ラインバッファ110および115からは、それぞれ1ラ
インずつ前のデータが出力され、3本の信号線132,およ
び133よりそれぞれ3画素分の2値データが濃度データ
復元部200に出力される。ここで、信号線束130は計9本
の信号線であり、座標(x1,y1)を中心とする9画素、
つまり座標(x1−1,y1-1)から(x1+1,y1+1)の範囲
のデータがそれぞれ出力されている。この9画素のデー
タは第4図に示す通り、復元画像データSp(x1,y1)を
決定するためのデータとなる。そこで、信号線130から
出力されたデータを濃度データ復元部200に入力する。
濃度データ復元部200は信号線130より入力された9画素
分の2値データと、3*3画素分の重み係数αによって
復元画像データSp(x1,y1)の値を決定し出力する部分
である。ここで、信号線130より入力された9画素分の
2値データは、乗算器210によりそれぞれの画素に対し
て重み係数αが掛けられた後、加算器220で加算され、
復元画像データSp(x1,y1)として出力される。また、
この処理は、信号線130をアドレスラインとすれば、1
個のROM(Read Only Memory)で実現することもでき
る。この場合、ROMの容量は、4bit*29となる。なお、
復元画像データを得るため、参照する範囲は、前述の通
り任意であり、たとえば回転角θの回転処理では、第9
図に示すようにθに応じた平行四辺形とすることもでき
る。
Next, each part of the apparatus will be described in detail. First, the operation of the portion for restoring the restored image data Sp (x, y) indicating the density from the binary original image data P (x, y) will be described. 8th
The figure is a block diagram of a processing part for obtaining multi-value data Sp (x, y) by this method. This portion corresponds to the original image data temporary storage unit 100 and the density data restoration unit 200 in FIG. The number of pixels to be referred to when restoring the density data is arbitrary, but here, an example will be described in which binary data in a range of 3 pixels * 3 pixels is referred to. Restored image data S
When calculating p (x 1 , y 1 ), the binary data to be referred to is the third
As shown in FIG. 7A, the data is 9-pixel data centered on the coordinates (x 1 , y 1 ) of the original image. Now, when the original image data P (x 1 +1 and y 1 +1) is input from the signal line 101, P (x 1 , y 1 +
1), P (x 1 −1, y 1 +1) are recorded. From the three output lines 131, the binary data for the two pixels and the original image data P (x 1 +1 and y 1 +1) are output. The line buffers 110 and 115 output the previous data one line at a time, and the three signal lines 132 and 133 output binary data for three pixels to the density data restoration unit 200. Here, the signal line bundle 130 is a total of 9 signal lines, 9 pixels centered on the coordinates (x 1 , y 1 ),
That coordinates (x 1 -1, y 1-1) data in the range from (x 1 + 1, y 1 +1) is output, respectively. As the data of the nine pixels is shown in FIG. 4, the data for determining the restored image data S p (x 1, y 1 ). Therefore, the data output from the signal line 130 is input to the density data restoration unit 200.
Density data recovery unit 200 and the binary data of nine pixels which are input from the signal line 130, 3 * 3 restored by the weighting factor of the pixel α image data S p (x 1, y 1 ) values of the determined output This is the part to do. Here, the binary data of 9 pixels input from the signal line 130 is multiplied by a weight coefficient α for each pixel by the multiplier 210, and then added by the adder 220.
It is output as restored image data S p (x 1, y 1 ). Also,
If the signal line 130 is an address line,
It can also be realized with a single ROM (Read Only Memory). The capacity of this case, ROM is a 4bit * 2 9. In addition,
The range to be referred to in order to obtain the restored image data is arbitrary as described above.
As shown in the figure, a parallelogram corresponding to θ can be used.

また、重み係数の行列を複数用意して、処理する画像
に応じて切り替えることにより、出力する画像の画質を
より向上することもできる。たとえば、画像として、文
字などの線図形を処理する場合、たとえば、第10図に示
すように、中央の画素の重みを大きくする。その結果、
出力画像の解像度の劣化を防ぐことができる。そして、
擬似中間調画像を処理する場合は、前述の通り第4図に
示す重み係数を用いる。
In addition, by preparing a plurality of weight coefficient matrices and switching according to the image to be processed, the image quality of the output image can be further improved. For example, when processing a line figure such as a character as an image, for example, as shown in FIG. 10, the weight of the central pixel is increased. as a result,
Deterioration of the resolution of the output image can be prevented. And
When processing a pseudo halftone image, the weighting factors shown in FIG. 4 are used as described above.

この方式を実現する一例を第11図(a)を用いて説明
する。いま、簡単のため2種類の重み係数を用いる場合
について述べる。濃度データ復元部200は10本のアドレ
スラインを有するROMにより構成する。この10本のアド
レスラインの内9本は、前述の第8図の場合と同様に、
参照する9画素分の2値画像データを信号線束130より
入力する。そして、アドレスラインの残り1本には、信
号線139を接続し、切り替え信号FLGを入力する。ここ
で、切り替え信号FLGは、外部スイッチ230により以下の
通り指示される。
An example for realizing this method will be described with reference to FIG. Now, a case where two types of weighting factors are used will be described for simplicity. The density data restoring unit 200 is configured by a ROM having ten address lines. Nine of the ten address lines, as in the case of FIG.
Binary image data for nine pixels to be referred to is input from the signal line bundle 130. Then, the signal line 139 is connected to the remaining one of the address lines, and the switching signal FLG is input. Here, the switching signal FLG is instructed by the external switch 230 as follows.

FLG=1:線図形画像 FLG=0:擬似中間調画像 また、例えば既知の方式による画像の実時間領域判定
を実行する画像判定部240の出力を切り替え信号FLGとし
て用いることにより、画像の領域に応じて自動的に重み
係数を切り替えることもできる。この場合の構成図を第
11図(b)に示す。この切り替え信号FLGは処理する画
像の種類だけでなく、画像の濃度や、出力装置の特性等
に応じて決定することもできる。
FLG = 1: Line figure image FLG = 0: Pseudo halftone image Also, for example, by using the output of the image determination unit 240 that performs real-time area determination of an image by a known method as the switching signal FLG, The weighting factor can be automatically switched accordingly. The configuration diagram in this case is
This is shown in FIG. The switching signal FLG can be determined according to not only the type of the image to be processed, but also the density of the image, the characteristics of the output device, and the like.

また、アドレスラインを11本以上有するROMを濃度デ
ータ復元部200として用い、切り替え信号FLGを複数の2
値データ、または多値データとすることにより、3種類
以上の重み係数を切り替えることもできる。
Further, a ROM having 11 or more address lines is used as the density data restoring unit 200, and the switching signal FLG is transmitted to a plurality of 2
By using value data or multi-value data, three or more types of weighting factors can be switched.

一方、重み係数は通常、第4図および第10図に示す通
り上下方向および、左右方向に対称な値を用いる。しか
し、画像によっては、例えば第12図に示すような非対称
の値を用いることにより、より望ましい出力画像を得る
ことができる場合もある。例えば、第13図(a)に示す
直線部分に対して第4図の重み係数を用いて濃度の復元
を実行すると、得られら復元濃度画像は第13図(b)と
なる。ここで、図中の座標x=x1−1およびx=x1+1
となる位置の画素の濃度は等しい。従って、この復元濃
度画像を特定の閾値で2値化した場合、1または3画素
が1となり、2画素幅の線を出力できない。これに対し
て、第12図に示す重み係数を用いた場合、得られる復元
濃度画像は第13図(c)となる。この画像を、適切な閾
値を用いて2値化することにより、1から3画像の任意
の幅の線を出力することができる。ここで用いる閾値は
重み係数より決定することができる。
On the other hand, as the weighting factors, values symmetrical in the vertical and horizontal directions are usually used as shown in FIGS. However, depending on the image, a more desirable output image may be obtained by using an asymmetric value as shown in FIG. 12, for example. For example, when density restoration is performed on the straight line portion shown in FIG. 13A using the weighting coefficients shown in FIG. 4, the resulting restored density image becomes FIG. 13B. Here, coordinates x = x 1 -1 and x = x 1 +1 in the figure
The density of the pixel at the position is equal. Therefore, when the restored density image is binarized with a specific threshold value, one or three pixels become 1, and a line having a width of two pixels cannot be output. On the other hand, when the weighting coefficients shown in FIG. 12 are used, the obtained restored density image is as shown in FIG. 13 (c). By binarizing this image using an appropriate threshold, it is possible to output a line having an arbitrary width of one to three images. The threshold used here can be determined from the weight coefficient.

次に画像処理部300と制御部500の動作の一例として、
まず、X1画素*Y1画素の復元画像に対し、x方向をr1/R
1,y方向をr2/R2の縮小率で変換し、X2画素*Y2画素の変
換画像を得る縮小処理を実行する場合を例に説明を行
う。拡大,縮小,回転などの処理では、本装置は多値の
画像データに対する各種の補間処理と同様の方式が適用
できる。第14図が補間処理の一例として、距離反比例法
を適用した処理装置の構成例である。x方向をr1/R1,y
方向をr2/R2とする縮小処理において、復元画像データS
pと変換画像データS2の位置関係が第5図の場合、変換
画像データの座標(x2,y2)に対応する復元画像データ
の座標(x1,y1)は以下の式により求められる。
Next, as an example of the operation of the image processing unit 300 and the control unit 500,
First, for the restored image of X 1 pixel * Y 1 pixel, the x direction is represented by r 1 / R
1, the y-direction is converted by the reduction ratio r 2 / R 2, will be described an example in which to perform a reduction process to obtain a converted image of X 2 pixels * Y 2 pixels. In processing such as enlargement, reduction, and rotation, the present apparatus can apply the same method as various kinds of interpolation processing on multi-valued image data. FIG. 14 shows a configuration example of a processing apparatus to which the inverse distance proportional method is applied as an example of the interpolation processing. Let x direction be r 1 / R 1 , y
In the reduction process of the direction and r 2 / R 2, the restored image data S
If the positional relationship p and the converted image data S 2 is FIG. 5, the coordinates of the restored image data corresponding to the coordinates of the converted image data (x 2, y 2) ( x 1, y 1) determined by the following formula Can be

x1=〔x2*R1/r1〕 y1=〔y2*R2/r2〕 ただし、ここで〔x〕はxを越えない整数を表す。ま
た、通常の処理では、縮小率r1/R1およびr2/R2は、 r1/R1=r2/R2 となる場合が多い。
x 1 = [x 2 * R 1 / r 1 ] y 1 = [y 2 * R 2 / r 2 ] Here, [x] represents an integer not exceeding x. Also, in normal processing, the reduction ratios r 1 / R 1 and r 2 / R 2 are often r 1 / R 1 = r 2 / R 2 .

変換画像データSq(x2,y2)を決定する場合、参照す
る復元画像データは、Sq(x2,y2)を囲む4画像分のデ
ータSp(x1,y1),Sp(x1+1,y1),Sp(x1,y1+1),Sp
(x1+1,y1+1)となる。以下、第14図を用いて、各部
の動作を説明する。いま信号線301より、復元画像デー
タSp(x1+1,y1+1)が入力された場合、ラッチ311か
らは復元画像データSp(x1,y1+1)が、ラインバッフ
ァ320からはSp(x1+1,y1)が、ラッチ312からはS
p(x1,y1)が、それぞれ出力される。4画素分の多値デ
ータは、それぞれ乗算器321から324により重み係数αが
掛けられ、加算器330に送られる。加算器330は入力され
た4画素分の多値データを加算し、変換画像データS
q(x2,y2)を出力する。ここで重み係数αは、復元画像
データSpと変換画像データSqの位置関係により定まる、
2*2の行列式である。行列のそれぞれの項は、重み係
数決定部340により決定される。距離反比例法の場合、
係数は、第5図のΔl1,Δl2,Δl3,Δl4の逆数に比例し
て定められる。本装置においては入力画素の間隔は、常
に一定なので、第5図のΔx,Δyにより、各係数が決定
できる。Δx,Δyは制御部500中で求められ、信号線34
1,342により重み係数決定部340に入力される。したがっ
て、重み係数決定部340は信号線341および342をアドレ
スラインとする、1つのROMで実現できる。また、復元
画像データSpおよびΔx,Δyをすべてアドレスラインと
すれば、縮小処理で用いる画像処理部300全体を1つのR
OMで構成することも可能である。
When determining the converted image data S q (x 2 , y 2 ), the restored image data to be referred to is data Sp (x 1 , y 1 ) for four images surrounding S q (x 2 , y 2 ). S p (x 1 +1, y 1 ), S p (x 1 , y 1 +1), S p
(X 1 +1 and y 1 +1). Hereinafter, the operation of each unit will be described with reference to FIG. If the restored image data S p (x 1 +1, y 1 +1) is now input from the signal line 301, the restored image data S p (x 1 , y 1 +1) is input from the latch 311 and the restored image data S p (x 1 , y 1 +1) is input from the line buffer 320. S p (x 1 +1 and y 1 )
p (x 1 , y 1 ) is output. The multi-valued data for four pixels is multiplied by a weighting coefficient α by multipliers 321 to 324, respectively, and sent to an adder 330. The adder 330 adds the input multi-valued data of four pixels and converts the converted image data S
Outputs q (x 2 , y 2 ). Here the weighting factor α is determined by the positional relationship of the restored image data S p and the converted image data S q,
This is a 2 * 2 determinant. Each term of the matrix is determined by the weight coefficient determination unit 340. In the inverse distance method,
The coefficient is determined in proportion to the reciprocal of Δl 1 , Δl 2 , Δl 3 , Δl 4 in FIG. In this apparatus, since the interval between input pixels is always constant, each coefficient can be determined by Δx and Δy in FIG. Δx and Δy are obtained in the control unit 500, and the signal line 34
The weight coefficient is input to the weight coefficient determination unit 340 by 1,342. Therefore, the weight coefficient determination unit 340 can be realized by one ROM using the signal lines 341 and 342 as address lines. Further, the restored image data S p and [Delta] x, if all Δy address lines, the entire image processing unit 300 employed in the reduction process of one 1 R
It is also possible to configure with OM.

ここで、各部の動作タイミングやΔx,Δyは制御部50
0により決定される。
Here, the operation timing and Δx, Δy of each unit are determined by the control unit 50.
Determined by 0.

そこで次に、制御部500の動作について第15図を用い
て説明する。第15図において、510は基準のパルスを出
力するクロック、520および530は出力される出力多値デ
ータのアドレスx2,y2をそれぞれ係数するアドレスカウ
ンタである。一方、入力多値データのアドレスx1,y
1は、アドレスカウンタ540および550でそれぞれ計数さ
れる。いま、x方向をr1/R1、y方向をr2/R2で変換を行
う場合を例に説明を行う。この場合、入力多値データの
入力は基準パルスr1回に1回実行され、出力多値データ
の決定はR1回に1回実行される。したがって、アドレス
カウンタ520,540は、それぞれ基準パルスr1,R1回に1度
動作する。また、走査線1本分の入力多値データを読む
ごとに、出力多値データの副走査線方向のアドレスをR2
/r2進める必要がある。そのため、アドレスカウンタ520
が走査線1本分の処理を終えると、終了検出部515はr2
回パルス信号を出力する。以後終了検出部515より出力
されるパルス信号をラインパルスと呼ぶ。アドレスカウ
ンタ530,550はそれぞれ、ラインパルスr2,R2回に1度動
作する。ただし、出力多値データSq(x2,y2)を決定す
るためには、入力多値データSp(x1+1,y1+1)が既に
入力されている必要がある。したがって、入力多値デー
タの読み出しは、アドレスカウンタ520の出力より1画
素分、アドレスカウンタ530の出力より1ライン分先行
して実行する必要がある。また、任意の変換率で処理を
行うためには、r1,R1,r2,R2はすべて外部より指示でき
ることが可能である必要がある。しかし、実際の利用に
あたっては、r1,r2は比較的大きな値の固定値としても
支障はない。そこで、本実施例では、R1,R2のみを外部
より入力する場合を例に説明を行う。カウンタ560およ
び570は、それぞれ基準パルスとラインパルスによりカ
ウントを増加し、それぞれr1,r2回のパルス入力で出力
を0に戻す。その結果カウンタ560および570の出力を
x4,y4とすると、 Δx=x4/r1 Δy=y4/r2 としてΔx,Δyが得られる。ここで、r1およびr2が定数
ならば、x4およびy4を、そのまま信号線341および342を
通して重み係数決定部340に出力することにより、重み
係数β(Δx,Δy)を決定することができる。この例の
方式では、R1個のパルス信号が出力するごとに、1画素
分の出力多値データが得られる。そのため、このままで
は高速処理が困難である。1枚の画像の処理の間、変換
率r1,r2,R1,R2は通常不変であるため、再生画像のアド
レスx1,y1に対して原画像のアドレスx2,y2およびΔx,Δ
yは周期的に変動する。そのため、処理初めにx2,y2
Δx,Δyあるいはx2,y2とβ(Δx,Δy)を決定し、た
とえばラインバッファなどに記憶して周期的に出力する
ことにより、この問題を解決できる。この方式を用いた
例を第16図に示す。この方式では、装置はx2,y2、Δx,
Δyを決定する準備モードと実際に画像処理を行う画像
処理モードの2種類のモードを持つ。処理が始まると、
まず、信号線501より準備モードであることを示す信号
が送られる。そこで、クロック510は基準クロックを走
査線1本分出力し、基準クロックR1回ごとにアドレスカ
ウンタ540およびカウンタ560の出力をラインバッファ54
5および565に記録する。
Therefore, next, the operation of the control unit 500 will be described with reference to FIG. In FIG. 15, reference numeral 510 denotes a clock for outputting a reference pulse, and reference numerals 520 and 530 denote address counters for counting the addresses x 2 and y 2 of the output multilevel data to be output. On the other hand, the address x 1 , y of the input multi-valued data
1 is counted by the address counters 540 and 550, respectively. Now, an example will be described in which the x direction is converted by r 1 / R 1 and the y direction is converted by r 2 / R 2 . In this case, the input of the input multi-value data is performed once a reference pulse r 1 times, determination of the output multi-level data is performed once at a time R. Therefore, the address counters 520 and 540 operate once per reference pulse r 1 and R 1 respectively. Each time the input multi-valued data for one scanning line is read, the address of the output multi-valued data in the sub-scanning line direction is set to R 2.
/ r 2 needs to be advanced. Therefore, the address counter 520
When processing for one scanning line is completed, the end detection unit 515 outputs r 2
The pulse signal is output once. Hereinafter, the pulse signal output from the end detection unit 515 is referred to as a line pulse. The address counters 530 and 550 operate once every two line pulses r 2 and R 2 , respectively. However, in order to determine the output multi-level data S q (x 2, y 2 ) , it is necessary to input multivalue data S p (x 1 + 1, y 1 +1) has already been entered. Therefore, it is necessary to read the input multi-valued data one pixel before the output of the address counter 520 and one line before the output of the address counter 530. Further, in order to perform processing at an arbitrary conversion rate, it is necessary that all of r 1 , R 1 , r 2 , and R 2 can be externally designated. However, in actual use, there is no problem even if r 1 and r 2 are set to relatively large fixed values. Therefore, in the present embodiment, a case where only R 1 and R 2 are externally input will be described as an example. The counters 560 and 570 increase the count by the reference pulse and the line pulse, respectively, and return the output to 0 with r 1 and r 2 pulse inputs, respectively. As a result, the output of counters 560 and 570
Assuming that x 4 and y 4 , Δx and Δy are obtained as Δx = x 4 / r 1 Δy = y 4 / r 2 . Here, if r 1 and r 2 are constants, the weighting coefficient β (Δx, Δy) is determined by outputting x 4 and y 4 to the weighting factor determination unit 340 through the signal lines 341 and 342 as they are. Can be. In the method of this example, each time R 1 pulse signals are output, the output multi-level data for one pixel is obtained. Therefore, high-speed processing is difficult in this state. During the processing of one image, the conversion rates r 1 , r 2 , R 1 , R 2 are usually invariant, so that the addresses x 2 , y 2 of the original image are compared with the addresses x 1 , y 1 of the reproduced image. And Δx, Δ
y fluctuates periodically. Therefore, x 2 , y 2 ,
This problem can be solved by determining Δx, Δy or x 2 , y 2 and β (Δx, Δy) and storing them in, for example, a line buffer and periodically outputting them. An example using this method is shown in FIG. In this scheme, the devices are x 2 , y 2 , Δx,
There are two types of modes, a preparation mode for determining Δy and an image processing mode for actually performing image processing. When the process starts,
First, a signal indicating the preparation mode is sent from the signal line 501. Therefore, the clock 510 is the reference clock to one scanning line output, the reference clock R every time the address counter 540 and the line buffer 54 the output of the counter 560
Record at 5 and 565.

一方、それと同時にラインパルス発生器511より画像
の走査線数に応じた数のラインパルスを出力し、ライン
パルスR2ごとにアドレスカウンタ550およびカウンタ570
の出力をラインバッファ555と575に記録する。ラインパ
ルス発生器511は準備段階でしか動作せず、クロック510
を用いることもできる。その後に、実際の画像処理にか
かり信号線501より、画像処理モードであることを示す
信号が出力される。すると、以後は、クロック510の出
力する基準クロックのみによって全体が制御され、アド
レスカウンタ520は、R1回より少ない回数のクロックパ
ルスの入力により動作する。したがって、基準クロック
の周波数を変えずに、より高速な処理ができる。そし
て、アドレスカウンタ520の出力が変化すると同時に、
ラインバッファ545,555,565,575よりそれに対応したx2,
y2,Δx,Δyが読み出され重み係数決定部340に送られ
る。ここで、ラインバッファ545,565から出力されるデ
ータのアドレスはアドレスカウンタ520により制御され
る。一方、ラインバッファ555,575から出力されるデー
タのアドレスはアドレスカウンタ530により制御され、
アドレスカウンタ530は画像処理モードではアドレスカ
ウンタ520が走査線1本分動作するごとに動作する。ま
た、図中の535はラインパルスとして、アドレスカウン
タ520の出力と、ラインパルス発生器511の出力の一方を
選択するセレクタであり、信号線501の信号により制御
される。
On the other hand, the same output number of lines pulses corresponding to the number of scanning lines of the image from the line pulse generator 511 simultaneously, the address counter 550 and the counter 570 for each line pulse R 2
Is output to the line buffers 555 and 575. The line pulse generator 511 operates only in the preparation stage, and the clock 510
Can also be used. Thereafter, a signal indicating the image processing mode is output from the signal line 501 in the actual image processing. Then, the subsequent, entirely controlled by only the reference clock output from the clock 510, the address counter 520 is operated by input of a number less than one R clock pulses. Therefore, higher-speed processing can be performed without changing the frequency of the reference clock. Then, at the same time when the output of the address counter 520 changes,
X 2 corresponding thereto from the line buffers 545,555,565,575,
y 2 , Δx, Δy are read out and sent to the weight coefficient determining unit 340. Here, the address of the data output from the line buffers 545 and 565 is controlled by the address counter 520. On the other hand, the address of the data output from the line buffers 555 and 575 is controlled by the address counter 530,
The address counter 530 operates every time the address counter 520 operates for one scanning line in the image processing mode. A selector 535 in the figure selects one of the output of the address counter 520 and the output of the line pulse generator 511 as a line pulse, and is controlled by a signal on a signal line 501.

以上の構成で縮小処理が実行できる。拡大処理におい
ても、構成および動作は、縮小処理とまったく同様であ
る。
With the above configuration, the reduction processing can be executed. The configuration and operation of the enlargement process are exactly the same as those of the reduction process.

次に、濃度変換処理を実行するための、画像処理部30
0および制御部500の構成および動作の一例について説明
する。この場合、制御部500の構成は、前述の縮小処理
とまったく同様で、画素数不変の場合は、 r1/R1=1,r2/R2=1 となり、 Δx=0,Δy=0 となる。
Next, the image processing unit 30 for executing the density conversion process
One example of the configuration and operation of the control unit 500 will be described. In this case, the configuration of the control unit 500 is exactly the same as the above-described reduction processing. When the number of pixels does not change, r 1 / R 1 = 1, r 2 / R 2 = 1, and Δx = 0, Δy = 0 Becomes

濃度変換では、ある復元画像データSp(x,y)に対し
て非線形な変換画像データSq(x,y)が出力される。両
者の関係は、各入出力装置の特性によりあらかじめ決定
することができる。以下に変換式の一例を示す。
In the density conversion, non-linear converted image data S q (x, y) is output for certain restored image data S p (x, y). The relationship between the two can be determined in advance by the characteristics of each input / output device. An example of the conversion formula is shown below.

Sq(x,y)=f{Sp(x,y)} f(u)=v*(u/v) ただし、v≦Sp max(u) ここで、変数rを定数とすると、この処理は例えば1
つのROMによっても実現できる。また、変数rは処理に
応じて外部から指示することもできる。その場合、あら
かじめSpの取り得る範囲全体に渡って出力Spを計算し、
その結果を例えばRAMなどに記憶することにより、この
処理は実現できる。
S q (x, y) = f {S p (x, y)} f (u) = v * (u / v) r Here, v in ≦ S p max (u) wherein when the variable r with constant This processing is, for example, 1
It can also be realized with one ROM. Also, the variable r can be externally designated according to the processing. In this case, to calculate the output S p over the entire range of possible pre-S p,
This processing can be realized by storing the result in, for example, a RAM.

一方、この処理は、拡大,縮小処理と同時に実行する
ことも可能である。
On the other hand, this processing can be executed simultaneously with the enlargement / reduction processing.

続いて、2値化処理部400の動作について詳細に説明
する。この部分は、多値データを2値化して、2値の再
生画像データを得る処理(前述の原理で述べた処理
(3))を実行する場所である。この構成は、従来の2
値化処理方式も含め、多数の方式が適用できるが、ここ
では前述処理(3)で述べた方式を用いた場合につい
て、第17図を用いて説明する。変換画像データSq(x,
y)は信号線401を通って加算器430に入力される。加算
器430はSq(x,y)と、後に説明する方式で算出した誤差
データE(x,y)を加算し、多値データF(x,y)を出力
する。ここで、誤差データE(x,y)は信号線431により
入力される。F(x,y)は、信号線411を通って比較器41
0に入力され、閾値決定部420によりあらかじめ定められ
た閾値Tと比較される。この比較の結果によって、再生
画像の2値データQ(x,y)が決定される。なお、ここ
で用いた誤差データE(x,y)は、それまでに2値化さ
れた(x,y)近傍の多値データFを2値化した際に生じ
た誤差εに、あらかじめ定めた重み係数δを掛けた値の
和である。重み係数δの一例を第18図に示す。図中で*
は、その時点で2値化を行う画素で、ここで述べた座標
(x,y)の画素にあたる。この場合、E(x,y)は以下の
式により得られる。
Next, the operation of the binarization processing unit 400 will be described in detail. This part is where the process of binarizing the multi-valued data to obtain the binary reproduced image data (the process (3) described in the above principle) is executed. This configuration is a conventional 2
A number of methods including the value processing method can be applied. Here, the case where the method described in the above process (3) is used will be described with reference to FIG. Converted image data S q (x,
y) is input to the adder 430 through the signal line 401. The adder 430 adds S q (x, y) and error data E (x, y) calculated by a method described later, and outputs multi-value data F (x, y). Here, the error data E (x, y) is input via the signal line 431. F (x, y) passes through a signal line 411 to a comparator 41
The threshold value is input to 0 and compared with a predetermined threshold value T by the threshold value determination unit 420. Based on the result of this comparison, the binary data Q (x, y) of the reproduced image is determined. Note that the error data E (x, y) used here is previously determined as an error ε generated when the multi-valued data F near the binarized (x, y) is binarized. Is the sum of the values multiplied by the weight coefficient δ. FIG. 18 shows an example of the weight coefficient δ. * In the figure
Is a pixel to be binarized at that time, and corresponds to the pixel at the coordinates (x, y) described here. In this case, E (x, y) is obtained by the following equation.

E(x,y)=1/8{ε(x−1,y−1) +ε(x+1,y−1) +ε(x−2,y)+ε(x,y−2) +2(ε(x,y−1)+ε(x−1,y−1))} 一方、各画素の誤差εは、多値データFと0の差,ま
たはFとFの取り得る最大値Fmaxとの差のどちらかで一
方である。この値は、次のようにして得られる、ある時
点で、加算器430が座標(x2−1,y2)の多値データF(x
2−1,y2)を出力した場合、F(x2−1,y2)は比較器410
の他、差分器435およびセレクタ440に入力される。差分
器435は、変換画像データF(x,y)の取り得る値の最大
値FmaxとF(x2−1,y2)の差を出力し、セレクタ440に
送る。例えば、本例ではS(x,y)は0から16の値をと
るのでFmax=16となり、差分器435は、16−Sq(x2−1,y
2)を出力する。また、ここでもし、F(x2−1,y2)>F
maxとなった場合、差分器435は0を出力する。セレクタ
440は、以下の条件に従い、F(x2−1,y2)またはFmax
−F(x2−1,y2)のいずれかを誤差ε(x1−1,y1)とし
て出力する。
E (x, y) = 1/8 {ε (x−1, y−1) + ε (x + 1, y−1) + ε (x−2, y) + ε (x, y−2) +2 (ε (x , y−1) + ε (x−1, y−1))} On the other hand, the error ε of each pixel is the difference between the multi-valued data F and 0 or the difference between F and the maximum value F max that F can take. One of them is one. This value is obtained as follows, at some point, the multi-level data F (x of the adder 430 is the coordinates (x 2 -1, y 2)
2 -1, when the output y 2), F (x 2 -1, y 2) comparators 410
Are input to the differentiator 435 and the selector 440. Differentiator 435 outputs the difference between the converted image data F (x, y) maximum value of the possible values of F max and F (x 2 -1, y 2 ), and sends to the selector 440. For example, in this example, since S (x, y) takes a value from 0 to 16, F max = 16, and the differentiator 435 calculates 16−S q (x 2 −1, y
2 ) output. Also here, if F (x 2 −1, y 2 )> F
When the value becomes max , the differentiator 435 outputs 0. selector
440 is F (x 2 -1, y 2 ) or F max according to the following conditions:
One of −F (x 2 −1, y 2 ) is output as an error ε (x 1 −1, y 1 ).

ε(x,y)=F(x,y) :Q(x,y)=0 =Fmax−F(x,y):Q(x,y)=1 出力されたε(x2−1,y2)は信号線451を通ってライ
ンバッファ450などに送られる。ラインバッファ450に一
時保存された誤差εより、E(x,y)を求める処理は、
ラッチ446,447,448およびシフトレジスタ471,472により
実行される。次にQ(x,y)を求める場合を例に、各部
分の動作を説明する。
ε (x, y) = F (x, y): Q (x, y) = 0 = F max −F (x, y): Q (x, y) = 1 The output ε (x 2 −1 , y 2 ) is sent to a line buffer 450 or the like through a signal line 451. The process of obtaining E (x, y) from the error ε temporarily stored in the line buffer 450 is as follows.
This is performed by the latches 446, 447, 448 and the shift registers 471, 472. Next, the operation of each part will be described with reference to an example in which Q (x, y) is obtained.

2値データQ(x−1,y)が2値化処理部にて決定さ
れると、ラッチ446,447,448とラインバッファ450,460の
出力線451,452,453,454,455,456からは、それぞれ誤差
ε(x−1,y),ε(x−2,y),ε(x+1,y−1),
ε(x,y−1),ε(x−1,y−1),ε(x,y−2)が
出力されている。ここで、信号線451と454のデータε
(x−1,y)、ε(x,y−1)はシフトレジスタ471,472
に入力され、2*ε(x−1,y)、および2*ε(x,y−
1)が出力される。これらが加算器480に入力される。
加算器480は入力された6種類の多値データを加算して
8*E(x,y)を算出し、シフトレジスタ473に送る。シ
フトレジスタ473は入力された多値データをシフトする
ことにより、E(x,y)を得る。得られたE(x,y)は信
号線431によりセレクタ485に入力される。ここで、セレ
クタ485は外部からの信号線481より送られるデータEフ
ラグにより、E(x,y)あるいは0を加算器430に出力す
る。セレクタ485の出力がE(x,y)ならば、最終出力Q
は擬似中間調画像となる。一方、セレクタ485の出力が
0ならば、最終出力Qは単純2値化処理画像となる。
When the binary data Q (x−1, y) is determined by the binarization processing unit, errors ε (x−1, y) and ε ( x−2, y), ε (x + 1, y−1),
ε (x, y−1), ε (x−1, y−1), ε (x, y−2) are output. Here, the data ε of the signal lines 451 and 454
(X−1, y) and ε (x, y−1) are shift registers 471,472
And 2 * ε (x−1, y) and 2 * ε (x, y−
1) is output. These are input to the adder 480.
The adder 480 adds the six types of input multi-value data, calculates 8 * E (x, y), and sends the result to the shift register 473. The shift register 473 obtains E (x, y) by shifting the input multi-value data. The obtained E (x, y) is input to the selector 485 via the signal line 431. Here, the selector 485 outputs E (x, y) or 0 to the adder 430 according to the data E flag sent from the external signal line 481. If the output of the selector 485 is E (x, y), the final output Q
Is a pseudo halftone image. On the other hand, if the output of the selector 485 is 0, the final output Q is a simple binarized image.

本例で示した擬似中間調処理方式は、文字など線図形
に適用した場合、組織的ディザ法と比較して画質の劣化
が少ない。しかしながら、このような方式で、単純2値
化処理のモードを付随することにより、線図形に対して
画像処理を行なった場合にも、一段と高画質の再生画像
が得られる。しかも、装置の構成はセレクタ485を1つ
増加するだけでよい。
When the pseudo halftone processing method shown in this example is applied to a line figure such as a character, the image quality is less deteriorated as compared with the systematic dither method. However, by adding a mode of the simple binarization processing in such a manner, a higher-quality reproduced image can be obtained even when image processing is performed on a line figure. Moreover, the configuration of the device need only be increased by one selector 485.

なお、x=1,またはy=1の場合、E(x,y)を得る
のに必要なεの一部が存在しないことが生じる。この場
合、あらかじめラインバッファ450および460に記録され
ている値を用いて、E(x,y)を決定する。
When x = 1 or y = 1, a part of ε required to obtain E (x, y) may not exist. In this case, E (x, y) is determined using the values recorded in the line buffers 450 and 460 in advance.

以上説明した2値化処理方式によれば、原画像が網点
で表現された画像でも、モアレの生じない高い画質の再
生画像を得ることができる。
According to the binarization processing method described above, it is possible to obtain a high-quality reproduced image free from moiré even if the original image is represented by halftone dots.

一方、原画像が網点でない場合は、組織的ディザ法に
よる2値化処理も実行できる。たとえば、1画素*1画
素のドットが表示できない出力装置の場合、網点型のデ
ィザマトリックスを用いて、2値化処理を実行する。す
ると、本来1画素*1画素のドットが生じやすいBayer
型のディザマトリックスにより2値化された画像も、き
れいに表示することができる。また、前に述べたよう
に、線図形を対象とする場合は、再2値化処理法とし
て、固定閾値での単純2値化処理を用いることにより、
高い画質の再生画像が得られる。
On the other hand, when the original image is not a halftone dot, a binarization process using the systematic dither method can be executed. For example, in the case of an output device that cannot display 1 * 1 pixel dots, binarization processing is performed using a halftone type dither matrix. Then, Bayer where dots of 1 pixel * 1 pixel originally tend to occur
An image binarized by the type dither matrix can also be displayed clearly. Further, as described above, when a line graphic is targeted, by using a simple binarization process with a fixed threshold as a re-binarization process method,
A high quality reproduced image can be obtained.

このように、本実施例においては、変換画像データの
2値化処理として様々な方式が適用できるため、個々の
出力装置や画像に応じて再2値化処理法を切り替えるこ
とで、より高い画質の再生画像を出力することができ
る。第19図に、その場合の画像処理装置の基本構成の一
例を示す。ここで、画像処理装置は原画像データ一時記
憶部100,濃度データ復元部200,画像処理部300,制御部50
0と、複数の2値化処理部710,720,730およびそれらの2
値化処理部を切り替えて選択するセレクタ740から構成
される。そして、複数の2値化処理法のうちの1つを信
号線701から入力される信号Gにより切り替えるもので
ある。信号Gは外部からの指示や、画像データの一部、
もしくは装置の出力によって決定する。
As described above, in this embodiment, since various methods can be applied as the binarization processing of the converted image data, higher image quality can be obtained by switching the re-binarization processing method according to each output device or image. Can be output. FIG. 19 shows an example of a basic configuration of the image processing apparatus in that case. Here, the image processing apparatus includes an original image data temporary storage unit 100, a density data restoration unit 200, an image processing unit 300, and a control unit 50.
0, a plurality of binarization processing units 710, 720, 730 and their two
It is composed of a selector 740 that switches and selects a value processing unit. Then, one of a plurality of binarization processing methods is switched by the signal G input from the signal line 701. The signal G is an external instruction, a part of image data,
Alternatively, it is determined by the output of the device.

以上、説明した装置により、比較的簡単な構成で高い
画質の再生画像を得ることができる。
As described above, with the above-described apparatus, a high-quality reproduced image can be obtained with a relatively simple configuration.

本発明はモノクロ画像について説明したが、カラー画
像に対しても、拡張して用いることができる。
Although the present invention has been described for a monochrome image, it can be extended to a color image.

〔発明の効果〕〔The invention's effect〕

以上説明したように、本発明によれば、画像の拡大,
縮小,回転などの処理を実行した場合に、高い画質の再
生画像を得ることができる。また、従来多値データにし
か適用できなかった画像の濃度を変換する処理を2値デ
ータで表わされる擬似中間調画像に対しても実行するこ
とができる。さらに、出力装置に応じて擬似中間調画像
の白黒パターンを変換することもできる。
As described above, according to the present invention, enlargement of an image,
When processing such as reduction and rotation is performed, a high-quality reproduced image can be obtained. Further, the process of converting the density of an image, which was conventionally applicable only to multi-valued data, can also be executed for a pseudo halftone image represented by binary data. Further, the monochrome pattern of the pseudo halftone image can be converted according to the output device.

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

第1図は本発明の一実施例を示す画像処理装置の基本構
成図、第2図は線密度変換による原画像と再生画像の位
置関係を説明する図、第3図は2値の画像データより多
値の画像データを復元する処理の例を示図、第4図は濃
淡データの復元に用いる重み係数の一例を示す図、第5
図は復元画像データと変換画像データの位置の関係の一
例を示す図、第6図は距離逆比例法による多値データの
縮小処理の一例を示す図、第7図は本発明で用いる濃淡
画像データの2値化処理方式の一例の原理を説明する
図、第8図は第1図における濃度データ復元部の一構成
例を示すブロック図、第9図は濃度データの復元時に用
いる参照窓の一例を示す図、第10図は濃度データの復元
に用いる重み係数の一例を示す図、第11図は濃度データ
復元方式の例を示す図、第12図は濃度データの復元に用
いる非対称の重み係数の一例を示す図、第13図は重み係
数を変えた場合の復元データの一例を示す図、第14図は
第1図における画像処理部の一構成例を示す図、第15図
は第1図における制御部の一例を示す図、第16図は高速
処理を行うための制御部の一応用例を示す図、第17図は
第1図における2値化処理部の構成の一例を示す図、第
18図は誤差補正量を決定するための重み係数の一例を示
す図、第19図は複数の2値化処理部を有する画像処理装
置の基本構成の一例を示すブロック図である。 100:画像データ一時記憶部、101:原画像データ入力線、
110:ラインバッファ、115:ラインバッファ、121,122,12
3:ラッチ列、130:信号線束、200:濃度データ復元部、21
0:乗算器、220:加算器、230:外部スイッチ、240:画像判
定部、300:画像処理部、301:復元画像データ入力線、31
1,312:ラッチ、320:ラインバッファ、321,322,323,324:
乗算器、330:加算器、340:重み係数決定部、400:2値化
処理部、410:比較器、420:閾値決定部、430:加算器、43
5:差分器、440:セレクタ、446,447,448:ラッチ、450,46
0:ラインバッファ、471,472,473:シフトレジスタ、480:
加算器、485:セレクタ、491:再生画像データ出力線、50
0:制御部、510:クロック、511:ラインパルス発生器、51
5:終了検出部、520,530,540,550:アドレスカウンタ、56
0,570:カウンタ、525:セレクタ、545,555,565,575:ライ
ンバッファ、701:信号線、710,720,730:2値化処理部、7
40:セレクタ。
FIG. 1 is a diagram showing a basic configuration of an image processing apparatus according to an embodiment of the present invention, FIG. 2 is a diagram for explaining a positional relationship between an original image and a reproduced image by linear density conversion, and FIG. FIG. 4 is a view showing an example of processing for restoring multi-valued image data, FIG.
FIG. 6 is a diagram showing an example of the relationship between the positions of the restored image data and the converted image data. FIG. 6 is a diagram showing an example of a multivalued data reduction process by the inverse distance proportional method. FIG. 7 is a grayscale image used in the present invention. FIG. 8 is a view for explaining the principle of an example of a data binarization processing method, FIG. 8 is a block diagram showing an example of the configuration of a density data restoring unit in FIG. 1, and FIG. FIG. 10 is a diagram showing an example, FIG. 10 is a diagram showing an example of a weight coefficient used for restoring density data, FIG. 11 is a diagram showing an example of a method for restoring density data, and FIG. 12 is an asymmetric weight used for restoring density data. FIG. 13 is a diagram showing an example of a coefficient, FIG. 13 is a diagram showing an example of restored data when a weight coefficient is changed, FIG. 14 is a diagram showing an example of a configuration of an image processing unit in FIG. 1, and FIG. FIG. 1 shows an example of a control unit in FIG. 1. FIG. 16 shows a control unit for performing high-speed processing. Figure showing an application example, Figure 17 is a diagram showing an example of the configuration of the binarization processing unit in FIG. 1, the
FIG. 18 is a diagram showing an example of a weight coefficient for determining an error correction amount, and FIG. 19 is a block diagram showing an example of a basic configuration of an image processing apparatus having a plurality of binarization processing units. 100: Image data temporary storage unit, 101: Original image data input line,
110: Line buffer, 115: Line buffer, 121, 122, 12
3: Latch row, 130: signal line bundle, 200: density data restoration unit, 21
0: multiplier, 220: adder, 230: external switch, 240: image determination unit, 300: image processing unit, 301: restored image data input line, 31
1,312: Latch, 320: Line buffer, 321,322,323,324:
Multiplier, 330: adder, 340: weight coefficient determination unit, 400: binarization processing unit, 410: comparator, 420: threshold value determination unit, 430: adder, 43
5: Differentiator, 440: Selector, 446, 447, 448: Latch, 450, 46
0: Line buffer, 471, 472, 473: Shift register, 480:
Adder, 485: Selector, 491: Playback image data output line, 50
0: control unit, 510: clock, 511: line pulse generator, 51
5: End detection unit, 520, 530, 540, 550: Address counter, 56
0,570: counter, 525: selector, 545, 555, 565, 575: line buffer, 701: signal line, 710, 720, 730: binarization processing unit, 7
40: Selector.

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 昭62−114377(JP,A) 特開 昭63−13578(JP,A) 特開 昭61−131683(JP,A) (58)調査した分野(Int.Cl.6,DB名) G06T 1/00 ──────────────────────────────────────────────────続 き Continuation of the front page (56) References JP-A-62-114377 (JP, A) JP-A-63-13578 (JP, A) JP-A-61-131683 (JP, A) (58) Investigation Field (Int.Cl. 6 , DB name) G06T 1/00

Claims (3)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】2値のディジタル画像データPを一時保存
する画像記憶手段と、該画像記憶手段中の画像データP
をM画素(M≧1)の走査窓を用いて走査する手段とを
有する画像処理装置において、 上記走査窓中のM画素の2値の画像データより各画素の
濃度データSpを復元する手段と、 該復元された濃度データSpに対して画像処理を行い多値
データSqを得る手段と、 該多値データSqを再2値化し2値の画像データQを決定
する手段とを有し、 上記濃度データSpを復元する手段は、各画素の走査窓中
の位置に応じた重み係数を複数種類有し、該濃度データ
Spの直線部分に対して、該重み係数のうち非対称のもの
を選択する手段を有し、 上記画像処理を行い多値データSqを得る手段は、変換画
像データを囲む位置にある数画素の復元画像データの値
に、各画素までの距離の逆数を重みとして掛け合せ、各
画素の和の値より変換画像データを決定する手段を有す
ることを特徴とする画像処理装置。
1. An image storage means for temporarily storing binary digital image data P, and image data P stored in the image storage means.
Using a scanning window of M pixels (M ≧ 1) in the image processing apparatus, comprising: means for restoring density data Sp of each pixel from binary image data of M pixels in the scanning window; Means for performing image processing on the restored density data Sp to obtain multi-value data Sq; and means for re-binarizing the multi-value data Sq to determine binary image data Q, The means for restoring the density data Sp has a plurality of types of weighting factors corresponding to the positions of the respective pixels in the scanning window.
Means for selecting an asymmetrical one of the weighting coefficients for the straight line portion of Sp; means for performing the image processing to obtain multi-valued data Sq; An image processing apparatus comprising means for multiplying a value of image data by a reciprocal of a distance to each pixel as a weight and determining converted image data from a value of a sum of each pixel.
【請求項2】2値のディジタル画像データPを一時保存
する画像記憶手段と、該画像記憶手段中の画像データP
をM画素(M≧1)の走査窓を用いて走査する手段とを
有する画像処理装置において、 上記走査窓中のM画素の2値の画像データより各画素の
濃度データSpを復元する手段であって、アドレスライン
を複数有するROMを濃度データ復元部とし、切り替え信
号を複数の2値データないし多値データとすることによ
り、3種以上の重み係数を切り替えるものと、 該復元された濃度データSpに対して画像処理を行い多値
データSqを得る手段と、 該多値データSqを再2値化し2値の画像データQを決定
する手段とを有し、 上記濃度データSpを復元する手段は、各画素の走査窓中
の位置に応じた重み係数を複数種類有し、各種の重み係
数の内1つを選択する手段を有し、 上記画像処理を行い多値データSqを得る手段は、変換画
像データを囲む位置にある数画素の復元画像データの値
に、各画素までの距離の逆数を重みとして掛け合せ、各
画素の和の値より変換画像データを決定する手段を有す
ることを特徴とする画像処理装置。
2. An image storage means for temporarily storing binary digital image data P, and image data P stored in the image storage means.
Using a scanning window of M pixels (M ≧ 1). A means for restoring density data Sp of each pixel from binary image data of M pixels in the scanning window. A ROM having a plurality of address lines is used as a density data restoring unit, and a switching signal is changed to a plurality of binary data or multi-value data, thereby switching between three or more weighting factors. Means for performing multi-value data Sq by performing image processing on Sp; means for re-binarizing the multi-value data Sq to determine binary image data Q; means for restoring the density data Sp Has a plurality of types of weighting factors according to the position of each pixel in the scanning window, has means for selecting one of the various weighting factors, and means for performing the above image processing to obtain multi-valued data Sq , The number at the position surrounding the converted image data The value of the restored image data of the unit, multiplies the inverse of the distance to each pixel as a weight, an image processing apparatus characterized by comprising means for determining a converted image data than the value of the sum of each pixel.
【請求項3】2値のディジタル画像データPを一時保存
する画像記憶手段と、該画像記憶手段中の画像データP
をM画素(M≧1)の走査窓を用いて走査する手段とを
有する画像処理装置において、 上記走査窓中のM画素の2値の画像データより各画素の
濃度データSpを復元する手段と、 該復元された濃度データSpに対して画像処理を行い多値
データSqを得る手段と、 該多値データSqを再2値化し2値の画像データQを決定
する手段とを有し、 上記濃度データSpを復元する手段は、各画素の走査窓中
の位置に応じた重み係数を複数種類有し、外部からの指
示もしくは画像の特徴による判定結果により各種の重み
係数の内1つを選択する手段を有し、 上記各画素の濃度データSpを復元する復元手段は、濃度
データを復元する際に参照する範囲を任意に決定し、重
み係数の行列を複数用意し、処理する画像に応じて切り
替え信号により上記複数行列のうちの1つに切り替える
ことを特徴とする画像処理装置。
3. Image storage means for temporarily storing binary digital image data P, and image data P stored in the image storage means.
Using a scanning window of M pixels (M ≧ 1) in the image processing apparatus, comprising: means for restoring density data Sp of each pixel from binary image data of M pixels in the scanning window; Means for performing image processing on the restored density data Sp to obtain multi-value data Sq; and means for re-binarizing the multi-value data Sq to determine binary image data Q, The means for restoring the density data Sp has a plurality of weighting factors according to the position of each pixel in the scanning window, and selects one of the various weighting factors based on an external instruction or a determination result based on the characteristics of the image. The restoration means for restoring the density data Sp of each pixel arbitrarily determines a range to be referred to when restoring the density data, prepares a plurality of weight coefficient matrices, and responds to the image to be processed. Of the multiple matrices according to the switching signal The image processing apparatus characterized by switching to One.
JP63144523A 1988-06-10 1988-06-10 Image processing device Expired - Fee Related JP2920635B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63144523A JP2920635B2 (en) 1988-06-10 1988-06-10 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63144523A JP2920635B2 (en) 1988-06-10 1988-06-10 Image processing device

Publications (2)

Publication Number Publication Date
JPH01312671A JPH01312671A (en) 1989-12-18
JP2920635B2 true JP2920635B2 (en) 1999-07-19

Family

ID=15364316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63144523A Expired - Fee Related JP2920635B2 (en) 1988-06-10 1988-06-10 Image processing device

Country Status (1)

Country Link
JP (1) JP2920635B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930001241B1 (en) * 1990-04-03 1993-02-22 정호선 Binary dither image transfer to multi image apparatus
JP2833670B2 (en) * 1991-03-18 1998-12-09 キヤノン株式会社 Pixel density conversion method
JP2833669B2 (en) * 1991-03-18 1998-12-09 キヤノン株式会社 Pixel density conversion method
JP4925943B2 (en) * 2007-06-28 2012-05-09 株式会社日立ハイテクインスツルメンツ How to verify parts library data
CN104537974B (en) * 2015-01-04 2017-04-05 京东方科技集团股份有限公司 Data acquisition submodule and method, data processing unit, system and display device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61184687A (en) * 1985-02-13 1986-08-18 Mitsubishi Electric Corp Control system of multilevel image magnification and reduction
JPS62114377A (en) * 1985-11-13 1987-05-26 Konishiroku Photo Ind Co Ltd Image processing method

Also Published As

Publication number Publication date
JPH01312671A (en) 1989-12-18

Similar Documents

Publication Publication Date Title
EP0810769B1 (en) Apparatus and method for selectively processing a scanned image
JP3210248B2 (en) Image processing apparatus and method
JPH0472433B2 (en)
EP0781034B1 (en) Image processing apparatus and method
JP2920635B2 (en) Image processing device
JP3026706B2 (en) Image processing device
EP0206401A1 (en) Method of enlarging/reducing a dithered image
JP3092769B2 (en) Image processing device
JP2941288B2 (en) Image processing system
JP3262425B2 (en) Image processing device
JP3059287B2 (en) Binary image scaling device
JPH0435105B2 (en)
JPH09252400A (en) Image processor and its method
JP3974271B2 (en) Image processing method and image processing apparatus
JP3703253B2 (en) Image processing apparatus and method, and storage medium
JPH07182503A (en) Method and device for processing image
JP2860039B2 (en) Pseudo halftone image reduction device
JPH03243063A (en) Method for binarizing multilevel image
JP2978363B2 (en) Halftone image estimation device
JP3949642B2 (en) Image processing device
JPH0793683B2 (en) Image data conversion method for halftone image
JPH10136205A (en) Image processor
JPH08321949A (en) Binarization processing method for intermediate tone image
JP2883456B2 (en) Binarization method of gradation color image
JP3285349B2 (en) Dither image enlarger

Legal Events

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