JPS62117470A - Enlargement and reduction method for binary picture - Google Patents

Enlargement and reduction method for binary picture

Info

Publication number
JPS62117470A
JPS62117470A JP60257495A JP25749585A JPS62117470A JP S62117470 A JPS62117470 A JP S62117470A JP 60257495 A JP60257495 A JP 60257495A JP 25749585 A JP25749585 A JP 25749585A JP S62117470 A JPS62117470 A JP S62117470A
Authority
JP
Japan
Prior art keywords
image
pixel
halftone
scanning
binary
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
JP60257495A
Other languages
Japanese (ja)
Other versions
JPH047149B2 (en
Inventor
Seiichiro Hiratsuka
平塚 誠一郎
Masahiko Matsunawa
松縄 正彦
Yoshinori Abe
阿部 喜則
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP60257495A priority Critical patent/JPS62117470A/en
Priority to US03/929,622 priority patent/US4803558A/en
Priority to DE19863639029 priority patent/DE3639029A1/en
Publication of JPS62117470A publication Critical patent/JPS62117470A/en
Publication of JPH047149B2 publication Critical patent/JPH047149B2/ja
Granted legal-status Critical Current

Links

Abstract

PURPOSE:To obtain a picture close to an original halftone picture by scanning a dither picture from the plural types of scan openings while an optimum scan opening is selected at every picture element and setting the number of white picture elements in the scan opening to an estimated halftone picture. CONSTITUTION:The plural types of scan consisting openings B, C and D including a one with one picture element X one picture element are set in a binary picture consisting of white and black areas at every picture element of the estimated halftone picture. The binary picture in each scan opening is compared with the one generated from the estimated value based on a ratio between the white and black areas in the opening at every scan opening, and the estimated value 4 of the optimum scan opening B is obtained at every picture element of the halftone picture to be estimated. Based on the estimated value 4, the halftone picture is generated, enlarged and reduced, and then binarized.

Description

【発明の詳細な説明】 〈産業上の利用分野) 本発明は、2値画像の拡大・縮小方法に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to a method for enlarging/reducing a binary image.

(従来の技術) 2値画像の拡大・縮小の方法どしては、従来来にり以下
のような方法が知られている。
(Prior Art) The following methods are conventionally known as methods for enlarging and reducing binary images.

■SPC法 変換画素に最も近い位置にある1原画素を選択してその
濃度値を変換画素値とするもの。
(2) SPC method Selects one original pixel closest to the converted pixel and uses its density value as the converted pixel value.

■論理和法 交換画素a磨■rを最近接の4原画素△、B。■Logical sum method Replace pixel a polish ■ r with the nearest 4 original pixels △, B.

C,Dの濃度Ia、Ib、Ic、(clの論理和として
出力する一bの。即ち、 Ir−Ia Ulb (、Jrc Uld      
(1)■9分割法 原画素、A、B、C,Dの各位置を頂点とする方形領域
を9個の部分領域G1〜G8に分割し、変換画素が含ま
れる部分領!iiI!Qm(m−1〜9)に応じて定ま
る所定の論理演算式を用いて変換画素潤度1rを決定す
るものである。例えばm =13の場合にはirは次式
で求まる。
The concentrations Ia, Ib, Ic, (cl) of C and D are output as the logical sum of 1b. That is, Ir-Ia Ulb (, Jrc Uld
(1) ■ 9-division method Divide the rectangular area whose vertices are the positions of the original pixel, A, B, C, and D into 9 partial areas G1 to G8, and create partial areas that include the converted pixels! iii! The converted pixel wetness level 1r is determined using a predetermined logical operation formula determined according to Qm (m-1 to 9). For example, when m = 13, ir can be found using the following equation.

Ir−TdLノ Ia               
      (2)■投影法 変換画素に投影される原画素の平均濃度frを求め、そ
の値を闇値処理して変換画素値Irとするもの。
Ir-TdLノIa
(2) ■ Calculate the average density fr of the original pixel projected onto the projection method converted pixel, and perform darkness value processing on that value to obtain the converted pixel value Ir.

(発明が解決しようとりる問題点) SF)C法の場合、処理【ま的中であるが縮小時にスト
ロークが細くなる傾向があり、スl−a−りの連結性が
失われることによる扱(Jが生じ易いという不具合があ
る。論理和法の]場合、ス1−口−りが太くなるが、縮
小時にはス1−口−りの不必要な連結が生じて画像のっ
ぷれが目v1ってしまうという不具合がある。9分割法
の場合、画像縮小時にストロークを太らせ“ることにJ
、って画(9の見易さの向−Fを図ることができるが、
拡大変換時にもストロークが太くなるので画像品質を劣
化させてしまうという不具合がある。R後に投影法の場
合、変換画像の汰けやっぷれが少なく原画像の相似関係
がよく保存される。しかしながら、演算処理量が多いの
で処理時間が大きくなるという不具合がある。
(Problems to be solved by the invention) SF) In the case of the C method, the processing [is accurate, but the stroke tends to become thinner when reduced, and the connection between the strokes and the strokes is lost. (There is a problem that J is likely to occur. In the case of the disjunction method), the lines become thicker, but when reducing the size, unnecessary connections of the lines occur and the image becomes noticeably bulky. There is a problem that the 9-division method makes the stroke thicker when reducing the image.
, (although it is possible to improve the visibility of 9 - F,
There is a problem in that the stroke becomes thicker even during enlargement conversion, which deteriorates the image quality. In the case of the projection method after R, the converted image is less distorted and the similarity of the original image is well preserved. However, since the amount of calculation processing is large, there is a problem that the processing time becomes long.

ところで、アイザ画像等の擬似中間調2値画像を従来技
術を用いて拡大・縮小を行うとモアレ縞の発生や解像力
の低下、階調パターンの変化といった不都合な現象があ
った。又、文字や線画等の2値画像を拡大する場合に文
字のつぶれ、縮小時に細線のかすれという不都合な現象
があり、大幅な画像劣化をきたしていた。
By the way, when a pseudo halftone binary image such as an Iser image is enlarged or reduced using conventional techniques, there are disadvantageous phenomena such as occurrence of moiré fringes, reduction in resolution, and change in gradation pattern. Furthermore, when enlarging a binary image such as a character or a line drawing, there is an inconvenient phenomenon in which the characters become blurred and when reduced, thin lines become blurred, resulting in significant image deterioration.

本発明は、このような点に鑑みてなされたものであって
、その目的は、本質的に焦か白しかない文字や線画等の
2値画像や擬似的に中間調を表現したディザ画像の両方
を良好に拡大・縮小することのできる2値画像の拡大・
縮小方法を実現することにある。本発明によれば文字と
中間調画像が混在した2値画像の拡大・縮小に非常に有
利である。
The present invention has been made in view of these points, and its purpose is to improve binary images such as characters and line drawings that are essentially only burnt white, and dithered images that express halftones in a pseudo manner. Binary image enlargement/reduction that allows both to be enlarged/reduced well.
The goal is to realize a reduction method. The present invention is very advantageous in enlarging and reducing binary images containing a mixture of characters and halftone images.

(問題点を解決するための手段) 前記した問題点を解決する本発明は、白領域と黒領域か
らなる2値画像内に推定すべぎ中間調画像の各画素毎に
少なくとも1画素×1画素の大きさのものを含む複数種
の走査開口を設定し、各走査開口内の2値画像と、当該
開口内の白領域と黒領域の比率に基づいた推定値から作
成した2値画像とを各走査開口毎に比較し、推定すべき
中間調画像の1画素毎に最適な走査開口のnt定植を求
め、該推定値に基づいて中間調画像を作成し、この中間
調画像に対して拡大・縮小処理を行った後2値化するよ
うにしたことを特徴とするものである。
(Means for Solving the Problems) The present invention, which solves the above-mentioned problems, has the advantage of at least one pixel x one pixel for each pixel of a halftone image that should be estimated in a binary image consisting of a white area and a black area. Multiple types of scanning apertures, including those with a size of Compare each scanning aperture, find the optimal scanning aperture nt setting for each pixel of the halftone image to be estimated, create a halftone image based on the estimated value, and enlarge this halftone image. - It is characterized in that it is binarized after performing reduction processing.

(作用) 本発明は各画素毎に少なくとも1画素×1画素の大きさ
のものを含む複数種の走査開口を設定し、所定の判定処
理を行って各画素に対して1つの走査開口を選択するよ
うにした。シークンスとしては、本発明は2値画像を一
度中間調画像に戻し、その中間1画像を拡大・縮小し、
再び2硝化して、拡大2値画像を作成するようにしてい
る。そして、2値画像を中間調に戻す際、ディザ画像の
ように本質的には中間調である画像はなるべく元の中間
調画像に近い画像を推定し、文字画や線画はなるべく元
の白か黒に保ったJξりJ、にη−る方法を採用してい
る。
(Function) The present invention sets a plurality of types of scanning apertures including those having a size of at least 1 pixel x 1 pixel for each pixel, performs a predetermined judgment process, and selects one scanning aperture for each pixel. I decided to do so. As a sequence, the present invention once returns a binary image to a halftone image, enlarges/reduces one intermediate image,
The image is dinitrated again to create an enlarged binary image. When returning a binary image to halftone, images that are essentially halftone, such as dithered images, are estimated to be as close to the original halftone image as possible, and text and line drawings are estimated to be as close to the original white as possible. A method is adopted in which JξriJ and η− are kept black.

(実施例) 以下、図面を参照して本発明の実施例をBy細に説明す
る。
(Embodiments) Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.

第1図は本発明の一実施例を示すフローチャートである
。以下、このブローチ1フートに沿って説明づる。
FIG. 1 is a flowchart showing one embodiment of the present invention. The following will explain one foot of this broach.

ステップ■ 白領域と黒領域からなる2値画像内に各画素毎に少なく
とも1画素×1画素の大きさのものを含む複数種の開口
を設定する。
Step (2) A plurality of types of apertures, including those having a size of at least 1 pixel x 1 pixel, are set for each pixel in a binary image consisting of a white region and a black region.

ここでは、先ず組織的ディザ法の1つとして4×4のベ
イヤ(B ayer)形マトリクスを閾値マトリクスと
して用いた場合を例にとって説明する。
First, an example will be described in which a 4×4 Bayer type matrix is used as a threshold matrix as one of the systematic dither methods.

第2図は本発明を説明するためのマトリクス例を示す図
である。(イ)はディジタルデータに変換されたAリジ
ナル中間調画像、(ロ)は4×4のベイヤ形ディザ閾値
マトリクス、(ハ)は閾値マトリクス(ロ)によって白
黒2値画像(ディザ画像)に変換されたオリジナル画像
(イ)のディザ画像く2値画像)である。ここで、ベイ
ヤ形閾植71−リクスとは図(ロ)に示すようにドツト
が分散するディザパターンをとるものである。
FIG. 2 is a diagram showing an example of a matrix for explaining the present invention. (A) is the A original halftone image converted to digital data, (B) is a 4x4 Bayer dither threshold matrix, (C) is converted to a black and white binary image (dither image) using the threshold matrix (B) This is a dithered image (binary image) of the original image (a). Here, the Bayer type thresholding 71-lix has a dither pattern in which dots are dispersed as shown in Figure (B).

第3図は本発明に用いる複数種の走査開口(単位領域)
の−例を示す図である。Zは1行×1列の大きさの、△
は2行×2列の大きさの、Bは2行×4列の大きさの、
Cは4行×2列の大きさの、Dは4行×4列の大きさの
イれぞれ走査開口を示している。本実施例では図J、り
明らかなように2行×1列及び1行×2列の走査量E」
は、文字画と階調画が混在づ−る画像の画像復元特性が
悪いので用いられていない。
Figure 3 shows multiple types of scanning apertures (unit areas) used in the present invention.
FIG. Z is △ of size 1 row x 1 column
has a size of 2 rows x 2 columns, B has a size of 2 rows x 4 columns,
C indicates a scanning aperture having a size of 4 rows by 2 columns, and D indicates a scanning aperture having a size of 4 rows by 4 columns. In this embodiment, as shown in Figure J, the scanning amount E is 2 rows x 1 column and 1 row x 2 columns.
is not used because it has poor image restoration characteristics for images in which character images and gradation images are mixed.

ここで、Z、Δ−Dの各走査量LJ中に示した黒丸は、
第2図(ハ)のfイリ゛画像」−を移動させる時の移動
中心である。尚、行1列共に画素に対応している。例え
ば2行×4列の大きさく12画素×4画素の大きさに対
応する1、尚、走査量1」としく−1画素×1画素を選
んだのは文字画と階調画が混在する画像から文字画を良
好に再生覆るためである。本発明は、これら複数種の間
口のうち最38な開口を1つ選択するものて゛あるが、
最も[3!iな間口を選択するに当たって次のことを考
慮する必要がある。即ち、人間の視覚は低空間周波数領
域(画素レベル変化が少ない領域)においては高い階調
判別能力を持ち、高空間周波数領域(画素レベル変化が
多い領域〉においては低い階調判別能力しか持っていな
いという特性を有している。
Here, the black circles shown in each scanning amount LJ of Z and Δ-D are
This is the center of movement when moving the "f" image in FIG. 2(c). Note that both rows and columns correspond to pixels. For example, 1 corresponds to the size of 2 rows x 4 columns and 12 pixels x 4 pixels, and the scanning amount is 1''.The reason why we chose -1 pixel x 1 pixel is because character images and gradation images are mixed. This is to reproduce and cover character images from images in a good manner. The present invention selects one of the maximum 38 openings among these multiple types of frontages,
The most [3! When selecting an ideal frontage, it is necessary to consider the following: In other words, human vision has a high gradation discrimination ability in low spatial frequency regions (regions with few pixel level changes), but only a low gradation discrimination ability in high spatial frequency regions (regions with many pixel level changes). It has the characteristic that there is no

そこで、低空間周波数領域においては大ぎな開口を用い
て高い階調表現を行い、高空間周波数領域においては小
さな開口を用いて高い解像力の画像を再現すれば仝休と
して高品質の中間調画像を得ることができる。因みに、
これら第3図に示す走査開口を固定したままで、第2図
(ハ)のディプ画像上を移動させ、走査開口中の白画素
数乃至は黒画素数くここでは白画素数をとった)をカウ
ントして中間調画像の推定値とすると、第4図(イ)乃
至〈ホ)に示すような推定中間調画像が得られる。ここ
で(イ)は第3図7による、(ロ)は第3図へによる、
(ハ)は第3図Bによる、(ニ)は第3図Cによる、(
ホ)は第3図りによるそれぞれ中間調画像である。
Therefore, if a large aperture is used to express high gradation in the low spatial frequency region, and a small aperture is used to reproduce a high resolution image in the high spatial frequency region, a high-quality halftone image can be obtained as a rest. Obtainable. By the way,
While keeping the scanning apertures shown in Fig. 3 fixed, they were moved on the dip image shown in Fig. 2 (c), and the number of white pixels or black pixels in the scanning aperture was calculated. When the estimated value of the halftone image is counted, estimated halftone images as shown in FIGS. 4(A) to 4(E) are obtained. Here, (a) is based on Figure 3 7, (b) is based on Figure 3,
(C) is based on Figure 3B, (D) is based on Figure 3C, (
E) are halftone images based on the third drawing.

ステップ■ 先ず、最大開口りを選択する。Step ■ First, select the maximum aperture.

ステップ■で説明したように、本発明の基本的B− な考え方は、間L1内にAリジナル中間調画像の濃度変
化が認められない限り、できるだけ大きな間口を選択す
るものである。従って、ここでは間1]選択の順序を第
5図に示TJ J:うに[〕→C−→B→A→Zにとる
。第4図(ホ)に示す中間調画像を得る方法について説
明でる。
As explained in step (2), the basic idea of the present invention is to select the widest possible width as long as no change in density of the A original halftone image is observed within the gap L1. Therefore, here, the order of selection is shown in FIG. The method for obtaining the halftone image shown in FIG. 4(E) will now be explained.

今、(ホ)で定義した走査開口を第6図に示すようにデ
ィザ画像の初期位置(移動中心が第2行第2列の右下に
くる位置。以下(2,2)と表わす)に重ねる。この場
合、図のにうに走査開口内に含まれる画素は、各々完全
に含まれていることが望ましい。即ち、ある画素の一部
が欠けて含まれることがないようにすることが望ましい
。尚、ここでは見易くするため、黒値を斜線で示した。
Now, move the scanning aperture defined in (e) to the initial position of the dithered image (the position where the center of movement is at the bottom right of the second row and second column, hereinafter expressed as (2, 2)) as shown in Figure 6. Overlap. In this case, it is desirable that each pixel contained within the scanning aperture as shown is completely contained. That is, it is desirable to prevent a certain pixel from being partially missing. Note that the black values are shown with diagonal lines here for ease of viewing.

次にこの走査開口で囲まれた部分の白画素数を数えてそ
の値を中間調の推定値とする。図に示づ゛状態で走査開
口内の白画素数を数えると7である。
Next, the number of white pixels in the area surrounded by this scanning aperture is counted, and this value is used as the estimated value of the halftone. The number of white pixels within the scanning aperture in the state shown in the figure is 7.

従って、中間調推定ii!ii像の1行1列目(1,1
>の推定値は7である。次に、走査量[1を1画素分く
この場合1列)だけ移動させて、当該走査問口内の白画
素数を前述と同様に数えると7となる。
Therefore, halftone estimation ii! The 1st row and 1st column of the ii statue (1, 1
The estimated value of > is 7. Next, by moving the scanning amount [1 by one pixel, in this case one column], and counting the number of white pixels in the scanning interrogation in the same manner as described above, it becomes 7.

同様の操作を同行について行う、、イして、第1行[1
が終了したら、走査開口りを1行だけ次の行に移動さけ
て、中心が(3,2)の画素右下から中間温度推定操作
を開始する。そして、最後の行のR後の列まで走査開口
を移動させて中間調画像推定値を求めて、中間調画像推
定操作を終了し、第4図(ホ)に示す中間調画像が1q
られる。
Perform the same operation for accompanying.
When this is completed, the scanning aperture is moved by one line to the next line, and the intermediate temperature estimation operation is started from the lower right of the pixel whose center is (3, 2). Then, the scanning aperture is moved to the column after R in the last row to obtain the halftone image estimated value, and the halftone image estimation operation is completed, and the halftone image shown in FIG.
It will be done.

次に、第4図(ハ)に示す走査開口Bを用いた推定中間
調画像を求める方法について説明する。
Next, a method for obtaining an estimated halftone image using the scanning aperture B shown in FIG. 4(c) will be described.

この場合、最も大きい走査開口りと移動中心を合わせる
必要があるから、走査開口Bの移動開始位置は第7図に
示すようなものとなる。この状態にお番プる白画素数は
2であり、面積を第3図りに合わせるためには開口内の
白画素数を2倍にしてやる必要があるので、白画素数は
2X2=4となる。
In this case, since it is necessary to align the movement center with the largest scanning aperture, the movement start position of the scanning aperture B will be as shown in FIG. The number of white pixels in this state is 2, and in order to match the area to the third diagram, it is necessary to double the number of white pixels in the aperture, so the number of white pixels is 2X2 = 4. .

この場合、走査開口Bのゲインは2であるという。In this case, the gain of the scanning aperture B is said to be 2.

同様にして、第3図の各走査開口のゲインを求めると、
7は16、Aは4、Cは2である。このような耐算を走
査開口Bを1画素移動させる毎に行えば、第4図(ハ)
に示す11]定中間調画像が1【1られる。第4図(イ
)、(ロ)、くべ)、〈二)についても同様にとえれば
よいので説明は省略づる。
In the same way, the gain of each scanning aperture in Fig. 3 is calculated as follows:
7 is 16, A is 4, and C is 2. If such calculation is performed every time the scanning aperture B is moved by one pixel, the result shown in Fig. 4 (C) is obtained.
The constant halftone image shown in 11] is converted to 1[1]. 4 (a), (b), (b), and (2) can be considered in the same way, so their explanations will be omitted.

上述したようイ゛ム方法に、J、って1)中間調画像を
比較的良好に推定することができる。第4図のデータは
、このようにして求めたeftft間調画像を示す図で
ある。勿論、このような方法では、第2図(イ)に示す
オリジナル中間調画像よりも情報量の少ないディザ画像
(同図(ハ))から中間調画像を推定するのであるから
、第4図(ホ)に示J−ように完全に11オリジナル中
間調画像には戻らない。しかしながら、オリジナル中間
調画像の画素レベルが急激に変化づるどころ以外では、
オリジナル中間調画像にかイ【り近似し/j中間調画像
が背られる。特に、走査量I−I D内に瀧1α変化が
4「い麟には、推定しlζ中間調画像値はAリジ−ノー
ル中間調画像値に完全に一致りる。1ぞこで、前述【7
.たような原理により低空間周波l!!!領鐵において
は大きな走査同口を用いて高い階調表現を行い、高空間
周波数領域においては小さイ【囲[=1を用いて高い解
像力の画像を再現すれば、第4図に示す中間調画像推定
値よりも更によい中間調画像の推定を行うことができる
As described above, the image method J is capable of 1) estimating a halftone image relatively well; The data in FIG. 4 is a diagram showing the eftft halftone image obtained in this manner. Of course, in such a method, the halftone image is estimated from the dithered image (FIG. 2(C)), which has a smaller amount of information than the original halftone image shown in FIG. As shown in E), the image does not completely return to the original halftone image of 11. However, unless the pixel level of the original halftone image changes rapidly,
The original halftone image is approximated and the halftone image is distorted. In particular, if there is a change of 1α in the scan amount I-ID, the estimated lζ halftone image value completely matches the A rigid norm halftone image value. [7
.. Due to the principle as above, low spatial frequency l! ! ! In Ryotetsu, high gradation is expressed using a large scanning aperture, and in the high spatial frequency region, if a high resolution image is reproduced using a small image [circle [=1], the halftones shown in Fig. 4 are reproduced. It is possible to estimate a halftone image even better than the image estimation value.

ステップ■ 選択開口内の白領域と黒領域の比率に基づいた推定値を
得、この推定値を当該間口の大ぎざに対応したディザマ
トリクスにより再2値化する。
Step (2) Obtain an estimated value based on the ratio of the white area to the black area within the selected opening, and re-binarize this estimated value using a dither matrix corresponding to the serrations of the opening.

ここでは、ディジタル2値画像が既にメモリ等の記憶手
段に格納されているものとして、これらディジタル2値
画像に対して、複数種の走査開口を設定し、ディジタル
2値画像に所定の演算処理を施して、1画素毎に前記複
数種の走査開口から最適なものを1つ選び、当該選択さ
れた走査開口内の白画素数(乃至は黒画素数)をカウン
トして中間調画像の推定値を得るものである。前記所定
の演算処理どしては、低空間周波数領域〈画素レベル変
化が少ない領域)において大きな開口が、高空間周波数
領域(画素レベル変化が多い領域)において小さな開口
が選択される□ようなアルゴリズムが用いられる。
Here, assuming that digital binary images are already stored in a storage means such as a memory, multiple types of scanning apertures are set for these digital binary images, and predetermined arithmetic processing is performed on the digital binary images. For each pixel, one of the plurality of types of scanning apertures is selected, and the number of white pixels (or the number of black pixels) within the selected scanning aperture is counted to obtain an estimated value of the halftone image. This is what you get. The predetermined arithmetic processing uses an algorithm that selects a large aperture in a low spatial frequency region (region with few pixel level changes) and a small aperture in a high spatial frequency region (region with many pixel level changes). is used.

第8図を用いて説明する。ここでは、前述したように先
ず、走査開口としてDが選択される。そして、選択間口
りを第2図〈ハ)の初期位置く第6図参照)に重ねると
第8図(イ)に示4通りとなる。この開口内の白画素数
をカウントづると7である。この白画素数7が平均的画
素レベルであるものとして(ロ)に示すように各画素を
7で埋め合わせる。(ロ)に示ツSTl均画素しベル像
を(ハ)に示す同値マトリクスで2値化覆ると(ニ)に
示すような2値画@(再2 tff画像)が得られる。
This will be explained using FIG. Here, as described above, first, D is selected as the scanning aperture. Then, if the selected width is superimposed on the initial position of FIG. 2 (c) (see FIG. 6), four options are obtained as shown in FIG. 8 (a). The number of white pixels within this aperture is 7. Assuming that this number of white pixels, 7, is the average pixel level, each pixel is padded with 7 as shown in (b). When the ST1 equal pixel shown in (b) and the Bell image are binarized and overturned with the equivalence matrix shown in (c), a binary image @ (re-2 tff image) as shown in (d) is obtained.

ステップ■ 原2値画像と再2値画像が一致したかどうかを調べる。Step ■ Check whether the original binary image and the re-binary image match.

第8図について説明づ゛ると(・イ)に示づ原2値画像
〈イ)と再2値画像(ニ)とを比較する。図より明らか
なように(イ)ど(二〉のパターンは一致しない。(イ
)と(ニ)のパターンが同一パターンでないということ
は、画素レベル変化があったということになる。従って
、この場合には走査開口りは不適当ということになる。
To explain FIG. 8, the original binary image (A) shown in (A) and the re-binary image (D) will be compared. As is clear from the figure, patterns (a) and (ii) do not match.The fact that patterns (a) and (d) are not the same pattern means that there has been a pixel level change. In this case, the scanning aperture is inappropriate.

■稈(1)で走査量1」Dが選択されなかったのでステ
ップ■に進む。
■ Since scan amount 1''D was not selected for culm (1), proceed to step ■.

ステップ■ 次の走査開口を選択する。ここでは第5図の走査開口選
択順より次に走査量D Cを選択する。そして再度ステ
ップ■、■を行う。選択間口Cを第2図(ハ)の初期位
置に重ねると(ホ)に示づ通りとなる。この走査開口内
の白画素数をカウントすると4である。この白画素数に
ゲイン2をかけた8が平均的画素レベルであるものとし
て(へ)に示すように各画素を8で埋め合わせる。(へ
)に承り平均画素レベル像を(ト)に示す閾値マトリク
ス(第2図(ロ)の閾値マトリクスと2列目と3列目と
からなる、即ち走査開口内の閾値マトリクス)で2値化
すると(チ)に示すような再2値画像が得られる。ここ
で、原2値画像(ホ)と再2値画像(ブ)を比較すると
、同一パターンではない。即ち、不一致である。(ホ)
と(チ)のパターンが同一パターンでないということは
、画素レベル変化があったということになる。従って、
この場合も走査量1−]Cは不適当ということになる。
Step ■ Select the next scan aperture. Here, the scanning amount DC is selected next in the scanning aperture selection order shown in FIG. Then, perform steps ■ and ■ again. When the selected frontage C is superimposed on the initial position of FIG. 2 (c), the result is as shown in (e). The number of white pixels within this scanning aperture is counted as four. Assuming that 8, which is the number of white pixels multiplied by a gain of 2, is the average pixel level, each pixel is filled in with 8 as shown in (v). In response to (f), the average pixel level image is expressed as a binary value by the threshold matrix shown in (g) (consisting of the threshold matrix in Figure 2 (b) and the second and third columns, that is, the threshold matrix within the scanning aperture). When converted into a binary image, a re-binary image as shown in (H) is obtained. Here, when comparing the original binary image (E) and the re-binary image (B), they are not the same pattern. In other words, there is a mismatch. (E)
The fact that the patterns in and (h) are not the same pattern means that there has been a pixel level change. Therefore,
In this case as well, the scanning amount 1-]C is inappropriate.

T稈(2)で走査量rII Cが選択され4rかったの
で再度ステップ@、(?)を打う3゜ 次に選択される走査量[[1は13でdりる。イしで、
選択間口口を第2図(ハ)の初11)f◇置にflねる
と(す)に承り通りとなる。この開口内の白画素数をカ
ラン1〜覆ると2である。この白画素数にゲインをか1
yた4が平均的画素Lノベルであるものとして(ヌ)に
示づように各画素を4で埋め合わせる。
The scanning amount rII C was selected in T culm (2) and it was 4r, so step @, again press (?) 3゜The next selected scanning amount [[1 is d by 13. Yes,
If you set the selected frontage to the first 11) f◇ position in Figure 2 (c), the result will be as expected. The number of white pixels within this aperture is 1 to 2 when covered. Add a gain of 1 to this number of white pixels.
Assuming that y and 4 are the average pixel L novel, each pixel is padded with 4 as shown in (J).

(ヌ)に示づ平均画素レベル像を(ル)にホブ閾値マト
リクスで2値化11ると(オ)に示すような再2値画像
が111られる。ここで、原2値画@(す)ど再2値画
像(71)を比較するど、同一パターンである。即ち、
両パターンが一致づる。(イ)とく二)のパターンが同
一パターンであるということは、この走査開口内で画素
レベル変化がないということになる。従って、この場合
には走査開口Bば適当ということになる。尚、一致しな
い場合は同様の操作を最後の走査開口(ここでは7)ま
で繰り返Jことになる。即ち、最終的には走査量=15
− 口Zが求めるべき走査開口となる。
When the average pixel level image shown in (J) is binarized using a Hobb threshold matrix (L), a binary image as shown in (E) is obtained. Here, when comparing the original binary image @(s) and the re-binary image (71), the pattern is the same. That is,
Both patterns match. The fact that the patterns in (a) and (ii) are the same pattern means that there is no change in pixel level within this scanning aperture. Therefore, in this case, scanning aperture B is appropriate. If they do not match, the same operation is repeated until the last scanning aperture (7 in this case). That is, the final scanning amount = 15
- Mouth Z becomes the scanning aperture to be sought.

ステップ■ 一致した走査開口から得られた推定値を当該画素の中間
調画&11f定値とする。
Step (2) Use the estimated value obtained from the matched scanning aperture as the halftone image &11f constant value of the pixel.

前述のようにして走査開口Bが選択されると、当該走査
間口B内の白画素数は前述したように2である。走査開
口Bのゲインは2であるので、求めるべき画像推定値は
2X2=4となる。即ち、(ロ)に示した画素レベルが
、そのまま画像推定値となっている。以上の操作を第2
図(ハ)のディザ画像(2値画像)の各画素に対して行
うと、第9図に示すような推定中間調画像が得られる。
When the scanning aperture B is selected as described above, the number of white pixels within the scanning aperture B is 2 as described above. Since the gain of the scanning aperture B is 2, the estimated image value to be obtained is 2X2=4. That is, the pixel level shown in (b) directly serves as the image estimate value. Perform the above operations in the second step.
When this is performed for each pixel of the dithered image (binary image) shown in FIG. 9(C), an estimated halftone image as shown in FIG. 9 is obtained.

因みに、各中間調画像推定にどの走査開口を用いたかを
、第1行の場合を例にとって説明すれば、中間調推定画
像の(1,1)が8、(1,2>がB、(1,3)がB
、(1,4,)がA、(1,5)がA、(1,6)が8
.(1,7)がDである。
Incidentally, to explain which scanning aperture was used for each halftone image estimation, taking the case of the first row as an example, (1, 1) of the halftone estimation image is 8, (1, 2> is B, ( 1, 3) is B
, (1,4,) is A, (1,5) is A, (1,6) is 8
.. (1,7) is D.

第10図は全ての選択間口を示す図である。FIG. 10 is a diagram showing all selected frontages.

第9図に示す推定中間調画像は、画素レベル変化の少な
い領域では大ぎな走査開口を用いて中間調画像をJet
定し、画素レベルの変化の多い領域では小さな走査量「
−1を用いて中間調画像を111定しているので、人間
の視覚特性に沿ったものとなっている。従って、Jf[
室中間調画像は、第2図(イ)に示すオリジナル中間調
画像に極め−C近いものとなっている。
The estimated halftone image shown in FIG.
In areas with many changes in pixel level, a small scanning amount is used.
Since the halftone image is fixed at 111 using -1, it is in line with human visual characteristics. Therefore, Jf [
The room halftone image is extremely close to -C to the original halftone image shown in FIG. 2(A).

ステップ■ 得られた中間調画像に拡大・縮小処理を行い、拡大・縮
小後の中間調画像を再2値化する。
Step (2) Perform enlargement/reduction processing on the obtained halftone image, and re-binarize the halftone image after enlargement/reduction.

第11図は推定中間調画像を拡大・縮小する場合を示す
フローチャートである。図に示すフローは、本発明によ
り推定された中間調画像を拡大・縮小し、拡大・縮小さ
れた中間調画像に対して閾値マトリクスを用いて新た4
【2値画像を得るものである。拡大・縮小の方法として
は、例えば補間法が用いられる。
FIG. 11 is a flowchart showing the case of enlarging/reducing an estimated halftone image. The flow shown in the figure enlarges/reduces the halftone image estimated by the present invention, and uses a threshold matrix to create a new four-tone image for the enlarged/reduced halftone image.
[This is to obtain a binary image. As a method of enlarging/reducing, for example, an interpolation method is used.

第12図(イ)は、第9図に承り中間調画像をニアリス
トネイバーフツド(N carestN etgbbo
rhoocl法)にJ、って、1.25倍に拡大した中
間調画像、(ロ)は同じ<0.75倍に縮小した中間調
画像である。これら中間調画像に対して、それぞれ(ハ
)、(ニ)に示すディザマトリクスを用いて再2値化す
ると、(ホ)、くべ)に示すような再2値画像が得られ
る。
FIG. 12(A) shows a halftone image similar to FIG.
rhoocl method), J is a halftone image enlarged by 1.25 times, and (b) is a halftone image reduced by the same <0.75 times. When these halftone images are re-binarized using the dither matrices shown in (c) and (d), respectively, re-binarized images as shown in (e) and (kube) are obtained.

前記ディザ画像はランダムディザや条盲付ディザよりも
最大面積の間口に閾値が1つずつ入るように、組織的デ
ィザ法にJ:るディザ画像が好ましく、又、小面積の間
口にも闇値が均等に入るような分散形ディザ画像が好ま
しく、完全に閾値が分散したベイヤ形ディザ画像が特に
好ましい。
The dithered image is preferably a dithered image using a systematic dithering method so that one threshold value is entered at each frontage of the largest area than random dithering or striped dithering, and a dark value is also applied to the frontage of a small area. A distributed dither image in which the threshold values are evenly distributed is preferable, and a Bayer dither image in which the threshold values are completely distributed is particularly preferable.

上記の説明においては、中間調画像を推定するのに、走
査開口内の白画素数をカウントする場合を例にとった。
In the above description, the case where the number of white pixels within the scanning aperture is counted to estimate a halftone image has been taken as an example.

しかしながら、本発明はこれに限るものではなく、黒画
素数をカウントするようにしてムよい。
However, the present invention is not limited to this, and the number of black pixels may be counted.

上述の説明では、1画素ずつスキャンして中間調を得て
いたが本発明はこれに限るものではなく、2画素以上ず
つスキャンするようにしてもよい。
In the above description, halftones are obtained by scanning one pixel at a time, but the present invention is not limited to this, and two or more pixels may be scanned at a time.

又、上述の説明においては、複数種の走査開口として4
種類の場合を例にとったが、本発明はこれに限る必要t
、t ’l <、1 tr X 1列の大きさの間「1
を含んでいれば任意の種類を用いてもよい。更に、走査
量[]の大込さも例示のものに限る必要はなく、1行×
1列の大きさの間口を含んでいれば任意の大きさのもの
を用いることができる。
In addition, in the above explanation, four types of scanning apertures are used.
Although the case of the type is taken as an example, the present invention is not limited to this case.
, t 'l <, 1 tr
Any type may be used as long as it includes. Furthermore, the amount of scanning [ ] need not be limited to the example shown, and can be as large as 1 line x
Any size can be used as long as it includes a frontage the size of one row.

(発明の効果) 以上詳細に説明したJ、うに、本発明によれば、複数種
の走査開口を設定し、これらの走査量[]から各画素毎
に所定の油筒により最適な走査量[−1を選択しながら
ディザ画像十を走査し、当該走査開口内の自画素数をカ
ウン]−シ、当該カラン1−1直を推定中間調画像値と
することにより、オリジナル中間調画像に近い画像を1
!7ることができる。本発明によれば、線画と階調画が
混在する画像であ・)でも良好に画像再生を行うことが
でさる1、このJ、うにして求まった中間調画像H1定
値は、人間の視覚特性が考慮されているので、オリジナ
ル中間調画像により近いものどなる。イし−(、中間調
画像が得られると階調変換、拡大・縮小等の梗々の処理
を行うことができる。
(Effects of the Invention) According to the present invention described in detail above, a plurality of types of scanning apertures are set, and from these scanning amounts [], the optimum scanning amount [] is determined for each pixel by a predetermined oil cylinder Scan the dithered image while selecting -1 and count the number of self-pixels within the scanning aperture. 1 image
! 7. According to the present invention, it is possible to perform image reproduction satisfactorily even in images where line drawings and gradation drawings are mixed. Since the characteristics are taken into account, the resulting image is closer to the original halftone image. Once a halftone image is obtained, extensive processing such as gradation conversion, enlargement/reduction, etc. can be performed.

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

第1図は本発明の一実施例を示すフローチャート、第2
図はオリジナル中間調画像からディザ画像を1りる場合
の説明図、第3図は複数種の走査開口を示す図、第4図
は得られた推定中間調画像例を示す図、第5図は走査開
口の選択順を示す図、第6図乃至第8図は本発明方法の
説明図、第9図は本発明により1qられた推定中間調画
像例を示覆−図、第10図は選択間口を示す図、第11
図は拡大・縮小を示すフローチャート、第12図は拡大
・縮小による2値化処理を示す図である。 特許出願人  小西六写真工業株式会社代  理  人
   弁理士  井  島  藤  治外1名 第2図 第3図 (C)        (D) AI「 第4図 (ホ) 開口D 第11図 角等12図 (イ)             (ロ)(ハ)   
         (ニ)ディザマトリクス     
       ディザマトリクス(ホ)       
      (へ)し l盤 − 拡大ディザ画像
FIG. 1 is a flowchart showing one embodiment of the present invention, and FIG.
The figure is an explanatory diagram when one dither image is extracted from the original halftone image, Figure 3 is a diagram showing multiple types of scanning apertures, Figure 4 is a diagram showing an example of the obtained estimated halftone image, and Figure 5 6 to 8 are diagrams illustrating the selection order of scanning apertures, FIGS. 6 to 8 are explanatory diagrams of the method of the present invention, FIG. Diagram showing selection frontage, No. 11
The figure is a flowchart showing enlargement/reduction, and FIG. 12 is a diagram showing binarization processing by enlargement/reduction. Patent applicant Roku Konishi Photo Industry Co., Ltd. Agent Patent attorney Fuji Ijima 1 person Figure 2 Figure 3 (C) (D) AI Figure 4 (E) Opening D Figure 11 Corners etc. 12 (B) (B) (C)
(d) Dither matrix
Dither matrix (E)
(to) Shi version - enlarged dithered image

Claims (7)

【特許請求の範囲】[Claims] (1)白領域と黒領域からなる2値画像内に推定すべき
中間調画像の各画素毎に少なくとも1画素×1画素の大
きさのものを含む複数種の走査開口を設定し、各走査開
口内の2値画像と、当該開口内の白領域と黒領域の比率
に基づいた推定値から作成した2値画像とを各走査開口
毎に比較し、推定すべき中間調画像の1画素毎に最適な
走査開口の推定値を求め、該推定値に基づいて中間調画
像を作成し、この中間調画像に対して拡大・縮小処理を
行った後2値化するようにしたことを特徴とする2値画
像の拡大・縮小方法。
(1) Multiple types of scanning apertures, including those with a size of at least 1 pixel x 1 pixel, are set for each pixel of the halftone image to be estimated in a binary image consisting of a white area and a black area, and each scan The binary image within the aperture is compared with the binary image created from the estimated value based on the ratio of the white area to the black area within the aperture for each scanning aperture, and each pixel of the halftone image to be estimated is calculated. The present invention is characterized in that an estimated value of an optimal scanning aperture is determined, a halftone image is created based on the estimated value, and the halftone image is subjected to enlarging/reducing processing and then binarized. How to enlarge/reduce binary images.
(2)前記複数種の走査開口には2画素×1画素及び1
画素×2画素の大きさのものを含まないことを特徴とす
る特許請求の範囲第1項記載の2値画像の拡大・縮小方
法。
(2) The plurality of types of scanning apertures include 2 pixels x 1 pixel and 1 pixel.
2. The method for enlarging/reducing a binary image according to claim 1, wherein the method does not include an image having a size of pixel×2 pixels.
(3)前記2値画像は擬似中間調2値画像を含むもので
あることを特徴とする特許請求の範囲第1項記載の2値
画像の拡大・縮小方法。
(3) The method for enlarging/reducing a binary image according to claim 1, wherein the binary image includes a pseudo-halftone binary image.
(4)前記擬似中間調2値画像がディザ画像であること
を特徴とする特許請求の範囲第3項記載の2値画像の拡
大・縮小方法。
(4) The method for enlarging/reducing a binary image according to claim 3, wherein the pseudo halftone binary image is a dithered image.
(5)前記ディザ画像が組織的ディザ画像であることを
特徴とする特許請求の範囲第4項記載の2値画像の拡大
・縮小方法。
(5) The method for enlarging/reducing a binary image according to claim 4, wherein the dithered image is a systematic dithered image.
(6)前記ディザ画像がドット分散形ディザ画像である
ことを特徴とする特許請求の範囲第4項記載の2値画像
の拡大・縮小方法。
(6) The method for enlarging/reducing a binary image according to claim 4, wherein the dithered image is a dot-dispersed dithered image.
(7)前記ドット分散形ディザ画像がベイヤ形ディザ画
像であることを特徴とする特許請求の範囲第6項記載の
2値画像の拡大・縮小方法。
(7) The method for enlarging/reducing a binary image according to claim 6, wherein the dot-dispersed dithered image is a Bayer dithered image.
JP60257495A 1985-11-15 1985-11-15 Enlargement and reduction method for binary picture Granted JPS62117470A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP60257495A JPS62117470A (en) 1985-11-15 1985-11-15 Enlargement and reduction method for binary picture
US03/929,622 US4803558A (en) 1985-11-15 1986-11-10 Halftone image estimation methods for dither images
DE19863639029 DE3639029A1 (en) 1985-11-15 1986-11-14 HALFTONE IMAGE METHOD FOR SHAKING IMAGES

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60257495A JPS62117470A (en) 1985-11-15 1985-11-15 Enlargement and reduction method for binary picture

Publications (2)

Publication Number Publication Date
JPS62117470A true JPS62117470A (en) 1987-05-28
JPH047149B2 JPH047149B2 (en) 1992-02-10

Family

ID=17307079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60257495A Granted JPS62117470A (en) 1985-11-15 1985-11-15 Enlargement and reduction method for binary picture

Country Status (1)

Country Link
JP (1) JPS62117470A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5825767A (en) * 1981-08-07 1983-02-16 Oki Electric Ind Co Ltd Picture processing device
JPS59163959A (en) * 1983-03-08 1984-09-17 Fujitsu Ltd Intermediate tone picture converting system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5825767A (en) * 1981-08-07 1983-02-16 Oki Electric Ind Co Ltd Picture processing device
JPS59163959A (en) * 1983-03-08 1984-09-17 Fujitsu Ltd Intermediate tone picture converting system

Also Published As

Publication number Publication date
JPH047149B2 (en) 1992-02-10

Similar Documents

Publication Publication Date Title
KR100280909B1 (en) Image rendering system
CA2097508C (en) Method and apparatus for halftone rendering of a gray scale image using a blue noise mask
US7082218B2 (en) Color correction of images
US6934056B2 (en) Noise cleaning and interpolating sparsely populated color digital image using a variable noise cleaning kernel
US5543941A (en) Method and apparatus for halftone rendering of a gray image using a blue noise mask
US5991438A (en) Color halftone error-diffusion with local brightness variation reduction
US20020118019A1 (en) Image processing methods and image processing apparatus
JPH0472433B2 (en)
JP3499921B2 (en) Pixel error diffusion method
JPH09183256A (en) Method of reproducing multiple-level multiple-color input images
US6025930A (en) Multicell clustered mask with blue noise adjustments
JP3639397B2 (en) Color image processing device by image area, image output device, image processing method, and storage medium
JPH0622123A (en) Half-tone mask for digital image and its formation method
JPS62117470A (en) Enlargement and reduction method for binary picture
US6597813B1 (en) Masks with modulated clustering and aperiodicity and rescaling of masks
JPH06205220A (en) Picture processor and printer
JPH0431466B2 (en)
JPS62157468A (en) Expanding/reducing method for binary image
JP3669081B2 (en) Image processing device
US20050275899A1 (en) Dithering method and related apparatus using aperiodic tiling rule
JPS61288568A (en) Method for estimating halftone picture of binary picture
JPH0453350B2 (en)
JP3094810B2 (en) Color image processing equipment
JPS62164371A (en) Estimation method for halftone picture of multivalued picture
JPS62294380A (en) Estination method for halftone image