JPH04287567A - Picture element density conversion system - Google Patents

Picture element density conversion system

Info

Publication number
JPH04287567A
JPH04287567A JP3052210A JP5221091A JPH04287567A JP H04287567 A JPH04287567 A JP H04287567A JP 3052210 A JP3052210 A JP 3052210A JP 5221091 A JP5221091 A JP 5221091A JP H04287567 A JPH04287567 A JP H04287567A
Authority
JP
Japan
Prior art keywords
data
binary
pixel
picture
density
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP3052210A
Other languages
Japanese (ja)
Other versions
JP2833669B2 (en
Inventor
Katsutoshi Ushida
牛田 勝利
Yuichi Sakauchi
祐一 坂内
Kunihiro Yamamoto
邦浩 山本
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP3052210A priority Critical patent/JP2833669B2/en
Priority to DE69223536T priority patent/DE69223536T2/en
Priority to EP92302194A priority patent/EP0505113B1/en
Priority to ES92302194T priority patent/ES2109979T3/en
Priority to CN92101823.1A priority patent/CN1097806C/en
Publication of JPH04287567A publication Critical patent/JPH04287567A/en
Priority to US08/376,450 priority patent/US5717793A/en
Application granted granted Critical
Publication of JP2833669B2 publication Critical patent/JP2833669B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/403Edge-driven scaling; Edge-based scaling

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To obtain a magnification picture with excellent picture element density conservation with respect to a picture in mixture of a character picture and a pseudo intermediate tone picture, to prevent blurring of an edge part of the character picture possibly occurred at multi-value processing, to suppress production of moire stripes of pseudo contour and to realize the picture element density conversion picture with high quality. CONSTITUTION:A binary data inputted by a binary magnification circuit 2 is magnified respectively a multiple of (n) (n is an integer) in the main scanning direction and a multiple of (m) (m is an integer) in the subscanning direction. A multi-value processing circuit 3 stores a data to a memory once, extracts a picture data of an optional area, refers an area comprising a noted picture element and its surrounding picture elements to calculate the picture data of multi-value density based on a window outputted from a weight table. A magnification circuit 4 reduces/magnifies the picture data of multi-value density into an optional size by the interleave processing of a picture clock and a line synchronizing signal. A binarizing circuit 5 converts the picture data of the multi- value density into a binary data.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は画素密度変換方式に関し
、特に2値画像データを任意の倍率に変倍処理し、画素
密度の異なった2値画像データを出力する画素密度変換
方式に関するものである。
[Field of Industrial Application] The present invention relates to a pixel density conversion method, and more particularly to a pixel density conversion method for scaling binary image data to an arbitrary magnification and outputting binary image data with different pixel densities. be.

【0002】0002

【従来の技術】従来、白と黒の2値データで表現された
2値画像の画素密度変換方式として、SPC(Sele
cted Pixel Coding)法、論理和法、
投影法、9分割法等が知られている。各々の画素密度変
換方式は文字や線画を対象にしたものでファクシミリや
ワードプロセッサ等では、装置構成が簡単なことからS
PC法で代表される画素ごとの単純な間引き、重複処理
による画素密度変換処理が行なわれている。
[Prior Art] Conventionally, SPC (Sele
cted Pixel Coding) method, logical sum method,
Projection methods, 9-division methods, etc. are known. Each pixel density conversion method targets characters and line drawings, and S
Pixel density conversion processing is performed by simple thinning and duplication processing for each pixel, which is typified by the PC method.

【0003】また、組織的ディザ画像を対象とする画素
密度変換方式として、ディザマトリックスごとの間引き
、重複処理による変倍によりモアレ縞のない変倍画像を
得る手法が提案されている。
[0003] Furthermore, as a pixel density conversion method for systematic dithered images, a method has been proposed in which a scaled image without moiré fringes is obtained by thinning out each dither matrix and scaling by duplication processing.

【0004】0004

【発明が解決しようとしている課題】しかしながら、上
記従来例では、画素ごとの単純間引き、重複処理を用い
た場合、文字や線画に対しては比較的良好な画像を得る
ことができる。しかし、濃度を一定面積中の黒画素の密
度によって表現している擬似中間調画像に対して上記処
理を行なうと、黒画素のパターンがみだれ、階調性のみ
だれやモアレ縞が発生するという欠点があった。例えば
、誤差拡散法により得られた擬似中間調画像に対して画
素ごとの単純間引き、重複処理を行なうと、階調性がみ
だれ、ノイズっぽい画像となる。また同様に、ディザ画
像に対し処理を行なうと、ディザマトリックスの周期と
間引き、重複処理により周期が干渉しモアレ縞が発生す
る。
However, in the conventional example described above, when simple pixel-by-pixel thinning and overlapping processing are used, relatively good images can be obtained for characters and line drawings. However, when the above processing is performed on a pseudo-halftone image whose density is expressed by the density of black pixels in a certain area, the black pixel pattern becomes blurred, and gradation blur and moire fringes occur. was there. For example, if simple pixel-by-pixel thinning and duplication processing is performed on a pseudo-halftone image obtained by the error diffusion method, the gradation becomes blurred and the image becomes noise-like. Similarly, when processing is performed on a dithered image, the period interferes with the period of the dither matrix due to thinning and duplication processing, resulting in moiré fringes.

【0005】一方、ディザマトリックスを単位とする間
引き、重複処理では、ディザ画像がディザマトリックス
単位で濃度を表現しているため、階調性が保存された比
較的良好な変倍画像を得ることができる。しかし、変換
倍率が制限され、扱える画像がディザによる擬似中間調
画像に限定されるという欠点があった。本発明は、上記
課題を解決するために成されたもので、2値化された画
像を濃度データに変換して処理を行うことにより、従来
多値画像に用いられていた処理を行なうことが可能とな
り、文字画像や擬似中間調画像が混在する画像に対して
同様な処理を行ない、濃度保存性の優れた変倍画像が得
られる画素密度変換方式を提供することを目的とする。
On the other hand, in thinning and duplication processing using dither matrices as units, since the dither image expresses density in dither matrix units, it is difficult to obtain a relatively good scaled image with preserved gradation. can. However, there are drawbacks in that the conversion magnification is limited and the images that can be handled are limited to pseudo-halftone images created by dithering. The present invention was made to solve the above problems, and by converting a binarized image into density data and processing it, it is possible to perform the processing conventionally used for multivalued images. An object of the present invention is to provide a pixel density conversion method that can perform similar processing on an image containing a mixture of character images and pseudo-halftone images, and obtain a variable-magnification image with excellent density preservation.

【0006】また、2値から多値濃度に変換する際のウ
インドウサイズ及び重み付けを変化させることにより、
多値化時に発生しがちな文字画像のエッジ部のぼけを防
ぎ、また同時に擬似中間調画像に対してはモアレ縞や擬
似輪郭の発生を抑え、高品位な画素密度変換画像が得ら
れる画素密度変換方式を提供することを目的とする。
[0006] Furthermore, by changing the window size and weighting when converting from binary to multi-value density,
A pixel density that prevents the blurring of the edges of character images that tends to occur during multilevel conversion, and at the same time suppresses the occurrence of moiré fringes and pseudo contours in pseudo-halftone images, resulting in high-quality pixel density converted images. The purpose is to provide a conversion method.

【0007】[0007]

【課題を解決するための手段及び作用】上記目的を達成
するために、本発明の画素密度変換方式は以下の構成か
らなる。すなわち、主走査方向x画素×副走査方向y画
素からなる2値画像データを入力し、主走査方向X画素
×副走査方向Y画素の任意のサイズに変換して2値画像
データを出力する画素密度変換方式において、入力され
た2値画像データの画像サイズを2値データのまま主走
査m倍、副走査n倍の任意の整数倍に拡大する拡大手段
と、拡大処理時には、前記拡大手段により得られた整数
倍拡大2値画像データに対し、また縮小処理時には、前
記入力された2値画像データに対し、着目画素とその周
囲画素濃度より多値濃度を算出する2値多値濃度変換手
段と、該2値多値濃度変換手段により得られた多値濃度
の画像データのサイズを主走査方向、副走査方向それぞ
れ任意の倍率で縮小する任意変倍手段と、該任意変倍手
段により得られた多値濃度の画像データを2値化する2
値化手段とを有し、文字画像及び擬似中間調画像等どの
ような原画像も高品位に変倍でき、擬似中間調画像に対
しては、2値データとして入力される原画像を濃度デー
タに変換処理し、変倍処理することで、濃度保存性に優
れた画像を得ることができ、更に、文字画像に対しては
、変倍率に応じてウインドウサイズを変化させることで
、多値化時に発生しがちなエッジのぼけを防ぎ、文字や
線画に対してはエッジの保存された忠実な画素密度変換
画像を得るものである。
Means and Effects for Solving the Problems In order to achieve the above object, the pixel density conversion system of the present invention has the following configuration. That is, a pixel that inputs binary image data consisting of x pixels in the main scanning direction x y pixels in the sub-scanning direction, converts it to an arbitrary size of X pixels in the main scanning direction x Y pixels in the sub-scanning direction, and outputs binary image data. In the density conversion method, an enlargement means for enlarging the image size of input binary image data as binary data to an arbitrary integer multiple of m times in main scanning and n times in sub-scanning; and during enlargement processing, the enlargement means A binary multi-value density conversion means for calculating a multi-value density from the density of a pixel of interest and its surrounding pixels for the obtained binary image data enlarged by an integer times, or for the input binary image data during reduction processing. , arbitrary scaling means for reducing the size of the multi-value density image data obtained by the binary multi-value density conversion means at an arbitrary magnification in each of the main scanning direction and the sub-scanning direction; 2) Binarize the multilevel density image data
It has a value converting means, and can scale any original image such as character images and pseudo-halftone images with high quality.For pseudo-halftone images, the original image input as binary data is converted into density data. By performing conversion processing and scaling processing, it is possible to obtain images with excellent density preservation.Furthermore, for character images, by changing the window size according to the scaling ratio, it is possible to obtain multilevel images. This prevents edge blurring that sometimes occurs, and obtains faithful pixel density converted images with preserved edges for characters and line drawings.

【0008】[0008]

【実施例】以下、図面を参照しながら本発明に係る好適
な一実施例を詳細に説明する。 <変倍処理の説明  (図2)>まず、本実施例におけ
る変倍処理の流れを、図2を参照して詳細に説明する。 図2は、主走査方向x画素、副走査方向y画素の2値デ
ータを主走査方向X画素、副走査方向Y画素の2値デー
タに変倍する処理を示すフローチャートである。最初に
、ステップS1では、主走査及び副走査いずれか一方で
も拡大処理するか否かを判断し、拡大処理しない場合、
つまり主走査及び副走査共に縮小処理の場合にはステッ
プS3へ処理を進めるが、拡大処理する場合は、ステッ
プS2へ処理を進める。
DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment of the present invention will be described in detail below with reference to the drawings. <Description of scaling processing (FIG. 2)> First, the flow of scaling processing in this embodiment will be explained in detail with reference to FIG. 2. FIG. 2 is a flowchart showing a process of scaling binary data of x pixels in the main scanning direction and y pixels in the sub-scanning direction to binary data of X pixels in the main scanning direction and Y pixels in the sub-scanning direction. First, in step S1, it is determined whether or not to perform enlargement processing in either the main scanning or sub-scanning, and if the enlargement processing is not performed,
That is, if both main scanning and sub-scanning are reduction processing, the process proceeds to step S3, but if enlargement processing is to be performed, the process proceeds to step S2.

【0009】(1)拡大処理 拡大処理する場合には、ステップS2の2値整数倍拡大
処理で、主走査方向x画素×副走査方向y画素の2値の
デジタルデータを重複処理によって主走査方向にn倍(
n=[X/x]、ここで[a]はaより小さくない整数
を表す)、副走査方向にm倍(m=[Y/y]、ここで
Y>y)に変倍し、nx×my画素の2値データに変換
する。そして、ステップS3では、ステップS2で得ら
れた2値データに対し、変倍率に応じたウインドウを用
い画素ごとに走査を行ない、ウインドウ内の2値画像の
画素パターンから多値濃度データを算出し、nx×my
画素の多値濃度の画像データに変換する。次のステップ
S4では、ステップS3で変換されたnx×my画素サ
イズの多値濃度の画像データをクロック及びライン同期
信号によって間引き処理し、任意のサイズに縮小変倍し
てX×Y画素の多値濃度の画像データに変換する。そし
て、ステップS5では、X×Y画素の多値濃度の画像デ
ータを2値化処理することにより、X×Y画素の変倍2
値画像を得る。
(1) Enlargement processing When enlarging processing is performed, binary digital data of x pixels in the main scanning direction x y pixels in the sub-scanning direction is enlarged in the main scanning direction by duplication processing in the binary integer times enlargement processing in step S2. n times (
n = [X/x], where [a] represents an integer not smaller than a), magnification is changed by m times in the sub-scanning direction (m = [Y/y], where Y>y), and nx Convert to binary data of ×my pixels. Then, in step S3, the binary data obtained in step S2 is scanned pixel by pixel using a window corresponding to the magnification ratio, and multi-value density data is calculated from the pixel pattern of the binary image within the window. , nx×my
Convert to multi-level density image data of pixels. In the next step S4, the multi-level density image data of nx x my pixel size converted in step S3 is thinned out using the clock and line synchronization signal, and reduced and scaled to an arbitrary size and multi-valued of X x Y pixels. Convert to value density image data. Then, in step S5, by binarizing the multi-level density image data of X×Y pixels,
Get the value image.

【0010】(2)縮小処理 一方、縮小処理の場合には、ステップS3でx×y画素
の2値データに対し、変倍率に応じたウインドウを用い
画素ごとに走査を行ない、ウインドウ内の2値画像の画
素パターンから多値濃度データを算出し、x×y画素の
多値濃度の画像データに変換する。次に、ステップS4
では、ステップS3で変換されたx×y画素サイズの多
値濃度の画像データをクロック及びライン同期信号によ
って間引き処理し、任意のサイズに縮小変倍してX×Y
画素の多値濃度の画像データに変換する。そして、ステ
ップS5では、X×Y画素の多値濃度の画像データを2
値化処理することにより、X×Y画素の変倍2値画像を
得る。
(2) Reduction processing On the other hand, in the case of reduction processing, in step S3, the binary data of x×y pixels is scanned pixel by pixel using a window corresponding to the magnification ratio, and the Multi-value density data is calculated from the pixel pattern of the value image and converted into multi-value density image data of x×y pixels. Next, step S4
Now, the multilevel density image data of the x x y pixel size converted in step S3 is thinned out using the clock and line synchronization signal, and the image data is reduced and scaled to an arbitrary size.
Convert to multi-level density image data of pixels. Then, in step S5, the multi-level density image data of X×Y pixels is
By performing the value conversion process, a scaled binary image of X×Y pixels is obtained.

【0011】以上の流れにおいて、2値画像を多値濃度
の画像データに変換する際に変倍率によって参照画素及
び重み付けが異なるウインドウ走査を行ない、拡大処理
時には、一旦2値データのまま拡大処理した後、2値画
像を多値濃度の画像データに変換することで、多値化時
に発生する画像のエッジ部のボケを極力抑えた変倍画像
を得ることが可能となる。また、ここで、拡大時に輪郭
平滑化拡大処理を行なうことにより、重複拡大時に発生
する斜線部分の段差を補間し、より高品位な文字画像を
得ることも可能となる。
[0011] In the above process, when converting a binary image into multilevel density image data, window scanning is performed with different reference pixels and weighting depending on the magnification ratio, and during enlargement processing, the binary image is temporarily enlarged as it is. Thereafter, by converting the binary image into multi-value density image data, it becomes possible to obtain a variable-magnification image in which blurring of the edge portions of the image that occurs during multi-value conversion is suppressed to a minimum. Furthermore, by performing contour smoothing and enlarging processing at the time of enlarging, it is possible to interpolate the level difference in the diagonally shaded portion that occurs during overlapping enlarging, thereby obtaining a higher quality character image.

【0012】<構成の説明  (図1)>次に、上述し
た変倍処理を行なう具体的な装置について詳細に説明す
る。図1は、本実施例における画素密度変換装置の構成
を示すブロック図である。以下、順に構成要素を説明す
る。図1において、100は本装置に入力されるデータ
線で、白及び黒の1ビットで表される2値のデジタルデ
ータ(ここで、黒を“1”、白を“0”とする)が入力
される。拡大処理を行う場合、2値拡大回路2において
データ線100より入力された2値データを重複処理又
は輪郭平滑化拡大によって主走査方向にn倍(nは整数
)、副走査方向m倍(mは整数)にそれぞれ拡大し、信
号線200を介して後述するセレクタ6から多値化回路
3へ出力する。また、縮小変倍を行う場合には、データ
線100から入力された2値データはそのままセレクタ
6から多値化回路3に入力される。セレクタ6では、拡
大処理時には信号線200より入力された2値データを
選択し、また縮小処理時には、信号線100より入力さ
れた2値データをそれぞれ選択して多値化回路3への入
力とする。
<Description of Configuration (FIG. 1)> Next, a specific device that performs the above-mentioned magnification processing will be described in detail. FIG. 1 is a block diagram showing the configuration of a pixel density conversion device in this embodiment. The constituent elements will be explained in order below. In FIG. 1, 100 is a data line that is input to this device, and binary digital data represented by 1 bit of white and black (here, black is ``1'' and white is ``0'') is transmitted. is input. When enlarging processing is performed, binary data input from the data line 100 is multiplied by n in the main scanning direction (n is an integer) in the main scanning direction and m times in the sub-scanning direction (m are integers) and output from a selector 6 (to be described later) to a multi-value converting circuit 3 via a signal line 200. Furthermore, when scaling down is performed, the binary data inputted from the data line 100 is inputted as is from the selector 6 to the multilevel conversion circuit 3. The selector 6 selects the binary data input from the signal line 200 during enlargement processing, and selects the binary data input from the signal line 100 during reduction processing, and inputs the binary data to the multi-value conversion circuit 3. do.

【0013】多値化回路3では、データを不図示のメモ
リに一旦記憶し、任意の領域の画像データを取り出す。 そして、着目画素及びその周辺画素からなる領域を参照
し、荷重テーブルより出力されるウインドウを基に、多
値濃度の画像データ(例えば6ビット出力の場合、“0
”〜“63”、白を“0”、黒を“63”とする)を算
出し、この多値データを信号線300を介して変倍回路
4へ出力する。次に、変倍回路4では、上述の多値化回
路3より出力された多値濃度の画像データを、画像クロ
ック及びライン同期信号の間引き処理によって任意のサ
イズに縮小変倍し、信号線500を介して2値化回路5
へ出力する。2値化回路5では、上述の変倍回路4より
出力された多値データを2値データに変換し、データ線
500へ出力する。
[0013] In the multi-value conversion circuit 3, data is temporarily stored in a memory (not shown), and image data of an arbitrary area is taken out. Then, by referring to the region consisting of the pixel of interest and its surrounding pixels, and based on the window output from the load table, multilevel density image data (for example, in the case of 6-bit output, "0
” to “63”, white is “0” and black is “63”), and this multi-valued data is output to the scaling circuit 4 via the signal line 300. Next, the scaling circuit 4 Then, the multi-level density image data outputted from the multi-level conversion circuit 3 described above is reduced and scaled to an arbitrary size by thinning processing of the image clock and line synchronization signal, and then sent to the binarization circuit via the signal line 500. 5
Output to. The binarization circuit 5 converts the multi-value data outputted from the above-mentioned scaling circuit 4 into binary data and outputs it to the data line 500.

【0014】以上の構成からなる画素密度変換装置の詳
細な構成を関連図面を参照しながら以下に詳述する。 <2値拡大回路の説明  (図3〜図5)>図3は、図
1に示す2値拡大回路1の具体的な構成を示すブロック
図である。図示するように、2値拡大回路1は、ライン
バッファ210、ラインバッファ制御部220、Dフリ
ップフロップ230により構成され、画像クロックCL
K1,CLK2及びライン同期信号DB1,DB2の制
御によって単純な重複処理を行ない、2値画像を拡大処
理する。まず、1画素が1ビットで表わされる2値画像
データが後述するタイミング制御回路1より出力される
画像クロックCLK1及びライン同期信号DB1に同期
してラインバッファ210に入力される。ここで、画像
クロックCLK1及びライン同期信号DB1は、例えば
主走査方向にn倍、副走査方向にm倍に拡大処理する場
合には、重複処理後の画像クロックCLK2をn分周、
ライン同期信号DB2をm分周したものがタイミング制
御回路により選択され、2値拡大回路に入力される。
The detailed structure of the pixel density conversion device having the above structure will be explained in detail below with reference to the related drawings. <Description of binary expansion circuit (FIGS. 3 to 5)> FIG. 3 is a block diagram showing a specific configuration of the binary expansion circuit 1 shown in FIG. 1. As shown in the figure, the binary enlarging circuit 1 includes a line buffer 210, a line buffer control section 220, a D flip-flop 230, and an image clock CL.
Simple duplication processing is performed by controlling K1, CLK2 and line synchronization signals DB1, DB2, and the binary image is enlarged. First, binary image data in which one pixel is represented by one bit is input to the line buffer 210 in synchronization with an image clock CLK1 and a line synchronization signal DB1 output from a timing control circuit 1, which will be described later. Here, when the image clock CLK1 and the line synchronization signal DB1 are enlarged by n times in the main scanning direction and m times in the sub-scanning direction, the image clock CLK2 after the overlap process is divided by n,
The line synchronization signal DB2 frequency-divided by m is selected by the timing control circuit and input to the binary expansion circuit.

【0015】次に、信号線100より入力された2値画
像データは、ラインバッファ制御部220により画像ク
ロックCLK1及びライン同期信号DB1に同期してラ
インバッファ210に書き込まれ、同時にCLK1及び
DB2に同期して読み出され信号線240へ出力される
。ここで、DB2とDB1の関係により、画像データが
1ライン書き込まれるたびにm回読み出され、副走査差
方向にm倍の拡大処理が行なわれる。例として、副走査
方向に2倍に拡大処理する場合を図4に示す。図示する
ように、DB1に同期して入力された画像データは、D
B2に同期してメモリより読み出され、同一ラインのデ
ータが2度出力される。
Next, the binary image data input from the signal line 100 is written to the line buffer 210 by the line buffer control unit 220 in synchronization with the image clock CLK1 and line synchronization signal DB1, and is simultaneously written in synchronization with CLK1 and DB2. The data is read out and output to the signal line 240. Here, due to the relationship between DB2 and DB1, each time one line of image data is written, it is read out m times, and enlargement processing is performed by m times in the sub-scanning difference direction. As an example, FIG. 4 shows a case where the image is enlarged twice in the sub-scanning direction. As shown in the figure, image data input in synchronization with DB1 is
It is read out from the memory in synchronization with B2, and the data of the same line is output twice.

【0016】そして、画像クロックCLK1に同期して
ラインバッファ210より読み出された画像データは、
信号線240を介してDフリップフロップ230に入力
され、画像クロックCLK2によってサブサンプリング
される。つまり、CLK1に同期して入力される1ビッ
トの2値データがCLK2によってn回サンプリングさ
れることで主走査差方向にn倍に拡大される。図5は主
走査方向に2倍に拡大する場合を示すタイミングチャー
トである。
The image data read out from the line buffer 210 in synchronization with the image clock CLK1 is
The signal is input to the D flip-flop 230 via the signal line 240 and subsampled by the image clock CLK2. That is, 1-bit binary data input in synchronization with CLK1 is sampled n times by CLK2, thereby being expanded n times in the main scanning difference direction. FIG. 5 is a timing chart showing a case where the image is enlarged twice in the main scanning direction.

【0017】<多値化回路の説明  (図6〜図9)>
次に、図1に示す多値化処理回路3の具体的な構成を図
6及び図7を参照して以下に説明する。本実施例での多
値化回路3は、ラインメモリ31a〜31d、シフトレ
ジスタ群320、荷重テーブル330、データセレクタ
マルチプレクサ340、ゲート群350、加算器360
、荷重テーブルよりデータを出力するデータ線370、
そして、変倍率に応じて荷重テーブル330のデータ群
を選択するデータ線380により構成され、入力された
2値データを基に、着目画素(i,j)及びその周囲画
素からなる領域を参照し、参照領域内の各画素に対応す
る重みマスク(ここでは、荷重テーブル330より出力
されるマトリックスデータ)で重み付けした平均濃度を
算出し、多値濃度データ(6ビットの場合、最大値63
)として出力する。
<Description of multivalue circuit (FIGS. 6 to 9)>
Next, a specific configuration of the multi-value quantization processing circuit 3 shown in FIG. 1 will be described below with reference to FIGS. 6 and 7. The multivalue circuit 3 in this embodiment includes line memories 31a to 31d, a shift register group 320, a load table 330, a data selector multiplexer 340, a gate group 350, an adder 360
, a data line 370 that outputs data from the load table;
Then, it is composed of a data line 380 that selects a data group of the load table 330 according to the scaling factor, and refers to an area consisting of the pixel of interest (i, j) and its surrounding pixels based on the input binary data. , calculates the average density weighted with the weight mask (here, matrix data output from the weight table 330) corresponding to each pixel in the reference area, and calculates the multilevel density data (in the case of 6 bits, the maximum value 63
).

【0018】次に、多値化回路3の動作を詳細に説明す
る。まず主走査方向及び副走査方向のどちらか一方でも
拡大処理する場合には、入力線200より2値画像デー
タが画像クロックCLK2及びライン同期信号DB2に
同期して入力される。また、縮小処理する場合には、入
力線100より2値画像データが画像クロックCLK2
=CLK1、ライン同期信号DB2=DB1に同期して
そのまま入力される。入力された2値画像データは、ま
ずラインメモリ群310のラインメモリ31aに読み込
まれ、ライン同期信号DB2に同期してライン単位ごと
にラインメモリ31b→31c→31dと順次副走査差
方向にシフトされていく。
Next, the operation of the multi-value converting circuit 3 will be explained in detail. First, when enlarging processing is performed in either the main scanning direction or the sub-scanning direction, binary image data is input from the input line 200 in synchronization with the image clock CLK2 and the line synchronization signal DB2. In addition, when performing reduction processing, binary image data is transmitted from the input line 100 to the image clock CLK2.
=CLK1, and line synchronization signal DB2 is input as is in synchronization with DB1. The input binary image data is first read into the line memory 31a of the line memory group 310, and is sequentially shifted in the sub-scanning difference direction from line memory 31b → 31c → 31d line by line in synchronization with the line synchronization signal DB2. To go.

【0019】そして、各ラインメモリ31a〜31dか
ら副走査差方向4画素分のパラレルデータが画像クロッ
クCLK2に同期して読み出され、シフトレジスタ群3
20にシフト入力される。このシフトレジスタ群320
において、画像データが画像クロックCLK2に同期し
て順次シフトされ、4画素×4ラインのマトリックスを
有する画像データが取り出され、16個の1ビットマト
リックスデータとしてゲート群350に入力される。こ
こでシフトレジスタC3にラッチされるデータを着目画
素(i,j)とすると、図8に示すように、各々の周辺
画素は、A1が(i−2,j−2)、A2が(i−1,
j−2)、A3が(i,j−2)、A4が(i+1,j
−2)、同様に、B1が(i−2,j−1)、B2が(
i−1,j−1)、B3が(i,j−1)、B4が(i
+1,j−1)、C1が(i−2,j)、C2が(i−
1,j)、C4が(i+1,j)、D1が(i−2,j
+1)、D2が(i−1,j+1)、D3が(i,j+
1)、D4が(i+1,j+1)のデータとなる。
Then, parallel data for four pixels in the sub-scanning difference direction is read out from each line memory 31a to 31d in synchronization with the image clock CLK2, and is read out from the shift register group 3.
20 is shifted and input. This shift register group 320
In , image data is sequentially shifted in synchronization with image clock CLK2, and image data having a matrix of 4 pixels x 4 lines is taken out and inputted to gate group 350 as 16 1-bit matrix data. Here, if the data latched in the shift register C3 is the pixel of interest (i, j), as shown in FIG. -1,
j-2), A3 is (i, j-2), A4 is (i+1, j
-2), similarly, B1 is (i-2, j-1) and B2 is (
i-1, j-1), B3 is (i, j-1), B4 is (i
+1,j-1), C1 is (i-2,j), C2 is (i-
1,j), C4 is (i+1,j), D1 is (i-2,j
+1), D2 is (i-1, j+1), D3 is (i, j+
1), D4 becomes the data of (i+1, j+1).

【0020】一方、荷重テーブル330には、サイズが
4×4のマトリックスデータが予め数種類記憶されてい
る。なお、荷重テーブル330においてゲート群350
に出力されるマトリックスデータの総和は多値出力の最
大値になるように規格化されている(6ビット出力の場
合、最大63)。この荷重テーブル330の個々の画素
に対する重み付けの一例を図9に示す。例えば、90%
縮小率の場合には、図9の(b)に示すように、着目画
素に対する比重が大きい3×3のウインドウ(ここで3
×3のウインドウの周囲の画素の重みを“0”にするこ
とでウインドウサイズを3×3にする)を用いる。また
、縮小率が大きい場合には、(c)に示すような平坦な
ウインドウを用い、更に、50%以下の縮小率の場合に
は、その縮小率に応じてウインドウサイズを大きくする
On the other hand, in the load table 330, several types of matrix data each having a size of 4×4 are stored in advance. Note that in the load table 330, the gate group 350
The total sum of matrix data output to is standardized to be the maximum value of the multi-level output (maximum 63 in the case of 6-bit output). An example of weighting for each pixel in this load table 330 is shown in FIG. For example, 90%
In the case of reduction ratio, as shown in FIG. 9(b), a 3×3 window (here, 3
The window size is set to 3×3 by setting the weights of pixels around the ×3 window to “0”. Further, if the reduction ratio is large, a flat window as shown in (c) is used, and if the reduction ratio is 50% or less, the window size is increased according to the reduction ratio.

【0021】ここで、変倍率に応じたウインドウを選択
するためのアドレスデータが信号線380を介してデー
タマルチプレクサ340に入力され、そのアドレスデー
タに応じて荷重テーブル330のマトリックスデータ群
のうち一つが選択され、ゲート群350に入力される。 次に、ゲート群350において、ラッチA1〜D4より
取り出された画像データが黒画素の場合、個々のラッチ
に対応するゲートが開き、データセレクタマルチプレク
サ340から出力された数値データが加算器360へ出
力される。画像データが白画素の場合には、個々のラッ
チに対応するゲートが閉じ、加算器360には“0”が
出力される。
Here, address data for selecting a window according to the magnification ratio is input to the data multiplexer 340 via the signal line 380, and one of the matrix data groups of the load table 330 is selected according to the address data. selected and input to gate group 350. Next, in the gate group 350, if the image data taken out from the latches A1 to D4 is a black pixel, the gate corresponding to each latch opens, and the numerical data output from the data selector multiplexer 340 is output to the adder 360. be done. When the image data is a white pixel, the gate corresponding to each latch is closed and "0" is output to the adder 360.

【0022】次に、加算器360において、ゲート群3
50より出力されたデータの総和が算出され、その結果
が着目画素の多値データとして信号線300へ出力され
る。本実施例での信号線380は、変倍率に応じてデー
タを入力しているが、例えば文字や線画及び擬似中間調
画像に対し、それぞれ適切な重みをもつウインドウを予
め荷重テーブル330に記憶させておき、着目画素が擬
似中間調領域か文字線画領域なのかを識別する像域分離
からの判定結果を加えたデータを入力し、個々の像域に
対して各々別々のマトリックスデータを選択することで
、より高画質な多値画像を得ることができる。
Next, in adder 360, gate group 3
The sum of the data outputted from 50 is calculated, and the result is outputted to the signal line 300 as multivalued data of the pixel of interest. In this embodiment, the signal line 380 inputs data according to the scaling factor, but for example, windows with appropriate weights for characters, line drawings, and pseudo halftone images are stored in advance in the load table 330. Then, input data including the judgment result from image area separation that identifies whether the pixel of interest is a pseudo-halftone area or a text/line drawing area, and select separate matrix data for each image area. This allows you to obtain a higher quality multivalued image.

【0023】なお、本実施例では、多値データを算出す
るための参照画素領域を4画素×4ラインとしたが、こ
れに限るものでなく、ラインメモリ、シフトレジスタ、
ゲート、荷重テーブルを増減させることにより容易に参
照画素領域を増減できる。 <変倍回路の説明  (図10〜図15)>次に、多値
画像データを縮小処理する変倍回路4の詳細を以下に説
明する。
In this embodiment, the reference pixel area for calculating multivalued data is 4 pixels x 4 lines, but it is not limited to this, and line memories, shift registers,
The reference pixel area can be easily increased or decreased by increasing or decreasing the gate or load table. <Description of variable magnification circuit (FIGS. 10 to 15)> Next, details of the variable magnification circuit 4 that performs reduction processing on multivalued image data will be described below.

【0024】まず、変倍回路4による画像の縮小処理は
、画像クロック及びライン同期信号の間引きにより行わ
れる。ここでは、構成が簡単なことから変換画像が原画
素の最近接の画素値をとるSPC法(Selected
 Pixel Coding)を例に説明する。なお、
説明に先立ち、縮小後の画像クロックCLK3及びライ
ン同期信号DB3を出力するタイミング制御回路1の詳
細を図10を参照して説明する。
First, the image reduction process by the scaling circuit 4 is performed by thinning out the image clock and the line synchronization signal. Here, since the configuration is simple, we use the SPC method (Selected
This will be explained using Pixel Coding as an example. In addition,
Prior to the description, details of the timing control circuit 1 that outputs the reduced image clock CLK3 and the line synchronization signal DB3 will be described with reference to FIG.

【0025】同図において、110は基本クロックを発
生させる水晶発振子、120は画像クロックCLK1,
CLK2及びライン同期信号DB1,DB2を出力する
画像クロック及びライン同期信号選択部、130は変倍
回路の主走査縮小率に応じて任意のクロック間引きを行
なう主走査画像クロック制御回路、140は変倍回路の
副走査縮小率に応じて任意のライン同期信号の間引き処
理を行なう副走査ライン同期信号制御回路である。
In the figure, 110 is a crystal oscillator that generates a basic clock, 120 is an image clock CLK1,
An image clock and line synchronization signal selection unit that outputs CLK2 and line synchronization signals DB1 and DB2; 130 is a main scanning image clock control circuit that performs arbitrary clock thinning according to the main scanning reduction rate of the scaling circuit; 140 is a scaling circuit; This sub-scanning line synchronization signal control circuit performs thinning processing of arbitrary line synchronization signals according to the sub-scanning reduction rate of the circuit.

【0026】以上の構成において、外部から入力される
基準クロックCLK0に基づいて、画像クロック及びラ
イン同期信号選択部120は2値拡大回路2における主
走査方向の拡大率に応じて基本クロックを分周した画像
クロックCLK1,CLK2及び、同様に2値拡大回路
2における副走査方向の拡大率によって決まるライン同
期信号DB1,DB2を選択して出力する。そして、出
力された画像クロックCLK2は、主走査画像クロック
制御部130に入力され、ここで変倍回路4における縮
小率に応じて入力画像クロックCLK2が間引き処理さ
れ、縮小された画像データの画像クロックCLK3が出
力される。また同様に、変倍回路4での副走査方向の縮
小処理であるライン同期信号DB2の間引き処理が副走
査ライン同期信号制御回路140において行なわれ、変
倍された画像データのライン同期信号DB3が出力され
る。
In the above configuration, based on the reference clock CLK0 input from the outside, the image clock and line synchronization signal selection section 120 divides the basic clock according to the enlargement rate in the main scanning direction in the binary enlargement circuit 2. The selected image clocks CLK1 and CLK2 and the line synchronization signals DB1 and DB2, which are similarly determined by the magnification rate in the sub-scanning direction in the binary magnification circuit 2, are selected and output. The output image clock CLK2 is then input to the main scanning image clock control unit 130, where the input image clock CLK2 is thinned out according to the reduction ratio in the scaling circuit 4, and the image clock CLK2 of the reduced image data is CLK3 is output. Similarly, line synchronization signal DB2 thinning processing, which is reduction processing in the sub-scanning direction in scaling circuit 4, is performed in sub-scanning line synchronization signal control circuit 140, and line synchronization signal DB3 of the scaled image data is Output.

【0027】次に、上述した主走査画像クロック制御部
回路130の詳細な動作を図11を参照して以下に説明
する。例えば、主走査方向をγx /Rx(γx ,R
x は縮小率によって決まる任意の整数)に縮小する場
合(γx <Rx )、図11に示すように、原画素を
距離γxごとに配置すると、変換画素は距離Rx ごと
に配置される。ここで、△X=Rx−γx とおき、一
番目の原画素と変換画素の座標を原点に位置合わせする
と、2番目の原画素と変換画素の距離の差は△x、また
3番目の距離の差は2△Xと、原画素ごとに△Xが加算
されていく。 ここで、加算された結果が原画像間の距離γx より大
きくなるごとに、加算結果より距離γx を減算し、そ
のとき原画像の座標を一つ送る。このように、順次原画
像と変換画像との距離の差を演算し演算結果に応じて原
画像の座標を送ると、縮小率に応じてある一定の割合で
原画像が送られ、残りの画素を変換画素とすることによ
り、縮小率に応じた間引き処理が行なわれることになる
。ここで、座標原点での原画像と変換画像との距離の差
を2/γx として同様な演算処理を行うと、変換画像
は原画像に対して最近接の画素が選択されるように原画
像の間引きが行なわれ、SPC法(Selectete
d PixelCoding )と等化になる。
Next, the detailed operation of the main scanning image clock control section circuit 130 described above will be explained below with reference to FIG. For example, the main scanning direction is γx /Rx (γx, R
x is an arbitrary integer determined by the reduction rate) (γx <Rx), as shown in FIG. 11, if the original pixels are arranged at each distance γx, the converted pixels are arranged at each distance Rx. Here, if we set △X = Rx - γx and align the coordinates of the first original pixel and converted pixel to the origin, the difference in distance between the second original pixel and converted pixel is △x, and the third distance The difference is 2△X, and △X is added for each original pixel. Here, each time the added result becomes larger than the distance γx between the original images, the distance γx is subtracted from the added result, and at that time, one coordinate of the original image is sent. In this way, if you sequentially calculate the difference in distance between the original image and the converted image and send the coordinates of the original image according to the calculation results, the original image will be sent at a certain rate according to the reduction ratio, and the remaining pixels will be By using the pixel as a converted pixel, thinning processing is performed according to the reduction ratio. Here, if similar arithmetic processing is performed with the difference in distance between the original image and the converted image at the coordinate origin as 2/γx, the converted image will be the same as the original image so that the nearest pixel to the original image is selected. Thinning is performed using the SPC method (Select
d PixelCoding ).

【0028】ここで、原画像の主走査方向の画素サイズ
をγx =256として、主走査画像クロック制御回路
130の動作を図12及び図13を参照して詳細に説明
する。図12において、410,420はDフリップフ
ロップ、430はキャリー信号線を有する8ビット出力
の加算器、440はクロックCLK2にゲートをかける
ゲート回路である。図示するように、△XがCLK2に
同期して加算器430に入力される。ここで、△Xは変
倍率に応じて決まる値で、例えば8/11に縮小する場
合、△X=256×11/8−256=96となる。ま
た、リセット時に加算器430の出力はγx /2=1
28となる。出力線405に出力される加算処理の結果
はDフリップフロップ420に入力され、CLK2に同
期して加算器430に入力される。加算器430ではD
フリップフロップ420とDフリップフロップ420よ
り出力される値が画像クロックCLK2に同期して加算
され、順次△Xが1つ前の加算結果に加算されることに
なる。ここで、加算器430の出力のうち8ビットのデ
ータのみが、信号線405を介してDフリップフロップ
420に戻される。
Now, assuming that the pixel size in the main scanning direction of the original image is γx = 256, the operation of the main scanning image clock control circuit 130 will be described in detail with reference to FIGS. 12 and 13. In FIG. 12, 410 and 420 are D flip-flops, 430 is an 8-bit output adder having a carry signal line, and 440 is a gate circuit that applies a gate to clock CLK2. As shown, ΔX is input to adder 430 in synchronization with CLK2. Here, ΔX is a value determined according to the magnification ratio; for example, when reducing the image to 8/11, ΔX=256×11/8−256=96. Also, at the time of reset, the output of the adder 430 is γx /2=1
It becomes 28. The result of the addition process outputted to the output line 405 is inputted to the D flip-flop 420, and then inputted to the adder 430 in synchronization with CLK2. In the adder 430, D
The values output from the flip-flop 420 and the D flip-flop 420 are added in synchronization with the image clock CLK2, and ΔX is sequentially added to the previous addition result. Here, only 8 bits of data out of the output of adder 430 is returned to D flip-flop 420 via signal line 405.

【0029】従って、加算結果がγx (256)以上
になるごとに、γx の減算が行なわれることになる。 また、ゲート440に入力される画像クロックCLK2
は、出力線406により出力された加算器430のキャ
リー信号によってマスク処理が行なわれ、CLK2のク
ロック間引きされた画像クロックCLK3が出力される
。図13に示すように、画像クロックCLK2に同期し
て入力される画像データをCLK3によりサンプリング
することで主走査方向の間引き処理が行なわれる。また
、副走査ライン同期信号制御回路140は主走査画像ク
ロック制御回路130と同様に構成され、ライン同期信
号DB2に対して間引き処理し、DB3を出力する。 そして、主走査方向と同様に、ライン同期信号の間引き
により副走査方向の縮小が行なわれることになる。
Therefore, every time the addition result exceeds γx (256), γx is subtracted. Also, the image clock CLK2 input to the gate 440
Mask processing is performed by the carry signal of the adder 430 outputted from the output line 406, and an image clock CLK3 obtained by thinning out the clock of CLK2 is outputted. As shown in FIG. 13, thinning processing in the main scanning direction is performed by sampling image data input in synchronization with image clock CLK2 using CLK3. Further, the sub-scanning line synchronization signal control circuit 140 is configured similarly to the main-scanning image clock control circuit 130, performs thinning processing on the line synchronization signal DB2, and outputs DB3. Then, as in the main scanning direction, reduction in the sub-scanning direction is performed by thinning out the line synchronization signal.

【0030】本実施例では、変倍回路4として画像クロ
ック及びライン同期信号の間引きにより原画像を間引き
縮小する場合を説明したが、原画像データを用い、演算
処理によって変換画像を求め変倍処理を行なうことも可
能である。以下、この場合の変倍処理を説明する。上述
したように、図10に示す主走査画像クロック制御回路
130及び副走査ライン同期信号制御回路140より、
出力として原画像と変倍画像の距離の差を得ることがで
きる。従って、原画像と変倍画像の位置関係から変換画
素近傍の原画像データの重み付けを行ない、変換画素濃
度を算出することで、SPC法より濃度保存性に優れた
変倍多値濃度データを得ることができる。重み付けの方
法としては、距離反比例法や図15に示すように、変換
画素が原画素に占める面積占有率を用いることもできる
。ここで、図中の破線で囲まれた部分を原画素、実線で
囲まれた部分を変換画素とする。
In this embodiment, a case has been described in which the scaling circuit 4 thins out the original image by thinning out the image clock and the line synchronization signal. It is also possible to do this. The scaling process in this case will be described below. As described above, from the main scanning image clock control circuit 130 and the sub-scanning line synchronization signal control circuit 140 shown in FIG.
The difference in distance between the original image and the scaled image can be obtained as an output. Therefore, by weighting the original image data near the converted pixel based on the positional relationship between the original image and the scaled image, and calculating the converted pixel density, scaled multi-level density data with better density preservation than the SPC method can be obtained. be able to. As a weighting method, it is also possible to use the distance inverse proportionality method or, as shown in FIG. 15, the area occupation rate of the converted pixel relative to the original pixel. Here, the portion surrounded by a broken line in the figure is an original pixel, and the portion surrounded by a solid line is a converted pixel.

【0031】図14は、面積占有率を用いた場合の濃度
演算回路の構成を示すブロック図である。同図において
、610は各ラインメモリ610a,610b,610
cで構成されるラインメモリ群、620はシフトレジス
タ群、630は個々の画素の重みを変換画素と原画素と
の位置関係から算出する重み係数演算回路、640は複
数の乗算器640a,640b,640c,640d,
640e,640f,640g,640h,640iで
構成される乗算器群、そして、650は加算器である。 このような構成において、変換画素(着目画素)の近傍
の原画素(周辺画素)のデータは多値化回路3で示した
場合と同様にラインメモリ群610及びシフトレジスタ
群620により得ることができる。この実施例では、5
0%以上の縮小時に、変換画素が原画素に対して最大9
画素の影響を受けることを考慮し3画素×3ラインのマ
トリックスデータを上述の回路により取り出す例を示す
。また、前述した多値化回路3で示した時と同様に、参
照画素は任意に取ることが可能である。
FIG. 14 is a block diagram showing the configuration of a concentration calculation circuit when area occupancy is used. In the same figure, 610 is each line memory 610a, 610b, 610
620 is a shift register group, 630 is a weighting coefficient calculation circuit that calculates the weight of each pixel from the positional relationship between the converted pixel and the original pixel, 640 is a plurality of multipliers 640a, 640b, 640c, 640d,
A multiplier group consisting of 640e, 640f, 640g, 640h, and 640i, and 650 is an adder. In such a configuration, the data of the original pixels (peripheral pixels) near the converted pixel (pixel of interest) can be obtained by the line memory group 610 and the shift register group 620 in the same way as in the case of the multilevel conversion circuit 3. . In this example, 5
When reducing by 0% or more, the converted pixel is up to 9% compared to the original pixel.
An example will be shown in which matrix data of 3 pixels x 3 lines is extracted by the above-mentioned circuit, taking into account the influence of pixels. Furthermore, as in the case of the multi-value conversion circuit 3 described above, reference pixels can be arbitrarily taken.

【0032】次に、重み係数演算回路630により出力
される重み係数の算出方法を以下に説明する。図15に
示すように、前述した主走査画像クロック制御回路13
0及び副走査ライン同期信号制御回路140より出力さ
れる加算結果及びキャリー信号(△xx,△yy)を用
い、変換画素が原画素により分割される個々の辺の長さ
(Rx−△xx,γx ,△xx−γx ,RY −△
yy,γy,△yy−γy)をそれぞれ求める。ここで
△xx,△yyはキャリー信号を含む原画素と変換画素
の距離の差である。また変換画素が原画素の3画素にま
たがらない場合には、個々の辺の長さはそれぞれRx 
−△xx,△xx,RY −△yy,△yyで表わされ
る。次に、上述の各辺の長さより変換画素が原画素に占
める面積を算出する。例えば原画素Aに占める変換画素
の面積aは、(Rx −△xx)×(RY −△yy)
、原画素Bに占める変換画素の面積bは、γx ×(R
Y −△yy)、以下同様に、c,d,e,f,g,h
,iを計算する。そして、個々の面積a,b,c,d,
e,f,g,h,iを変換画素の面積で規格化したもの
を、対応するそれぞれの画素に対する重み係数として用
いる。また、重み付けは、主走査画像クロック制御回路
130及び副走査ライン同期信号制御回路130より出
力される原画像と変倍画像の距離の差△xx,△yyに
より一義的に決まるので、△xx,△yyをテーブルの
アドレスとするROMテーブルに重み付けデータを格納
しておき、重み係数演算回路630の代りとしても良い
。また距離反比例法の場合も同様にROMにより構成可
能である。
Next, a method for calculating the weighting coefficients output by the weighting coefficient calculation circuit 630 will be explained below. As shown in FIG. 15, the main scanning image clock control circuit 13 described above
0 and the addition result and carry signal (△xx, △yy) output from the sub-scanning line synchronization signal control circuit 140, the length of each side (Rx - △xx, γx , △xx - γx , RY - △
yy, γy, Δyy - γy). Here, Δxx and Δyy are the difference in distance between the original pixel containing the carry signal and the converted pixel. In addition, if the converted pixel does not span three original pixels, the length of each side is Rx
−Δxx, Δxx, RY −Δyy, Δyy. Next, the area occupied by the converted pixel in the original pixel is calculated from the length of each side described above. For example, the area a of the converted pixel in the original pixel A is (Rx - △xx) x (RY - △yy)
, the area b of the converted pixel occupied by the original pixel B is γx × (R
Y −△yy), and similarly, c, d, e, f, g, h
, i. Then, the individual areas a, b, c, d,
A value obtained by normalizing e, f, g, h, and i by the area of the converted pixel is used as a weighting coefficient for each corresponding pixel. Furthermore, since the weighting is uniquely determined by the distance difference △xx, △yy between the original image and the scaled image output from the main scanning image clock control circuit 130 and the sub-scanning line synchronization signal control circuit 130, △xx, The weighting data may be stored in a ROM table with Δyy as the address of the table, instead of the weighting coefficient calculation circuit 630. Further, the distance inverse proportionality method can also be constructed using a ROM.

【0033】次に、上述の重み係数演算回路630より
得られる重み付けデータに基づいて原画素濃度の重み付
けが行なわれる。この処理は、乗算器640a〜640
iにより原画素濃度値に対する積で求められ、個々の乗
算器よりの出力の総和を加算器650で求め、最終的に
変換画像の濃度値として出力する処理である。 <2値化回路の説明  (図16〜図18)>図16は
、図1に示す2値化回路5の具体的な構成例を示す図で
ある。2値化回路5は、前述した多値化回路4において
多値データに変換された画像データを再び2値データに
変換し、2値の変倍画像データを出力する。2値化方式
としては、ディザ法や平均誤差最小法等の全ての2値化
方式を利用できる。ここでは、2値化する際に発生する
誤差を周囲画素に拡散して2値化することで、濃度保存
性の良い変倍画像を得ることができる誤差拡散法を用い
る。
Next, the original pixel density is weighted based on the weighting data obtained from the weighting coefficient calculation circuit 630 described above. This process is performed by the multipliers 640a to 640
In this process, the sum of the outputs from the individual multipliers is calculated by the adder 650, and is finally output as the density value of the converted image. <Description of Binarization Circuit (FIGS. 16 to 18)> FIG. 16 is a diagram showing a specific configuration example of the binarization circuit 5 shown in FIG. 1. The binarization circuit 5 converts the image data converted into multi-value data in the multi-value conversion circuit 4 into binary data again, and outputs binary scaled image data. As the binarization method, all binarization methods such as the dither method and the minimum average error method can be used. Here, an error diffusion method is used that can obtain a variable-magnification image with good density preservation by diffusing errors that occur during binarization to surrounding pixels and binarizing them.

【0034】以下、誤差拡散処理を用いた2値化回路5
の詳細を図面を参照して説明する。図16において、5
1a〜51dはデータをラッチするDフリップフロップ
、52a〜52dは加算器、530は1ライン遅延用の
ラインメモリ、540は比較器、そして、560は誤差
配分制御回路である。以上の構成において、まず変倍回
路4より出力された多値(例えば6ビット、0〜63)
濃度の画像データが信号線400を介して画像クロック
CLK3及びライン同期信号DB3に同期して入力され
る。ここで入力された多値濃度データ(着目画素位置(
i,j)に対応する原画像多値濃度データ)は、当該画
素位置に配分される誤差の総和と加算器52dで加算さ
れ、その値が信号線から比較器540と誤差配分制御回
路560へそれぞれ出力される。そして、比較器540
では、信号線上のデータと一定の閾値TH(例えば6ビ
ットデータの場合32)との比較を行ない、信号線上の
データが閾値THより大きければ“1”(黒)を、小さ
ければ“0”(白)を画像クロックCLK3及びライン
同期信号DB3に同期して信号線500へ出力する。
The following describes the binarization circuit 5 using error diffusion processing.
The details will be explained with reference to the drawings. In Figure 16, 5
1a to 51d are D flip-flops for latching data, 52a to 52d are adders, 530 is a line memory for one line delay, 540 is a comparator, and 560 is an error distribution control circuit. In the above configuration, first, the multi-value (for example, 6 bits, 0 to 63) output from the scaling circuit 4
Density image data is input via the signal line 400 in synchronization with the image clock CLK3 and line synchronization signal DB3. The multilevel density data input here (target pixel position)
The original image multilevel density data corresponding to i, j) is added to the sum of errors allocated to the relevant pixel position by an adder 52d, and the value is sent from the signal line to the comparator 540 and the error allocation control circuit 560. Each is output. And comparator 540
Now, the data on the signal line is compared with a certain threshold TH (for example, 32 for 6-bit data), and if the data on the signal line is larger than the threshold TH, it is set to "1" (black), and if it is smaller, it is set to "0" ( white) to the signal line 500 in synchronization with the image clock CLK3 and line synchronization signal DB3.

【0035】次に、誤差配分制御回路560では、2値
化の結果に応じて、出力が白ならば信号線550から入
力されるデータを、また出力が黒ならば信号線550と
定数T(6ビットデータの場合63)との差分を誤差と
して、周囲の画素に配分する誤差量56a〜56dを算
出する。誤差量信号56a〜56dは、図17に示すよ
うに着目画素位置を(i,j)とした時、その周囲画素
(i−1,j+1)、(i,j+1)、(i+1,j+
1)、(i+1,j)に既に配分された誤差量と加算器
52a〜52dでそれぞれ加算される。また、ここでは
誤差を配分する画素数を着目画素の4画素としているが
、これに限るものではなく、容易に増減できるものであ
る。
Next, in the error distribution control circuit 560, according to the result of binarization, if the output is white, the data input from the signal line 550 is input, and if the output is black, the data input from the signal line 550 and the constant T( In the case of 6-bit data, error amounts 56a to 56d to be distributed to surrounding pixels are calculated using the difference from 63) as an error. As shown in FIG. 17, the error amount signals 56a to 56d correspond to the surrounding pixels (i-1, j+1), (i, j+1), (i+1, j+) when the pixel position of interest is (i, j).
1) and the error amounts already allocated to (i+1,j) are added by adders 52a to 52d, respectively. Further, here, the number of pixels to which errors are distributed is set to four pixels of interest, but the number is not limited to this and can be easily increased or decreased.

【0036】上述の誤差配分回路560の詳細な構成を
図18を参照して以下に説明する。図中、561は減算
器、562はセレクタ、563a〜563dは所定の乗
算を行なう乗算器である。まず減算器561では、原画
像濃度に配分誤差を加えた補正濃度の信号550と信号
線570からの信号(定数T=63)との差分(信号5
50−定数T)が算出され、セレクタ562に出力され
る。セレクタ562は、信号線500から入力された2
値化結果に応じて2値化結果が“0”(白)ならば前者
(信号550)を、また2値化結果が“1”(黒)なら
ば後者(信号550−T)を選択し、乗算器563a〜
563dへ出力する。ここで、乗算器563a〜563
dは、図18に示すように、着目画素(i,j)に対し
て各々w1 〜w4 の重みをもつ周辺画素(i−1,
j+1)、(i,j+1)、(i+1,j+1)、(i
+1,j)に対応しており、重みに応じて以下に示すよ
うな乗算を行って信号線56a,56b,56c及び5
6dへ結果を出力する。
The detailed configuration of the above error distribution circuit 560 will be explained below with reference to FIG. In the figure, 561 is a subtracter, 562 is a selector, and 563a to 563d are multipliers that perform predetermined multiplication. First, the subtracter 561 calculates the difference (signal 5
50−constant T) is calculated and output to the selector 562. The selector 562 selects 2 input from the signal line 500.
Depending on the digitization result, if the binarization result is "0" (white), select the former (signal 550), and if the binarization result is "1" (black), select the latter (signal 550-T). , multiplier 563a~
Output to 563d. Here, multipliers 563a to 563
As shown in FIG. 18, d is the peripheral pixel (i-1,
j+1), (i, j+1), (i+1, j+1), (i
+1, j), and the signal lines 56a, 56b, 56c and 5 are multiplied according to the weights as shown below.
Output the result to 6d.

【0037】[0037]

【数1】以上説明した2値化方式により、擬似中間調に
対して濃度保存性に優れた変倍2値画像を得ることが可
能となる。
[Equation 1] The binarization method described above makes it possible to obtain a variable-magnification binary image with excellent density preservation for pseudo-halftones.

【0038】[0038]

【発明の効果】以上説明したように、本発明によれば、
入力される2値のデジタル画像が擬似中間調の場合でも
文字画像の場合でも、2値多値変換処理を行ない、個々
の画素を多値濃度に変換した後、変倍処理を行なうため
高品位な擬似中間調画像を得ることができる。また、2
値データを多値データに変換する際、拡大処理時には、
一旦2値データのまま拡大することで拡大処理時の文字
や線画のエッジのぼけを抑え、また同様に、変倍率によ
り多値時のウインドウサイズ及び重み付けを変えること
で高品位な2値変倍画像を得ることができる。
[Effects of the Invention] As explained above, according to the present invention,
Regardless of whether the input binary digital image is a pseudo-halftone image or a character image, it performs binary and multi-value conversion processing, converting each pixel to multi-value density, and then performs scaling processing, resulting in high quality images. A pseudo-halftone image can be obtained. Also, 2
When converting value data to multi-value data, during enlargement processing,
By enlarging the binary data as it is, the blurring of the edges of characters and line drawings during enlargement processing can be suppressed, and in the same way, by changing the window size and weighting when multi-valued according to the scaling ratio, high-quality binary scaling can be achieved. You can get the image.

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

【図1】本実施例における画素密度変換装置の構成を示
すブロック図である。
FIG. 1 is a block diagram showing the configuration of a pixel density conversion device in this embodiment.

【図2】本実施例における変倍処理を示すフローチャー
トである。
FIG. 2 is a flowchart showing scaling processing in this embodiment.

【図3】図1に示す2値拡大回路の構成を示すブロック
図である。
FIG. 3 is a block diagram showing the configuration of the binary expansion circuit shown in FIG. 1;

【図4】,[Figure 4],

【図5】2値拡大回路の動作を説明するためのタイミン
グ図である。
FIG. 5 is a timing diagram for explaining the operation of the binary expansion circuit.

【図6】,[Figure 6],

【図7】図1に示す多値化回路の構成を示すブロック図
である。
FIG. 7 is a block diagram showing the configuration of the multi-value quantization circuit shown in FIG. 1;

【図8】4×4の画像データと座標の関係を説明する図
である。
FIG. 8 is a diagram illustrating the relationship between 4×4 image data and coordinates.

【図9】多値化処理のウインドウの重み付け割合を示す
図である。
FIG. 9 is a diagram showing a weighting ratio of a window in multi-value processing.

【図10】図1に示すタイミング制御回路の構成を示す
ブロック図である。
10 is a block diagram showing the configuration of the timing control circuit shown in FIG. 1. FIG.

【図11】変倍回路における原画像と変換画像の位置関
係を示す図である。
FIG. 11 is a diagram showing the positional relationship between an original image and a converted image in a scaling circuit.

【図12】任意倍率での縮小時のクロック間引きを説明
する図である。
FIG. 12 is a diagram illustrating clock thinning during reduction at an arbitrary magnification.

【図13】主走査方向の縮小を説明するタイミングチャ
ートである。
FIG. 13 is a timing chart illustrating reduction in the main scanning direction.

【図14−1】,[Figure 14-1],

【図14−2】演算により縮小画素濃度を求める回路の
構成を示すブロック図である。
FIG. 14-2 is a block diagram showing the configuration of a circuit that calculates reduced pixel density through calculation.

【図15】縮小変倍時の重み付けを説明するための図で
ある。
FIG. 15 is a diagram for explaining weighting during scaling down.

【図16】図1に示す2値化回路の構成を示すブロック
図である。
16 is a block diagram showing the configuration of the binarization circuit shown in FIG. 1. FIG.

【図17】着目画素と誤差を配分する画素との関係を示
す図である。
FIG. 17 is a diagram showing the relationship between a pixel of interest and pixels to which errors are allocated.

【図18】図16に示す誤差配分制御回路の構成を示す
ブロック図である。
18 is a block diagram showing the configuration of the error distribution control circuit shown in FIG. 16. FIG.

【符号の説明】[Explanation of symbols]

1  タイミング制御回路 2  2値拡大回路 3  多値化回路 4  変倍回路 5  2値化回路 6  セレクタ 1 Timing control circuit 2 Binary expansion circuit 3 Multi-value circuit 4 Variable magnification circuit 5 Binarization circuit 6 Selector

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】  主走査方向x画素×副走査方向y画素
からなる2値画像データを入力し、主走査方向X画素×
副走査方向Y画素の任意のサイズに変換して2値画像デ
ータを出力する画素密度変換方式において、入力された
2値画像データの画像サイズを2値データのまま主走査
m倍、副走査n倍の任意の整数倍に拡大する拡大手段と
、拡大処理時には、前記拡大手段により得られた整数倍
拡大2値画像データに対し、また縮小処理時には、前記
入力された2値画像データに対し、着目画素とその周囲
画素濃度より多値濃度を算出する2値多値濃度変換手段
と、該2値多値濃度変換手段により得られた多値濃度の
画像データのサイズを主走査方向、副走査方向それぞれ
任意の倍率で縮小する任意変倍手段と、該任意変倍手段
により得られた多値濃度の画像データを2値化する2値
化手段とを有することを特徴とする画素密度変換方式。
Claim 1: Binary image data consisting of x pixels in the main scanning direction x y pixels in the sub-scanning direction is input, and
In a pixel density conversion method that converts to an arbitrary size of Y pixels in the sub-scanning direction and outputs binary image data, the image size of the input binary image data is multiplied by m in the main scanning direction and n times in the sub-scanning direction. an enlargement means for enlarging the binary image data by an arbitrary integral number of times, and for the binary image data enlarged by an integral number of times obtained by the enlargement means during the enlargement process, and for the input binary image data during the reduction process; Binary multi-value density conversion means that calculates multi-value density from the density of a pixel of interest and its surrounding pixels, and the size of the image data of the multi-value density obtained by the binary multi-value density conversion means in the main scanning direction and sub-scanning A pixel density conversion method characterized by having an arbitrary scaling means for reducing the size at an arbitrary magnification in each direction, and a binarization means for binarizing multi-level density image data obtained by the arbitrary scaling means. .
【請求項2】  前記2値多値濃度変換手段は、画像サ
イズの変倍率に応じて多値化の際参照する2値データの
ウインドウサイズ及び重み付けを変化させることを特徴
とする請求項1の画素密度変換方式。
2. The binary multi-value density conversion means changes the window size and weighting of the binary data to be referred to during multi-value conversion according to the scaling factor of the image size. Pixel density conversion method.
【請求項3】  更に着目画素が文字画像領域に含まれ
るか、擬似中間調領域に含まれる課を判定する判定手段
を有し、前記2値多値濃度変換手段は前記判定結果に基
づき、多値化の際参照する2値データのウインドウサイ
ズ及び重み付けを変化させることを特徴とする請求項1
の画素密度変換方式。
3. The method further includes determining means for determining whether the pixel of interest is included in a character image area or in a pseudo halftone area, and the binary and multi-value density converting means converts the pixel into a multi-value density converter based on the determination result. Claim 1, characterized in that the window size and weighting of the binary data referred to during value conversion are changed.
pixel density conversion method.
JP3052210A 1991-03-18 1991-03-18 Pixel density conversion method Expired - Fee Related JP2833669B2 (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP3052210A JP2833669B2 (en) 1991-03-18 1991-03-18 Pixel density conversion method
DE69223536T DE69223536T2 (en) 1991-03-18 1992-03-13 Image processing device
EP92302194A EP0505113B1 (en) 1991-03-18 1992-03-13 Image processing apparatus
ES92302194T ES2109979T3 (en) 1991-03-18 1992-03-13 APPARATUS FOR IMAGE PROCESSING.
CN92101823.1A CN1097806C (en) 1991-03-18 1992-03-18 Image processing method and apparatus
US08/376,450 US5717793A (en) 1991-03-18 1995-01-23 High quality image size change

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3052210A JP2833669B2 (en) 1991-03-18 1991-03-18 Pixel density conversion method

Publications (2)

Publication Number Publication Date
JPH04287567A true JPH04287567A (en) 1992-10-13
JP2833669B2 JP2833669B2 (en) 1998-12-09

Family

ID=12908401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3052210A Expired - Fee Related JP2833669B2 (en) 1991-03-18 1991-03-18 Pixel density conversion method

Country Status (1)

Country Link
JP (1) JP2833669B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01312671A (en) * 1988-06-10 1989-12-18 Hitachi Ltd Picture processor
JPH02141173A (en) * 1988-11-22 1990-05-30 Matsushita Graphic Commun Syst Inc Picture receiver

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01312671A (en) * 1988-06-10 1989-12-18 Hitachi Ltd Picture processor
JPH02141173A (en) * 1988-11-22 1990-05-30 Matsushita Graphic Commun Syst Inc Picture receiver

Also Published As

Publication number Publication date
JP2833669B2 (en) 1998-12-09

Similar Documents

Publication Publication Date Title
EP0389164B1 (en) Pixel density converting apparatus
US5717793A (en) High quality image size change
JPH0696198A (en) Conversion of nonquantized resolution of bit map image utilizing error diffusion
JPH1127517A (en) Image-processing apparatus
EP0174721B1 (en) Apparatus for processing image signal
JPH05268462A (en) Picture processor
US4937677A (en) Method of enlarging/reducing dithered images
JP3706830B2 (en) Image signal processing device
JP2833670B2 (en) Pixel density conversion method
JPH0495463A (en) Method and device for image processing
US5488672A (en) Color image processing apparatus
JPH0540826A (en) Picture element density conversion system
US6628427B1 (en) Method and apparatus for image processing which improves performance of gray scale image transformation
JP2833669B2 (en) Pixel density conversion method
JPH01312671A (en) Picture processor
JP2714140B2 (en) Pixel density converter
JPH0311878A (en) Picture element density converter
JPH01134577A (en) Image processor
JP3347395B2 (en) Image processing apparatus and method
JP2714141B2 (en) Pixel density converter
JP2635306B2 (en) Image processing device
JP2893700B2 (en) Image processing device
JPH0311478A (en) Picture element density converter
JPS63102467A (en) Converting device for resolution of picture data
JP2958965B2 (en) Image processing device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19980818

LAPS Cancellation because of no payment of annual fees