JPH0376630B2 - - Google Patents
Info
- Publication number
- JPH0376630B2 JPH0376630B2 JP59279493A JP27949384A JPH0376630B2 JP H0376630 B2 JPH0376630 B2 JP H0376630B2 JP 59279493 A JP59279493 A JP 59279493A JP 27949384 A JP27949384 A JP 27949384A JP H0376630 B2 JPH0376630 B2 JP H0376630B2
- Authority
- JP
- Japan
- Prior art keywords
- block
- mod
- density
- matrix pattern
- pixels
- 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
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 gradation processing.
(従来の技術)
画素密度変換方式により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 a halftone image with a periodic structure, such as a binarized image expressed by the systematic dither method, is enlarged or reduced.
一方、この種の2値化中間調画像の場合、階調
処理(変換)を容易に行える方法がなかつた。 On the other hand, in the case of this type of binary halftone image, there is no method to easily perform gradation processing (conversion).
本発明はこの点に鑑みてなされたもので、その
目的は、周期構造のある2値化画像であつてもモ
アレ縞を生じることなく拡大・縮小を行えると共
に、階調処理も容易に行える画像処理方法を提供
することにある。 The present invention has been made in view of this point, and its purpose is to provide an image that can be enlarged/reduced without causing moiré fringes even if it is a binarized image with a periodic structure, and that can also be easily subjected to gradation processing. The purpose is to provide a processing 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. read out, convert the number of pixels based on the gradation curve,
A second step of storing the number of pixels after the gradation conversion in the memory, and reading out the number of pixels after the gradation conversion obtained in the second step from the memory, and from the number of pixels, for each block, respectively. a third step of obtaining a first density matrix pattern corresponding to the number of pixels and storing it in the memory; reading out the first density matrix pattern of each block obtained in the third step from the memory; When converting into a second density matrix pattern of a size corresponding to the magnification m/n (where m and n are integers), the second density matrix of the block located I-th in the row direction and J-th in the column direction is As the density value of the x-th row and y-th column in the pattern, the density value in the first density matrix pattern of the block before enlargement/reduction located at the I-th row 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.
拡大(倍率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 an image reconstructed with the second density matrix pattern of each block. is the 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 terms of reflection density, and narrow in the case of line drawings, in terms of reflection density, about 0.1 to 0.5 (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図ハに示す変換黒画
素数に変換している。どのような階調処理がなさ
れるかは、変換の際使用する階調曲線によつて決
まるが、一般的には、第4図中の上に凸のカーブ
を持つた階調曲線CAを用いると、黒画素数を大
きくし高濃度部分の度数を増やす変換となり、第
4図中の下に凸のカーブを持つた階調曲線CBを
用いると黒画素数を小さくし低濃度部分の度数を
減らす変換となる。従つて、階調曲線CAは淡い
2値化画像に対して有効であり、階調曲線CBは
黒くつぶれた画像に対して有効である。勿論、階
調曲線CA,CB円を組み合わせた例えばS字形カ
ーブの階調曲線等を用いることも可能であり、望
みの階調処理に合致するような階調曲線を選択す
ればよい。画像処理装置においては、3〜5種の
代表的な階調曲線を用意しておき、画像に応じて
何れかを選択するようにしておけばよい。 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 proceeds to gradation processing. The gradation processing performed here is
This is done by converting the above black pixel number (hereinafter referred to as the original black pixel number) to another black surface prime number (hereinafter referred to as the converted black pixel number) based on a predetermined gradation curve (step) . In the example in Figure 3,
Using the gradation curve shown in FIG. 3A, the original black pixel number shown in FIG. 3B is converted to the converted black pixel number shown in FIG. 3C. The type of gradation processing to be performed depends on the gradation curve used during conversion, but in general, the gradation curve C A with the upwardly convex curve in Figure 4 is used. If you use gradation curve C B , which has a downwardly convex curve in Figure 4, you will reduce the number of black pixels and increase the frequency of low density areas. This is a conversion that reduces the frequency. Therefore, the gradation curve C A is effective for a pale binary image, and the gradation curve C B is effective for a darkened image. Of course, it is also possible to use a gradation curve, such as an S-shaped curve, which is a combination of the gradation curves C A and C B circles, and it is sufficient to select a gradation curve that matches the desired gradation processing. In the image processing apparatus, three to five types of typical gradation curves may be prepared and one of them may be selected depending on the image.
このようにして得た変換黒画素数から、各ブロ
ツクの濃度レベルを決定し、第1の濃度マトリツ
クスパターンを得る(ステツプ)。ここで、ブ
ロツクサイズとしては、2値化画像を得る際に使
用したデイザマトリツクス(閾値群)のサイズ
(4×4又は8×8)と同等、好ましくはデイザ
マトリツクスのサイズよりも小さいサイズを選
ぶ。このようにすれば、階調数や増やしながら高
解像度を保持できる。第5図ロは各ブロツク内の
変換黒画素数をそのまま各ブロツクの規格化され
た平均濃度レベルとしたもの、第5図ハはこの各
ブロツクの変換黒画素数に基づき、各ブロツク上
に第1の濃度マトリツクスパターンを写したもの
で、この例での第1の濃度パターンの決定は、前
記のデイザマトリツクスDM1と同一のデイザマ
トリツクスDM2(第5図イ参照)と各ブロツク
の濃度レベルとの比較によつて行つている。 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
例えば、ブロツクBK1の場合、その濃度レベ
ルが11であるから、第5図イのデイザマトリツク
スDM2の内、11以下の濃度レベルの部分は黒画
素となり、前記第5図ハのブロツクBK1のよう
な濃度マトリツクスパターンになる。 For example, in the case of block BK1, its density level is 11, so the portion of the dither matrix DM2 in FIG. This results in a density matrix pattern like this.
この第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 an enlarged/reduced image. 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/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... is the block 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 reduction (magnification m/n), the x-th pattern in the I-th block in the row direction of the new block (block after water reduction) is the same as that 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. A black pixel counting means 2 stores the counted value in the memory 3; 2 reads the number of black pixels from the memory 3, converts it using the gradation curve, and stores the number of black pixels after the gradation conversion in the memory 5; The gradation processing means 6 reads the number of black pixels after gradation conversion from the memory 5, and from the number of black pixels, creates a first density matrix pattern corresponding to each 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 creates a second density matrix pattern of a size corresponding to the magnification. This is second density matrix pattern creation means for conversion. In this second density matrix pattern creation means 8, when converting the first density matrix pattern into a second density matrix pattern,
The density value of the x-th row and y-th column in the second density matrix pattern of the block located at the
The density values of the aforementioned AD1 row and AD2 column in the first density matrix pattern of the block before enlargement/reduction located at the I-th row direction and J-th column direction are adopted. 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, on the memory 9, a binarized image reconstructed with the second density matrix pattern of each block,
In other words, it has been enlarged or reduced and gradation processing has been performed.
The digitized image will be stored. It should be noted that 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/reduced images by changing the sampling interval, moiré fringes are less likely to occur. Furthermore, since gradation processing is achieved by converting the average density level (number of black pixels) of a block, gradation processing can be easily performed.
第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の濃
度マトリツクスパターンのブロツクCA,CB…階
調曲線。
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 gradation processing in FIG. 1, and FIG. 5 is an explanatory diagram of the gradation curve, FIG. 5 is an explanatory diagram of the first density matrix pattern in FIG. 1, and FIG. 6 is an explanatory diagram of the second density matrix pattern (enlarged/reduced image) in FIG. 1. Figure, 7th
The figure is an explanatory diagram of a method for obtaining a second density matrix pattern from a first density 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, f11 , f12 ,...,
f 21 , f 22 ,...Block of the first density matrix pattern, F 11 , F 12 ,..., F 21 , F 22 ,... Block of the second density matrix pattern C A , C B ... Gradation curve .
Claims (1)
て、該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 and converting the number of pixels based on a gradation curve. , a second step of storing the number of pixels after the gradation conversion in the memory, reading out the number of pixels after the gradation conversion obtained in the second step from the memory, and calculating the number of pixels for each block from the number of pixels. , a third step of obtaining a first density matrix pattern corresponding to each number of pixels and storing it in the memory; and reading out the first density matrix pattern of each block obtained in the third step from the memory. When converting into a second density matrix pattern with a size according to the magnification m/n (where m and n are integers), the second density of the block located I-th in the row direction and J-th in the column direction is As the density value of the x-th row and y-th column in the matrix pattern, the first density matrix pattern of the block before enlargement/reduction located I-th in the row direction and J-th in the 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 an image reconstructed with the second density matrix pattern of each block. An image processing method characterized in that an image is processed.
Priority Applications (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59279493A JPS61154270A (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 |
|---|---|---|---|
| JP59279493A JPS61154270A (en) | 1984-12-26 | 1984-12-26 | Picture processing method |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60280133A Division JPS61154274A (en) | 1985-12-11 | 1985-12-11 | Picture reloading method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS61154270A JPS61154270A (en) | 1986-07-12 |
| JPH0376630B2 true JPH0376630B2 (en) | 1991-12-06 |
Family
ID=17611812
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59279493A Granted JPS61154270A (en) | 1984-12-26 | 1984-12-26 | Picture processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS61154270A (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2615625B2 (en) * | 1987-06-24 | 1997-06-04 | 富士ゼロックス株式会社 | Image processing device |
| US5287209A (en) * | 1990-10-09 | 1994-02-15 | Matsushita Electric Industrial Co., Ltd. | Image forming device for enhancing tone reproduction by changing dot size |
| US5337167A (en) * | 1991-04-03 | 1994-08-09 | Matsushita Electric Industrial Co., Ltd. | Halftone image forming apparatus including density based dot enlargement |
Family Cites Families (3)
| 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 |
-
1984
- 1984-12-26 JP JP59279493A patent/JPS61154270A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS61154270A (en) | 1986-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4783838A (en) | Image processing method and apparatus therefor | |
| EP0201674B1 (en) | A method for reproducing multi-level digital images on a bi-level printer of fixed dot size | |
| JPH0696198A (en) | Conversion of nonquantized resolution of bit map image utilizing error diffusion | |
| US5489991A (en) | Method for generating digital halftone images | |
| JPH0785272A (en) | Frequency modulation halftone image and method of making | |
| JPH0376630B2 (en) | ||
| WO1995017070A1 (en) | Method for reproducing an image | |
| JPH0553350B2 (en) | ||
| JPH0376629B2 (en) | ||
| JPH0460389B2 (en) | ||
| JPS6210777A (en) | Processing method for picture | |
| JPH10145592A (en) | Method and device for generating halftone image | |
| JP2821806B2 (en) | Color image information processing method | |
| JPH0129349B2 (en) | ||
| JPS58222659A (en) | Method and apparatus for picture signal processing | |
| JPS60136476A (en) | Image processing device | |
| JPS61154272A (en) | Picture reloading method | |
| JPS61154274A (en) | Picture reloading method | |
| JPH0431466B2 (en) | ||
| JPH0583026B2 (en) | ||
| JPH0418750B2 (en) | ||
| JP2913867B2 (en) | Color image processing method | |
| JP3089688B2 (en) | Image information processing method | |
| JPH0575223B2 (en) | ||
| JPS62118482A (en) | Picture processing method |