Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0460389B2 - - Google Patents
[go: Go Back, main page]

JPH0460389B2 - - Google Patents

Info

Publication number
JPH0460389B2
JPH0460389B2 JP60034117A JP3411785A JPH0460389B2 JP H0460389 B2 JPH0460389 B2 JP H0460389B2 JP 60034117 A JP60034117 A JP 60034117A JP 3411785 A JP3411785 A JP 3411785A JP H0460389 B2 JPH0460389 B2 JP H0460389B2
Authority
JP
Japan
Prior art keywords
image
pattern
block
pixels
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 - Lifetime
Application number
JP60034117A
Other languages
Japanese (ja)
Other versions
JPS61194972A (en
Inventor
Masahiko Matsunawa
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 JP60034117A priority Critical patent/JPS61194972A/en
Priority to US06/813,050 priority patent/US4783838A/en
Priority to DE19853546136 priority patent/DE3546136A1/en
Publication of JPS61194972A publication Critical patent/JPS61194972A/en
Publication of JPH0460389B2 publication Critical patent/JPH0460389B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は画像の拡大又は縮小の少なくとも一方
を行う画像拡大・縮小方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image enlarging/reducing method for at least one of enlarging or reducing an image.

(従来の技術) 画素密度変換方式により画像を拡大又は縮小す
る画像拡大・縮小方法として、従来から単純間引
き法、SPC法、論理和法、9分割法、投影法等が
知られている。
(Prior Art) As an image enlargement/reduction method for enlarging or reducing an image using a pixel density conversion method, the simple thinning method, SPC method, logical sum method, 9-division method, projection method, etc. are conventionally known.

(発明が解決しようとする問題点) このような方法は、プリンタやフアクシミリ等
において用いられており、主に線画・文字画の拡
大・縮小方法として知られている。これらの方法
を階調のある画像に適用する場合には、倍率が整
数倍であり、変倍後の画像の網ピツチは異なつた
ものとなるのが通例である。又、有理数倍する場
合には、画像の劣化(モアレ縞)を生じ、実用に
耐えない画像ができてしまうという問題があつ
た。
(Problems to be Solved by the Invention) Such a method is used in printers, facsimiles, etc., and is mainly known as a method for enlarging/reducing line drawings and character drawings. When these methods are applied to an image with gradation, the magnification is an integer multiple, and the dot pitch of the image after scaling is usually different. Furthermore, when multiplying by a rational number, there is a problem that image deterioration (moiré fringes) occurs, resulting in an image that is not suitable for practical use.

例えば、デイザマトリツクスを用いて2値化処
理した画像は、使用したデイザマトリツクスによ
つてそれぞれ異なつた特性を有しており、使用し
たデイザマトリツクスの種類によつては、画像の
拡大・縮小には適していない特性のものもある。
特に、ドツト分散型デイザマトリツクスを用いて
2値化処理した画像に対して縮小処理をしたり、
集中型デイザマトリツクスを用いて2値化処理し
た画像に対して拡大処理をしたりすると画質の劣
化が目立つことになる。
For example, images that have been binarized using a dither matrix have different characteristics depending on the dither matrix used, and depending on the type of dither matrix used, the image There are some properties that are not suitable for enlarging or reducing.
In particular, reduction processing is performed on images that have been binarized using a dot-distributed dither matrix.
When enlarging an image that has been binarized using a concentrated dither matrix, the deterioration in image quality becomes noticeable.

本発明は上記の問題点に鑑みてなされたもの
で、その目的は、拡大・縮小の前後で網ピツチを
不変にでき、且つ有理数倍の拡大・縮小を行え、
その場合に画像劣化を生じない画像拡大・縮小方
法を提供することにある。
The present invention has been made in view of the above-mentioned problems, and its purpose is to make it possible to keep the mesh pitch unchanged before and after enlargement/reduction, and to be able to perform enlargement/reduction by a rational number of times.
The object of the present invention is to provide an image enlargement/reduction method that does not cause image deterioration in that case.

(問題点を解決するための手段) 上記問題点を解決する本発明は、原画像である
第1の2値化画像を複数の画素からなる単位領域
に分割し、隣接する所定数の前記単位領域でもつ
て区画領域を形成させ、各区画領域毎に単位領域
内黒画素数のバラツキを求め、該バラツキが小さ
い区画領域に対しては大サイズの閾値マトリツク
スを用い、単位領域内黒画素数のバラツキが大き
い区画領域に対しては小サイズの閾値マトリツク
スを用いて第2の2値化画像を求め、該第2の2
値化画像をn×n個の画素からなる複数のブロツ
クf11,f12,……,f1j,……,f21,f22,……,
f2j,……,fij,……に分割すると共に、拡大・縮
小倍率がm/nであるときの拡大・縮小画像を求
めるに際しては、拡大・縮小画像が、行方向及び
列方向共、前記第2の2値化画像のブロツクと同
数であるように配列されたブロツクF11,F12,…
…,F1j,……,F21,F22,……,F2j,……,
Fij,……からなり、各ブロツクがm×m個の画
素からなるとし、前記第2の2値化画像の第i行
j列のブロツクfijの濃度マトリツクスパターンだ
けを2次元的に配列して構成した母パターンを想
定し、該母パターンから、m×m個の画素からな
るパターンを切り出したものを、拡大・縮小画像
の第i行j列のブロツクFijの濃度マトリツクス
パターンとして用いることにより、拡大・縮小画
像を得ることを特徴とするものである。
(Means for Solving the Problems) The present invention for solving the above problems divides a first binarized image, which is an original image, into unit regions each consisting of a plurality of pixels, and a predetermined number of adjacent units of the The area is divided into divided areas, and the variation in the number of black pixels within the unit area is determined for each divided area. For the divided area where the variation is small, a large-sized threshold matrix is used to calculate the number of black pixels within the unit area. For divided regions with large variations, a second binarized image is obtained using a small-sized threshold matrix, and the second binarized image is
The valued image is divided into multiple blocks f 11 , f 12 , ..., f 1j , ..., f 21 , f 22 , ..., consisting of n×n pixels.
When dividing into f 2j , ..., f ij , ... and obtaining an enlarged/reduced image when the enlargement/reduction magnification is m/n, the enlarged/reduced image is divided into Blocks F 11 , F 12 , . . . are arranged in the same number as the blocks of the second binarized image.
..., F 1j , ..., F 21 , F 22 , ..., F 2j , ...,
F ij , ..., and each block consists of m×m pixels, and only the density matrix pattern of the block f ij in the i-th row and j column of the second binarized image is two-dimensionally Assuming a mother pattern arranged in an array, a pattern consisting of m×m pixels is cut out from the mother pattern, and a density matrix pattern of the block F ij in the i-th row and j column of the enlarged/reduced image is obtained. This feature is characterized in that enlarged/reduced images can be obtained by using the image as an image.

(実施例) 以下、第1図乃至第7図を用いて、具体的に本
発明の画像拡大・縮小方法を説明する。
(Example) Hereinafter, the image enlargement/reduction method of the present invention will be specifically explained using FIGS. 1 to 7.

ここで拡大・縮小の対象である2値化画像であ
るが、これはデイザ法、濃度パターン法、網かけ
法等を用いて得られたものが通常用いられる。第
1図に例示した本発明方法では、閾値マトリツク
スとして、サイズが4×4のドツト分散型
(Bayer型)のデイザマトリツクス(第2図イ参
照)を用いて、デイザ法によりオリジナル画像A
(第2図ロ参照)を2値化した第2図ハに示す2
値化画像Bが拡大・縮小の対象として与えられて
いるものとする。尚、この第2図において、デイ
ザマトリツクス内及びオリジナル画像A内の数字
は規格化された濃度レベルを示し、2値化画像B
の斜線部分の画素は黒画素であることを示してい
る。
Here, the binary image to be enlarged/reduced is usually one obtained using a dither method, a density pattern method, a halftone method, or the like. In the method of the present invention illustrated in FIG. 1, a dot-distributed (Bayer-type) dither matrix with a size of 4×4 (see FIG. 2 A) is used as the threshold matrix, and the original image A is
(See Figure 2 B) is binarized as shown in Figure 2 C.
Assume that a digitized image B is given as an object to be enlarged or reduced. In FIG. 2, the numbers in the dither matrix and in the original image A indicate the standardized density levels, and the numbers in the dither matrix and the original image A indicate the standardized density levels,
The pixels in the shaded area are black pixels.

まずステツプでは、原画像である第1の2値
化画像を適当なサイズの単位領域UAに分割す
る。ここではデイザマトリツクスと同一サイズ
に、即ち第2図ハの如く4×4のサイズに分割し
ている。そして、各単位領域UA内の黒画素数
(或いは白画素数)を計数する(ステツプ)。
First, in step, the first binarized image, which is the original image, is divided into unit areas UA of appropriate size. Here, it is divided into the same size as the dither matrix, that is, into 4×4 sizes as shown in FIG. 2C. Then, the number of black pixels (or the number of white pixels) in each unit area UA is counted (step).

次に隣接する複数の単位領域UA(この例では
縦×横が2×2個のマトリツクス)でもつて区画
領域MAを形成させ、この区画領域MA毎に、単
位領域UA内黒画素数のバラツキを調べる(ステ
ツプ)。このバラツキεの値としては、例えば、
区画領域MAを形成する4つの単位領域UAの平
均黒画素数を算出し、前記4つの単位領域の各黒
画素数からこの平均黒画素数を引いたときの偏差
(絶対値)の最も大きいものを用いる。そして、
このバラツキεが予め設定した基準値ε0以下のと
きは、大サイズの閾値マトリツクスを用いて該当
区画領域MAの濃度マトリツクスパターン(白、
黒画素の配列)を求め、バラツキεが基準値ε0
りも大きいときは、小サイズの閾値マトリツクス
を用いて該当区画領域MAの濃度マトリツクスパ
ターンを求める。具体例で述べると、第3図イ中
の数字は各単位領域UAの黒画素数であり、左側
の区画領域MA(MA1)におけるバラツキεを前
述の如く求めると、ε=0.5となり、右側の区画
領域MA(MA2)におけるバラツキεを求める
と、ε=2.5となる。ここで、基準値ε0を例えば
ε0=1.5とすれば、区画領域MA1ではε<ε0とな
り、区画領域MA2ではε>ε0となる。そこで、
本実施例では、区画領域MA1では大サイズの閾
値マトリツクスを用い、区画領域MA2では小サ
イズの閾値マトリツクスを用いて、濃度マトリツ
クスパターンを求める。例えば、区画領域MA1
に対しては、区画領域MAに相当するサイズ(8
×8)の閾値マトリツクスを用い、区画領域
MA2に対しては、単位領域UAに相当するサイズ
(4×4)の閾値マトリツクスを用いて濃度マト
リツクスパターンを求める。第4図イは使用閾値
マトリツクスのサイズで仕切られた区画内の黒画
素数(第3図ロ参照)に基づき、各区画領域MA
上に濃度マトリツクスパターンを写したもので、
この例での濃度マトリツクスパターンの決定は、
閾値マトリツクスとして、8×8のサイズの場合
については、第5図イのデイザマトリツクスを用
い、このデイザマトリツクスと各区画内の黒画素
数(濃度レベルに対応している)との比較によつ
て行い、4×4のサイズの場合については、第5
図ロのデイザマトリツクスと各区画内の黒画素数
との比較によつて行つている。例えば区画Kの場
合、その黒画素数が10であるから、第5図ロのデ
イザマトリツクスの内、10以下の濃度レベルの部
分は黒画素となり、前述の第4図イのような濃度
マトリツクスパターンになる。このようにして得
た濃度マトリツクスパターンから第2の2値化画
像を求める(ステツプ)。
Next, a partitioned area MA is formed by a plurality of adjacent unit areas UA (in this example, a matrix of 2 x 2 vertically x horizontally), and for each partitioned area MA, the variation in the number of black pixels within the unit area UA is Investigate (step). The value of this variation ε is, for example,
Calculate the average number of black pixels in the four unit areas UA that form the divided area MA, and subtract this average number of black pixels from each of the four unit areas, and find the largest deviation (absolute value). Use. and,
When this variation ε is less than a preset reference value ε 0 , a large-sized threshold matrix is used to create a density matrix pattern (white,
If the variation ε is larger than the reference value ε 0 , the density matrix pattern of the corresponding divided area MA is determined using a small-sized threshold matrix. To give a concrete example, the numbers in Figure 3A are the number of black pixels in each unit area UA, and if the variation ε in the left partitioned area MA (MA 1 ) is determined as described above, ε = 0.5, and the right side The variation ε in the divided area MA (MA 2 ) is found to be ε=2.5. Here, if the reference value ε 0 is set to ε 0 =1.5, for example, ε<ε 0 in the divided area MA 1 and ε>ε 0 in the divided area MA 2 . Therefore,
In this embodiment, a large-sized threshold matrix is used for the divided area MA1 , and a small-sized threshold matrix is used for the divided area MA2 to obtain the density matrix pattern. For example, partition area MA 1
For , the size corresponding to the partitioned area MA (8
×8) using the threshold matrix,
For MA 2 , a density matrix pattern is determined using a threshold matrix of a size (4×4) corresponding to the unit area UA. Figure 4 (a) shows each divided area MA based on the number of black pixels within the area divided by the size of the threshold matrix used (see Figure 3 (b)).
The density matrix pattern is shown above.
The determination of the density matrix pattern in this example is
In the case of an 8 x 8 size threshold matrix, use the dither matrix shown in Figure 5A, and calculate the relationship between this dither matrix and the number of black pixels (corresponding to the density level) in each section. This is done by comparison, and in the case of 4×4 size, the fifth
This is done by comparing the dither matrix shown in Figure B with the number of black pixels in each section. For example, in the case of section K, the number of black pixels is 10, so in the dither matrix shown in Figure 5B, the portion with a density level of 10 or less becomes a black pixel, and the density level as shown in Figure 4B described above becomes a black pixel. It becomes a matrix pattern. A second binarized image is obtained from the density matrix pattern thus obtained (step).

次に、この第2の2値化画像をn×n個の画素
からなる複数のブロツクf11,f12,……,f1j,…
…,f21,f22,……,f2j,……,fij,……に分割
する。例えば第4図ロに示す如く4×4のサイズ
のブロツクBKに分割する(ステツプ)。以下、
このブロツクの濃度マトリツクスパターンを第1
の濃度マトリツクスパターンと呼ぶ。
Next, this second binarized image is divided into a plurality of blocks f 11 , f 12 , ..., f 1j , ... consisting of n×n pixels.
..., f 21 , f 22 , ..., f 2j , ..., f ij , .... For example, as shown in FIG. 4B, it is divided into 4×4 blocks BK (step). below,
The density matrix pattern of this block is
This is called the density matrix pattern.

ここで、拡大・縮小倍率がm/nであるときの
拡大・縮小画像が、行方向及び列方向共、前記第
2の2値化画像のブロツクと同数であるように配
列されたブロツクF11,F12,……,F1j,……,
F21,F22,……,F2j,……,Fij,……からなり、
各ブロツクがm×m個の画素からなるものとした
とし、又、前記第2の2値化画像の第i行j列の
ブロツクfijの第1の濃度マトリツクスパターンだ
けを2次元的に配列して構成したパターン(本願
明細書では、これを母パターンと呼ぶ)を想定す
る。次に、この母パターンから、m×m個の画素
からなるパターンを切り出したものを、拡大・縮
小画像の第i行j列のブロツクFijの濃度マトリ
ツクスパターン(以下、これを第2の濃度マトリ
ツクスパターンと呼ぶ)として用いる。各ブロツ
ク毎に、第2の濃度マトリツクスパターンを得
て、これをブロツク順に並べ拡大・縮小画像を得
る(ステツプ)。第6図イはこのようにして得
た拡大倍率5/4の拡大画像であり、第6図ロは縮
小倍率3/4の縮小画像である。ここで、第1,第
2の濃度マトリツクスパターンのサイズ比は、前
述のように、拡大・縮小倍率に応じたものであ
り、第2の濃度マトリツクスパターンの縦横のサ
イズは、第1の濃度マトリツクスパターンの縦横
のサイズに縦横の拡大・縮小倍率を乗じたもので
ある。従つて、縦横の倍率が等しい第6図の例で
は、第6図イの場合は5×5のサイズとなり、第
6図ロでは3×3のサイズとなつている。第7図
は第1の濃度マトリツクスパターンから第2の濃
度マトリツクスパターンを得る例を示す説明図
(拡大倍率5/4)で、第1の濃度マトリツクスパタ
ーン(サイズは4×4)のブロツクf11,f12,f13
……,f21,f22,……,……でなる平面を、第2
の濃度マトリツクスパターン(サイズは5×5)
のブロツクF11,F12,F13,……,F21,F22,…
…,……に区画した状態(尚、ブロツクf11の第
1行1列の画素とブロツクF11の第1行1列の画
素とは重なるような位置関係にある。)を示して
いる。まず、ブロツクF11に相当する第2の濃度
マトリツクスパターンとしては、全ブロツクf11
f12,f13,……,f21,f22,……,……に、ブロツ
クf11に相当する同一の第1の濃度マトリツクス
パターンが入つていると想定した母パターンか
ら、ブロツクF11の位置にあるパターンを切り出
したものを用いる。同様に、ブロツクF12に相当
する第2の濃度マトリツクスパターンとしては、
全ブロツクf11,f12,f13,……,f21,f22,……,
……に、ブロツクf12に相当する同一の第1の濃
度マトリツクスパターンが入つていると想定した
母パターンから、ブロツクF12の位置にあるパタ
ーンを切り出したものを用いる。即ち、ブロツク
Fijに相当する第2の濃度マトリツクスパターン
としては、全ブロツクf11,f12,f13,……,f21
f22,……,……にブロツクfijに相当する同一の第
1の濃度マトリツクスパターンが入つていると想
定した母パターンから、ブロツクFijの位置にあ
るパターンを切り出したものを用いる。拡大の場
合は、ブロツクf11,f12,……,f1j,……,f21
f22,……,f2j,……,fij,……だけから母パター
ンを構成すると、母パターン面積が、ブロツク
F11,F12,……,F1j,……,F21,F22,……,
F2j,……,Fij,……からなる面積より小さくな
るので、母パターンとしては、上記ブロツクのエ
リアを越えて、第1の濃度マトリツクスパターン
を2次元的に配列したものを想定する必要があ
る。
Here, blocks F 11 are arranged so that when the magnification/reduction magnification is m/n, the number of enlarged/reduced images is the same as the blocks of the second binarized image in both the row direction and the column direction. ,F 12 ,...,F 1j ,...,
Consisting of F 21 , F 22 , ..., F 2j , ..., F ij , ...,
It is assumed that each block consists of m×m pixels, and only the first density matrix pattern of the block f ij in the i-th row and j column of the second binarized image is two-dimensionally A pattern configured by arranging the patterns (herein referred to as a mother pattern) is assumed. Next, a pattern consisting of m×m pixels is cut out from this mother pattern, and a density matrix pattern (hereinafter, this is called the second It is used as a density matrix pattern (called a density matrix pattern). A second density matrix pattern is obtained for each block, and the patterns are arranged in block order to obtain an enlarged/reduced image (step). FIG. 6A is an enlarged image obtained in this way with an enlargement factor of 5/4, and FIG. 6B is a reduced image with a reduction factor of 3/4. Here, as described above, the size ratio of the first and second density matrix patterns depends on the enlargement/reduction magnification, and the vertical and horizontal sizes of the second density matrix pattern are the same as those of the first density matrix pattern. This is the vertical and horizontal size of the density matrix pattern multiplied by the vertical and horizontal expansion/reduction magnification. Therefore, in the example of FIG. 6 where the vertical and horizontal magnifications are equal, the size in FIG. 6A is 5×5, and the size in FIG. 6B is 3×3. FIG. 7 is an explanatory diagram (magnification: 5/4) showing an example of obtaining a second density matrix pattern from a first density matrix pattern. Block f 11 , f 12 , f 13 ,
The plane consisting of ..., f 21 , f 22 , ..., ... is the second
density matrix pattern (size 5x5)
Blocks F 11 , F 12 , F 13 , ..., F 21 , F 22 , ...
. . . (The pixel in the first row and first column of block f11 and the pixel in the first row and first column of block F11 are in a positional relationship such that they overlap). First, as a second density matrix pattern corresponding to block F 11 , all blocks f 11 ,
From the mother pattern assuming that f 12 , f 13 , ..., f 21 , f 22 , ..., ... contain the same first density matrix pattern corresponding to block f 11 , block F Use the pattern cut out at position 11 . Similarly, the second density matrix pattern corresponding to block F12 is as follows:
All blocks f 11 , f 12 , f 13 , ..., f 21 , f 22 , ...,
..., a pattern at the position of block F12 is cut out from a mother pattern which is assumed to contain the same first density matrix pattern corresponding to block f12 . That is, block
The second density matrix pattern corresponding to F ij includes all blocks f 11 , f 12 , f 13 , ..., f 21 ,
A pattern at the position of block F ij is cut out from a mother pattern that is assumed to contain the same first density matrix pattern corresponding to block f ij in f 22 , . . . , . In the case of expansion, blocks f 11 , f 12 , ..., f 1j , ..., f 21 ,
When a mother pattern is constructed from only f 22 , ..., f 2j , ..., f ij , ..., the mother pattern area is
F 11 , F 12 , ..., F 1j , ..., F 21 , F 22 , ...,
Since the area is smaller than the area consisting of F 2j , . There is a need.

尚、上記ステツプにて、ステツプで求めた
黒画素数をそのまま用いずに周囲の単位領域の黒
画素数等を加味した空間フイルタの使用により得
た修正黒画素を用いるようにすれば、画像強調
(フイルタリング)を同時に行える。又、所定の
階調変換曲線に基づき、ステツプで求めた前記
黒画素数を他の黒画素数に変換して用いれば、階
調処理も可能になる。どのような階調処理がなさ
れるかは、階調変換曲線(横軸にオリジナル黒画
素数をとり縦軸に変換後の黒画素数をとる)のカ
ーブによつて決まる。
In addition, in the above step, if the corrected black pixels obtained by using a spatial filter that takes into account the number of black pixels in the surrounding unit area, etc. are used instead of using the number of black pixels obtained in the step as is, image enhancement can be improved. (filtering) can be performed at the same time. Furthermore, if the number of black pixels obtained in the step is converted to another number of black pixels based on a predetermined gradation conversion curve, gradation processing becomes possible. The type of gradation processing to be performed is determined by the gradation conversion curve (the horizontal axis is the original black pixel number and the vertical axis is the converted black pixel number).

更に、本発明方法では、前記のステツプにお
いて、ステツプで求めた2値化画像(第2図ハ
相当)の一部のパターンをそのまま前記の第1の
濃度マトリツクスパターン(小サイズ)として用
いることもできる。
Furthermore, in the method of the present invention, in the above step, a part of the pattern of the binarized image (corresponding to FIG. 2) obtained in the step is used as it is as the first density matrix pattern (small size). You can also do it.

又、前述の変倍後の各ブロツクのパターンを得
る具体的方法は、前述の母パターンを実際にメモ
リ内に構成し、これから所定の番地のデータを読
み出し、パターンを得るようにしてもよいが、こ
のようにすると極めて大きなメモリ容量が必要と
なる。そこで、母パターンを実際には作らず、パ
ターンの周期性に注目し、以下のようにして各画
素の濃度を求め変倍後のパターンを得るようにし
てもよい。
Further, a specific method for obtaining the pattern of each block after scaling described above may be to actually configure the above-mentioned mother pattern in memory and read data at a predetermined address from it to obtain the pattern. , this would require an extremely large memory capacity. Therefore, instead of actually creating a mother pattern, attention may be paid to the periodicity of the pattern, and the density of each pixel may be determined in the following manner to obtain a pattern after scaling.

即ち、拡大(倍率m/n)の場合には、新たな
ブロツク(拡大後のブロツク)の行方向I番目の
ブロツク内のx行目のパターンは、拡大前のブロ
ツクの行方向I番目のブロツクにおける、 AD1=mod[x+mod[(I−1)(m−n), n]+1−2,n]+1 行目のパターンに等しく、且つ新たなブロツクの
列方向J番目のブロツク内のy列目のパターン
は、拡大前のブロツクの列方向J番目のブロツク
における、 AD2=mod[y+mod[(J−1)(m−n), n]+1−2,n]+1 列目のパターンに等しく、一方、縮小(倍率m/
n)の場合には、新たなブロツク(縮小後のブロ
ツク)の行方向I番目のブロツク内のx行目のパ
ターンは、縮小前の行方向I番目のブロツクにお
ける、 AD1=mod[x+mod[(I−1)(n−|n −m|),n]+1−2,n]+1 行目のパターンに等しく、且つ新たなブロツクの
列方向J番目のブロツク内のy列目のパターン
は、縮小前のブロツクの列方向J番目のブロツク
における、 AD2=mod[y+mod[(J−1)(n−|n −m|),n]+1−2,n]+1 列目のパターンに等しい。
That is, in the case of enlargement (magnification m/n), the x-th pattern in the I-th block in the row direction of the new block (block after enlargement) is the same as the pattern in the I-th block in the row direction of the block before enlargement. AD1 = mod [x + mod [(I-1) (m-n), n] + 1-2, n] + 1st row pattern, and the y column in the J-th block in the column direction of the new block. The eye pattern is equal to the pattern of AD2=mod[y+mod[(J-1)(m-n), n]+1-2,n]+1st column in the Jth block in the column direction of the block before expansion. , on the other hand, reduction (magnification m/
n), the x-th row pattern in the I-th block in the row direction of the new block (block after reduction) is AD1=mod[x+mod[( I-1) (n-|n -m|),n]+1-2,n]+1 The pattern in the y-th column in the J-th block in the column direction of the new block is It is equal to the pattern of AD2=mod[y+mod[(J-1)(n-|n-m|),n]+1-2,n]+1st column in the Jth block in the column direction of the block before reduction.

ここで、mod[p,q]はp÷qの余りであり、
当然qより小さい。
Here, mod [p, q] is the remainder of p÷q,
Of course it is smaller than q.

従つて、変倍前の各ブロツクの画素濃度をメモ
リに格納しておけば、AD1,AD2を行、列方向
のアドレスとして変倍前の該当ブロツク内の画素
濃度を読み出すことにより、容易に新たなブロツ
クのパターンを得ることができる。当然ながら、
等倍のパターンを得る場合は、このメモリに格納
してある各ブロツクの画素濃度のデータをそのま
ま読み出して用いればよい。
Therefore, if the pixel density of each block before scaling is stored in memory, it can be easily updated by reading out the pixel density in the corresponding block before scaling using AD1 and AD2 as addresses in the row and column directions. You can get various block patterns. Naturally,
In order to obtain a pattern of equal size, the pixel density data of each block stored in this memory may be read out and used as is.

上記のような拡大・縮小方法によれば、原画像
である2値化画像がどのようなデイザマトリツク
スを用いて2値化処理した画像であつても、拡大
や縮小に適した特性の2値化画像に変換し、これ
を拡大或いは縮小するため、高品質の拡大・縮小
画像を得ることができる。特に、複数サイズの閾
値マトリツクスを用意し、濃度変化の緩やかな区
画領域では、大サイズの閾値マトリツクスを用い
て分解能より階調表現を優先し、濃度変化の激し
い区画領域では、逆に小サイズの閾値マトリツク
スを用いて分解能を優先するようにしているた
め、階調性及び分解能共優れ、拡大画像において
デイテイル(detail)が失われることはない。
According to the above-mentioned enlargement/reduction method, no matter what kind of dither matrix is used to perform the binarization processing on the original binary image, the image has characteristics suitable for enlargement or reduction. Since the image is converted into a binary image and then enlarged or reduced, a high-quality enlarged/reduced image can be obtained. In particular, threshold matrices of multiple sizes are prepared, and in partitioned areas where density changes are gradual, gradation expression is prioritized over resolution by using large-sized threshold matrices, and conversely, in partitioned areas where density changes are rapid, small-sized threshold matrices are used. Since a threshold matrix is used to give priority to resolution, both gradation and resolution are excellent, and no detail is lost in the enlarged image.

第8図は本発明方法を実現する装置の一例を示
す図である。図において、1はメモリ2に格納し
てある第1の2値化画像を読み出して、複数の画
素からなる単位領域に分割し、隣接する所定数の
単位領域でもつて区画領域を形成させ、各区画領
域毎に単位領域内黒画素数を計数し、該計数値を
メモリ3に格納する黒画素計数手段、4は黒画素
数をメモリ3から読み出し、各区画領域毎に単位
領域内黒画素数のバラツキを求め、該バラツキが
小さい区画領域に対しては大サイズの閾値マトリ
ツクスを用い、単位領域内黒画素数のバラツキが
大きい区画領域に対しては小サイズの閾値マトリ
ツクスを用いて第2の2値化画像を求め、メモリ
5に格納する2値化画像再作成手段、6は第2の
2値化画像をメモリ5から読み出し、各ブロツク
毎に、それぞれの黒画素数に対応した第1の濃度
マトリツクスパターンを得てメモリ7に格納する
第1の濃度マトリツクスパターン作成手段、8は
各ブロツクの第1の濃度マトリツクスパターンを
メモリ7から読み出して、倍率に応じたサイズの
第2の濃度マトリツクスパターンに変換する第2
の濃度マトリツクスパターン作成手段である。こ
の第2の濃度マトリツクスパターン作成手段8
は、全ブロツク内の第2の濃度マトリツクスパタ
ーンをメモリ9に格納する。このようにして、メ
モリ9上に、各ブロツクの第2の濃度マトリツク
スパターンで再構成される2値化画像、即ち拡大
又は縮小された2値化画像が格納されることにな
る。尚、上記複数のメモリは、メモリ容量の大き
いものを用いれば、単一のメモリで足りる。
FIG. 8 is a diagram showing an example of an apparatus for realizing the method of the present invention. In the figure, reference numeral 1 reads the first binarized image stored in the memory 2, divides it into unit areas each consisting of a plurality of pixels, and forms divided areas with a predetermined number of adjacent unit areas. A black pixel counting means counts the number of black pixels in a unit area for each partitioned area and stores the counted value in the memory 3; 4 reads the number of black pixels from the memory 3 and calculates the number of black pixels in the unit area for each partitioned area; A large-sized threshold matrix is used for divided regions with small variations, and a small-sized threshold matrix is used for divided regions with large variations in the number of black pixels within a unit area. A binarized image re-creation means 6 obtains a binarized image and stores it in the memory 5, and 6 reads out the second binarized image from the memory 5 and creates a first binarized image corresponding to the number of black pixels for each block. A first density matrix pattern creating means 8 reads out the first density matrix pattern of each block from the memory 7 and stores it in the memory 7, and a second density matrix pattern 8 of a size corresponding to the magnification is read out from the memory 7. The second density matrix pattern is converted into a density matrix pattern of
This is a density matrix pattern creation means. This second density matrix pattern creation means 8
stores the second density matrix pattern in all blocks in the memory 9. In this way, the memory 9 stores a binary image reconstructed using the second density matrix pattern of each block, that is, an enlarged or reduced binary image. Incidentally, if the plurality of memories mentioned above have a large memory capacity, a single memory is sufficient.

(発明の効果) 以上説明したように、本発明は、第1の濃度マ
トリツクスパターンから倍率に応じたサイズの第
2の濃度マトリツクスパターンを各ブロツク毎に
得るものであるから、網点ピツチは不変であり、
サンプリング間隔を変えることにより拡大・縮小
画像を得る従来の方法と異なり、モアレ縞が生じ
難い。又、複数サイズの濃度マトリツクスパター
ンを用意し、濃度変化の緩やかな区画領域では、
大サイズの閾値マトリツクスを用いて分解能より
階調表現を優先し、濃度変化の激しい区画領域で
は、逆に小サイズの閾値マトリツクスを用いて分
解能を優先するようにしているため、階調性及び
分解能共優れ、拡大画像においてデイテイル
(detail)が失われることはない。
(Effects of the Invention) As explained above, in the present invention, a second density matrix pattern having a size corresponding to the magnification is obtained for each block from the first density matrix pattern. is unchanged,
Unlike the conventional method of obtaining enlarged/reduced images by changing the sampling interval, moiré fringes are less likely to occur. In addition, we prepare density matrix patterns of multiple sizes, and in divided areas where density changes are gradual,
A large-sized threshold matrix is used to give priority to gradation expression over resolution, and a small-sized threshold matrix is used to give priority to resolution in partitioned areas where density changes are large, so gradation and resolution are Both are excellent, and no detail is lost in the enlarged image.

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

第1図の本発明方法の一例を示すフローチヤー
ト、第2図は2値化の一例を示す説明図、第3図
は区画領域の説明図、第4図はブロツク分割の説
明図、第5図は第1の濃度マトリツクスパターン
を得るためのデイザマトリツクスの説明図、第6
図は第2の濃度マトリツクスパターン(拡大・縮
小画像)の説明図、第7図は第1の濃度マトリツ
クスパターンから第2の濃度マトリツクスパター
ンを得る方法の説明図、第8図は本発明方法を実
施する装置の説明図である。 A……オリジナル画像、B……2値化画像、
UA……単位領域、MA……区画領域、f11,f12
……,f21,f22,……,……第1の濃度マトリツ
クスパターンのブロツク、F11,F12,……,F21
F22,……,……第2の濃度マトリツクスパター
ンのブロツク。
FIG. 1 is a flowchart showing an example of the method of the present invention, FIG. 2 is an explanatory diagram showing an example of binarization, FIG. 3 is an explanatory diagram of divided areas, FIG. 4 is an explanatory diagram of block division, and FIG. The figure is an explanatory diagram of the dither matrix for obtaining the first density matrix pattern.
The figure is an explanatory diagram of the second density matrix pattern (enlarged/reduced image), FIG. 7 is an explanatory diagram of the method of obtaining the second density matrix pattern from the first density matrix pattern, and FIG. FIG. 2 is an explanatory diagram of an apparatus for carrying out the invention method. A...Original image, B...Binarized image,
UA...unit area, MA...divided area, f 11 , f 12 ,
..., f 21 , f 22 , ..., ... block of the first density matrix pattern, F 11 , F 12 , ..., F 21 ,
F 22 , ..., ... second density matrix pattern block.

Claims (1)

【特許請求の範囲】 1 原画像である第1の2値化画像を複数の画素
からなる単位領域に分割し、隣接する所定数の前
記単位領域でもつて区画領域を形成させ、各区画
領域毎に単位領域内黒画素数のバラツキを求め、
該バラツキが小さい区画領域に対しては大サイズ
の閾値マトリツクスを用い、単位領域内黒画素数
のバラツキが大きい区画領域に対しては小サイズ
の閾値マトリツクスを用いて第2の2値化画像を
求め、該第2の2値化画像をn×n個の画素から
なる複数のブロツクf11,f12,……,f1j,……,
f21,f22,……,f2j,……,fij,……に分割する
と共に、 拡大・縮小倍率がm/nであるときの拡大・縮
小画像を求めるに際しては、拡大・縮小画像が、
行方向及び列方向共、前記第2の2値化画像のブ
ロツクと同数であるように配列されたブロツク
F11,F12,……,F1j,……,F21,F22,……,
F2j,……,Fij,……からなり、各ブロツクがm
×m個の画素からなるとし、 前記第2の2値化画像の第i行j列のブロツク
fijの濃度マトリツクスパターンだけを2次元的に
配列して構成した母パターンを想定し、該母パタ
ーンから、m×m個の画素からなるパターンを切
り出したものを、拡大・縮小画像の第i行j列の
ブロツクFijの濃度マトリツクスパターンとして
用いることにより、拡大・縮小画像を得ることを
特徴とする画像拡大・縮小方法。
[Scope of Claims] 1. A first binarized image, which is an original image, is divided into unit areas each consisting of a plurality of pixels, a predetermined number of adjacent unit areas form divided areas, and each divided area is Find the variation in the number of black pixels within the unit area,
A large-sized threshold matrix is used for the partitioned areas with small variations, and a small-sized threshold matrix is used for the partitioned areas with large variations in the number of black pixels within the unit area to generate the second binarized image. The second binarized image is divided into a plurality of blocks f 11 , f 12 , ..., f 1j , ..., consisting of n×n pixels.
When dividing into f 21 , f 22 , ..., f 2j , ..., f ij , ... and obtaining the enlarged/reduced image when the enlargement/reduction magnification is m/n, the enlarged/reduced image but,
Blocks arranged in the same number as the blocks of the second binarized image in both the row and column directions.
F 11 , F 12 , ..., F 1j , ..., F 21 , F 22 , ...,
It consists of F 2j , ..., F ij , ..., and each block is m
Assume that the block consists of ×m pixels, and the block in the i-th row and j column of the second binarized image
Assuming a mother pattern consisting of only density matrix patterns of f ij arranged two-dimensionally, a pattern consisting of m×m pixels is cut out from the mother pattern and is An image enlargement/reduction method characterized in that an enlarged/reduced image is obtained by using the block F ij in the i-th row and the j-th column as a density matrix pattern.
JP60034117A 1984-12-26 1985-02-22 Method of enlargement/reduction of image Granted JPS61194972A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP60034117A JPS61194972A (en) 1985-02-22 1985-02-22 Method of enlargement/reduction of image
US06/813,050 US4783838A (en) 1984-12-26 1985-12-24 Image processing method and apparatus therefor
DE19853546136 DE3546136A1 (en) 1984-12-26 1985-12-27 IMAGE PROCESSING METHOD AND DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60034117A JPS61194972A (en) 1985-02-22 1985-02-22 Method of enlargement/reduction of image

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP60280132A Division JPS61281676A (en) 1985-12-11 1985-12-11 Picture restoring method

Publications (2)

Publication Number Publication Date
JPS61194972A JPS61194972A (en) 1986-08-29
JPH0460389B2 true JPH0460389B2 (en) 1992-09-25

Family

ID=12405314

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60034117A Granted JPS61194972A (en) 1984-12-26 1985-02-22 Method of enlargement/reduction of image

Country Status (1)

Country Link
JP (1) JPS61194972A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2615625B2 (en) * 1987-06-24 1997-06-04 富士ゼロックス株式会社 Image processing device
JP6256747B2 (en) * 2013-11-29 2018-01-10 Necプラットフォームズ株式会社 Image conversion processing method, program for executing the same, and image conversion processing apparatus

Also Published As

Publication number Publication date
JPS61194972A (en) 1986-08-29

Similar Documents

Publication Publication Date Title
US4783838A (en) Image processing method and apparatus therefor
JPS6110360A (en) Picture processing device
US5422742A (en) Method and apparatus for generating halftone images by discrete one-to-one dither tile rotation
JPH0614195A (en) Image processing system and image converting method
JPH04227584A (en) Method for converting resolution of bit-map image
US5489991A (en) Method for generating digital halftone images
JPS6160066A (en) Method of projecting digital image record
EP0427380A2 (en) Method of producing halftone images
US5572600A (en) Color image processing apparatus capable of suppressing moire
JPH0460389B2 (en)
JP4156194B2 (en) Method for converting first resolution raster digital data to second resolution digital data
JPH0376630B2 (en)
JPH0553350B2 (en)
JPH03114365A (en) Generation of binary number representation of image and device therefor
JPH0376629B2 (en)
JP2821806B2 (en) Color image information processing method
JPS58215167A (en) Method and device for processing picture signal
JPS627267A (en) Dot forming method
JPS60136478A (en) Picture processor
JPS60136476A (en) Image processing device
JPS61281676A (en) Picture restoring method
JP2913867B2 (en) Color image processing method
JP2635306B2 (en) Image processing device
JP3089688B2 (en) Image information processing method
JPH0431466B2 (en)