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
JPH0376629B2 - - Google Patents
[go: Go Back, main page]

JPH0376629B2 - - Google Patents

Info

Publication number
JPH0376629B2
JPH0376629B2 JP59279492A JP27949284A JPH0376629B2 JP H0376629 B2 JPH0376629 B2 JP H0376629B2 JP 59279492 A JP59279492 A JP 59279492A JP 27949284 A JP27949284 A JP 27949284A JP H0376629 B2 JPH0376629 B2 JP H0376629B2
Authority
JP
Japan
Prior art keywords
block
mod
pixels
matrix pattern
density matrix
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
JP59279492A
Other languages
Japanese (ja)
Other versions
JPS61154269A (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 JP59279492A priority Critical patent/JPS61154269A/en
Priority to US06/813,050 priority patent/US4783838A/en
Priority to DE19853546136 priority patent/DE3546136A1/en
Publication of JPS61154269A publication Critical patent/JPS61154269A/en
Publication of JPH0376629B2 publication Critical patent/JPH0376629B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、画像の拡大又は縮小の少なくとも一
方とフイルタリング(画像強調等)とを行う画像
処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image processing method that performs at least one of enlarging or reducing an image and filtering (image enhancement, etc.).

(従来の技術) 画素密度変換方式により2値化画像を拡大又は
縮小する方法として、従来からSPC法,論理和
法,9分割法,投影法等が知られている。
(Prior Art) As methods for enlarging or reducing a binarized image using a pixel density conversion method, the SPC method, the logical sum method, the nine-division method, the projection method, and the like have been known.

(発明が解決しようとする問題点) これら従来方法の問題点としては、線部のツブ
レ或いはヌケが目立つという点が挙げられるが、
最大の問題点は、組織的デイザ法で表現した2値
化画像等のように周期構造のある中間調画像を拡
大、縮小する場合、モアレ縞が発生するというこ
とである。
(Problems to be Solved by the Invention) Problems with these conventional methods include the fact that the lines are conspicuously blurred or missing.
The biggest problem is that moiré fringes occur when enlarging or reducing a halftone image with a periodic structure, such as a binarized image expressed by the systematic dither method.

一方、この種の2値化された中間調画像の場
合、フイルタリングを容易に行える方法がなかつ
た。
On the other hand, in the case of this type of binarized halftone image, there is no method to easily perform filtering.

本発明はこの点に鑑みてなされたもので、その
目的は、周期構造のある2値化画像であつてもモ
アレ縞を生じることなく拡大、縮小を行えると共
に、フイルタリングも容易に行える画像処理方法
を提供することにある。
The present invention has been made in view of this point, and its purpose is to perform image processing that can enlarge or reduce even a binarized image with a periodic structure without causing moiré fringes, and also allows easy filtering. The purpose is to provide a method.

(問題点を解決するための手段) 上記問題点を解決する本発明は、メモリに格納
してある2値化画像を読み出して、該2値化画像
を得るに際して使用した閾値群のサイズ以下のブ
ロツクに分割し、該ブロツク毎に黒画素数若しく
は白画素数の少なくとも一方を計数し、該計数値
をメモリに格納する第1のステツプと、 該第1のステツプで得た画素数をメモリから読
み出して該画素数にフイルタリングを施し、該フ
イルタリング後の画素数をメモリに格納する第2
のステツプと 第第2のステツプで得たフイルタリング後の画
素数をメモリから読み出し、該画素数から、前記
各ブロツク毎に、それぞれの画素数に対応した第
1の濃度マトリツクスパターンを得てメモリに格
納する第3のステツプと、 該第3のステツプで得た各ブロツクの第1の濃
度マトリツクスパターンをメモリから読み出し
て、倍率m/n(但し、m,nは整数)に応じた
サイズの第2の濃度マトリツクスパターンに変換
するに際し、行方向I番目,列方向J番目に位置
するブロツクの第2の濃度マトリツクスパターン
内のx行,y列目の濃度値として、行方向I番
目,列方向J番目に位置する拡大、縮小前のブロ
ツクの第1の濃度マトリツクスパターン内の
AD1行,AD2列目の濃度値を採用し、 (但し、上記AD1,AD2は拡大の場合と縮小
の場合では異なり、次式で示される。尚、式中の
mod[p,q]はp÷qの余りである。
(Means for Solving the Problems) The present invention, which solves the above-mentioned problems, reads out a binarized image stored in a memory, and reads out a binarized image stored in a memory, A first step of dividing the image into blocks, counting at least one of the number of black pixels or the number of white pixels for each block, and storing the counted value in memory; and storing the number of pixels obtained in the first step from the memory. A second device that reads out the number of pixels, performs filtering on the number of pixels, and stores the number of pixels after filtering in the memory.
The number of pixels after filtering obtained in the step and the second step is read from the memory, and from the number of pixels, a first density matrix pattern corresponding to each number of pixels is obtained for each block. The third step is to store the first density matrix pattern in the memory, and the first density matrix pattern of each block obtained in the third step is read out from the memory, and is calculated according to the magnification m/n (where m and n are integers). When converting to the second density matrix pattern of the size, the density value of the x row and y column in the second density matrix pattern of the block located Ith in the row direction and Jth in the column direction is In the first density matrix pattern of the block before enlargement and reduction located at the I-th and J-th column,
Adopt the density value of AD1 row and AD2 column.
mod[p, q] is the remainder of p÷q.

拡大(倍率m/n>1)の場合、 AD1=mod[x+mod[(I−1)(m−n) ,n]+1−2,n]+1 AD2=mod[y+mod[(J−1)(m−n) ,n]+1−2,n]+1 縮小(倍率m/n<1)の場合、 AD1=mod[x+mod[(I−1)(n−|n−m
|) ,n]+1−2,n]+1 AD2=mod[y+mod[(J−1)(n−|n−m
|) ,n]+1−2,n]+1) 全ブロツク内の第2の濃度マトリツクスパター
ンを得る第4のステツプとを有し、 各ステツプの第2の濃度マトリツクスパターン
で再構成される画像を処理後の画像とすることを
特徴とするものである。
For magnification (magnification m/n>1), AD1=mod[x+mod[(I-1)(m-n),n]+1-2,n]+1 AD2=mod[y+mod[(J-1)( m-n) ,n]+1-2,n]+1 For reduction (magnification m/n<1), AD1=mod[x+mod[(I-1)(n-|n-m
|) ,n]+1-2,n]+1 AD2=mod[y+mod[(J-1)(n-|n-m
|) ,n]+1-2,n]+1) A fourth step of obtaining the second density matrix pattern in all blocks, and reconstructed with the second density matrix pattern of each step. The feature is that the image is a processed image.

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

まず、画像処理の対象である2値化画像である
が、この2値化画像は、例えば4×4や8×8の
サイズのデイザマトリツクスを閾値として用いる
ことにより容易に得られる。このデイザマトリツ
クスを構成する閾値の設定幅は、例えば階調画の
場合反射濃度で0.1〜1.4程度と広くし、線画の場
合は反射濃度で0.1〜0.5程度と狭くする(或いは
固定閾値を用いる)ことが好ましい。これは画像
のヌケや太りを防ぐためである。又、階調画と線
画では異種のデイザマトリツクスを用いるように
してもよい。尚、2値化の手法は、デイザ法以外
の方法、例えば濃度パターン法や網かけ法を用い
てもよい。
First, the object of image processing is a binarized image. This binarized image can be easily obtained by using, for example, a 4×4 or 8×8 dither matrix as a threshold value. The setting width of the threshold values that make up this dither matrix is, for example, wide in the case of gradation drawings, about 0.1 to 1.4 in reflection density, and narrow in the case of line drawings, about 0.1 to 0.5 in reflection density (or by setting a fixed threshold value). It is preferable to use This is to prevent the image from becoming blank or thick. Further, different types of dither matrices may be used for gradation drawings and line drawings. Note that the binarization method may be a method other than the dither method, such as a density pattern method or a dot method.

第1図に例示した本発明方法においては、ま
ず、画像が2値化画像でない場合、前述の2値化
を行う(ステツプ)。第2図は、サイズが4×
4のドツト分散型(Bayer型)のデイザマトリツ
クスDM1(第2図イ参照)を用いて、デイザ法に
よりオリジナル画像A(第2図ロ参照)を2値化
し、第2図ハに示す2値化画像Bを得る例を示し
ている。この図において、デイザマトリツクス
DM1内及びオリジナル画像A内の数字は規格化
された濃度レベルを示し、2値化画像Bの斜線部
分の画素は黒画素であることを示している。
In the method of the present invention illustrated in FIG. 1, first, if the image is not a binarized image, the above-mentioned binarization is performed (step). In Figure 2, the size is 4×
Using the dot dispersion type (Bayer type) dither matrix DM1 (see Fig. 2 A) of No. 4, the original image A (see Fig. 2 B) is binarized by the dither method, as shown in Fig. 2 C. An example of obtaining a binarized image B is shown. In this figure, the dither matrix
The numbers in DM1 and original image A indicate standardized density levels, and the pixels in the diagonally shaded portion of binarized image B indicate that they are black pixels.

次にステツプでは、2値化画像を適当なサイ
ズのブロツクに分割する。第2図ハでは4×4の
サイズに分割している。そして、各ブロツク内の
黒画素数(或いは白画素数)を計数して(ステツ
プ)、フイルタリングに移る。ここで行うフイ
ルタリングは、上記黒画素数(以下、これをオリ
ジナル黒画素数と呼ぶ)を所定の空間フイルタを
用いて他の黒画素数(以下、これを変換黒画素数
と呼ぶ)に変換することにより行う(ステツプ
)。第3図の例では、第3図イに示す空間フイ
ルタを用いて、第3図ロに示すオリジナル黒画素
数を第3図ハに示す変換黒画素数に変換してい
る。尚、最外周のブロツクにフイルタリングを施
すには、更にその外側の黒画素数のデータが必要
になるので、ここでは説明上点字で示した数字を
仮想データとして与えフイルタリングを行つてい
る。どのようなフイルタリングがなされるかは、
変換の際使用する空間フイルタによつて決まる。
例えば前記第3図イや第4図の空間フイルタを用
いると画像強調を行うことができる。ここで、第
4図中のαは20以下の自然数、βは定数で、αが
大きい場合、かなり強いエツジ強調となる。
In the next step, the binarized image is divided into blocks of appropriate size. In FIG. 2C, it is divided into 4×4 sizes. Then, the number of black pixels (or the number of white pixels) in each block is counted (step), and the process moves to filtering. The filtering performed here converts the number of black pixels (hereinafter referred to as the original number of black pixels) to another number of black pixels (hereinafter referred to as the converted number of black pixels) using a predetermined spatial filter. This is done by doing (steps). In the example of FIG. 3, the spatial filter shown in FIG. 3A is used to convert the original black pixel number shown in FIG. 3B to the converted black pixel number shown in FIG. 3C. Note that in order to filter the outermost block, data on the number of black pixels on the outer side is also required, so for the sake of explanation here, the numbers shown in Braille are given as virtual data to perform filtering. What kind of filtering is done is
Determined by the spatial filter used during the transformation.
For example, image enhancement can be performed using the spatial filters shown in FIG. 3A and FIG. 4. Here, α in FIG. 4 is a natural number of 20 or less, and β is a constant. If α is large, the edge enhancement will be quite strong.

このようにして得た変換黒画素数から、各ブロ
ツクの濃度レベルを決定し、第1の濃度マトリツ
クスパターンを得る(ステツプ)。ここで、ブ
ロツクサイズとしては、2値化画像を得る際に使
用したデイザマトリツクス(閾値群)のサイズ
(4×4又は8×8)と同等、好ましくはデイザ
マトリツクスのサイズよりも小さいサイズを選
ぶ。このようにすれば、階調数や増やしながら高
解像度を保持できる。第5図ロは各ブロツク内の
変換黒画素数をそのまま各ブロツクの規格化され
た平均濃度レベルとしたもの、第5図ハはこの各
ブロツクの変換黒画素数に基づき、各ブロツク上
に第1の濃度マトリツクスパターンを写したもの
で、この例での第1の濃度パターンの決定は、前
記のデイザマトリツクスDM1と同一のデイザマ
トリツクスDM2(第5図イ参照)と各ブロツク
の濃度レベルとの比較によつて行つている。例え
ば、ブロツクBK1の場合、その濃度レベルが9
であるから、第5図イのデイザマトリツクスDM
2の内、9以下の濃度レベルの部分は黒画素とな
り、前記第5図ハのブロツクBK1のような濃度
マトリツクスパターンになる。
From the number of converted black pixels thus obtained, the density level of each block is determined to obtain a first density matrix pattern (step). Here, the block size is equivalent to the size (4 x 4 or 8 x 8) of the dither matrix (threshold value group) used to obtain the binarized image, preferably larger than the size of the dither matrix. Choose a smaller size. In this way, high resolution can be maintained while increasing the number of gradations. Figure 5(b) shows the number of converted black pixels in each block as the normalized average density level of each block, and Figure 5(c) shows the number of converted black pixels in each block as the normalized average density level of each block. In this example, the first density pattern is determined by copying the dither matrix DM2 (see Fig. 5A), which is the same as the dither matrix DM1 described above, and each block. This is done by comparing the concentration level of For example, in the case of block BK1, its density level is 9.
Therefore, the dither matrix DM in Figure 5 A
2, the portion with a density level of 9 or less becomes a black pixel, forming a density matrix pattern like the block BK1 in FIG. 5C.

この第1の濃度マトリツクスパターンを得た
後、拡大、縮小倍率に応じたサイズの第2の濃度
マトリツクスパターンを各ブロツク毎に得て(ス
テツプ)、これをブロツク順に並べ拡大、縮小
画像を得る(ステツプ)。第6図イはこのよう
にして得た拡大倍率5/4の拡大画像であり、第6
図ロは縮小倍率3/4の縮小画像である。ここで、
第1,第2の濃度マトリツクスパターンのサイズ
比は縦横の拡大、縮小倍率に応じたものであり、
第2の濃度マトリツクスパターンの縦横のサイズ
は、第1の濃度マトリツクスパターンの縦横のサ
イズに縦横の拡大、縮小倍率を乗じたものであ
る。従つて、第6図の例では、第6図イの場合は
5×5のサイズとなり、第6図ロでは3×3のサ
イズとなつている。
After obtaining this first density matrix pattern, a second density matrix pattern of a size corresponding to the enlargement/reduction magnification is obtained for each block (step), and these are arranged in block order to form enlarged/reduced images. Get (step). Figure 6A is an enlarged image obtained in this way with a magnification of 5/4.
Figure b is a reduced image with a reduction magnification of 3/4. here,
The size ratio of the first and second density matrix patterns corresponds to the vertical and horizontal enlargement and reduction magnification,
The vertical and horizontal sizes of the second density matrix pattern are the vertical and horizontal sizes of the first density matrix pattern multiplied by the vertical and horizontal expansion/reduction magnification. Therefore, in the example of FIG. 6, the size is 5×5 in the case of FIG. 6A, and the size is 3×3 in FIG. 6B.

ここで例では、第1の濃度マトリツクスパター
ン内の該当するパターンを2次元的に配列させる
ことにより得られる母パターンを、第2の濃度マ
トリツクスパターンのサイズで区画したときに、
求めようとする第2の濃度マトリツクスパターン
と同一の位置関係にあるパターンを切り出して、
これを該当する第2の濃度マトリツクスパターン
として用いている。第7図は第1の濃度マトリツ
クスパターンから第2の濃度マトリツクスパター
ンを得る例を示す説明図(拡大倍率5/4)で、第
1の濃度マトリツクスパターン(サイズは4×
4)のブロツクf11,f12,f13,…f21,f22,…,…
でなる平面を、第2の濃度マトリツクスパターン
(サイズは5×5)のブロツクF11,F12,F13
…,F21,F22,…,…に区画した状態を示してい
る。まず、ブロツク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の位置にあるパターンを切り出
したものを用いる。前述の第6図イは、このよう
にして得た第2の濃度マトリツクスパターンを平
面上に並べたものである。第6図ロについても同
様である。
In this example, when the mother pattern obtained by two-dimensionally arranging the corresponding patterns in the first density matrix pattern is divided by the size of the second density matrix pattern,
Cut out a pattern that has the same positional relationship as the second density matrix pattern that you are trying to find,
This is used as the corresponding second density matrix pattern. 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.
4) Blocks f 11 , f 12 , f 13 ,...f 21 , f 22 ,...,...
The plane consisting of the blocks F 11 , F 12 , F 13 , of the second density matrix pattern (size 5×5)
..., F 21 , F 22 , ..., ... is shown. First, as a second density matrix pattern corresponding to block F 11 , all blocks f 11 ,
The position of block F 11 is determined 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 . Use a pattern cut out from . Similarly, the second density matrix pattern corresponding to block F12 includes all blocks.
Blocks are added to f 11 , f 12 , f 13 ,…, f 21 , f 22 ,…,…
From the mother pattern, which is assumed to contain the same first density matrix pattern corresponding to f 12 ,
Use the pattern cut out at block F 12 . That is, as a second density matrix pattern corresponding to block Fij, the same first density matrix pattern corresponding to block fij is applied to all blocks f 11 , f 12 , f 13 , ..., f 21 , f 22 , ..., ... A pattern at the position of block Fij is cut out from a mother pattern that is assumed to contain a density matrix pattern. The above-mentioned FIG. 6A shows the second density matrix pattern obtained in this way arranged on a plane. The same applies to Figure 6B.

尚、マトリツクスDM1とDM2を同一のもの
で構成する必要はなく、例えばマトリツクスDM
2をドツト集中型(渦巻型)としてもよい。
Note that matrices DM1 and DM2 do not need to be composed of the same thing; for example, if matrix DM1 and DM2 are
2 may be of dot concentration type (spiral type).

又、前述の変倍後の各ブロツクのパターンを得
る具体的方法は、前述の母パターンを実際にメモ
リ内に構成し、これから所定の番地のデータを読
み出し、パターンを得るようにしてもよいが、こ
のようにすると極めて大きなメモリ容量が必要と
なる。そこで、母パターンを実際には作らず、パ
ターンの周期性に注目し、以下のようにして各画
素の濃度を求め変倍後のパターンを得るようにし
てもよい。
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−n
|) ,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]+1th row pattern and y column in the Jth block in the column direction of the new block. The eye pattern is equal to the pattern of the 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, in the case of a small size (magnification m/n), the x-th pattern in the I-th block in the row direction of the new block (block after reduction) is the same as the pattern in the I-th block in the row direction before reduction. , AD1=mod[x+mod[(I-1)(n-|n-n
|) ,n]+1-2,n]+1 The pattern in the y-th column in the J-th block in the column direction and which is equal to the pattern in the J-th row in the column direction of the new block is the same as the pattern in the J-th block in the column direction of the block before reduction. , AD2=mod[y+mod[(J-1)(n-|n-m
|) ,n]+1-2,n]+1 Equivalent to the pattern in the 1st column.

ここで、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 the block before scaling is stored in memory, the new pixel density can be easily read by using AD1 and AD2 as addresses in the row and column directions and reading out the pixel density in the block before scaling. You can get the block pattern.

第8図は本発明方法を実現する装置の一例を示
す図である。図において、1はメモリ2に格納し
てある2値化画像を読み出して、該2値化画像を
得るに際して使用した閾値群のサイズ以下のブロ
ツクに分割し、該ブロツク毎に黒画素数を計数
し、該計数値をメモリ3に格納する黒画素計数手
段、2は黒画素数をメモリ3から読み出し、所望
の空間フイルタを用いてフイルタリングを施し、
該フイルタリング後の黒画素数をメモリ5に格納
するフイルタリング手段、6はフイルタリング後
の黒画素数をメモリ5から読み出し、該黒画素数
から、前記各ブロツク毎に、それぞれの黒画素数
に対応した第1の濃度マトリツクスパターンを得
てメモリ7に格納する第1の濃度マトリツクスパ
ターン作成手段、8は各ブロツクの第1の濃度マ
トリツクスパターンをメモリ7から読み出して、
倍率に応じたサイズの第2の濃度マトリツクスパ
ターンに変換する第2の濃度マトリツクスパター
ン作成手段である。この第2の濃度マトリツクス
パターン作成手段8において、第1の濃度マトリ
ツクスパターンを第2の濃度マトリツクスパター
ンに変換するに際し、行方向I番目,列方向J番
目に位置するブロツクの第2の濃度マトリツクス
パターン内のx行,y列目の濃度値としては、行
方向I番目,列方向J番目に位置する拡大・縮小
前のブロツクの第1の濃度マトリツクスパターン
内の前述のAD1行,AD2列目の濃度値を採用す
る。そして第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, 1 reads the binarized image stored in the memory 2, divides it into blocks whose size is less than the threshold value group used to obtain the binarized image, and counts the number of black pixels for each block. and a black pixel counting means 2 for storing the counted value in the memory 3, which reads the number of black pixels from the memory 3 and performs filtering using a desired spatial filter;
A filtering means 6 stores the number of black pixels after filtering in the memory 5, and 6 reads the number of black pixels after filtering from the memory 5, and calculates the number of black pixels for each block from the number of black pixels. A first density matrix pattern creating means 8 reads out the first density matrix pattern of each block from the memory 7 and stores the first density matrix pattern corresponding to the first density matrix pattern in the memory 7.
This is second density matrix pattern creation means for converting into a second density matrix pattern of a size corresponding to the magnification. In this second density matrix pattern creation means 8, when converting the first density matrix pattern into a second density matrix pattern, the second density matrix pattern of the block located I-th in the row direction and J-th in the column direction is converted. The density value of the x-th row and y-th column in the density matrix pattern is the aforementioned AD1 row in the first density matrix pattern of the block before enlargement/reduction located in the I-th row direction and J-th column direction. , adopt the concentration value in the second column of AD. Then, the second density matrix pattern creating means 8 stores the second density matrix patterns in all blocks in the memory 9. In this way, a binarized image reconstructed using the second density matrix pattern of each block, that is, a binarized image that has been enlarged or reduced and filtered, is stored in the memory 9. become. Incidentally, if the plurality of memories mentioned above have a large memory capacity, a single memory is sufficient.

(発明の効果) 以上説明したように、本発明は、第1の濃度マ
トリツクスパターンから倍率に応じたサイズの第
2の濃度マトリツクスパターンを各ブロツク毎に
得るものであるから、網点ピツチは不変であり、
サンプリング間隔を変えることにより拡大、縮小
画像を得る従来の方法と異なり、モアレ縞が生じ
難い。又、ブロツクの平均濃度レベル(黒画素
数)にフイルタリングを施すことにより画像強調
等を達成するため、画像強調等を容易に行える。
(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 or reduced images by changing the sampling interval, moiré fringes are less likely to occur. Furthermore, since image enhancement is achieved by applying filtering to the average density level (number of black pixels) of a block, image enhancement and the like can be easily performed.

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

第1図の本発明方法の一例を示すフローチヤー
ト、第2図は第1図における2値化の一例を示す
説明図、第3図は第1図におけるフイルタリング
の説明図、第4図は空間フイルタの説明図、第5
図は第1図における第1の濃度マトリツクスパタ
ーンの説明図、第6図は第1図における第2の濃
度マトリツクスパターン(拡大、縮小画像)の説
明図、第7図は第1の濃度マトリツクスパターン
から第2の濃度マトリツクスパターンを得る方法
の説明図、第8図は本発明方法を実現する装置の
一例を示す図である。 DM1,DM2……デイザマトリツクス、A…
…オリジナル画像、B…2値化画像、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 in FIG. 1, FIG. 3 is an explanatory diagram of filtering in FIG. 1, and FIG. Explanatory diagram of spatial filter, 5th
The figure is an explanatory diagram of the first density matrix pattern in Fig. 1, Fig. 6 is an explanatory diagram of the second density matrix pattern (enlarged and reduced image) in Fig. 1, and Fig. 7 is an explanatory diagram of the first density matrix pattern in Fig. 1. An explanatory diagram of a method for obtaining a second density matrix pattern from a matrix pattern, FIG. 8 is a diagram showing an example of an apparatus for realizing the method of the present invention. DM1, DM2...Dither matrix, A...
...Original image, B...Binarized image, f 11 , f 12 ,
..., f 21 , f 22 , ... blocks of the first density matrix pattern, F 11 , F 12 , ..., F 21 , F 22 , ...
Block of second density matrix pattern.

Claims (1)

【特許請求の範囲】 1 メモリに格納してある2値化画像を読み出し
て、該2値化画像を得るに際して使用した閾値群
のサイズ以下のブロツクに分割し、該ブロツク毎
に黒画素数若しくは白画素数の少なくとも一方を
計数し、該計数値をメモリに格納する第1のステ
ツプと、 該第1のステツプで得た画素数をメモリから読
み出して該画素数にフイルタリングを施し、該フ
イルタリング後の画素数をメモリに格納する第2
のステツプと、 該第2のステツプで得たフイルタリング後の画
素数をメモリから読み出し、該画素数から、前記
各ブロツク毎に、それぞれの画素数に対応した第
1の濃度マトリツクスパターンを得てメモリに格
納する第3のステツプと、 該第3のステツプで得た各ブロツクの第1の濃
度マトリツクスパターンをメモリから読み出し
て、倍率m/n(但し、m,nは整数)に応じた
サイズの第2の濃度マトリツクスパターンに変換
するに際し、行方向I番目,列方向J番目に位置
するブロツクの第2の濃度マトリツクスパターン
内のx行,y列目の濃度値として、行方向I番
目,列方向J番目に位置する拡大、縮小前のブロ
ツクの第1の濃度マトリツクスパターン内の
AD1行,AD2列目の濃度値を採用し、 (但し、上記AD1,AD2は拡大の場合と縮小
の場合では異なり、次式で示される。尚、式中の
mod[p,q]はp÷qの余りである。 拡大(倍率m/n>1)の場合、 AD1=mod[x+mod[(I−1)(m−n) ,n]+1−2,n]+1 AD2=mod[y+mod[(J−1)(m−n) ,n]+1−2,n]+1 縮小(倍率m/n<1)の場合、 AD1=mod[x+mod[I−1)(n−|n−m
|) ,n]+1−2,n]+1 AD2=mod[y+mod[(J−1)(n−|n−m
|) ,n]+1−2,n]+1) 全ブロツク内の第2の濃度マトリツクスパター
ンを得る第4のステツプとを有し、 各ブロツクの第2の濃度マトリツクスパターン
で再構成される画像を処理後の画像とすることを
特徴とする画像処理方法。
[Claims] 1. Read out a binarized image stored in a memory, divide it into blocks whose size is less than or equal to the threshold value group used to obtain the binarized image, and calculate the number of black pixels or the number of black pixels for each block. A first step of counting at least one of the number of white pixels and storing the counted value in a memory, and reading out the number of pixels obtained in the first step from the memory, applying filtering to the number of pixels, and filtering the number of pixels. The second one stores the number of pixels after ringing in memory.
step and the number of pixels after filtering obtained in the second step is read from the memory, and from the number of pixels, a first density matrix pattern corresponding to each number of pixels is obtained for each block. a third step in which the first density matrix pattern of each block obtained in the third step is read out from the memory and is processed according to the magnification m/n (where m and n are integers); When converting to the second density matrix pattern of the same size, the row In the first density matrix pattern of the block before enlargement or reduction located at the I-th direction and the J-th column direction.
Adopt the density value of AD1 row and AD2 column.
mod[p, q] is the remainder of p÷q. For magnification (magnification m/n>1), AD1=mod[x+mod[(I-1)(m-n),n]+1-2,n]+1 AD2=mod[y+mod[(J-1)( m-n),n]+1-2,n]+1 For reduction (magnification m/n<1), AD1=mod[x+mod[I-1)(n-|n-m
|) ,n]+1-2,n]+1 AD2=mod[y+mod[(J-1)(n-|n-m
|) ,n]+1-2,n]+1) A fourth step of obtaining the second density matrix pattern in all blocks, and reconstructing the second density matrix pattern of each block. An image processing method characterized in that an image is a processed image.
JP59279492A 1984-12-26 1984-12-26 Picture processing method Granted JPS61154269A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP59279492A JPS61154269A (en) 1984-12-26 1984-12-26 Picture processing method
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
JP59279492A JPS61154269A (en) 1984-12-26 1984-12-26 Picture processing method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP60280130A Division JPS61154272A (en) 1985-12-11 1985-12-11 Picture reloading method

Publications (2)

Publication Number Publication Date
JPS61154269A JPS61154269A (en) 1986-07-12
JPH0376629B2 true JPH0376629B2 (en) 1991-12-06

Family

ID=17611798

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59279492A Granted JPS61154269A (en) 1984-12-26 1984-12-26 Picture processing method

Country Status (1)

Country Link
JP (1) JPS61154269A (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5814673A (en) * 1981-07-20 1983-01-27 Hitachi Ltd Gradation signal restoring system
JPS5825767A (en) * 1981-08-07 1983-02-16 Oki Electric Ind Co Ltd Picture processing device
JPS58221567A (en) * 1981-12-28 1983-12-23 Ricoh Co Ltd Image processing device

Also Published As

Publication number Publication date
JPS61154269A (en) 1986-07-12

Similar Documents

Publication Publication Date Title
US4783838A (en) Image processing method and apparatus therefor
JPS6110360A (en) Picture processing device
JPH0696198A (en) Conversion of nonquantized resolution of bit map image utilizing error diffusion
JPH04227584A (en) Method for converting resolution of bit-map image
US5489991A (en) Method for generating digital halftone images
JPH0573675A (en) Picture processor
WO1995017070A1 (en) Method for reproducing an image
JPH0376630B2 (en)
JPH0376629B2 (en)
JPH0553350B2 (en)
JPH0460389B2 (en)
JP4156194B2 (en) Method for converting first resolution raster digital data to second resolution digital data
JPS62114378A (en) Image processing method
JPS627267A (en) Dot forming method
JPH0129349B2 (en)
JPS61154272A (en) Picture reloading method
JPH0431466B2 (en)
JPS61281676A (en) Picture restoring method
JPS62118482A (en) Picture processing method
JP2635306B2 (en) Image processing device
JPH0779420B2 (en) Image processing device
JPH0583026B2 (en)
JP2913867B2 (en) Color image processing method
JPS61154274A (en) Picture reloading method
JPH0296472A (en) Picture data reducing method