JPH0670138A - Method and device for image processing - Google Patents
Method and device for image processingInfo
- Publication number
- JPH0670138A JPH0670138A JP4219003A JP21900392A JPH0670138A JP H0670138 A JPH0670138 A JP H0670138A JP 4219003 A JP4219003 A JP 4219003A JP 21900392 A JP21900392 A JP 21900392A JP H0670138 A JPH0670138 A JP H0670138A
- Authority
- JP
- Japan
- Prior art keywords
- image
- halftone
- data
- binary image
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims description 22
- 239000011159 matrix material Substances 0.000 claims abstract description 68
- 230000009897 systematic effect Effects 0.000 claims description 13
- 238000003672 processing method Methods 0.000 claims description 4
- 238000006243 chemical reaction Methods 0.000 abstract description 18
- 238000010586 diagram Methods 0.000 description 12
- 238000007796 conventional method Methods 0.000 description 2
- 230000006866 deterioration Effects 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
Landscapes
- Image Processing (AREA)
- Editing Of Facsimile Originals (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、2値画像を縮小された
中間調(多値)画像に変換するための画像処理に関す
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to image processing for converting a binary image into a reduced halftone (multivalued) image.
【0002】[0002]
【従来の技術】この種の画像処理は、中間調(多値)表
示が可能なディスプレイに、白黒の2値画像を縮小表示
する場合などに必要となる。2. Description of the Related Art This type of image processing is required when a monochrome binary image is reduced and displayed on a display capable of displaying halftones (multivalues).
【0003】従来、このような場合、2値画像を縮小率
に応じたサイズの二次元の画素マトリックスに分割し、
画素マトリックス中の黒画素(または白画素)の個数に
応じて、画素マトリックスに対応した縮小画像上の画素
の中間調データを決定する方法が知られている(例えば
特開平1−296772号)。Conventionally, in such a case, a binary image is divided into a two-dimensional pixel matrix having a size corresponding to a reduction ratio,
There is known a method of determining halftone data of a pixel on a reduced image corresponding to a pixel matrix according to the number of black pixels (or white pixels) in the pixel matrix (for example, Japanese Patent Laid-Open No. 1-296772).
【0004】2値画像を縦横に3分の1に縮小する例を
図6において説明する。図6において、600は2値画
像を示し、601は変換後の中間調画像である。なお、
小さな格子は一つの画素を示す。An example of vertically and horizontally reducing a binary image to one-third will be described with reference to FIG. In FIG. 6, 600 indicates a binary image, and 601 indicates a halftone image after conversion. In addition,
A small grid shows one pixel.
【0005】まず、18×18の2値画像601を3×
3の画素マトリックスで縦横に3画素毎に分割する。2
値画像601の太線で区切られた領域が3×3の画素マ
トリックスを示す。なお、数字1〜36は画素マトリッ
クスと縮小画像601の画素の番号であり、同じ番号の
画素マトリックスと画素とは1対1に対応する。First, an 18 × 18 binary image 601 is converted into 3 ×
The pixel matrix of 3 is divided vertically and horizontally into every 3 pixels. Two
Regions of the value image 601 separated by thick lines indicate a 3 × 3 pixel matrix. It should be noted that the numbers 1 to 36 are the pixel numbers of the pixel matrix and the pixels of the reduced image 601, and the pixel matrix and the pixels having the same number correspond to each other on a one-to-one basis.
【0006】次に、各画素マトリックス中の黒画素(ま
たは白画素)の個数を計数し、計数値に応じて縮小画像
の対応画素の中間調(多値)データを決定する。例え
ば、3×3の画素マトリックスの9画素に、黒画素が無
いときは白、全画素が黒画素のときは黒、1個から8個
の黒画素があるときは黒画素数に対応した中間レベル、
というように最大10階調まで割り付ける。Next, the number of black pixels (or white pixels) in each pixel matrix is counted, and the halftone (multi-value) data of the corresponding pixel of the reduced image is determined according to the count value. For example, among 9 pixels in a 3 × 3 pixel matrix, white is used when there are no black pixels, black is used when all pixels are black pixels, and an intermediate value corresponding to the number of black pixels is used when there are 1 to 8 black pixels. level,
Thus, up to 10 gradations are assigned.
【0007】このように従来は、2値画像をn分の1に
縮小した中間調画像に変換する場合(ただしnは正の整
数)、n×nの画素マトリックスで2値画像を縦横とも
n画素毎に分割し、各画像マトリックス中の黒または白
画素の個数に応じて中間調データを割り付ける。これに
より、最大[n2+1]階調の中間調縮小画像が得られ
る。一般に、割り付ける階調数が多いほど縮小画像の画
質が向上する。As described above, conventionally, when a binary image is converted into a halftone image reduced to 1 / n (where n is a positive integer), the binary image is vertically and horizontally n by an n × n pixel matrix. It is divided for each pixel, and halftone data is assigned according to the number of black or white pixels in each image matrix. As a result, a halftone reduced image having a maximum [n 2 +1] gradation can be obtained. In general, the larger the number of gradations to be assigned, the better the image quality of the reduced image.
【0008】[0008]
【発明が解決しようとする課題】現在、写真等の濃淡の
ある原画像を白黒の2値で再現する方法として、画質の
良さや処理原理・回路構成の単純さから、組織的ディザ
法が用いられることが多い。しかし、このような組織的
ディザ法による2値画像(擬似中間調画像)を上述の方
法によって変換した場合、変換後の中間調画像に不具合
が生じることがある。これについて以下に説明する。At present, the systematic dither method is used as a method for reproducing a grayscale original image such as a photograph in binary with black and white because of its good image quality, processing principle and simple circuit configuration. It is often done. However, when a binary image (pseudo-halftone image) obtained by such a systematic dither method is converted by the above method, a problem may occur in the converted halftone image. This will be described below.
【0009】図7(a)は組織的ディザ法に用いられる
網点型と呼ばれるディザマトリックス(閾値マトリック
ス)の例を示す。このディザマトリックスは、原画の入
力画像の階調(レベル)を0〜15の16階調とし、0
〜15までの閾値を4×4のマトリックス中にある規則
に従い配分したものである。FIG. 7A shows an example of a halftone dot type dither matrix (threshold matrix) used in the systematic dither method. In this dither matrix, the gradation (level) of the original input image is set to 16 gradations of 0 to 15, and 0
The thresholds up to 15 are distributed according to a rule in a 4 × 4 matrix.
【0010】このディザマトリックスを原画像の縦方向
と横方向に繰り返し、全画像に対する閾値を決める。そ
して、原画像における画素のレベルと、その画素に対す
る閾値とを比較して、白にするか黒にするかを決めるこ
とにより、中間調画像を2値画像に変換する。This dither matrix is repeated in the vertical and horizontal directions of the original image to determine the threshold value for all images. Then, the halftone image is converted into a binary image by comparing the level of the pixel in the original image with the threshold value for the pixel and determining whether to make it white or black.
【0011】図7(b)は、原画像の4×4の画素が全
て同一レベル(0,3,6,9,12,16の各レベ
ル)のときに、図7(a)のディザマトリックスを用い
た組織的ディザ処理により得られる2値画像のパターン
(ディザパターン)を示している。FIG. 7B shows the dither matrix of FIG. 7A when all 4 × 4 pixels of the original image are at the same level (each level of 0, 3, 6, 9, 12, 16). 7 shows a pattern (dither pattern) of a binary image obtained by the systematic dither processing using.
【0012】図8は、より大きな原画像のレベル9の領
域に対して得られる2値画像を示す。この2値画像80
0から理解されるように、原画像の同一レベルの部分で
は、ディザマトリックスに対応した4×4画素の周期で
同じパターンが繰り返し現われる。なお、実線により区
切られた4×4の領域がディザマトリックスに対応する
領域である。FIG. 8 shows the binary image obtained for the larger level 9 region of the original image. This binary image 80
As can be seen from 0, in the same level portion of the original image, the same pattern appears repeatedly in a cycle of 4 × 4 pixels corresponding to the dither matrix. The 4 × 4 area delimited by the solid line is the area corresponding to the dither matrix.
【0013】ここで、図8に示した2値画像(擬似中間
調画像)800を、上述の変換方法によって3分の1に
縮小した中間調画像に変換する場合を考える。図9はそ
の説明図である。Now, consider the case where the binary image (pseudo-halftone image) 800 shown in FIG. 8 is converted into a halftone image reduced to one-third by the above-described conversion method. FIG. 9 is an explanatory diagram thereof.
【0014】図9に太線で区切って示すように、図8の
ものと同じ2値画像900を3×3の画素マトリックス
(1番〜16番)で縦横に3画素毎に分割する。各画素
マトリックス中の黒画素数は、8番、11番、12番の
画素マトリックスで4個、3番、5番、6番、15番の
画素マトリックスで6個、その他の画素マトリックスで
5個となる。したがって、変換結果として中間調画像9
01が得られる。As shown in FIG. 9 separated by thick lines, the same binary image 900 as that of FIG. 8 is divided vertically and horizontally into every 3 pixels by a 3 × 3 pixel matrix (1st to 16th). The number of black pixels in each pixel matrix is 4 for the 8th, 11th, and 12th pixel matrices, 6 for the 3rd, 5th, 6th, and 15th pixel matrices, and 5 for the other pixel matrices. Becomes Therefore, the halftone image 9 is obtained as the conversion result.
01 is obtained.
【0015】このように、2値画像の原画像が均一レベ
ル(この例ではレベル9)を持つにもかかわらず、縮小
変換後の中間調画像は画素毎にレベル差のある画像とな
ってしまう。そして、図9の2値画像900と同じパタ
ーンのさらに広い2値画像を変換すると図10に示す中
間調画像1000が得られるが、これには原画像にはな
かった規則性のある模様(モアレ)が生じている。As described above, although the original image of the binary image has a uniform level (level 9 in this example), the halftone image after the reduction conversion becomes an image having a level difference for each pixel. . Then, by converting a wider binary image having the same pattern as the binary image 900 of FIG. 9, a halftone image 1000 shown in FIG. 10 is obtained, which has a regular pattern (moiré) which was not present in the original image. ) Has occurred.
【0016】これは同一レベルのディザパターンのみか
らなる2値画像を変換した場合であるが、レベルの異な
る複数種類のディザパターンを含む2値画像を変換した
場合にも、変換後の中間調画像の階調性が2値画像に比
べ劣化することがある。This is a case where a binary image composed of only dither patterns of the same level is converted. However, even when a binary image including a plurality of types of dither patterns of different levels is converted, the converted halftone image. Gradation may deteriorate compared to a binary image.
【0017】なお、このような問題に対処するため、画
素マトリックス中の黒画素数から中間調データを割り付
ける際に、黒画素数が近いもは同一データとなるように
して、変換後の画素レベルを同一にすることも考えられ
るが、原画に比べ階調性の悪化を避けられないことは明
らかである。In order to deal with such a problem, when allocating halftone data from the number of black pixels in the pixel matrix, the same data will be used even if the number of black pixels is close, and the pixel level after conversion will be the same. Although it is possible to make them the same, it is clear that deterioration of gradation is inevitable compared to the original image.
【0018】本発明は、上述の問題点に鑑みてなされた
もので、写真等の中間調画像の組織的ディザ法による2
値画像を、階調性に優れた高画質の中間調画像に縮小変
換する方法及び装置を提供することを目的とする。The present invention has been made in view of the above-mentioned problems, and it is based on the systematic dither method for halftone images such as photographs.
An object of the present invention is to provide a method and apparatus for reducing and converting a value image into a high-quality halftone image having excellent gradation.
【0019】[0019]
【課題を解決するための手段】本発明は、上述の目的を
達成するために、m×m(ただしmは正の整数)の閾値
マトリックスを用いた組織ディザ法による2値画像を、
n分の1(ただしnは正の整数)に縮小して中間調画像
に変換する際に、k・m×k・m(ただしkは正の整
数)の画素マトリックスで2値画像を縦方向及び横方向
にn画素毎に分割し、画素マトリックス中の黒画素また
は白画素の個数に応じて、該画素マトリックスに対応し
た中間調画像の画素の中間調データを決定する、という
構成を備えたものである。In order to achieve the above object, the present invention provides a binary image by a tissue dither method using a threshold matrix of m × m (where m is a positive integer),
When reducing to 1 / n (where n is a positive integer) and converting to a halftone image, a binary image is vertically arranged with a pixel matrix of km × km (where k is a positive integer). And a configuration in which halftone data of pixels of a halftone image corresponding to the pixel matrix is determined in accordance with the number of black pixels or white pixels in the pixel matrix in the horizontal direction. It is a thing.
【0020】[0020]
【作用】本発明は上述のように、画素マトリックスを閾
値マトリックスの整数倍の大きさにすることにより、2
値画像の原画像の均一レベルの部分で画素マトリックス
に含まれる黒画素または白画素の個数が均一になるた
め、変換後の中間調画像の対応部分の画素にレベル差が
生じなくなり、その結果、モアレなどのノイズの発生を
抑えることができる。また、画素マトリックス中の黒画
素または白画素の個数に応じて最大[m2+1]階調を
割り当てることができる。したがって、組織的ディザ法
による処理前の原画像に近い階調性を持つ高画質の中間
調画像を得ることができる。According to the present invention, as described above, the size of the pixel matrix is set to be an integral multiple of the threshold matrix.
Since the number of black pixels or white pixels included in the pixel matrix is uniform in the uniform level portion of the original image of the value image, the level difference does not occur in the pixels of the corresponding portion of the converted halftone image, and as a result, Generation of noise such as moire can be suppressed. Also, a maximum [m 2 +1] gradation can be assigned according to the number of black pixels or white pixels in the pixel matrix. Therefore, it is possible to obtain a high-quality halftone image having a gradation similar to the original image before the processing by the systematic dither method.
【0021】[0021]
【実施例】図1乃至図2を参照しながら、本発明の画像
処理方法による変換の具体例を説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A specific example of conversion by the image processing method of the present invention will be described with reference to FIGS.
【0022】図1は、4×4のディザマトリックスを用
いた組織的ディザ法による2値画像を、3分の1に縮小
した中間調画像に変換する場合の説明図である。100
は変換対象の2値画像の例を示すもので、この2値画像
は図7(a)に示したディザマトリックスを用いた組織
的ディザ法により、原画像のレベル9の部分を処理して
得られたものに相当する。101は変換後の中間調画像
を示す。FIG. 1 is an explanatory diagram in the case of converting a binary image by a systematic dither method using a 4 × 4 dither matrix into a halftone image reduced to one-third. 100
Shows an example of a binary image to be converted. This binary image is obtained by processing the level 9 part of the original image by the systematic dither method using the dither matrix shown in FIG. 7 (a). It corresponds to the one given. Reference numeral 101 denotes a halftone image after conversion.
【0023】変換にあたって、まず2値画像100を縦
方向及び横方向に3(=n)画素毎に画素マトリックス
で分割する。ただし、画素マトリックスをディザマトリ
ックスと同じ4×4(=m×m)のサイズとする(ここ
ではk=1としている)。したがって、2値画像100
は、太線で区切って示されるように、隣合うものが縦横
に1画素ずつオーバーラップした形で、16個の画素マ
トリックスに分割される。In the conversion, first, the binary image 100 is divided in the vertical and horizontal directions by a pixel matrix every 3 (= n) pixels. However, the pixel matrix has the same size of 4 × 4 (= m × m) as the dither matrix (here, k = 1). Therefore, the binary image 100
Are divided into 16 pixel matrices in such a manner that adjacent pixels overlap each other in the vertical and horizontal directions, as indicated by a bold line.
【0024】なお、2値画像100中に示された数字1
〜16は、画素マトリックスの番号である。また、中間
調画像101中の各画素に付された数字1〜16は、対
応した画素マトリックスの番号を示す。The numeral 1 shown in the binary image 100
16 to 16 are pixel matrix numbers. Also, the numbers 1 to 16 attached to each pixel in the halftone image 101 indicate the numbers of the corresponding pixel matrix.
【0025】このようにして分割された各画素マトリッ
クスに含まれる黒画素の個数を計数し、黒画素数に応じ
て変換後の中間調データを決定する。すなわち、画素マ
トリックス中の黒画素数が0ならば白、黒画素数が16
ならば黒、黒画素数が1乃至15ならば、その黒画素数
に対応した中間レベルを、中間調画像の対応画素に割り
付ける。つまり、2値画像100は最大17(=42+
1)階調の中間調画像101に変換される。The number of black pixels included in each pixel matrix thus divided is counted, and the converted halftone data is determined according to the number of black pixels. That is, if the number of black pixels in the pixel matrix is 0, the number of white and black pixels is 16
Then, if black and the number of black pixels are 1 to 15, the intermediate level corresponding to the number of black pixels is assigned to the corresponding pixel of the halftone image. That is, the maximum value of the binary image 100 is 17 (= 4 2 +
1) Converted to a halftone image 101 of gradation.
【0026】図1に示した2値画像100の場合、すべ
ての画素マトリックスに含まれる黒画素数が9個である
ので、変換後の中間調画像101のすべての画素にレベ
ル9が割り付けられる。このレベルは原画像のレベルと
同一であり、しかも画像毎のレベル差はない。In the case of the binary image 100 shown in FIG. 1, since the number of black pixels included in all pixel matrices is 9, level 9 is assigned to all the pixels of the converted halftone image 101. This level is the same as the level of the original image, and there is no level difference between the images.
【0027】図1に示した2値画像100と同パターン
の、さらに広い2値画像を同様に処理した場合に得られ
る中間調画像の例を図2に示す。この中間調画像200
でも、画素レベル差は発生せず、またそのレベルは原画
像のレベルと一致する。FIG. 2 shows an example of a halftone image obtained when a wider binary image having the same pattern as the binary image 100 shown in FIG. 1 is processed in the same manner. This halftone image 200
However, no pixel level difference occurs and the level matches the level of the original image.
【0028】ここで説明した例から理解されるように、
本発明の方法によれば、従来問題になっていたモアレの
発生がなく、また原画像に近い階調性を持つ中間調画像
を得られる。As can be seen from the example described here,
According to the method of the present invention, it is possible to obtain a halftone image which does not cause moire, which has been a problem in the past, and which has a gradation property close to that of the original image.
【0029】なお、ディザマトリックスのサイズ(m)
に比べ縮小率(n)が大きい場合には、kを2以上に設
定して変換を行なうことによって、同様の高画質の中間
調画像を得られる。The size of the dither matrix (m)
When the reduction ratio (n) is larger than that in (1), a similar high-quality halftone image can be obtained by setting k to 2 or more and performing conversion.
【0030】次に、本発明の画像処理装置の例を図3乃
至図5を参照しながら説明する。図3は画像処理装置の
概略ブロック図である。ここに示す画像処理装置は、4
×4のディザマトリックスを用いた組織的ディザ法によ
る2値画像を、3分の1に縮小した中間調画像に変換す
る処理、すなわち図1を参照して説明した変換を実行す
る。Next, an example of the image processing apparatus of the present invention will be described with reference to FIGS. FIG. 3 is a schematic block diagram of the image processing apparatus. The image processing device shown here has four
A process of converting a binary image by the systematic dither method using a × 4 dither matrix into a halftone image reduced to ⅓, that is, the conversion described with reference to FIG.
【0031】この画像処理装置には処理対象の2値画像
のデータ(黒が”1”、白が”0”のビットデータ)、
セレクト信号、クロック信号、ラッチ信号がそれぞれ端
子308,309,310,311より入力し、変換さ
れた中間調画像の中間調データ(4ビット/画素)は端
子312より出力される。In this image processing apparatus, binary image data to be processed (bit data of "1" for black and "0" for white),
The select signal, the clock signal, and the latch signal are input from terminals 308, 309, 310, and 311 respectively, and the converted halftone data (4 bits / pixel) of the halftone image is output from the terminal 312.
【0032】この画像処理装置は、1ライン分の2値画
像データを記憶できる容量のシフトレジスタ301,3
02,303,304と、シフトレジスタ301の入力
データの切り替えのためのセレクタ305、中間調デー
タを格納したROM306、及びROM306の出力デ
ータをラッチするためのラッチ回路307より構成され
る。This image processing apparatus has shift registers 301, 3 having a capacity capable of storing binary image data for one line.
02, 303, 304, a selector 305 for switching input data of the shift register 301, a ROM 306 storing halftone data, and a latch circuit 307 for latching output data of the ROM 306.
【0033】セレクタ305は、AとBの二つの入力を
持ち、セレクト信号に従ってA入力信号またはB入力信
号を選択して出力する。A入力には外部からの2値画像
データが入力し、B入力にはシフトレジスタ301の最
上位ビットのデータが入力する。セレクタ305の出力
データはシフトレジスタ301に入力する。The selector 305 has two inputs A and B, and selects and outputs the A input signal or the B input signal according to the select signal. Binary image data from the outside is input to the A input, and the most significant bit data of the shift register 301 is input to the B input. The output data of the selector 305 is input to the shift register 301.
【0034】シフトレジスタ301の最上位ビットのデ
ータはシフトレジスタ302に入力し、シフトレジスタ
302の最上位ビットのデータはシフトレジスタ303
に入力し、シフトレジスタ303の最上位ビットのデー
タはシフトレジスタ304に入力する。シフトレジスタ
301,302,303,304の上位4ビットのデー
タ(合計16ビット)は、ROM306にアドレスデー
タとして入力する。シフトレジスタ301,302,3
03,304は、外部からクロック信号が入力する毎に
入力データを最下位ビットに取り込むとともに、保持し
ているデータを1ビットだけ上位(右)へシフトする。The most significant bit data of the shift register 301 is input to the shift register 302, and the most significant bit data of the shift register 302 is the shift register 303.
The data of the most significant bit of the shift register 303 is input to the shift register 304. The upper 4-bit data (16 bits in total) of the shift registers 301, 302, 303, 304 are input to the ROM 306 as address data. Shift registers 301, 302, 3
Each of 03 and 304 takes in the input data to the least significant bit every time a clock signal is input from the outside, and shifts the held data by one bit to the upper (right) side.
【0035】ROM306は、16ビットのアドレスデ
ータにより指定されたアドレスに、同アドレスデータ中
の”1”のビットの個数に応じた0から15までの16
階調の中間調データ(4ビット)を格納している。この
ROM306から出力される中間調データは、外部から
ラッチ信号が入力する毎にラッチ回路307にラッチさ
れ、端子312より外部へ出力される。The ROM 306 has 16 addresses from 0 to 15 according to the number of "1" bits in the address data specified by the 16-bit address data.
It stores halftone data (4 bits) of gradation. The halftone data output from the ROM 306 is latched by the latch circuit 307 every time a latch signal is input from the outside, and output from the terminal 312 to the outside.
【0036】以上のように構成された画像処理装置につ
いて、以下その全体的動作を説明する。動作の理解を助
けるため、図4に動作タイミング図を、また図5に動作
フローチャートを示す。The overall operation of the image processing apparatus configured as described above will be described below. To facilitate understanding of the operation, an operation timing chart is shown in FIG. 4 and an operation flowchart is shown in FIG.
【0037】まず、セレクタ305がA入力を選択する
側にセレクト信号が設定され(図5のS1)、この状態
でクロック信号が連続的に入力し、これに同期し2値画
像データが1ライン分連続的に入力する(S2)。2値
画像データはセレクタ305を経由してシフトレジスタ
301に入力し、クロック信号によって順次最下位ビッ
トに取り込まれ、かつ上位側へシフトされていく。この
ようにして1ラインの2値画像データ(図4のLine
1)がシフトレジスタ301に保持される。シフトレジ
スタ301の最上位ビットは、ラインの先頭画素のデー
タである。First, a select signal is set on the side where the selector 305 selects the A input (S1 in FIG. 5), and in this state, the clock signal is continuously input, and in synchronization with this, one line of binary image data is input. Minutes are continuously input (S2). The binary image data is input to the shift register 301 via the selector 305, sequentially captured by the least significant bit by the clock signal, and then shifted to the upper side. In this way, one line of binary image data (Line of FIG. 4 is
1) is held in the shift register 301. The most significant bit of the shift register 301 is the data of the first pixel of the line.
【0038】続いて、後続の3ライン分の2値画像デー
タ(図4のLine2,Line3,Line4)がク
ロック信号に同期して入力する。この画像データはシフ
トレジスタ301に順次取り込まれ、またシフトレジス
タ301に保持されていた画像データは下側のシフトレ
ジスタ302,303,304へ順次シフトされてい
く。かくして、シフトレジスタ304に1ライン目(L
ine1)、シフトレジスタ303に2ライン目(Li
ne2)、シフトレジスタ302に3ライン目(Lin
e3)、シフトレジスタ301に4ライン目(Line
4)の計4ライン分の2値画像データが保持される。こ
の時、シフトレジスタ301,302,303,304
の上位4ビット、計16ビットのデータは、当該4ライ
ンの領域における最初の4×4の画素マトリックスの画
素データであり、当該画素マトリックス中の黒画素数に
対応した中間調データ(変換後の中間調画像の対応した
画素のレベル)がROM306より出力される。Subsequently, the subsequent binary image data for three lines (Line2, Line3, Line4 in FIG. 4) are input in synchronization with the clock signal. This image data is sequentially taken into the shift register 301, and the image data held in the shift register 301 is sequentially shifted to the lower shift registers 302, 303, 304. Thus, the first line (L
ine1) and the second line (Li
ne2), the third line (Lin
e3), the fourth line (Line
The binary image data for 4 lines in 4) is held. At this time, the shift registers 301, 302, 303, 304
The upper 4 bits of 16 bits in total, which is a total of 16 bits, is pixel data of the first 4 × 4 pixel matrix in the area of the 4 lines, and halftone data (after conversion) corresponding to the number of black pixels in the pixel matrix. The corresponding pixel level of the halftone image) is output from the ROM 306.
【0039】次にセレクト信号の状態が反転され(S
4)、セレクタ305はB入力を選択するようになる。
次にラッチ信号が1パルス入力し(S5)、ROM30
6の出力データがラッチ回路307にラッチされ、最初
の画素の中間調データが端子312より外部へ出力され
る。Next, the state of the select signal is inverted (S
4), the selector 305 comes to select the B input.
Next, one pulse of the latch signal is input (S5), and the ROM 30
The output data of No. 6 is latched by the latch circuit 307, and the halftone data of the first pixel is output from the terminal 312 to the outside.
【0040】次にクロック信号が3パルス入力する(S
6)。シフトレジスタ301,302,303,304
内の2値画像データは3ビット分上位側へシフトされ
る。この際に、シフトレジスタ301,302,303
の最上位ビットデータはそれぞれ下側のシフトレジスタ
302,303,304へ順次入力する。また、シフト
レジスタ1の最上位ビットデータは、セレクタ5を経由
してシフトレジスタ1に再び入力する。かくして、次の
4×4の画素マトリックスの16ビットデータがROM
306に入力し、当該画素マトリックス中の黒画素数に
対応した中間調データがROM306より出力する。Next, three pulses of the clock signal are input (S
6). Shift registers 301, 302, 303, 304
The binary image data therein is shifted upward by 3 bits. At this time, the shift registers 301, 302, 303
The most significant bit data of are sequentially input to the lower shift registers 302, 303, 304. Further, the most significant bit data of the shift register 1 is input again to the shift register 1 via the selector 5. Thus, the 16-bit data of the next 4 × 4 pixel matrix is stored in the ROM.
The data is input to 306, and halftone data corresponding to the number of black pixels in the pixel matrix is output from the ROM 306.
【0041】次にラッチ信号が1パルス入力し(S
7)、ROM306から出力された中間調データがラッ
チ回路307にラッチされ、外部へ出力される。Next, one pulse of the latch signal is input (S
7), the halftone data output from the ROM 306 is latched by the latch circuit 307 and output to the outside.
【0042】以後、S6,S7の動作が繰り返されるこ
とによって、最初の4ライン領域を横方向に3画素毎に
分割した4×4の画素マトリックスに対応した中間調デ
ータが順次決定され、外部へ出力されていく。この動作
はシフトレジスタ301,302,303,304にお
いて2値画像の1ライン分のシフトが終わるまで続く
(S8)。After that, by repeating the operations of S6 and S7, halftone data corresponding to a 4 × 4 pixel matrix obtained by horizontally dividing the first four-line area into every three pixels is sequentially determined, and is output to the outside. It will be output. This operation continues until the shift registers 301, 302, 303, 304 have finished shifting one line of the binary image (S8).
【0043】これを終了すると、次にセレクト信号が反
転し(S9)、次の3ライン(Line5,Line
6,Line7)の2値画像データが入力する。この入
力の開始前にシフトレジスタ301には4ライン目(L
ine)の2値画像データが蓄積されていたので、シフ
トレジスタ304にLine4の、シフトレジスタ30
3にLine5の、シフトレジスタ302にLine6
の、シフトレジスタ301にLine7の2値画像デー
タがそれぞれ蓄積されることになる。When this is completed, the select signal is next inverted (S9), and the next three lines (Line5, Line).
6, Line 7) binary image data is input. Before the start of this input, the shift register 301 has a fourth line (L
Since the binary image data of (ine) has been accumulated, the shift register 304 of Line 4 is stored in the shift register 304.
3 for Line 5 and shift register 302 for Line 6
The binary image data of Line 7 is stored in the shift register 301.
【0044】つまり、先に処理した4ラインの最後の1
ラインと重複した次の4ラインの2値画像データがシフ
トレジスタ301,302,303,304に蓄積され
る。そして、S4〜S7の動作の繰り返しによって、こ
の4ライン領域について横方向に3画素毎に分割した4
×4の画素マトリックスに対応した中間調データが順次
決定され、ラッチ回路307を経由して外部へ出力され
る。That is, the last 1 of the 4 lines processed previously
Binary image data of the next four lines overlapping the line is accumulated in the shift registers 301, 302, 303, 304. Then, by repeating the operation of S4 to S7, the 4-line area is divided into three pixels in the horizontal direction.
The halftone data corresponding to the x4 pixel matrix is sequentially determined and output to the outside via the latch circuit 307.
【0045】以上の動作が1ページの終了まで(S1
0)続けられることによって、1ページの2値画像の変
換を完了する。The above operation is performed until the end of one page (S1
0) By continuing, conversion of one page of binary image is completed.
【0046】ここまでの説明から理解されるように、本
画像処理装置においては、2値画像データの入力段階
で、2値画像を縦方向に3画素(一般的にはn画素)毎
に4×4(一般的にはk・m)のサイズで分割し、4
(一般的にはk・m)ラインの2値画像データを切り出
し、次にシフトレジスタ301,302,303,30
4上でのデータシフト操作によって、横方向に3(一般
的にはm)画素毎に分割することによって、4×4(一
般的にはk・m)の画素マトリックス毎の2値画像デー
タを切り出している。As can be understood from the above description, in the present image processing apparatus, at the input stage of binary image data, the binary image is divided into 4 pixels every 3 pixels (generally n pixels) in the vertical direction. Divide by a size of × 4 (generally k · m), and
Binary image data of (generally km) lines are cut out, and then shift registers 301, 302, 303, 30
By the data shift operation on 4, the image data is divided into 3 (generally m) pixels in the horizontal direction to obtain 4 × 4 (generally k · m) binary image data for each pixel matrix. It is cut out.
【0047】このような構成は回路規模の縮小、処理の
高速化の面で有利な場合が多い。ただし、入力した2値
画像データをRAMに一旦蓄積し、このRAM上の2値
画像データに対し、ソフトウエアあるいはハードウエア
によって、同様の縦横分割と画素マトリックス毎の2値
画像データの切り出しを実行してもよい。Such a configuration is often advantageous in terms of reducing the circuit scale and increasing the processing speed. However, the input binary image data is temporarily stored in the RAM, and the binary image data on this RAM is subjected to the same vertical and horizontal divisions and the extraction of the binary image data for each pixel matrix by software or hardware. You may.
【0048】また、本画像処理装置において、シフトレ
ジスタ301,302,303,304を、RAMと、
その読み出しと書き込みのアドレス制御のためのカウン
タの組み合わせに置き換え、同様の動作を行なってもよ
い。ROM306の代わりに、ハードウエアまたはソフ
トウエアのカウンタまたは加算器を使用し、画素マトリ
ックス中の黒画素数を計数し、計数値をそのまま中間調
データとして出力する構成としてもよい。In the image processing apparatus, the shift registers 301, 302, 303, 304 are RAM and
The same operation may be performed by substituting a combination of counters for the read and write address control. Instead of the ROM 306, a hardware or software counter or adder may be used to count the number of black pixels in the pixel matrix and output the count value as it is as halftone data.
【0049】[0049]
【発明の効果】以上の説明から明らかなように、本発明
は、写真等を原画像とする組織的ディザ法による2値画
像をn分の1に縮小した中間調画像に変換する際、組織
的ディザ処理時の閾値マトリックスの整数倍のサイズの
画素マトリックスで2値画像を縦方向及び横方向にn画
素毎に分割し、画素マトリックス中の黒画素または白画
素の個数に応じて、該画素マトリックスに対応した中間
調画像の画素の中間調データを決定するため、モアレな
どのノイズが少なく、原画像に近い階調性を持つ高画質
の中間調画像を得られる、という効果を有するものであ
る。As is apparent from the above description, according to the present invention, when converting a binary image by a systematic dither method using a photograph or the like as an original image into a halftone image reduced to 1 / n, A binary image is divided into n pixels in the vertical and horizontal directions by a pixel matrix having a size that is an integer multiple of the threshold matrix at the time of dynamic dither processing, and the pixel is divided according to the number of black pixels or white pixels in the pixel matrix. Since the halftone data of the pixels of the halftone image corresponding to the matrix is determined, there is little noise such as moire, and it is possible to obtain a high-quality halftone image with a gradation similar to the original image. is there.
【図1】本発明の画像処理方法による変換例の説明図FIG. 1 is an explanatory diagram of a conversion example according to an image processing method of the present invention.
【図2】変換後の中間調画像の例を示す図FIG. 2 is a diagram showing an example of a halftone image after conversion.
【図3】本発明による画像処理装置の例を示すブロック
図FIG. 3 is a block diagram showing an example of an image processing apparatus according to the present invention.
【図4】画像処理装置の動作タイミング図FIG. 4 is an operation timing chart of the image processing apparatus.
【図5】画像処理装置の動作フローチャートFIG. 5 is an operation flowchart of the image processing apparatus.
【図6】従来の方法による変換例の説明図FIG. 6 is an explanatory diagram of a conversion example according to a conventional method.
【図7】(a)ディザマトリックスの例を示す図 (b)ディザパターンの例を示す図FIG. 7A is a diagram showing an example of a dither matrix. FIG. 7B is a diagram showing an example of a dither pattern.
【図8】組織的ディザ法による2値画像の例を示す図FIG. 8 is a diagram showing an example of a binary image by the systematic dither method.
【図9】組織的ディザ法による2値画像の従来方法によ
る変換例の説明図FIG. 9 is an explanatory diagram of an example of conversion of a binary image by a conventional method by the systematic dither method.
【図10】モアレの発生した中間調画像の例を示す図FIG. 10 is a diagram showing an example of a halftone image in which moire has occurred.
100 2値画像 101 中間調画像 301 シフトレジスタ 302 シフトレジスタ 303 シフトレジスタ 304 シフトレジスタ 305 セレクタ 306 ROM 307 ラッチ回路 308 2値画像データ入力端子 309 セレクト信号入力端子 310 クロック信号入力端子 311 ラッチ信号入力端子 312 中間調データ出力端子 100 binary image 101 halftone image 301 shift register 302 shift register 303 shift register 304 shift register 305 selector 306 ROM 307 latch circuit 308 binary image data input terminal 309 select signal input terminal 310 clock signal input terminal 311 latch signal input terminal 312 Halftone data output terminal
Claims (2)
トリックスを用いた組織的ディザ法による2値画像を、
n分の1(ただしnは正の整数)に縮小した中間調画像
に変換する画像処理方法であって、k・m×k・m(た
だしkは正の整数)の画素マトリックスで2値画像を縦
方向及び横方向にそれぞれn画素毎に分割し、各画素マ
トリックス中の黒画素または白画素の個数に応じて、該
画素マトリックスに対応した中間調画像の画素の中間調
データを決定することを特徴とする画像処理方法。1. A binary image obtained by the systematic dither method using a threshold matrix of m × m (where m is a positive integer),
An image processing method for converting into a halftone image reduced to 1 / n (where n is a positive integer), which is a binary image with a pixel matrix of km × km (where k is a positive integer). In the vertical direction and in the horizontal direction by n pixels respectively, and determine halftone data of the pixels of the halftone image corresponding to the pixel matrix according to the number of black pixels or white pixels in each pixel matrix. An image processing method characterized by:
トリックスを用いた組織ディザ法による2値画像を、n
分の1(ただしnは正の整数)に縮小した中間調画像に
変換する画像処理装置であって、2値画像のデータを入
力する手段と、この手段により入力された2値画像のデ
ータに対して、2値画像をk・m×k・m(ただしkは
正の整数)の画素マトリックスで縦方向及び横方向にn
画素毎に分割し、各画素マトリックス毎に2値画像のデ
ータを切り出す処理を行なう手段と、この手段により切
り出されたデータ中の黒画素または白画素のビット数に
応じた中間調データを生成する手段と、この手段により
生成された中間調データを出力する手段とを有すること
を特徴とする画像処理装置。2. A binary image obtained by a tissue dither method using a threshold matrix of m × m (where m is a positive integer) is represented by n
An image processing apparatus for converting a halftone image reduced to 1 / (n is a positive integer), and a unit for inputting binary image data and a binary image data input by this unit. On the other hand, a binary image is represented by a pixel matrix of km × km (where k is a positive integer) in the vertical and horizontal directions.
Means for dividing each pixel matrix and cutting out binary image data for each pixel matrix, and generating halftone data according to the number of bits of black pixels or white pixels in the data cut out by this means An image processing apparatus comprising means and means for outputting the halftone data generated by this means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4219003A JPH0670138A (en) | 1992-08-18 | 1992-08-18 | Method and device for image processing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4219003A JPH0670138A (en) | 1992-08-18 | 1992-08-18 | Method and device for image processing |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0670138A true JPH0670138A (en) | 1994-03-11 |
Family
ID=16728743
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4219003A Pending JPH0670138A (en) | 1992-08-18 | 1992-08-18 | Method and device for image processing |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0670138A (en) |
-
1992
- 1992-08-18 JP JP4219003A patent/JPH0670138A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03185969A (en) | Half-tone treatment of input picture element and conversion of image signal | |
| JPH077461B2 (en) | Image estimation method | |
| US5317417A (en) | Image processing apparatus with improved image reduction | |
| JPH08116440A (en) | Multilevel image binarizing device | |
| JP3461247B2 (en) | Image processing apparatus and image processing method | |
| JPS58136173A (en) | Dither processor | |
| JPH03236097A (en) | Method and device for image display | |
| JPH0413882Y2 (en) | ||
| JPS6345974A (en) | Image processing unit | |
| JP3782146B2 (en) | Image processing device | |
| JPH09311669A (en) | Image processing apparatus and image processing method thereof | |
| JPH01212073A (en) | Picture data reducing device | |
| JP3089355B2 (en) | Image processing device | |
| JP2001086358A (en) | Method and apparatus for gradation processing of image data | |
| JPH05207273A (en) | Picture reduction method | |
| JPS63276969A (en) | Pseudo intermediate tone picture processing system | |
| JPH02252362A (en) | Half tone picture estimator | |
| JPS63281566A (en) | Image binarization circuit | |
| JPH0453352B2 (en) | ||
| JPS63234672A (en) | Picture estimate device | |
| JPH02252360A (en) | Half tone picture estimating method | |
| JPS61133774A (en) | Binary cording circuit | |
| JPH0360576A (en) | Binarizing processing unit | |
| JPH04211569A (en) | Image processor | |
| JPH02252359A (en) | Half tone picture estimating method |